/developers/build/prebuilts/gradle/ActionBarCompat-Basic/Application/src/main/java/com/example/android/actionbarcompat/basic/ |
MainActivity.java | 27 * action items. It covers inflating items from a menu resource, as well as adding an item in code. 42 * Use this method to instantiate your menu, and add your items to it. You 43 * should return true if you have added items to it and want the menu to be displayed. 50 // It is also possible add items here. Use a generated id from 64 * This method is called when one of the menu items to selected. These items
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 59 List<Item> items = parseJson(jsonObject); local 60 appendItemsToList(items); 67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); local 68 for (int i = 0; i < items.length(); i++) { 69 JSONObject item = items.getJSONObject(i); 86 private void appendItemsToList(List<Item> items) { 87 mItems.addAll(items);
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-Basic/Application/src/main/java/com/example/android/actionbarcompat/basic/ |
MainActivity.java | 27 * action items. It covers inflating items from a menu resource, as well as adding an item in code. 42 * Use this method to instantiate your menu, and add your items to it. You 43 * should return true if you have added items to it and want the menu to be displayed. 50 // It is also possible add items here. Use a generated id from 64 * This method is called when one of the menu items to selected. These items
|
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 59 List<Item> items = parseJson(jsonObject); local 60 appendItemsToList(items); 67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); local 68 for (int i = 0; i < items.length(); i++) { 69 JSONObject item = items.getJSONObject(i); 86 private void appendItemsToList(List<Item> items) { 87 mItems.addAll(items);
|
/development/samples/ApiDemos/res/menu/ |
checkable.xml | 19 <!-- Checkable items appear only in submenus or context menus. --> 22 the attribute name checkable on items. The checkableBehavior encompasses 23 the number of items that will be checkable within that group. --> 30 <!-- Notice how these items inherit from the group. --> 45 <!-- Notice how these items inherit from the group. --> 62 <!-- Notice how these items inherit from the group. --> 76 <!-- Notice how these items have each set. -->
|
/development/samples/browseable/ActionBarCompat-Basic/src/com.example.android.actionbarcompat.basic/ |
MainActivity.java | 27 * action items. It covers inflating items from a menu resource, as well as adding an item in code. 42 * Use this method to instantiate your menu, and add your items to it. You 43 * should return true if you have added items to it and want the menu to be displayed. 50 // It is also possible add items here. Use a generated id from 64 * This method is called when one of the menu items to selected. These items
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
RecipeListAdapter.java | 59 List<Item> items = parseJson(jsonObject); local 60 appendItemsToList(items); 67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); local 68 for (int i = 0; i < items.length(); i++) { 69 JSONObject item = items.getJSONObject(i); 86 private void appendItemsToList(List<Item> items) { 87 mItems.addAll(items);
|
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/ |
context.py | 48 # Maximum number of items. Pool will be flushed when reaches this amount. 93 """A buffer that holds arbitrary items and auto flushes them when full. 99 items: list of objects. 116 flush_function: a function that can flush the items. The function is 117 called with a list of items as the first argument, a dict of options 122 representation. For debugging large items. 124 self.items = [] 131 return "ItemList of with %s items" % len(self.items) 136 If needed, append will first flush existing items and clear existing items [all...] |
/external/libselinux/src/ |
label_support.c | 64 * returns - The number of items processed. On error, it returns -1 with errno 73 int len, rc, items, entry_len = 0; local 98 items = 0; 99 while (items < num_args) { 104 return items; 113 items++; 116 return items;
|
/external/selinux/libselinux/src/ |
label_support.c | 49 * returns - The number of items processed. 56 int len, rc, items, entry_len = 0; local 79 items = 0; 80 while (items < num_args) { 85 return items; 94 items++; 97 return items;
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
ClippedFolderIconLayoutRule.java | 46 // Items beyond those displayed in the preview are animated to the center 65 // The case of two items is homomorphic to the case of one. 68 // We model the preview as a circle of items starting in the appropriate piece of the 83 // We want the items to appear in reading order. For the case of 1, 2 and 3 items, this 84 // is natural for the circular model. With 4 items, however, we need to swap the 3rd and 92 // We bump the radius up between 0 and MAX_RADIUS_DILATION % as the number of items increase
|
/external/chromium-trace/catapult/third_party/polymer/components/iron-selector/test/ |
basic.html | 95 test('as many items as children', function() { 96 assert.equal(s1.items.length, s1.querySelectorAll('div').length); 150 expect(s2.items.length).to.be.equal(5); 152 expect(s2.items.length).to.be.equal(5); 154 expect(s2.items.length).to.be.equal(6); 174 assert.equal(s2.selectedItem, s2.items[1]); 178 assert.equal(s2.selectedItem, s2.items[3]); 182 assert.equal(s2.selectedItem, s2.items[4]); 186 suite('items changing', function() { 193 test('cause iron-items-changed to fire', function(done) [all...] |
/external/chromium-trace/catapult/tracing/tracing/ui/tracks/ |
letter_dot_track.html | 61 get items() { 65 set items(items) { 66 this.items_ = items; 107 var items = this.items_; 109 items, 120 for (var i = loI; i < items.length; ++i) { 121 var item = items[i]; 154 // Draw unselected items first to make sure they don't occlude selected 155 // items [all...] |
/external/dbus/bus/ |
expirelist.c | 2 /* expirelist.c List of items that expire 33 DBusList *items; /**< List of BusExpireItem */ member in struct:BusExpireList 85 _dbus_assert (list->items == NULL); 137 link = _dbus_list_get_first_link (&list->items); 140 DBusList *next = _dbus_list_get_next_link (&list->items, link); 193 if (list->items != NULL) 222 _dbus_list_remove_link (&list->items, link); 229 return _dbus_list_remove (&list->items, item); 236 _dbus_list_unlink (&list->items, link); 245 ret = _dbus_list_prepend (&list->items, item) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
BackupTestActivity.java | 116 List<BackupItem> items = new ArrayList<BackupItem>(); local 118 items.add(new CategoryBackupItem(R.string.bu_preferences)); 119 loadPreferenceGroup1(items); 120 loadPreferenceGroup2(items); 122 items.add(new CategoryBackupItem(R.string.bu_files)); 123 loadFile(TEST_FILE_1, items); 124 loadFile(TEST_FILE_2, items); 126 return items; 129 private void loadPreferenceGroup1(List<BackupItem> items) { 133 items.add(new PreferenceBackupItem(TEST_PREFS_1, INT_PREF, "" + intValue)) [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
CustomizeChannelListFragment.java | 161 private void cleanUpOneChannelGroupItem(List<Item> items) { 162 Iterator<Item> iter = items.iterator(); 176 private void addItemForGroupBySource(List<Item> items) { 177 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources))); 188 items.add(new DividerItem(inputLabel)); 190 items.add(selectGroupItem); 193 items.add(channelItem); 196 cleanUpOneChannelGroupItem(items); 199 private void addItemForGroupByHdSd(List<Item> items) { 200 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_hd_sd))) 346 List<Item> items = new ArrayList<>(); local [all...] |
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
OpReorderTest.java | 310 List<Item> items = new ArrayList<Item>(itemCount); local 312 items.add(Item.create()); 316 clones.add(Item.clone(items.get(i))); 322 apply(items, mUpdateOps); 333 assertListsIdentical(items, clones); 337 assertRecycledOpsAreNotReused(items); 341 private void assertRecycledOpsAreNotReused(List<Item> items) { 342 for (Item item : items) { 358 private void assertHasTheSameItems(List<Item> items, 360 String log = "has the same items\n" + toString(items) + "--\n" + toString(clones) [all...] |
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 95 private static final String RESTRICTION_KEY_ITEMS = "items"; 131 mLayoutItems = (LinearLayout) view.findViewById(R.id.items); 222 Map<String, String> items = new HashMap<>(); local 226 items.put(bundle.getString(RESTRICTION_KEY_ITEM_KEY), 230 items.put(key, value); 232 saveItems(getActivity(), items); local 268 HashMap<String, String> items = new HashMap<>(); local 271 items.put(strings[0], strings[1]); 273 updateItems(activity, items); 322 private void updateItems(Context context, Map<String, String> items) { 360 Map<String, String> items = new HashMap<>(); local 368 saveItems(getActivity(), items); local [all...] |
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 95 private static final String RESTRICTION_KEY_ITEMS = "items"; 131 mLayoutItems = (LinearLayout) view.findViewById(R.id.items); 222 Map<String, String> items = new HashMap<>(); local 226 items.put(bundle.getString(RESTRICTION_KEY_ITEM_KEY), 230 items.put(key, value); 232 saveItems(getActivity(), items); local 268 HashMap<String, String> items = new HashMap<>(); local 271 items.put(strings[0], strings[1]); 273 updateItems(activity, items); 322 private void updateItems(Context context, Map<String, String> items) { 360 Map<String, String> items = new HashMap<>(); local 368 saveItems(getActivity(), items); local [all...] |
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 95 private static final String RESTRICTION_KEY_ITEMS = "items"; 131 mLayoutItems = (LinearLayout) view.findViewById(R.id.items); 222 Map<String, String> items = new HashMap<>(); local 226 items.put(bundle.getString(RESTRICTION_KEY_ITEM_KEY), 230 items.put(key, value); 232 saveItems(getActivity(), items); local 268 HashMap<String, String> items = new HashMap<>(); local 271 items.put(strings[0], strings[1]); 273 updateItems(activity, items); 322 private void updateItems(Context context, Map<String, String> items) { 360 Map<String, String> items = new HashMap<>(); local 368 saveItems(getActivity(), items); local [all...] |
/external/elfutils/libdwfl/ |
linux-core-attach.c | 138 const Ebl_Core_Item *items; local 140 ®s_offset, &nregloc, ®locs, &nitems, &items)) 148 for (item = items; item < items + nitems; item++) 151 if (item == items + nitems) 191 const Ebl_Core_Item *items; local 193 &nregloc, ®locs, &nitems, &items); 198 for (item = items; item < items + nitems; item++) 201 assert (item < items + nitems) 380 const Ebl_Core_Item *items; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
ListFormatter.java | 95 * string for two items, containing {0} for the first, and {1} 98 * string for the start of a list items, containing {0} for the 101 * string for the start of a list items, containing {0} for the 104 * string for the end of a list items, containing {0} for the 179 * @param items 180 * items to format. The toString() method is called on each. 181 * @return items formatted into a string 183 public String format(Object... items) { 184 return format(Arrays.asList(items)); 190 * @param items [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
ListFormatter.java | 94 * string for two items, containing {0} for the first, and {1} 97 * string for the start of a list items, containing {0} for the 100 * string for the start of a list items, containing {0} for the 103 * string for the end of a list items, containing {0} for the 181 * @param items 182 * items to format. The toString() method is called on each. 183 * @return items formatted into a string 186 public String format(Object... items) { 187 return format(Arrays.asList(items)); 193 * @param items [all...] |
/developers/build/prebuilts/gradle/ActionBarCompat-ShareActionProvider/Application/src/main/java/com/example/android/actionbarcompat/shareactionprovider/ |
MainActivity.java | 51 // The items to be displayed in the ViewPager 70 // Finally set the adapter so the ViewPager can display items 198 ArrayList<ContentItem> items = new ArrayList<ContentItem>(); local 200 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_1.jpg")); 201 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_1)); 202 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_2)); 203 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_2.jpg")); 204 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_3)); 205 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_3.jpg")); 207 return items; [all...] |
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/ |
MainActivity.java | 49 // The items to be displayed in the ViewPager 68 // Finally set the adapter so the ViewPager can display items 196 ArrayList<ContentItem> items = new ArrayList<ContentItem>(); local 198 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_1.jpg")); 199 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_1)); 200 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_2)); 201 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_2.jpg")); 202 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_3)); 203 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_3.jpg")); 205 return items; [all...] |