/aosp_15_r20/external/selinux/libsepol/src/ |
H A D | write.c | 66 size_t items; in ebitmap_write() local 76 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write() 77 if (items != 3) in ebitmap_write() 82 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write() 83 if (items != 1) in ebitmap_write() 86 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write() 87 if (items != 1) in ebitmap_write() 113 size_t items, items2; in avtab_write_item() local 127 items = 1; /* item 0 is used for the item count */ in avtab_write_item() 129 buf32[items++] = cpu_to_le32(val); in avtab_write_item() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_dictviews.py | 13 it = type({}.items()) 42 items = d.items() 43 self.assertEqual(len(items), 2) 44 self.assertEqual(set(items), {(1, 10), ("a", "ABC")}) 45 self.assertEqual(items, {(1, 10), ("a", "ABC")}) 46 self.assertNotEqual(items, {(1, 10), ("a", "ABC"), "junk"}) 47 self.assertNotEqual(items, {(1, 10), ("a", "def")}) 48 self.assertNotEqual(items, {(1, 10)}) 49 self.assertNotEqual(items, 42) 50 self.assertIn((1, 10), items) [all …]
|
D | test_weakset.py | 30 self.items = [ustr(c) for c in ('a', 'b', 'c')] 39 self.s = WeakSet(self.items) 40 self.d = dict.fromkeys(self.items) 76 self.assertEqual(self.s, WeakSet(self.items)) 80 x = WeakSet(self.items + self.items2) 84 self.assertEqual(len(u), len(self.items) + len(self.items2)) 87 self.assertEqual(len(u), len(self.items) + len(self.items2)) 103 self.assertEqual(i.intersection(C(self.items)), x) 122 self.assertEqual(self.s, WeakSet(self.items)) 135 self.assertEqual(self.s, WeakSet(self.items)) [all …]
|
/aosp_15_r20/external/cronet/base/profiler/ |
H A D | metadata_recorder_unittest.cc | 28 MetadataRecorder::ItemArray items; in TEST() local 32 .GetItems(&items)); in TEST() 35 .GetItems(&items)); in TEST() 43 MetadataRecorder::ItemArray items; in TEST() local 48 .GetItems(&items); in TEST() 50 EXPECT_EQ(10u, items[0].name_hash); in TEST() 51 EXPECT_FALSE(items[0].key.has_value()); in TEST() 52 EXPECT_FALSE(items[0].thread_id.has_value()); in TEST() 53 EXPECT_EQ(20, items[0].value); in TEST() 61 .GetItems(&items); in TEST() [all …]
|
H A D | sample_metadata_unittest.cc | 15 MetadataRecorder::ItemArray items; in TEST() local 16 // TODO(https://crbug/1494111): Locate the other tests that are leaving items in TEST() 21 .GetItems(&items); in TEST() 29 .GetItems(&items)); in TEST() 30 EXPECT_EQ(HashMetricName("myname"), items[initial_item_count].name_hash); in TEST() 31 EXPECT_FALSE(items[initial_item_count].key.has_value()); in TEST() 32 EXPECT_EQ(100, items[initial_item_count].value); in TEST() 38 .GetItems(&items)); in TEST() 42 MetadataRecorder::ItemArray items; in TEST() local 43 // TODO(https://crbug/1494111): Locate the other tests that are leaving items in TEST() [all …]
|
/aosp_15_r20/external/pthreadpool/include/ |
H A D | pthreadpool.h | 89 * Process items on a 1D grid. 96 * When the function returns, all items have been processed and the thread pool 103 * is NULL, all items are processed serially on the calling thread. 106 * @param range the number of items on the 1D grid to process. The 119 * Process items on a 1D grid using a microarchitecture-aware task function. 129 * When the function returns, all items have been processed and the thread pool 136 * threadpool is NULL, all items are processed serially on the calling 149 * @param range the number of items on the 1D grid to process. 165 * Process items on a 1D grid with specified maximum tile size. 172 * When the call returns, all items have been processed and the thread pool is [all …]
|
/aosp_15_r20/external/lzma/C/ |
H A D | SwapBytes.c | 92 const __m128i v = *(const __m128i *)(const void *)(items + (i) * 8); \ 93 *( __m128i *)( void *)(items + (i) * 8) = \ 105 SwapBytes2_128(CSwapUInt16 *items, const CSwapUInt16 *lim) in SwapBytes2_128() argument 110 SWAP2_128(0) SWAP2_128(1) items += 2 * 8; in SwapBytes2_128() 111 SWAP2_128(0) SWAP2_128(1) items += 2 * 8; in SwapBytes2_128() 113 while (items != lim); in SwapBytes2_128() 119 __m128i v = *(const __m128i *)(const void *)(items + (i) * 4); \ 126 *(__m128i *)(void *)(items + (i) * 4) = _mm_packus_epi16(v0, v1); } 134 SwapBytes4_128_pack(CSwapUInt32 *items, const CSwapUInt32 *lim) 141 SWAP4_128_pack(0); items += 1 * 4; [all …]
|
/aosp_15_r20/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/ |
H A D | InputMethodSubtypeSwitchingControllerTest.java | 78 static void addTestImeSubtypeListItems(@NonNull List<ImeSubtypeListItem> items, in addTestImeSubtypeListItems() argument 104 items.add(new ImeSubtypeListItem(imeName, null /* subtypeName */, null /* layoutName */, in addTestImeSubtypeListItems() 109 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, null /* layoutName */, in addTestImeSubtypeListItems() 147 final var items = new ArrayList<ImeSubtypeListItem>(); in createEnabledImeSubtypes() local 148 addTestImeSubtypeListItems(items, "LatinIme", "LatinIme", List.of("en_US", "fr"), in createEnabledImeSubtypes() 150 addTestImeSubtypeListItems(items, "switchUnawareLatinIme", "switchUnawareLatinIme", in createEnabledImeSubtypes() 152 addTestImeSubtypeListItems(items, "subtypeAwareIme", "subtypeAwareIme", null, in createEnabledImeSubtypes() 154 addTestImeSubtypeListItems(items, "subtypeUnawareIme", "subtypeUnawareIme", null, in createEnabledImeSubtypes() 156 addTestImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", List.of("ja_JP"), in createEnabledImeSubtypes() 158 addTestImeSubtypeListItems(items, "switchUnawareJapaneseIme", "switchUnawareJapaneseIme", in createEnabledImeSubtypes() [all …]
|
H A D | InputMethodMenuControllerTest.java | 49 /** Verifies that getMenuItems maintains the same order and information from the given items. */ 52 final var items = new ArrayList<ImeSubtypeListItem>(); in testGetMenuItems() local 53 addTestImeSubtypeListItems(items, "LatinIme", "LatinIme", in testGetMenuItems() 55 addTestImeSubtypeListItems(items, "SimpleIme", "SimpleIme", in testGetMenuItems() 58 final var menuItems = getMenuItems(items); in testGetMenuItems() 65 final var item = items.get(itemsIndex); in testGetMenuItems() 80 assertWithMessage("Items list was not fully traversed").that(itemsIndex) in testGetMenuItems() 81 .isEqualTo(items.size()); in testGetMenuItems() 85 * Verifies that getMenuItems does not add a header or divider if all the items belong to 90 final var items = new ArrayList<ImeSubtypeListItem>(); in testGetMenuItemsNoHeaderOrDividerForSingleInputMethod() local [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2019-09/ |
H A D | unevaluatedItems.json | 10 "description": "with no unevaluated items", 15 "description": "with unevaluated items", 29 "description": "with no unevaluated items", 34 "description": "with unevaluated items", 48 "description": "with no unevaluated items", 53 "description": "with valid unevaluated items", 58 "description": "with invalid unevaluated items", 65 "description": "unevaluatedItems with uniform items", 68 "items": { "type": "string" }, object 83 "items": [ array [all …]
|
/aosp_15_r20/tools/loganalysis/javatests/com/android/loganalysis/parser/ |
H A D | TimingsLogParserTest.java | 44 List<GenericTimingItem> items = mParser.parseGenericTimingItems(createBufferedReader(log)); in testParseGenericTiming_noPattern() local 45 assertNotNull(items); in testParseGenericTiming_noPattern() 46 assertEquals(0, items.size()); in testParseGenericTiming_noPattern() 56 items = mParser.parseGenericTimingItems(createBufferedReader(log)); in testParseGenericTiming_noPattern() 57 assertNotNull(items); in testParseGenericTiming_noPattern() 58 assertEquals(0, items.size()); in testParseGenericTiming_noPattern() 101 List<GenericTimingItem> items = mParser.parseGenericTimingItems(createBufferedReader(log)); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() local 102 assertNotNull(items); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 103 assertEquals(6, items.size()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 105 assertEquals("ZygoteStartTime", items.get(0).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() [all …]
|
/aosp_15_r20/external/pytorch/torch/_dynamo/variables/ |
H A D | lists.py | 62 items: List[VariableTracker], 66 assert isinstance(items, list) 67 assert all(isinstance(x, VariableTracker) for x in items) 68 self.items: List[VariableTracker] = items 71 return [x.as_proxy() for x in self.items] 73 def modified(self, items, **kwargs): argument 74 return type(self)(items, **kwargs) 81 return prefix + ", ".join(i.debug_repr() for i in self.items) + suffix 84 return self.python_type()([x.as_python_constant() for x in self.items]) 101 items=self.items[index], [all …]
|
H A D | dicts.py | 39 return all(is_hashable(e) for e in x.items) 90 x = tuple(Hashable(e).underlying_value for e in self.vt.items) 131 self, items: Dict[VariableTracker, VariableTracker], user_cls=dict, **kwargs 141 for x, v in items.items() 147 self.items = {make_hashable(x): v for x, v in items.items()} 151 return {k.vt.as_proxy(): v.as_proxy() for k, v in self.items.items()} 157 f"{k.vt.debug_repr()}: {v.debug_repr()}" for k, v in self.items.items() 165 for k, v in self.items.items() 169 return {k.vt.as_python_constant(): v for k, v in self.items.items()} 179 and Hashable(vt) in self.items [all …]
|
/aosp_15_r20/external/pigweed/pw_containers/ |
H A D | intrusive_list_test.cc | 60 // Test that a list of items derived from a different Item class can be created. 263 // For this test, items are checked to be non-zero. in TEST() 459 // Create an array of test items to insert into the middle of the list. in TEST() 511 // Create an array of test items to insert into the middle of the list. in TEST() 602 // Create an array of test items to insert into the middle of the list. in TEST() 642 // Create an array of test items to insert into the middle of the list. in TEST() 702 std::array<Item, 3> items{{{0}, {1}, {2}}}; in TEST() local 703 List list(items.begin(), items.end()); in TEST() 707 EXPECT_EQ(&items[1], &list.front()); in TEST() 712 std::array<Item, 3> items{{{0}, {1}, {2}}}; in TEST() local [all …]
|
H A D | intrusive_forward_list_test.cc | 61 // Test that a list of items derived from a different Item class can be created. 226 // For this test, items are checked to be non-zero. in TEST() 405 // Create an array of test items to insert into the middle of the list. in TEST() 457 // Create an array of test items to insert into the middle of the list. in TEST() 548 // Create an array of test items to insert into the middle of the list. in TEST() 588 // Create an array of test items to insert into the middle of the list. in TEST() 648 std::array<Item, 3> items{{{0}, {1}, {2}}}; in TEST() local 649 List list(items.begin(), items.end()); in TEST() 653 EXPECT_EQ(&items[1], &list.front()); in TEST() 658 std::array<Item, 3> items{{{0}, {1}, {2}}}; in TEST() local [all …]
|
/aosp_15_r20/external/python/jinja/tests/ |
D | test_asyncfilters.py | 36 "items", 44 def test_groupby(env_async, items): argument 47 {%- for grouper, list in items()|groupby('foo') -%} 51 assert tmpl.render(items=items).split("|") == [ 59 @mark_dualiter("items", lambda: [("a", 1), ("a", 2), ("b", 1)]) 60 def test_groupby_tuple_index(env_async, items): argument 63 {%- for grouper, list in items()|groupby(0) -%} 67 assert tmpl.render(items=items) == "a:1:2|b:1|" 98 tmpl = env_async.from_string('{{ items()|join("|") }}') 99 out = tmpl.render(items=int_items) [all …]
|
/aosp_15_r20/external/chromium-trace/catapult/third_party/polymer/components/paper-radio-group/test/ |
H A D | basic.html | 66 var items = g.items; 67 expect(items.length).to.be.equal(3); 69 expect(items[0].checked).to.be.equal(false); 70 expect(items[1].checked).to.be.equal(false); 71 expect(items[2].checked).to.be.equal(false); 84 var items = g.items; 85 expect(items.length).to.be.equal(3); 87 expect(items[0].checked).to.be.equal(true); 88 expect(items[1].checked).to.be.equal(false); 89 expect(items[2].checked).to.be.equal(false); [all …]
|
/aosp_15_r20/external/autotest/cli/ |
H A D | topic_common.py | 199 inline_option: the option containing the items (--label) 214 """Splits a string of comma separated items. Escaped commas will not 242 for items in add_on: 245 result.update(__get_items(items, split_spaces=False)) 249 items = getattr(options, self.inline_option) 250 result.update(__get_items(items)) 255 # The file can contain space and/or comma separated items 324 items and returns them 334 # the items that failed. 342 otherwise, queue the error and accumulate all the items [all …]
|
/aosp_15_r20/external/pthreadpool/bench/ |
H A D | throughput.cc | 12 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_1d() local 18 items * threads, in pthreadpool_parallelize_1d() 24 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_1d() 35 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_1d_tile_1d() local 41 items * threads, 1, in pthreadpool_parallelize_1d_tile_1d() 47 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_1d_tile_1d() 58 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_2d() local 64 threads, items, in pthreadpool_parallelize_2d() 70 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_2d() 81 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_2d_tile_1d() local [all …]
|
/aosp_15_r20/external/coreboot/payloads/libpayload/curses/menu/ |
H A D | m_global.c | 47 16, /* Nr. of items high */ 48 1, /* Nr. of items wide */ 49 16, /* Nr. of formatted items high */ 50 1, /* Nr. of formatted items wide */ 51 16, /* Nr. of items high (actual) */ 65 (ITEM **)0, /* List of items */ 66 0, /* Total Nr. of items in menu */ 105 | of the items connected to the menu 114 ITEM **items; in ComputeMaximum_NameDesc_Lengths() local 117 assert(menu && menu->items); in ComputeMaximum_NameDesc_Lengths() [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2020-12/ |
H A D | unevaluatedItems.json | 10 "description": "with no unevaluated items", 15 "description": "with unevaluated items", 29 "description": "with no unevaluated items", 34 "description": "with unevaluated items", 48 "description": "with no unevaluated items", 53 "description": "with valid unevaluated items", 58 "description": "with invalid unevaluated items", 65 "description": "unevaluatedItems with uniform items", 68 "items": { "type": "string" }, object 90 "description": "with no unevaluated items", [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft-next/ |
H A D | unevaluatedItems.json | 10 "description": "with no unevaluated items", 15 "description": "with unevaluated items", 29 "description": "with no unevaluated items", 34 "description": "with unevaluated items", 48 "description": "with no unevaluated items", 53 "description": "with valid unevaluated items", 58 "description": "with invalid unevaluated items", 65 "description": "unevaluatedItems with uniform items", 68 "items": { "type": "string" }, object 90 "description": "with no unevaluated items", [all …]
|
H A D | items.json | 3 "description": "a schema given for items", 6 "items": {"type": "integer"} object 10 "description": "valid items", 15 "description": "wrong type of items", 35 "description": "items with boolean schema (true)", 38 "items": true boolean 54 "description": "items with boolean schema (false)", 57 "items": false boolean 73 "description": "items and subitems", 79 "items": false, boolean [all …]
|
/aosp_15_r20/external/python/google-api-python-client/docs/dyn/ |
D | content_v2_1.returnpolicy.html | 124 …nDate": "A String", # Required. Last day for returning the items. In ISO 8601 forma… 125 …items can be returned after delivery, where one day is defined to be 24 hours after the delivery t… 126 …items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-… 138 …nDate": "A String", # Required. Last day for returning the items. In ISO 8601 forma… 139 …items can be returned after delivery, where one day is defined to be 24 hours after the delivery t… 140 …items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-… 184 …nDate": "A String", # Required. Last day for returning the items. In ISO 8601 forma… 185 …items can be returned after delivery, where one day is defined to be 24 hours after the delivery t… 186 …items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-… 198 …nDate": "A String", # Required. Last day for returning the items. In ISO 8601 forma… [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | test_weakset.py | 41 self.items = [SomeClass(c) for c in ('a', 'b', 'c')] 50 self.s = WeakSet(self.items) 51 self.d = dict.fromkeys(self.items) 85 self.assertEqual(self.s, WeakSet(self.items)) 89 x = WeakSet(self.items + self.items2) 93 self.assertEqual(len(u), len(self.items) + len(self.items2)) 96 self.assertEqual(len(u), len(self.items) + len(self.items2)) 112 self.assertEqual(i.intersection(C(self.items)), x) 131 self.assertEqual(self.s, WeakSet(self.items)) 144 self.assertEqual(self.s, WeakSet(self.items)) [all …]
|