Searched refs:items (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DOverflowMenuAdapter.java49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
51 return items.size();
53 return items.size() - 1;
58 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
62 return items.get(position);
88 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
89 final int count = items.size();
91 final MenuItemImpl item = items.get(i);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenu.java129 final ArrayList<ActionMenuItem> items = mItems;
130 final int itemCount = items.size();
132 if (items.get(i).getItemId() == id) {
149 final ArrayList<ActionMenuItem> items = mItems;
150 final int itemCount = items.size();
153 if (items.get(i).isVisible()) {
164 final ArrayList<ActionMenuItem> items = mItems;
165 final int itemCount = items.size();
168 ActionMenuItem item = items.get(i);
201 final ArrayList<ActionMenuItem> items
[all...]
H A DListMenuPresenter.java114 * @return A ListAdapter containing the items in the menu.
229 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
230 int count = items.size() - mItemIndexOffset;
238 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
243 return items.get(position);
265 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
266 final int count = items.size();
268 final MenuItemImpl item = items.get(i);
H A DMenuPopupHelper.java350 ArrayList<MenuItemImpl> items = mOverflowOnly ?
353 return items.size();
355 return items.size() - 1;
359 ArrayList<MenuItemImpl> items = mOverflowOnly ?
364 return items.get(position);
389 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
390 final int count = items.size();
392 final MenuItemImpl item = items.get(i);
H A DMenuBuilder.java86 /** Contains all of the items for this menu */
89 /** Contains only the items that are currently visible. This will be created/refreshed from
93 * Whether or not the items (or any one item's shown state) has changed since it was last
99 * Contains only the items that should appear in the Action Bar, if present.
103 * Contains items that should NOT appear in the Action Bar, if present.
108 * Whether or not the items (or any one item's action state) has changed since it was
114 * Default value for how added items should show in the action list.
121 * should be set on all items added to this menu.
180 * Called by menu items to execute their associated action
220 * inflating menu items
773 findInsertIndex(ArrayList<MenuItemImpl> items, int ordering) argument
806 findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DMenu.java31 public List<Item> items; field in class:Menu
44 items = new ArrayList<Item>();
60 // rebuild items list.
61 items = new ArrayList<Item>();
65 items.add(item);
84 // write items list to the parcel.
85 int size = items.size();
88 dest.writeParcelable(items.get(i), flags);
H A DComprehensionTlv.java90 ArrayList<ComprehensionTlv> items = new ArrayList<ComprehensionTlv>();
95 items.add(ctlv);
103 return items;
/frameworks/base/core/tests/inputmethodtests/src/android/os/
H A DInputMethodSubtypeSwitchingControllerTest.java54 private static void addDummyImeSubtypeListItems(List<ImeSubtypeListItem> items, argument
80 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi,
85 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale,
92 final List<ImeSubtypeListItem> items = new ArrayList<ImeSubtypeListItem>();
93 addDummyImeSubtypeListItems(items, "LatinIme", "LatinIme", Arrays.asList("en_US", "fr"),
95 addDummyImeSubtypeListItems(items, "switchUnawareLatinIme", "switchUnawareLatinIme",
98 addDummyImeSubtypeListItems(items, "subtypeUnawareIme", "subtypeUnawareIme", null,
100 addDummyImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", Arrays.asList("ja_JP"),
102 addDummyImeSubtypeListItems(items, "switchUnawareJapaneseIme", "switchUnawareJapaneseIme",
104 return items;
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DArrayObjectAdapter.java34 * Construct an adapter that uses the given {@link Presenter} for all items.
70 * Notify that the content of a range of items changed. Note that this is
71 * not same as items being added or removed.
74 * @param itemCount The count of how many items have changed.
104 * @param index The index at which the items should be inserted.
105 * @param items A {@link Collection} of items to insert.
107 public void addAll(int index, Collection items) { argument
108 int itemsCount = items.size();
109 mItems.addAll(index, items);
[all...]
/frameworks/base/tools/aidl/
H A 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
301 gather_types(const char* filename, document_item_type* items) argument
550 check_types(const char* filename, document_item_type* items) argument
590 exactly_one_interface(const char* filename, const document_item_type* items, const Options& options, bool* onlyParcelable) argument
634 generate_dep_file(const Options& options, const document_item_type* items) argument
724 generate_outputFileName(const Options& options, const document_item_type* items) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DOpReorderTest.java292 List<Item> items = new ArrayList<Item>(itemCount);
294 items.add(Item.create());
298 clones.add(Item.clone(items.get(i)));
304 apply(items, mUpdateOps);
315 assertListsIdentical(items, clones);
319 assertRecycledOpsAreNotReused(items);
323 private void assertRecycledOpsAreNotReused(List<Item> items) { argument
324 for (Item item : items) {
340 private void assertHasTheSameItems(List<Item> items, argument
342 String log = "has the same items\
355 assertListsIdentical(List<Item> items, List<Item> clones) argument
363 apply(List<Item> items, List<UpdateOp> updateOps) argument
579 toString(List<Item> items) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuWrapperICS.java77 android.view.MenuItem[] items = null;
79 items = new android.view.MenuItem[outSpecificItems.length];
83 .addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, items);
85 if (items != null) {
86 for (int i = 0, z = items.length; i < z; i++) {
87 outSpecificItems[i] = getMenuItemWrapper(items[i]);
H A DListMenuPresenter.java118 * @return A ListAdapter containing the items in the menu.
233 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
234 int count = items.size() - mItemIndexOffset;
242 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
247 return items.get(position);
269 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
270 final int count = items.size();
272 final MenuItemImpl item = items.get(i);
H A DMenuPopupHelper.java338 ArrayList<MenuItemImpl> items = mOverflowOnly ?
341 return items.size();
343 return items.size() - 1;
347 ArrayList<MenuItemImpl> items = mOverflowOnly ?
352 return items.get(position);
377 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
378 final int count = items.size();
380 final MenuItemImpl item = items.get(i);
H A DMenuBuilder.java94 * Contains all of the items for this menu
99 * Contains only the items that are currently visible. This will be created/refreshed from
105 * Whether or not the items (or any one item's shown state) has changed since it was last
111 * Contains only the items that should appear in the Action Bar, if present.
116 * Contains items that should NOT appear in the Action Bar, if present.
121 * Whether or not the items (or any one item's action state) has changed since it was last
127 * Default value for how added items should show in the action list.
134 * all items added to this menu.
202 * Called by menu items to execute their associated action
242 * inflating menu items
814 findInsertIndex(ArrayList<MenuItemImpl> items, int ordering) argument
849 findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLocaleTest.java69 ArrayList<String> items = new ArrayList<String>();
71 items.add(c.getString(0));
74 String[] result = items.toArray(new String[items.size()]);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DAppearAnimationUtils.java110 private <T> AppearAnimationProperties getDelays(T[] items) { argument
114 mProperties.delays = new long[items.length][];
115 for (int row = 0; row < items.length; row++) {
119 if (items[row] != null && delay > maxDelay) {
128 private <T> AppearAnimationProperties getDelays(T[][] items) { argument
132 mProperties.delays = new long[items.length][];
133 for (int row = 0; row < items.length; row++) {
134 T[] columns = items[row];
139 if (items[row][col] != null && delay > maxDelay) {
/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java44 List<String> items = Lists.newArrayList("hello");
45 Adapter<String> adapter = new Adapter<String>(context, 0, items);
74 List<String> items = Lists.newArrayList("hello");
75 Adapter<String> adapter = new Adapter<String>(context, 0, items);
86 items.remove(0);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestBasic.java35 private String[] items = {"This is a very very very very very very very very very very very long Item1", "Item2"}; field in class:BiDiTestBasic
60 builder.setSingleChoiceItems(items, 0, null);
/frameworks/base/core/java/android/animation/
H A DAnimatorSet.java137 * @param items The animations that will be started simultaneously.
139 public void playTogether(Animator... items) { argument
140 if (items != null) {
142 Builder builder = play(items[0]);
143 for (int i = 1; i < items.length; ++i) {
144 builder.with(items[i]);
152 * @param items The animations that will be started simultaneously.
154 public void playTogether(Collection<Animator> items) { argument
155 if (items != null && items
174 playSequentially(Animator... items) argument
194 playSequentially(List<Animator> items) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDetailItems.java40 * Quick settings common detail view with line items.
123 public void setItems(Item[] items) { argument
125 mHandler.obtainMessage(H.SET_ITEMS, items).sendToTarget();
137 private void handleSetItems(Item[] items) { argument
138 final int itemCount = items != null ? items.length : 0;
145 bind(items[i], mItems.getChildAt(i));
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java194 Item[] items = null;
205 items = new Item[] { item };
210 if (items == null) {
214 items = new Item[devices.size()];
226 items[i++] = item;
230 mItems.setItems(items);
H A DBluetoothTile.java196 Item[] items = null;
199 items = new Item[devices.size()];
214 items[i++] = item;
217 mItems.setItems(items);
/frameworks/base/core/java/android/app/
H A DAlertDialog.java626 * Set a list of items to be displayed in the dialog as the content, you will be notified of the
638 * Set a list of items to be displayed in the dialog as the content, you will be notified of the
643 public Builder setItems(CharSequence[] items, final OnClickListener listener) { argument
644 P.mItems = items;
650 * Set a list of items, which are supplied by the given {@link ListAdapter}, to be
654 * @param adapter The {@link ListAdapter} to supply the list of items
666 * Set a list of items, which are supplied by the given {@link Cursor}, to be
670 * @param cursor The {@link Cursor} to supply the list of items
686 * Set a list of items to be displayed in the dialog as the content,
694 * @param checkedItems specifies which items ar
729 setMultiChoiceItems(CharSequence[] items, boolean[] checkedItems, final OnMultiChoiceClickListener listener) argument
831 setSingleChoiceItems(CharSequence[] items, int checkedItem, final OnClickListener listener) argument
[all...]
/frameworks/base/core/java/android/net/
H A DSSLCertificateSocketFactory.java299 static byte[] toLengthPrefixedList(byte[]... items) { argument
300 if (items.length == 0) {
301 throw new IllegalArgumentException("items.length == 0");
304 for (byte[] s : items) {
312 for (byte[] s : items) {

Completed in 576 milliseconds

123