/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
ConcurrentQueue.h | 39 std::vector<T> items; local 43 return items; 46 items.push_back(std::move(mQueue.front())); 49 return items; 63 /* Deactivates the queue, thus no one can push items to it, also 135 std::vector<T> items = mQueue->flush(); local 137 if (items.size() > 0) { 138 onBatchReceived(items);
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/testing/ |
TestAdapter.java | 41 public TestAdapter(List<String> items) { 42 mItems.addAll(items); 91 public void updateTestModelIds(List<String> items) { 93 mItems.addAll(items); 120 List<String> items = new ArrayList<>(num); local 122 items.add(Integer.toString(i)); 124 return items;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
zutil.c | 216 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
219 ulg bsize = (ulg)items*size;
275 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
278 return _halloc((long)items, size);
296 extern voidp calloc OF((uInt items, uInt size));
300 voidpf 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/fonttools/Lib/fontTools/misc/ |
textTools.py | 38 items = [] 47 items.append(binary) 50 items.append(binary) 51 items.reverse() 53 return ' '.join(items)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_dictviews.py | 39 items = d.viewitems()
40 self.assertEqual(len(items), 2)
41 self.assertEqual(set(items), set([(1, 10), ("a", "ABC")]))
42 self.assertEqual(items, set([(1, 10), ("a", "ABC")]))
43 self.assertNotEqual(items, set([(1, 10), ("a", "ABC"), "junk"]))
44 self.assertNotEqual(items, set([(1, 10), ("a", "def")]))
45 self.assertNotEqual(items, set([(1, 10)]))
46 self.assertNotEqual(items, 42)
47 self.assertIn((1, 10), items)
48 self.assertIn(("a", "ABC"), items)
[all...] |
/external/icu/icu4c/source/test/depstest/ |
dependencies.py | 19 items: Map from library or group names to item maps. 31 # TODO: Support binary items. 39 items = {} variable 99 global items, _line_number, _groups_to_be_defined 108 dep_item = items.get(dep) 114 items[dep] = {"type": "group"} 115 if library_name: items[dep]["library"] = library_name 144 global items, libraries, _line_number, _groups_to_be_defined 156 if name in items: 159 item = items[name] = {"type": "library", "name": name [all...] |
/external/webrtc/webrtc/libjingle/xmpp/ |
pubsubclient_unittest.cc | 33 const std::vector<buzz::PubSubItem>& items) { 34 for (std::vector<buzz::PubSubItem>::const_iterator item = items.begin(); 35 item != items.end(); ++item) { 41 this->items.push_back(handled_item); 76 std::vector<HandledPubSubItem> items; member in class:TestPubSubItemsListener 123 "<pub:items node=\"topic\"/>" 133 " <items node='topic'>" 140 " </items>" 145 ASSERT_EQ(2U, listener->items.size()); 146 EXPECT_EQ("key0", listener->items[0].itemid) [all...] |
pubsubtasks.cc | 47 // Creates <pubsub node="node"><items></pubsub> 92 std::vector<PubSubItem>* items) { 96 items->push_back(item); 99 // Right now, <retract>s are treated the same as items with empty 103 std::vector<PubSubItem>* items) { 104 ParseItem(retract_elem, items); 108 std::vector<PubSubItem>* items) { 118 ParseItem(item_elem, items); 124 ParseRetract(retract_elem, items); 131 std::vector<PubSubItem>* items) { 154 std::vector<PubSubItem> items; local 172 std::vector<PubSubItem> items; local [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_dictviews.py | 39 items = d.viewitems() 40 self.assertEqual(len(items), 2) 41 self.assertEqual(set(items), set([(1, 10), ("a", "ABC")])) 42 self.assertEqual(items, set([(1, 10), ("a", "ABC")])) 43 self.assertNotEqual(items, set([(1, 10), ("a", "ABC"), "junk"])) 44 self.assertNotEqual(items, set([(1, 10), ("a", "def")])) 45 self.assertNotEqual(items, set([(1, 10)])) 46 self.assertNotEqual(items, 42) 47 self.assertIn((1, 10), items) 48 self.assertIn(("a", "ABC"), items) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_dictviews.py | 39 items = d.viewitems() 40 self.assertEqual(len(items), 2) 41 self.assertEqual(set(items), set([(1, 10), ("a", "ABC")])) 42 self.assertEqual(items, set([(1, 10), ("a", "ABC")])) 43 self.assertNotEqual(items, set([(1, 10), ("a", "ABC"), "junk"])) 44 self.assertNotEqual(items, set([(1, 10), ("a", "def")])) 45 self.assertNotEqual(items, set([(1, 10)])) 46 self.assertNotEqual(items, 42) 47 self.assertIn((1, 10), items) 48 self.assertIn(("a", "ABC"), items) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_dictviews.py | 39 items = d.viewitems() 40 self.assertEqual(len(items), 2) 41 self.assertEqual(set(items), set([(1, 10), ("a", "ABC")])) 42 self.assertEqual(items, set([(1, 10), ("a", "ABC")])) 43 self.assertNotEqual(items, set([(1, 10), ("a", "ABC"), "junk"])) 44 self.assertNotEqual(items, set([(1, 10), ("a", "def")])) 45 self.assertNotEqual(items, set([(1, 10)])) 46 self.assertNotEqual(items, 42) 47 self.assertIn((1, 10), items) 48 self.assertIn(("a", "ABC"), items) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_dictviews.py | 39 items = d.viewitems() 40 self.assertEqual(len(items), 2) 41 self.assertEqual(set(items), set([(1, 10), ("a", "ABC")])) 42 self.assertEqual(items, set([(1, 10), ("a", "ABC")])) 43 self.assertNotEqual(items, set([(1, 10), ("a", "ABC"), "junk"])) 44 self.assertNotEqual(items, set([(1, 10), ("a", "def")])) 45 self.assertNotEqual(items, set([(1, 10)])) 46 self.assertNotEqual(items, 42) 47 self.assertIn((1, 10), items) 48 self.assertIn(("a", "ABC"), items) [all...] |
/packages/apps/TV/src/com/android/tv/menu/ |
ChannelsRowAdapter.java | 162 List<ChannelsRowItem> items = new ArrayList<>(); local 163 items.add(ChannelsRowItem.GUIDE_ITEM); 165 items.add(ChannelsRowItem.SETUP_ITEM); 168 items.add(ChannelsRowItem.DVR_ITEM); 173 items.add(ChannelsRowItem.APP_LINK_ITEM); 176 items.add(new ChannelsRowItem(channel, R.layout.menu_card_channel)); 178 setItemList(items); 182 List<ChannelsRowItem> items = getItemList(); local 202 int numOldChannels = items.size() - currentIndex; 204 while (items.size() > currentIndex) 220 List<ChannelsRowItem> items = getItemList(); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
MixedItemSection.java | 63 /** {@code non-null;} the items in this part */ 64 private final ArrayList<OffsettedItem> items; field in class:MixedItemSection 66 /** {@code non-null;} items that have been explicitly interned */ 69 /** {@code non-null;} how to sort the items */ 86 * @param sort how the items should be sorted in the final output 92 this.items = new ArrayList<OffsettedItem>(100); 100 public Collection<? extends Item> items() { method in class:MixedItemSection 101 return items; 119 * Gets the size of this instance, in items. 124 return items.size() [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
MixedItemSection.java | 63 /** {@code non-null;} the items in this part */ 64 private final ArrayList<OffsettedItem> items; field in class:MixedItemSection 66 /** {@code non-null;} items that have been explicitly interned */ 69 /** {@code non-null;} how to sort the items */ 86 * @param sort how the items should be sorted in the final output 92 this.items = new ArrayList<OffsettedItem>(100); 100 public Collection<? extends Item> items() { method in class:MixedItemSection 101 return items; 119 * Gets the size of this instance, in items. 124 return items.size() [all...] |
/external/tensorflow/tensorflow/contrib/eager/python/examples/spinn/ |
data.py | 50 def get_non_parenthesis_words(items): 51 """Get the non-parenthesis items from a SNLI parsed sentence. 54 items: Data items from a parsed SNLI sentence, with parentheses. E.g., 58 A list of non-parentheses word items, all converted to lower case. E.g., 61 return [x.lower() for x in items if x not in PARENTHESES and x] 64 def get_shift_reduce(items): 65 """Obtain shift-reduce vector from a list of items from the SNLI data. 68 items: Data items as a list of str, e.g. [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/ |
MenuTest.kt | 95 val items = mutableListOf<MenuItem>() 97 items += it 99 assertThat(items).containsExactly(item1, item2) 110 val items = mutableListOf<MenuItem>() 112 assertEquals(index, items.size) 113 items += item 115 assertThat(items).containsExactly(item1, item2) 151 val items = listOf( 158 assertSame(items[index], child)
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
WiFiDirectServicesList.java | 56 private List<WiFiP2pService> items; field in class:WiFiDirectServicesList.WiFiDevicesAdapter 59 int textViewResourceId, List<WiFiP2pService> items) { 60 super(context, resource, textViewResourceId, items); 61 this.items = items; 72 WiFiP2pService service = items.get(position);
|
/external/selinux/libselinux/src/ |
label_support.c | 60 * returns - The number of items processed. On error, it returns -1 with errno 69 int len, rc, items, entry_len = 0; local 94 items = 0; 95 while (items < num_args) { 100 return items; 109 items++; 112 return items;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
Menu.java | 31 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);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
TestMenu.java | 37 private SparseArray<TestMenuItem> items = new SparseArray<>(); field in class:TestMenu 88 menu.items = new SparseArray<>(); 102 items.put(id, item); 107 return items.get(id); 112 return items.size(); 117 return items.valueAt(index);
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
peers.cpp | 518 QStringList items = local 525 for (int i = 0; i < items.size(); i++) { 526 QString str = items.at(i); 552 item->setData(items.join(QString("\n")), peer_role_details); 831 QStringList items = text.split(' '); local 832 QString uuid = items[1]; 833 QString addr = items[2]; 844 items = text.mid(pos + 1, pos2 - pos - 1). 846 name = items[0]; 847 items.append(addr) 866 QStringList items = text.split(' '); local 877 QStringList items = text.split(' '); local 903 QStringList items = local 952 QStringList items = text.split(' '); local 991 QStringList items = text.split(' '); local 1007 QStringList items = text.split(' '); local 1030 QStringList items = text.split(' '); local 1051 QStringList items = text.split(' '); local 1110 QStringList items = text.split(' '); local 1148 QStringList items = text.split(' '); local 1175 QStringList items = text.split(' '); local 1236 QStringList items = text.split(' '); local 1253 QStringList items = text.split(' '); local 1315 QStringList items = text.split(' '); local 1326 QStringList items = text.split(' '); local [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
SortedList.java | 28 * A Sorted list implementation that can keep items in order and also notify for changes in the 33 * It keeps items ordered using the {@link Callback#compare(Object, Object)} method and uses 34 * binary search to retrieve items. If the sorting criteria of your items may change, make sure you 37 * You can control the order of items and change notifications via the {@link Callback} parameter. 99 * @param initialCapacity The initial capacity to hold items. 109 * The number of items in the list. 111 * @return The number of items in the list. 123 * {@link Callback#areItemsTheSame(Object, Object)} to check if two items are the same item 148 * Adds the given items to the list. Equivalent to calling {@link SortedList#add} in a loop [all...] |
/developers/build/prebuilts/gradle/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...] |
/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...] |