Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java232 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument
270 public boolean invokeItem(MenuItemImpl item); in invokeItem() argument
357 MenuItemImpl item = mItems.get(i); in clearMenuViews() local
358 if (item.hasSubMenu()) { in clearMenuViews()
359 ((SubMenuBuilder) item.getSubMenu()).clearMenuViews(); in clearMenuViews()
361 item.clearItemViews(); in clearMenuViews()
371 final MenuItemImpl item = new MenuItemImpl(this, group, id, categoryOrder, ordering, title); in addInternal() local
375 item.setMenuInfo(mCurrentMenuInfo); in addInternal()
378 mItems.add(findInsertIndex(mItems, ordering), item); in addInternal() local
381 return item; in addInternal()
[all …]
/frameworks/base/include/utils/
DVectorImpl.h74 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
77 void push(const void* item);
79 ssize_t add(const void* item);
81 ssize_t replaceAt(const void* item, size_t index);
102 virtual void do_splat(void* dest, const void* item, size_t num) const = 0;
123 inline void _do_splat(void* dest, const void* item, size_t num) const;
148 ssize_t indexOf(const void* item) const;
151 size_t orderOf(const void* item) const;
154 ssize_t add(const void* item);
161 ssize_t remove(const void* item);
[all …]
DSortedVector.h81 ssize_t indexOf(const TYPE& item) const;
84 size_t orderOf(const TYPE& item) const;
105 ssize_t add(const TYPE& item);
128 virtual void do_splat(void* dest, const void* item, size_t num) const;
205 ssize_t SortedVector<TYPE>::add(const TYPE& item) { in add() argument
206 return SortedVectorImpl::add(&item); in add()
210 ssize_t SortedVector<TYPE>::indexOf(const TYPE& item) const { in indexOf() argument
211 return SortedVectorImpl::indexOf(&item); in indexOf()
215 size_t SortedVector<TYPE>::orderOf(const TYPE& item) const { in orderOf() argument
216 return SortedVectorImpl::orderOf(&item); in orderOf()
[all …]
DVector.h130 void push(const TYPE& item);
134 ssize_t add(const TYPE& item);
138 ssize_t replaceAt(const TYPE& item, size_t index);
163 virtual void do_splat(void* dest, const void* item, size_t num) const;
262 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) { in insertAt() argument
263 return VectorImpl::insertAt(&item, index, numItems); in insertAt()
267 void Vector<TYPE>::push(const TYPE& item) { in push() argument
268 return VectorImpl::push(&item); in push()
272 ssize_t Vector<TYPE>::add(const TYPE& item) { in add() argument
273 return VectorImpl::add(&item); in add()
[all …]
DKeyedVector.h79 ssize_t add(const KEY& key, const VALUE& item);
80 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
81 ssize_t replaceValueAt(size_t index, const VALUE& item);
165 ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) { in replaceValueAt() argument
167 mVector.editItemAt(index).value = item; in replaceValueAt()
/frameworks/base/awt/java/awt/event/
DItemEvent.java46 private Object item; field in ItemEvent
49 public ItemEvent(ItemSelectable source, int id, Object item, int stateChange) { in ItemEvent() argument
52 this.item = item; in ItemEvent()
57 return item; in getItem()
93 ",item=" + item + ",stateChange=" + stateString); //$NON-NLS-1$ //$NON-NLS-2$ in paramString()
/frameworks/base/libs/utils/
DVectorImpl.cpp130 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument
136 if (item) { in insertAt()
137 _do_splat(where, item, numItems); in insertAt()
166 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() local
168 if (cmp(curr, item, state) > 0) { in sort()
177 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort()
181 _do_copy(temp, item, 1); in sort()
216 void VectorImpl::push(const void* item) in push() argument
218 insertAt(item, size()); in push()
226 ssize_t VectorImpl::add(const void* item) in add() argument
[all …]
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/menus/
DMenuScenario.java70 MenuItem item; in onCreateOptionsMenu()
72 if ((item = onAddMenuItem(menu, i)) == null) { in onCreateOptionsMenu()
76 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i)); in onCreateOptionsMenu()
79 if (item != null) { in onCreateOptionsMenu()
80 mItems[i] = item; in onCreateOptionsMenu()
83 item.setOnMenuItemClickListener(this); in onCreateOptionsMenu()
124 public boolean onMenuItemClick(MenuItem item) { in onMenuItemClick() argument
125 final int position = findItemPosition(item); in onMenuItemClick()
143 public int findItemPosition(MenuItem item) { in findItemPosition() argument
146 if (mItems[i] == item) return i; in findItemPosition()
DListContextMenu.java99 MenuItem item = menu.add(0, 0, 0, "Really long menu item name"); in onCreateOptionsMenu() local
100 item.setTitleCondensed("Long name"); in onCreateOptionsMenu()
101 item.setIcon(R.drawable.black_square); in onCreateOptionsMenu()
104 item = sm.getItem(); in onCreateOptionsMenu()
105 item.setTitleCondensed("Sub menu"); in onCreateOptionsMenu()
177 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
178 Log.i(TAG, "Options item " + item.toString() + " selected."); in onOptionsItemSelected()
180 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
189 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() argument
190 Log.i(TAG, "Context item " + item.toString() + " selected."); in onContextItemSelected()
[all …]
/frameworks/base/docs/html/guide/tutorials/views/
Dhello-spinner.jd6 <p>A {@link android.widget.Spinner} is a widget that allows the user to select an item from a group.
57 &lt;item>Mercury&lt;/item>
58 &lt;item>Venus&lt;/item>
59 &lt;item>Earth&lt;/item>
60 &lt;item>Mars&lt;/item>
61 &lt;item>Jupiter&lt;/item>
62 &lt;item>Saturn&lt;/item>
63 &lt;item>Uranus&lt;/item>
64 &lt;item>Neptune&lt;/item>
/frameworks/base/core/java/android/webkit/
DWebHistoryItem.java71 private WebHistoryItem(WebHistoryItem item) { in WebHistoryItem() argument
72 mUrl = item.mUrl; in WebHistoryItem()
73 mTitle = item.mTitle; in WebHistoryItem()
74 mFlattenedData = item.mFlattenedData; in WebHistoryItem()
75 mFavicon = item.mFavicon; in WebHistoryItem()
76 mId = item.mId; in WebHistoryItem()
/frameworks/base/docs/html/guide/topics/ui/
Dthemes.jd39 …&lt;style></code> element, declare format values in one or more <code>&lt;item&gt;</code> element(…
40 …Each <code>&lt;item&gt;</code> identifies its style property with a <code>name</code> attribute an…
53 &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
54 &lt;item name="android:textColor"&gt;#008&lt;/item&gt;
59 <p>As shown, you can use <code>&lt;item&gt;</code> elements to set specific formatting values for t…
60 The <code>name</code> attribute in the <code>item</code> can refer to a standard string, a hex colo…
91 &lt;item name="android:windowNoTitle">true&lt;/item>
92 &lt;item name="windowFrame"&gt;@drawable/screen_frame&lt;/item&gt;
93 &lt;item name="windowBackground"&gt;@drawable/screen_background_white&lt;/item&gt;
94 &lt;item name="panelForegroundColor"&gt;#FF000000&lt;/item&gt;
[all …]
Dmenus.jd25 <li><a href="#intents">Menu item intents</a></li>
48 <dd>This is a vertical list of items exposed by the "More" menu item from the Icon Menu.
50 Option Menu item and the rest.</dd>
55 (such as a list item). </dd>
57 <dd>This is a floating list of menu items that is revealed by an item in the Options Menu
58 or a Context Menu. A Submenu item cannot support nested Submenus. </dd>
67 in the Icon Menu are revealed in the Expanded Menu, via the "More" menu item. The Expanded Menu
81 for each item you'd like in the menu. This method adds a {@link android.view.MenuItem}, and returns…
83 an icon, a keyboard shortcut, an intent, and other settings for the item.</p>
87 This is a unique integer that allows you to identify the item during a callback.</p>
[all …]
/frameworks/base/core/java/android/app/
DLauncherActivity.java118 ListItem item = mActivitiesList.get(position); in intentForPosition() local
119 intent.setClassName(item.packageName, item.className); in intentForPosition()
120 if (item.extras != null) { in intentForPosition()
121 intent.putExtras(item.extras); in intentForPosition()
158 private void bindView(View view, ListItem item) { in bindView() argument
160 text.setText(item.label); in bindView()
161 if (item.icon == null) { in bindView()
162 item.icon = mIconResizer.createIconThumbnail( in bindView()
163 item.resolveInfo.loadIcon(getPackageManager())); in bindView()
165 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in bindView()
[all …]
/frameworks/base/core/java/android/util/
DEventLog.java128 final Object item = items[i]; in List() local
129 if (item == null) { in List()
132 } else if (!(item instanceof List || in List()
133 item instanceof String || in List()
134 item instanceof Integer || in List()
135 item instanceof Long)) { in List()
/frameworks/base/core/java/android/preference/
DGenericInflater.java424 T item = (mFactory == null) ? null : mFactory.onCreateItem(name, mContext, attrs); in createItemFromTag() local
426 if (item == null) { in createItemFromTag()
428 item = onCreateItem(name, attrs); in createItemFromTag()
430 item = createItem(name, null, attrs); in createItemFromTag()
434 if (DEBUG) System.out.println("Created item is: " + item); in createItemFromTag()
435 return item; in createItemFromTag()
481 T item = createItemFromTag(parser, name, attrs); in rInflate() local
488 ((P) parent).addItemFromInflater(item); in rInflate()
493 rInflate(parser, item, attrs); in rInflate()
/frameworks/base/media/libstagefright/
DMetaData.cpp133 typed_data item; in setData() local
134 i = mItems.add(key, item); in setData()
139 typed_data &item = mItems.editValueAt(i); in setData() local
141 item.setData(type, data, size); in setData()
154 const typed_data &item = mItems.valueAt(i); in findData() local
156 item.getData(type, data, size); in findData()
DTimedEventQueue.cpp103 QueueItem item; in postTimedEvent() local
104 item.event = event; in postTimedEvent()
105 item.realtime_us = realtime_us; in postTimedEvent()
111 mQueue.insert(it, item); in postTimedEvent()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeContext.java268 IResourceValue item = findItemInStyle(mThemeValues, defStyleName); in obtainStyledAttributes() local
270 if (item != null) { in obtainStyledAttributes()
272 item = findResValue(item.getValue()); in obtainStyledAttributes()
274 if (item instanceof IStyleResourceValue) { in obtainStyledAttributes()
275 defStyleValues = (IStyleResourceValue)item; in obtainStyledAttributes()
568 IResourceValue item = typeMap.get(resName); in findResValue() local
569 if (item != null) { in findResValue()
570 return item; in findResValue()
578 IResourceValue item = typeMap.get(resName); in findResValue() local
579 if (item != null) { in findResValue()
[all …]
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp126 jobject item = env->GetObjectArrayElement(items, i); in putList() local
127 if (env->IsInstanceOf(item, gIntegerClass)) { in putList()
128 jint intVal = env->GetIntField(item, gIntegerValueID); in putList()
130 } else if (env->IsInstanceOf(item, gLongClass)) { in putList()
131 jlong longVal = env->GetLongField(item, gLongValueID); in putList()
133 } else if (env->IsInstanceOf(item, gStringClass)) { in putList()
134 putStringEvent(env, (jstring)item); in putList()
135 } else if (env->IsInstanceOf(item, gListClass)) { in putList()
136 putList(env, item); in putList()
144 env->DeleteLocalRef(item); in putList()
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/listview/
DListWithEmptyView.java84 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
85 switch (item.getItemId()) { in onOptionsItemSelected()
97 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/frameworks/base/core/java/android/widget/
DArrayAdapter.java308 public int getPosition(T item) { in getPosition() argument
309 return mObjects.indexOf(item); in getPosition()
351 T item = getItem(position); in createViewFromResource() local
352 if (item instanceof CharSequence) { in createViewFromResource()
353 text.setText((CharSequence)item); in createViewFromResource()
355 text.setText(item.toString()); in createViewFromResource()
/frameworks/base/core/java/android/content/
DSyncAdaptersCache.java68 public void writeAsXml(SyncAdapterType item, XmlSerializer out) throws IOException { in writeAsXml() argument
69 out.attribute(null, "authority", item.authority); in writeAsXml()
70 out.attribute(null, "accountType", item.accountType); in writeAsXml()
DSyncStorageEngine.java712 SyncHistoryItem item = new SyncHistoryItem(); in insertStartSyncEvent() local
713 item.authorityId = authority.ident; in insertStartSyncEvent()
714 item.historyId = mNextHistoryId++; in insertStartSyncEvent()
716 item.eventTime = now; in insertStartSyncEvent()
717 item.source = source; in insertStartSyncEvent()
718 item.event = EVENT_START; in insertStartSyncEvent()
719 mSyncHistory.add(0, item); in insertStartSyncEvent()
723 id = item.historyId; in insertStartSyncEvent()
735 SyncHistoryItem item = null; in stopSyncEvent() local
739 item = mSyncHistory.get(i); in stopSyncEvent()
[all …]
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/focus/
DListOfInternalSelectionViews.java161 InternalSelectionView item = in getView() local
166 item.setDesiredHeight((int) (mScreenHeight * mItemScreenSizeFactor)); in getView()
167 return item; in getView()

1234