/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 232 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/ |
D | VectorImpl.h | 74 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 …]
|
D | SortedVector.h | 81 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 …]
|
D | Vector.h | 130 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 …]
|
D | KeyedVector.h | 79 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/ |
D | ItemEvent.java | 46 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/ |
D | VectorImpl.cpp | 130 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/ |
D | MenuScenario.java | 70 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()
|
D | ListContextMenu.java | 99 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/ |
D | hello-spinner.jd | 6 <p>A {@link android.widget.Spinner} is a widget that allows the user to select an item from a group. 57 <item>Mercury</item> 58 <item>Venus</item> 59 <item>Earth</item> 60 <item>Mars</item> 61 <item>Jupiter</item> 62 <item>Saturn</item> 63 <item>Uranus</item> 64 <item>Neptune</item>
|
/frameworks/base/core/java/android/webkit/ |
D | WebHistoryItem.java | 71 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/ |
D | themes.jd | 39 …<style></code> element, declare format values in one or more <code><item></code> element(… 40 …Each <code><item></code> identifies its style property with a <code>name</code> attribute an… 53 <item name="android:textSize">18sp</item> 54 <item name="android:textColor">#008</item> 59 <p>As shown, you can use <code><item></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 <item name="android:windowNoTitle">true</item> 92 <item name="windowFrame">@drawable/screen_frame</item> 93 <item name="windowBackground">@drawable/screen_background_white</item> 94 <item name="panelForegroundColor">#FF000000</item> [all …]
|
D | menus.jd | 25 <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/ |
D | LauncherActivity.java | 118 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/ |
D | EventLog.java | 128 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/ |
D | GenericInflater.java | 424 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/ |
D | MetaData.cpp | 133 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()
|
D | TimedEventQueue.cpp | 103 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/ |
D | BridgeContext.java | 268 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/ |
D | android_util_EventLog.cpp | 126 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/ |
D | ListWithEmptyView.java | 84 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/ |
D | ArrayAdapter.java | 308 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/ |
D | SyncAdaptersCache.java | 68 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()
|
D | SyncStorageEngine.java | 712 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/ |
D | ListOfInternalSelectionViews.java | 161 InternalSelectionView item = in getView() local 166 item.setDesiredHeight((int) (mScreenHeight * mItemScreenSizeFactor)); in getView() 167 return item; in getView()
|