/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAlertDialog.java | 30 private CharSequence[] items; field in class:ShadowAlertDialog 79 * Simulates a click on the {@code Dialog} item indicated by {@code index}. Handles both multi- and single-choice dialogs, tracks which items are currently 161 * @return the items that are available to be clicked on 164 return items; 188 * @return an array indicating which items are and are not clicked on a multi-choice dialog 206 if (items != null) { 207 adapter = new ArrayAdapter<CharSequence>(context, R.layout.simple_list_item_checked, R.id.text1, items); 244 private CharSequence[] items; field in class:ShadowAlertDialog.ShadowBuilder 276 * Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. This should be 285 this.items = context.getResources().getTextArray(itemsId) [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowAlertDialog.java | 25 private CharSequence[] items; field in class:ShadowAlertDialog 55 * Simulates a click on the {@code Dialog} item indicated by {@code index}. Handles both multi- and single-choice dialogs, tracks which items are currently 69 * @return the items that are available to be clicked on 74 CharSequence[] items = new CharSequence[count]; local 75 for (int i = 0; i < items.length; i++) { 76 items[i] = (CharSequence) adapter.getItem(i); 78 return items;
|
/external/tensorflow/tensorflow/java/src/gen/perl/ |
tftypes.pl | 90 my @items = split /,/, $line, 6; 91 for (my $i = 0; $i <= $#items; $i++) { 92 $items[$i] = trim $items[$i]; 94 my $jtype = $items[2]; 103 push @info, \@items;
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
MapItem.java | 53 * {@code > 0;} count of items covered; {@code 1} if this 73 if (mapSection.items().size() != 0) { 75 "mapSection.items().size() != 0"); 78 ArrayList<MapItem> items = new ArrayList<MapItem>(50); local 86 for (Item item : section.items()) { 90 items.add(new MapItem(currentType, section, 102 // Add a MapItem for the final items in the section. 103 items.add(new MapItem(currentType, section, 107 items.add(new MapItem(mapSection)); 112 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items)); [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
MapItem.java | 52 * {@code > 0;} count of items covered; {@code 1} if this 72 if (mapSection.items().size() != 0) { 74 "mapSection.items().size() != 0"); 77 ArrayList<MapItem> items = new ArrayList<MapItem>(50); local 85 for (Item item : section.items()) { 89 items.add(new MapItem(currentType, section, 101 // Add a MapItem for the final items in the section. 102 items.add(new MapItem(currentType, section, 106 items.add(new MapItem(mapSection)); 111 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items)); [all...] |
/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/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/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/autotest/client/site_tests/firmware_TouchMTB/tests/ |
firmware_summary_unittest.py | 78 for fw, fw_expected_scores in expected_scores.items(): 79 for gesture, expected_score in fw_expected_scores.items(): 204 for fw, fw_expected_scores in expected_scores.items(): 205 for validator, expected_score in fw_expected_scores.items(): 233 for fw, fw_stats_values in expected_stats_values.items(): 234 for validator, stats_metrics in fw_stats_values.items(): 246 for fw, expected_value in expected_weighted_averages.items():
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
ListPreloader.java | 39 * @param maxPreload The maximum number of items in the list to load ahead (corresponds to adapter positions). 73 * Returns a list of all models that need to be loaded for the list to display adapter items {@code start - end}. 112 List<T> items = getItems(start, end); local 116 final int numItems = items.size(); 118 preloadItem(items, i); 122 for (int i = items.size() - 1; i >= 0; i--) { 123 preloadItem(items, i); 132 private void preloadItem(List<T> items, int position) { 133 final T item = items.get(position);
|
/external/tensorflow/tensorflow/contrib/lite/ |
graph_info.cc | 105 auto uniquefy = [](std::vector<int>* items) { 106 std::sort(items->begin(), items->end()); 107 auto last = std::unique(items->begin(), items->end()); 108 items->erase(last, items->end());
|
/system/extras/simpleperf/scripts/ |
debug_unwind_reporter.py | 27 It reports below items: 159 for key, value in self.unwinding_result.items(): 243 items = [] 246 items.append((key, value)) 248 self.mem_stat.before_unwinding = items 250 self.mem_stat.after_unwinding = items 281 for items in zip(self.mem_stat.before_unwinding, self.mem_stat.after_unwinding): 282 assert items[0][0] == items[1][0] 283 print(' %s: %s -> %s' % (items[0][0], items[0][1], items[1][1]) [all...] |
/prebuilts/go/darwin-x86/src/text/template/parse/ |
lex_test.go | 58 items []item 380 // collect gathers the emitted items into a slice. 381 func collect(t *lexTest, left, right string) (items []item) { 385 items = append(items, item) 416 items := collect(&test, "", "") 417 if !equal(items, test.items, false) { 418 t.Errorf("%s: got\n\t%+v\nexpected\n\t%v", test.name, items, test.items) [all...] |
/prebuilts/go/linux-x86/src/text/template/parse/ |
lex_test.go | 58 items []item 380 // collect gathers the emitted items into a slice. 381 func collect(t *lexTest, left, right string) (items []item) { 385 items = append(items, item) 416 items := collect(&test, "", "") 417 if !equal(items, test.items, false) { 418 t.Errorf("%s: got\n\t%+v\nexpected\n\t%v", test.name, items, test.items) [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
CustomizeChannelListFragment.java | 173 private void cleanUpOneChannelGroupItem(List<Item> items) { 174 Iterator<Item> iter = items.iterator(); 187 private void addItemForGroupBySource(List<Item> items) { 188 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources))); 199 items.add(new DividerItem(inputLabel)); 201 items.add(selectGroupItem); 204 items.add(channelItem); 207 cleanUpOneChannelGroupItem(items); 210 private void addItemForGroupByHdSd(List<Item> items) { 211 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_hd_sd))) 358 List<Item> items = new ArrayList<>(); local [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
regenc.c | 420 OnigCaseFoldCodeItem items[])
423 items[0].byte_len = 1;
424 items[0].code_len = 1;
425 items[0].code[0] = (OnigCodePoint )(*p + 0x20);
429 items[0].byte_len = 1;
430 items[0].code_len = 1;
431 items[0].code[0] = (OnigCodePoint )(*p - 0x20);
479 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
482 items[0].byte_len = 1;
483 items[0].code_len = 1; [all...] |
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/ |
OpReorderTest.java | 313 List<Item> items = new ArrayList<Item>(itemCount); local 315 items.add(Item.create()); 319 clones.add(Item.clone(items.get(i))); 325 apply(items, mUpdateOps); 336 assertListsIdentical(items, clones); 340 assertRecycledOpsAreNotReused(items); 344 private void assertRecycledOpsAreNotReused(List<Item> items) { 345 for (Item item : items) { 361 private void assertHasTheSameItems(List<Item> items, 363 String log = "has the same items\n" + toString(items) + "--\n" + toString(clones) [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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
zutil.c | 220 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
223 ulg bsize = (ulg)items*size;
279 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
282 return _halloc((long)items, size);
300 extern voidp calloc OF((uInt items, uInt size));
304 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
306 unsigned items;
309 if (opaque) items += size - size; /* make compiler happy */
310 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
311 (voidpf)calloc(items, size); [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/ZLib/ |
zutil.c | 214 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) 217 ulg bsize = (ulg)items*size; 277 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) 280 return _halloc((long)items, size); 298 extern voidp calloc OF((uInt items, uInt size)); 302 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) 304 unsigned items; 309 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : 310 (voidpf)calloc(items, size); 312 return AllocatePool (items * size) [all...] |
/external/fonttools/Lib/fontTools/ttLib/tables/ |
otBase.py | 46 stats = sorted([(v, k) for k, v in cachingStats.items()]) 60 - For simple items, the write method adds a string to the 61 writer's self.items list. 62 - For Struct/Table/Subtable items, it add first adds new writer to the 63 to the writer's self.items, then calls the item's compile method. 65 each writer representing a table, and the writer.items list containing 195 self.items = [] 243 for item in self.items: 255 items = list(self.items) # make a shallow cop [all...] |
/external/python/cpython2/Modules/zlib/ |
zutil.c | 220 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) 223 ulg bsize = (ulg)items*size; 279 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) 282 return _halloc((long)items, size); 300 extern voidp calloc OF((uInt items, uInt size)); 304 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) 306 unsigned items; 309 if (opaque) items += size - size; /* make compiler happy */ 310 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : 311 (voidpf)calloc(items, size) [all...] |
/external/syslinux/com32/lib/zlib/ |
zutil.c | 216 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) 219 ulg bsize = (ulg)items*size; 275 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) 278 return _halloc((long)items, size); 296 extern voidp calloc OF((uInt items, uInt size)); 300 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) 302 unsigned items; 305 if (opaque) items += size - size; /* make compiler happy */ 306 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : 307 (voidpf)calloc(items, size) [all...] |
/external/tensorflow/tensorflow/python/keras/_impl/keras/layers/ |
advanced_activations.py | 64 return dict(list(base_config.items()) + list(config.items())) 162 return dict(list(base_config.items()) + list(config.items())) 201 return dict(list(base_config.items()) + list(config.items())) 240 return dict(list(base_config.items()) + list(config.items())) 274 return dict(list(base_config.items()) + list(config.items())) [all...] |
/toolchain/binutils/binutils-2.27/zlib/ |
zutil.c | 220 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) 223 ulg bsize = (ulg)items*size; 279 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) 282 return _halloc((long)items, size); 300 extern voidp calloc OF((uInt items, uInt size)); 304 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) 306 unsigned items; 309 if (opaque) items += size - size; /* make compiler happy */ 310 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : 311 (voidpf)calloc(items, size) [all...] |