/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenu.java | 129 final ArrayList<ActionMenuItem> items = mItems; in findItemIndex() local 130 final int itemCount = items.size(); in findItemIndex() 132 if (items.get(i).getItemId() == id) { in findItemIndex() 149 final ArrayList<ActionMenuItem> items = mItems; in hasVisibleItems() local 150 final int itemCount = items.size(); in hasVisibleItems() 153 if (items.get(i).isVisible()) { in hasVisibleItems() 164 final ArrayList<ActionMenuItem> items = mItems; in findItemWithShortcut() local 165 final int itemCount = items.size(); in findItemWithShortcut() 168 ActionMenuItem item = items.get(i); in findItemWithShortcut() 201 final ArrayList<ActionMenuItem> items = mItems; in removeGroup() local [all …]
|
D | ListMenuPresenter.java | 229 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local 230 int count = items.size() - mItemIndexOffset; in getCount() 238 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local 243 return items.get(position); in getItem() 265 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 266 final int count = items.size(); in findExpandedIndex() 268 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuPopupHelper.java | 372 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local 375 return items.size(); in getCount() 377 return items.size() - 1; in getCount() 381 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local 386 return items.get(position); in getItem() 411 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 412 final int count = items.size(); in findExpandedIndex() 414 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
/frameworks/base/core/tests/inputmethodtests/src/android/os/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 54 private static void addDummyImeSubtypeListItems(List<ImeSubtypeListItem> items, in addDummyImeSubtypeListItems() argument 80 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems() 85 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems() 92 final List<ImeSubtypeListItem> items = new ArrayList<ImeSubtypeListItem>(); in createEnabledImeSubtypes() local 93 addDummyImeSubtypeListItems(items, "LatinIme", "LatinIme", Arrays.asList("en_US", "fr"), in createEnabledImeSubtypes() 95 addDummyImeSubtypeListItems(items, "switchUnawareLatinIme", "switchUnawareLatinIme", in createEnabledImeSubtypes() 98 addDummyImeSubtypeListItems(items, "subtypeUnawareIme", "subtypeUnawareIme", null, in createEnabledImeSubtypes() 100 addDummyImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", Arrays.asList("ja_JP"), in createEnabledImeSubtypes() 102 addDummyImeSubtypeListItems(items, "switchUnawareJapaneseIme", "switchUnawareJapaneseIme", in createEnabledImeSubtypes() 104 return items; in createEnabledImeSubtypes() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | OverflowMenuAdapter.java | 49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local 51 return items.size(); in getCount() 53 return items.size() - 1; in getCount() 58 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local 62 return items.get(position); in getItem() 88 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 89 final int count = items.size(); in findExpandedIndex() 91 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
/frameworks/base/tools/aidl/ |
D | aidl.cpp | 250 check_filenames(const char* filename, document_item_type* items) argument 253 while (items) { 254 if (items->item_type == USER_DATA_TYPE) { 255 user_data_type* p = (user_data_type*)items; 258 else if (items->item_type == INTERFACE_TYPE_BINDER 259 || items->item_type == INTERFACE_TYPE_RPC) { 260 interface_type* c = (interface_type*)items; 265 items->item_type); 268 items = items->next; 302 gather_types(const char* filename, document_item_type* items) argument [all …]
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
D | OpReorderTest.java | 308 List<Item> items = new ArrayList<Item>(itemCount); in process() local 310 items.add(Item.create()); in process() 314 clones.add(Item.clone(items.get(i))); in process() 320 apply(items, mUpdateOps); in process() 331 assertListsIdentical(items, clones); in process() 335 assertRecycledOpsAreNotReused(items); in process() 339 private void assertRecycledOpsAreNotReused(List<Item> items) { in assertRecycledOpsAreNotReused() argument 340 for (Item item : items) { in assertRecycledOpsAreNotReused() 356 private void assertHasTheSameItems(List<Item> items, in assertHasTheSameItems() argument 358 String log = "has the same items\n" + toString(items) + "--\n" + toString(clones); in assertHasTheSameItems() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 150 public void addAll(T[] items, boolean mayModifyInput) { in addAll() argument 152 if (items.length == 0) { in addAll() 156 addAllInternal(items); in addAll() 158 T[] copy = (T[]) Array.newInstance(mTClass, items.length); in addAll() 159 System.arraycopy(items, 0, copy, 0, items.length); in addAll() 172 public void addAll(T... items) { in addAll() argument 173 addAll(items, false); in addAll() 183 public void addAll(Collection<T> items) { in addAll() argument 184 T[] copy = (T[]) Array.newInstance(mTClass, items.size()); in addAll() 185 addAll(items.toArray(copy), true); in addAll() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | Menu.java | 31 public List<Item> items; field in Menu 44 items = new ArrayList<Item>(); in Menu() 61 items = new ArrayList<Item>(); in Menu() 65 items.add(item); in Menu() 85 int size = items.size(); in writeToParcel() 88 dest.writeParcelable(items.get(i), flags); in writeToParcel()
|
D | ComprehensionTlv.java | 90 ArrayList<ComprehensionTlv> items = new ArrayList<ComprehensionTlv>(); in decodeMany() local 95 items.add(ctlv); in decodeMany() 103 return items; in decodeMany()
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorSet.java | 140 public void playTogether(Animator... items) { in playTogether() argument 141 if (items != null) { in playTogether() 143 Builder builder = play(items[0]); in playTogether() 144 for (int i = 1; i < items.length; ++i) { in playTogether() 145 builder.with(items[i]); in playTogether() 155 public void playTogether(Collection<Animator> items) { in playTogether() argument 156 if (items != null && items.size() > 0) { in playTogether() 159 for (Animator anim : items) { in playTogether() 175 public void playSequentially(Animator... items) { in playSequentially() argument 176 if (items != null) { in playSequentially() [all …]
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | SortedListTest.java | 276 Item[] items = new Item[count]; in createItems() local 281 items[i] = item; in createItems() 284 return items; in createItems() 287 private static Item[] shuffle(Item[] items) { in shuffle() argument 289 final int count = items.length; in shuffle() 294 Item temp = items[pos1]; in shuffle() 295 items[pos1] = items[pos2]; in shuffle() 296 items[pos2] = temp; in shuffle() 299 return items; in shuffle() 466 Item[] items = new Item[maxUniqueId * maxGeneration]; in testAddAllWithDuplicates() local [all …]
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
D | GridWidgetTest.java | 634 int[] items = new int[1000]; in testScrollAndInsert() local 635 for (int i = 0; i < items.length; i++) { in testScrollAndInsert() 636 items[i] = 300 + (int)(Math.random() * 100); in testScrollAndInsert() 638 intent.putExtra(GridActivity.EXTRA_ITEMS, items); in testScrollAndInsert() 677 int[] items = new int[1000]; in testScrollAndInsertBeforeVisibleItem() local 678 for (int i = 0; i < items.length; i++) { in testScrollAndInsertBeforeVisibleItem() 679 items[i] = 300 + (int)(Math.random() * 100); in testScrollAndInsertBeforeVisibleItem() 681 intent.putExtra(GridActivity.EXTRA_ITEMS, items); in testScrollAndInsertBeforeVisibleItem() 805 int[] items = new int[100]; in testPendingSmoothScrollAndRemove() local 806 for (int i = 0; i < items.length; i++) { in testPendingSmoothScrollAndRemove() [all …]
|
D | GridTest.java | 35 Provider(int[] items) { in Provider() argument 36 mItems = items; in Provider() 37 mCount = items.length; in Provider()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | MenuWrapperICS.java | 83 android.view.MenuItem[] items = null; in addIntentOptions() local 85 items = new android.view.MenuItem[outSpecificItems.length]; in addIntentOptions() 89 .addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, items); in addIntentOptions() 91 if (items != null) { in addIntentOptions() 92 for (int i = 0, z = items.length; i < z; i++) { in addIntentOptions() 93 outSpecificItems[i] = getMenuItemWrapper(items[i]); in addIntentOptions()
|
D | ListMenuPresenter.java | 233 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local 234 int count = items.size() - mItemIndexOffset; in getCount() 242 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local 247 return items.get(position); in getItem() 269 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 270 final int count = items.size(); in findExpandedIndex() 272 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuPopupHelper.java | 349 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local 352 return items.size(); in getCount() 354 return items.size() - 1; in getCount() 358 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local 363 return items.get(position); in getItem() 388 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 389 final int count = items.size(); in findExpandedIndex() 391 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 132 private <T> AppearAnimationProperties getDelays(T[] items) { in getDelays() argument 136 mProperties.delays = new long[items.length][]; in getDelays() 137 for (int row = 0; row < items.length; row++) { in getDelays() 141 if (items[row] != null && delay > maxDelay) { in getDelays() 150 private <T> AppearAnimationProperties getDelays(T[][] items) { in getDelays() argument 154 mProperties.delays = new long[items.length][]; in getDelays() 155 for (int row = 0; row < items.length; row++) { in getDelays() 156 T[] columns = items[row]; in getDelays() 161 if (items[row][col] != null && delay > maxDelay) { in getDelays()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 44 List<String> items = Lists.newArrayList("hello"); in testRequestLayout() local 45 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testRequestLayout() 74 List<String> items = Lists.newArrayList("hello"); in testNoSelectableItems() local 75 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testNoSelectableItems() 86 items.remove(0); in testNoSelectableItems()
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | menus.jd | 14 <li><a href="#ChangingTheMenu">Changing menu items at runtime</a></li> 30 <li><a href="#checkable">Using checkable menu items</a></li> 68 <p>Although the design and user experience for some menu items have changed, the semantics to define 75 <dd>The <a href="#options-menu">options menu</a> is the primary collection of menu items for an 80 <p>On Android 3.0 and higher, items from the options menu are presented by the <a 82 items and overflow options. Beginning with Android 3.0, the <em>Menu</em> button is deprecated (some 96 action items that affect the selected content in a bar at the top of the screen and allows the user 97 to select multiple items.</p> 102 <dd>A popup menu displays a list of items in a vertical list that's anchored to the view that 116 <p>For all menu types, Android provides a standard XML format to define menu items. [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLocaleTest.java | 69 ArrayList<String> items = new ArrayList<String>(); in query() local 71 items.add(c.getString(0)); in query() 74 String[] result = items.toArray(new String[items.size()]); in query()
|
/frameworks/av/media/libmedia/ |
D | IResourceManagerService.cpp | 39 static void writeToParcel(Parcel *data, const Vector<T> &items) { in writeToParcel() argument 40 size_t size = items.size(); in writeToParcel() 44 items[i].writeToParcel(data); in writeToParcel() 49 static void readFromParcel(const Parcel &data, Vector<T> *items) { in readFromParcel() argument 54 items->add(item); in readFromParcel()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ArrayObjectAdapter.java | 110 public void addAll(int index, Collection items) { in addAll() argument 111 int itemsCount = items.size(); in addAll() 115 mItems.addAll(index, items); in addAll()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CastTile.java | 208 Item[] items = null; in updateItems() 219 items = new Item[] { item }; in updateItems() 224 if (items == null) { in updateItems() 228 items = new Item[devices.size()]; in updateItems() 240 items[i++] = item; in updateItems() 244 mItems.setItems(items); in updateItems()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetailItems.java | 141 public void setItems(Item[] items) { in setItems() argument 143 mHandler.obtainMessage(H.SET_ITEMS, items).sendToTarget(); in setItems() 155 private void handleSetItems(Item[] items) { in handleSetItems() argument 156 final int itemCount = items != null ? Math.min(items.length, mMaxItems) : 0; in handleSetItems() 163 bind(items[i], mItems.getChildAt(i)); in handleSetItems()
|