Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 201) sorted by relevance

123456789

/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java129 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 …]
DListMenuPresenter.java229 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()
DMenuPopupHelper.java350 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local
353 return items.size(); in getCount()
355 return items.size() - 1; in getCount()
359 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local
364 return items.get(position); in getItem()
389 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local
390 final int count = items.size(); in findExpandedIndex()
392 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DMenuBuilder.java773 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/
DInputMethodSubtypeSwitchingControllerTest.java54 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/
DOverflowMenuAdapter.java49 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/
Daidl.cpp249 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/
DOpReorderTest.java292 List<Item> items = new ArrayList<Item>(itemCount); in process() local
294 items.add(Item.create()); in process()
298 clones.add(Item.clone(items.get(i))); in process()
304 apply(items, mUpdateOps); in process()
315 assertListsIdentical(items, clones); in process()
319 assertRecycledOpsAreNotReused(items); in process()
323 private void assertRecycledOpsAreNotReused(List<Item> items) { in assertRecycledOpsAreNotReused() argument
324 for (Item item : items) { in assertRecycledOpsAreNotReused()
340 private void assertHasTheSameItems(List<Item> items, in assertHasTheSameItems() argument
342 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/
DMenu.java31 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()
DComprehensionTlv.java90 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/
DAppearAnimationUtils.java110 private <T> AppearAnimationProperties getDelays(T[] items) { in getDelays() argument
114 mProperties.delays = new long[items.length][]; in getDelays()
115 for (int row = 0; row < items.length; row++) { in getDelays()
119 if (items[row] != null && delay > maxDelay) { in getDelays()
128 private <T> AppearAnimationProperties getDelays(T[][] items) { in getDelays() argument
132 mProperties.delays = new long[items.length][]; in getDelays()
133 for (int row = 0; row < items.length; row++) { in getDelays()
134 T[] columns = items[row]; in getDelays()
139 if (items[row][col] != null && delay > maxDelay) { in getDelays()
/frameworks/base/core/java/android/animation/
DAnimatorSet.java139 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/
Dlists.jd12 <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
Dgrid-lists.jd23 <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/
DMenuWrapperICS.java77 android.view.MenuItem[] items = null; in addIntentOptions() local
79 items = new android.view.MenuItem[outSpecificItems.length]; in addIntentOptions()
83 .addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, items); in addIntentOptions()
85 if (items != null) { in addIntentOptions()
86 for (int i = 0, z = items.length; i < z; i++) { in addIntentOptions()
87 outSpecificItems[i] = getMenuItemWrapper(items[i]); in addIntentOptions()
DListMenuPresenter.java233 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()
DMenuPopupHelper.java338 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local
341 return items.size(); in getCount()
343 return items.size() - 1; in getCount()
347 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local
352 return items.get(position); in getItem()
377 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local
378 final int count = items.size(); in findExpandedIndex()
380 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DMenuBuilder.java814 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/
DListViewTest.java44 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/
Dmenus.jd14 <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/
DDatabaseLocaleTest.java69 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/
DArrayObjectAdapter.java107 public void addAll(int index, Collection items) { in addAll() argument
108 int itemsCount = items.size(); in addAll()
109 mItems.addAll(index, items); in addAll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java194 Item[] items = null; in updateItems()
205 items = new Item[] { item }; in updateItems()
210 if (items == null) { in updateItems()
214 items = new Item[devices.size()]; in updateItems()
226 items[i++] = item; in updateItems()
230 mItems.setItems(items); in updateItems()
/frameworks/base/docs/html/design/patterns/
Dselection.jd51 <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/
DQSDetailItems.java123 public void setItems(Item[] items) { in setItems() argument
125 mHandler.obtainMessage(H.SET_ITEMS, items).sendToTarget(); in setItems()
137 private void handleSetItems(Item[] items) { in handleSetItems() argument
138 final int itemCount = items != null ? items.length : 0; in handleSetItems()
145 bind(items[i], mItems.getChildAt(i)); in handleSetItems()

123456789