/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 | 357 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local 360 return items.size(); in getCount() 362 return items.size() - 1; in getCount() 366 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local 371 return items.get(position); in getItem() 396 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 397 final int count = items.size(); in findExpandedIndex() 399 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuBuilder.java | 773 private static int findInsertIndex(ArrayList<MenuItemImpl> items, int ordering) { in findInsertIndex() argument 774 for (int i = items.size() - 1; i >= 0; i--) { in findInsertIndex() 775 MenuItemImpl item = items.get(i); in findInsertIndex() 806 void findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) { in findItemsWithShortcutForKey() argument 822 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); in findItemsWithShortcutForKey() 832 items.add(item); in findItemsWithShortcutForKey() 850 ArrayList<MenuItemImpl> items = mTempShortcutItemList; in findItemWithShortcutForKey() local 851 items.clear(); in findItemWithShortcutForKey() 852 findItemsWithShortcutForKey(items, keyCode, event); in findItemWithShortcutForKey() 854 if (items.isEmpty()) { in findItemWithShortcutForKey() [all …]
|
/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 | 249 check_filenames(const char* filename, document_item_type* items) argument 252 while (items) { 253 if (items->item_type == USER_DATA_TYPE) { 254 user_data_type* p = (user_data_type*)items; 257 else if (items->item_type == INTERFACE_TYPE_BINDER 258 || items->item_type == INTERFACE_TYPE_RPC) { 259 interface_type* c = (interface_type*)items; 264 items->item_type); 267 items = items->next; 301 gather_types(const char* filename, document_item_type* items) argument [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | OpReorderTest.java | 289 List<Item> items = new ArrayList<Item>(itemCount); in process() local 291 items.add(Item.create()); in process() 295 clones.add(Item.clone(items.get(i))); in process() 301 apply(items, mUpdateOps); in process() 312 assertListsIdentical(items, clones); in process() 316 assertRecycledOpsAreNotReused(items); in process() 320 private void assertRecycledOpsAreNotReused(List<Item> items) { in assertRecycledOpsAreNotReused() argument 321 for (Item item : items) { in assertRecycledOpsAreNotReused() 337 private void assertHasTheSameItems(List<Item> items, in assertHasTheSameItems() argument 339 String log = "has the same items\n" + toString(items) + "--\n" + toString(clones); in assertHasTheSameItems() [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/packages/Keyguard/src/com/android/keyguard/ |
D | AppearAnimationUtils.java | 119 private <T> AppearAnimationProperties getDelays(T[] items) { in getDelays() argument 123 mProperties.delays = new long[items.length][]; in getDelays() 124 for (int row = 0; row < items.length; row++) { in getDelays() 128 if (items[row] != null && delay > maxDelay) { in getDelays() 137 private <T> AppearAnimationProperties getDelays(T[][] items) { in getDelays() argument 141 mProperties.delays = new long[items.length][]; in getDelays() 142 for (int row = 0; row < items.length; row++) { in getDelays() 143 T[] columns = items[row]; in getDelays() 148 if (items[row][col] != null && delay > maxDelay) { in getDelays()
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorSet.java | 139 public void playTogether(Animator... items) { in playTogether() argument 140 if (items != null) { in playTogether() 142 Builder builder = play(items[0]); in playTogether() 143 for (int i = 1; i < items.length; ++i) { in playTogether() 144 builder.with(items[i]); in playTogether() 154 public void playTogether(Collection<Animator> items) { in playTogether() argument 155 if (items != null && items.size() > 0) { in playTogether() 158 for (Animator anim : items) { in playTogether() 174 public void playSequentially(Animator... items) { in playSequentially() argument 175 if (items != null) { in playSequentially() [all …]
|
/frameworks/base/docs/html/design/building-blocks/ |
D | lists.jd | 12 <p itemprop="description">Lists present multiple line items in a vertical arrangement. They can be … 32 <p>List items can accommodate a wide range of data types in different arrangements, including 33 simple single-line items, multi-line items, and custom items with icons, checkboxes, and action
|
D | grid-lists.jd | 23 <p>The items in a grid list are arranged in two dimensions, one of which is fixed when scrolling 24 content. The scrolling direction dictates the ordering of the items within the grid list. Since the 26 cutting off grid items to communicate where the overflow is located.</p> 39 <p>Vertically scrolling grid list items are sorted in traditional western reading direction: 40 left-to-right and top-down. When displaying the list, cut off the items in the bottom row to 41 communicate that the user can scroll the list down to show additional items. Be sure to retain this 58 the same technique of cutting off the items in the rightmost column to indicate the scrolling 71 <p>Use labels to display additional contextual information for your grid list items.</p> 83 <p>Use semi-transparent panels on top of the grid list items to display your labels. This allows yo…
|
/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 | 345 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local 348 return items.size(); in getCount() 350 return items.size() - 1; in getCount() 354 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local 359 return items.get(position); in getItem() 384 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 385 final int count = items.size(); in findExpandedIndex() 387 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuBuilder.java | 814 private static int findInsertIndex(ArrayList<MenuItemImpl> items, int ordering) { in findInsertIndex() argument 815 for (int i = items.size() - 1; i >= 0; i--) { in findInsertIndex() 816 MenuItemImpl item = items.get(i); in findInsertIndex() 849 void findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) { in findItemsWithShortcutForKey() argument 865 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); in findItemsWithShortcutForKey() 875 items.add(item); in findItemsWithShortcutForKey() 894 ArrayList<MenuItemImpl> items = mTempShortcutItemList; in findItemWithShortcutForKey() local 895 items.clear(); in findItemWithShortcutForKey() 896 findItemsWithShortcutForKey(items, keyCode, event); in findItemWithShortcutForKey() 898 if (items.isEmpty()) { in findItemWithShortcutForKey() [all …]
|
/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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ArrayObjectAdapter.java | 108 public void addAll(int index, Collection items) { in addAll() argument 109 int itemsCount = items.size(); in addAll() 113 mItems.addAll(index, items); in addAll()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CastTile.java | 195 Item[] items = null; in updateItems() 206 items = new Item[] { item }; in updateItems() 211 if (items == null) { in updateItems() 215 items = new Item[devices.size()]; in updateItems() 227 items[i++] = item; in updateItems() 231 mItems.setItems(items); in updateItems()
|
/frameworks/base/docs/html/design/patterns/ |
D | selection.jd | 51 <li>Select additional data items by touching them.</li> 52 <li>Trigger an action from the CAB that applies to all highlighted data items. The CAB then 71 pattern</a> to decide which items to surface at the top level and which to move to the 74 <p>In most cases you need to adjust the actions in the CAB dynamically as the user adds more items … 76 selected data items of the same kind.</p> 83 Adjusting actions in the CAB as additional items are selected. 100 <p>Whenever your app supports the selection of multiple data items, make use of the contextual acti…
|
/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()
|