/external/cronet/third_party/protobuf/js/experimental/runtime/kernel/ |
D | binary_storage_test.js | 31 function getStorageSize(storage) { argument 33 storage.forEach(() => void size++); 39 const storage = new BinaryStorage(DEFAULT_PIVOT); constant 41 storage.set(1, field1); 42 storage.set(DEFAULT_PIVOT, field2); 44 expect(storage.getPivot()).toBe(DEFAULT_PIVOT); 45 expect(storage.get(1)).toBe(field1); 46 expect(storage.get(DEFAULT_PIVOT)).toBe(field2); 50 const storage = new BinaryStorage(DEFAULT_PIVOT); constant 52 storage.set(DEFAULT_PIVOT + 1, field1); [all …]
|
D | indexer_test.js | 27 function getStorageSize(storage) { argument 29 storage.forEach(() => void size++); 44 function assertStorageEntries(storage, fieldNumber, ...expectedEntries) { argument 45 expect(getStorageSize(storage)).toBe(1); 47 const entryArray = storage.get(fieldNumber).getIndexArray(); 61 const storage = buildIndex(createBufferDecoder(), PIVOT); constant 62 expect(storage).not.toBeNull(); 63 expect(getStorageSize(storage)).toBe(0); 85 const storage = buildIndex(data, PIVOT); constant 87 storage, /* fieldNumber= */ 1, [all …]
|
/external/libchrome/base/ |
D | value_iterators_unittest.cc | 60 DictStorage storage; in TEST() local 61 storage.emplace("0", std::make_unique<Value>(0)); in TEST() 64 iterator iter(storage.begin()); in TEST() 69 EXPECT_EQ(Value(1), *storage["0"]); in TEST() 73 DictStorage storage; in TEST() local 74 storage.emplace("0", std::make_unique<Value>(0)); in TEST() 77 iterator iter(storage.begin()); in TEST() 82 EXPECT_EQ(Value(1), *storage["0"]); in TEST() 86 DictStorage storage; in TEST() local 87 storage.emplace("0", std::make_unique<Value>(0)); in TEST() [all …]
|
/external/cronet/base/ |
D | value_iterators_unittest.cc | 55 DictStorage storage; in TEST() local 56 storage.emplace("0", std::make_unique<Value>(0)); in TEST() 59 iterator iter(storage.begin()); in TEST() 64 EXPECT_EQ(Value(1), *storage["0"]); in TEST() 68 DictStorage storage; in TEST() local 69 storage.emplace("0", std::make_unique<Value>(0)); in TEST() 72 iterator iter(storage.begin()); in TEST() 77 EXPECT_EQ(Value(1), *storage["0"]); in TEST() 81 DictStorage storage; in TEST() local 82 storage.emplace("0", std::make_unique<Value>(0)); in TEST() [all …]
|
/external/perfetto/src/trace_processor/importers/common/ |
D | args_translation_table_unittest.cc | 29 TraceStorage storage; in TEST() local 30 ArgsTranslationTable table(&storage); in TEST() 36 TraceStorage storage; in TEST() local 37 ArgsTranslationTable table(&storage); in TEST() 48 TraceStorage storage; in TEST() local 49 ArgsTranslationTable table(&storage); in TEST() 60 TraceStorage storage; in TEST() local 61 ArgsTranslationTable table(&storage); in TEST() 73 TraceStorage storage; in TEST() local 74 ArgsTranslationTable table(&storage); in TEST() [all …]
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/ |
D | BackendTestBase.java | 69 private SynchronousFileStorage storage; field in BackendTestBase 139 storage = new SynchronousFileStorage(ImmutableList.of(backend()), ImmutableList.of()); in setUpStorage() 143 protected SynchronousFileStorage storage() { in storage() method in BackendTestBase 144 return storage; in storage() 155 assertThrows(FileNotFoundException.class, () -> storage.open(uri, ReadStreamOpener.create())); in openForRead_withMissingFile_throwsFileNotFound() 161 assertThrows(MalformedUriException.class, () -> storage.open(uri, ReadStreamOpener.create())); in openForRead_withIllegalUri_throwsIllegalArgumentException() 168 createFile(storage, uri, TEST_CONTENT); in openForRead_readsWrittenContent() 169 assertThat(readFileInBytes(storage, uri)).isEqualTo(TEST_CONTENT); in openForRead_readsWrittenContent() 177 createFile(storage(), uri, TEST_CONTENT); in openForRead_returnsFileConvertible() 189 MalformedUriException.class, () -> storage.open(uri, WriteStreamOpener.create())); in openForWrite_withIllegalUri_throwsIllegalArgumentException() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/ |
D | metadata_batch.cc | 112 grpc_linked_mdelem* storage, in link_callout() argument 117 batch->idx.array[idx] = storage; in link_callout() 120 return error_with_md(storage->md); in link_callout() 124 grpc_linked_mdelem* storage) 128 grpc_linked_mdelem* storage) { in maybe_link_callout() argument 130 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_link_callout() 134 return link_callout(batch, storage, idx); in maybe_link_callout() 138 grpc_linked_mdelem* storage) { in maybe_unlink_callout() argument 140 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_unlink_callout() 150 grpc_linked_mdelem* storage, in grpc_metadata_batch_add_head() argument [all …]
|
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/ |
D | fb_storage_test.cc | 57 FlatbufferStorage<BenchmarkEvent> storage(path); in TEST() local 58 EXPECT_EQ(storage.Read(), kMinibenchmarkSuccess); in TEST() 59 EXPECT_EQ(storage.Count(), 0); in TEST() 61 EXPECT_EQ(storage.Append(&fbb, o), kMinibenchmarkSuccess); in TEST() 62 ASSERT_EQ(storage.Count(), 1); in TEST() 63 EXPECT_EQ(storage.Get(0)->event_type(), BenchmarkEventType_START); in TEST() 65 storage = FlatbufferStorage<BenchmarkEvent>(path); in TEST() 66 EXPECT_EQ(storage.Read(), kMinibenchmarkSuccess); in TEST() 67 ASSERT_EQ(storage.Count(), 1); in TEST() 68 EXPECT_EQ(storage.Get(0)->event_type(), BenchmarkEventType_START); in TEST() [all …]
|
/external/grpc-grpc/src/core/lib/transport/ |
D | metadata_batch.cc | 97 grpc_linked_mdelem* storage) 101 grpc_linked_mdelem* storage) { in maybe_link_callout() argument 103 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_link_callout() 109 batch->idx.array[idx] = storage; in maybe_link_callout() 114 storage->md); in maybe_link_callout() 118 grpc_linked_mdelem* storage) { in maybe_unlink_callout() argument 120 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_unlink_callout() 130 grpc_linked_mdelem* storage, in grpc_metadata_batch_add_head() argument 133 storage->md = elem_to_add; in grpc_metadata_batch_add_head() 134 return grpc_metadata_batch_link_head(batch, storage); in grpc_metadata_batch_add_head() [all …]
|
/external/expat/expat/tests/ |
D | structdata.c | 67 StructData_Init(StructData *storage) { in StructData_Init() argument 68 assert(storage != NULL); in StructData_Init() 69 storage->count = 0; in StructData_Init() 70 storage->max_count = 0; in StructData_Init() 71 storage->entries = NULL; in StructData_Init() 75 StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, in StructData_AddItem() argument 79 assert(storage != NULL); in StructData_AddItem() 81 if (storage->count == storage->max_count) { in StructData_AddItem() 84 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem() 85 new = realloc(storage->entries, in StructData_AddItem() [all …]
|
D | chardata.c | 56 CharData_Init(CharData *storage) { in CharData_Init() argument 57 assert(storage != NULL); in CharData_Init() 58 storage->count = -1; in CharData_Init() 62 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) { in CharData_AppendXMLChars() argument 65 assert(storage != NULL); in CharData_AppendXMLChars() 67 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); in CharData_AppendXMLChars() 68 if (storage->count < 0) in CharData_AppendXMLChars() 69 storage->count = 0; in CharData_AppendXMLChars() 72 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars() 73 len = (maxchars - storage->count); in CharData_AppendXMLChars() [all …]
|
/external/openthread/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_crypto_storage_format.current.data | 3 PSA storage save: lifetime: (DEFAULT, LOCAL_STORAGE) 7 PSA storage save: lifetime: (2, LOCAL_STORAGE) 11 PSA storage save: lifetime: (254, LOCAL_STORAGE) 15 PSA storage save: lifetime: PERSISTENT 19 PSA storage save: usage: 0 23 PSA storage save: usage: COPY 27 PSA storage save: usage: DECRYPT 31 PSA storage save: usage: DERIVE 35 PSA storage save: usage: ENCRYPT 39 PSA storage save: usage: EXPORT [all …]
|
D | test_suite_psa_crypto_storage_format.v0.data | 3 PSA storage read: lifetime: (DEFAULT, LOCAL_STORAGE) 7 PSA storage read: lifetime: (READ_ONLY, LOCAL_STORAGE) 11 PSA storage read: lifetime: (2, LOCAL_STORAGE) 15 PSA storage read: lifetime: (254, LOCAL_STORAGE) 19 PSA storage read: lifetime: PERSISTENT 23 PSA storage read: usage with implication: 0 27 PSA storage read: usage without implication: 0 31 PSA storage read: usage with implication: COPY 35 PSA storage read: usage without implication: COPY 39 PSA storage read: usage with implication: DECRYPT [all …]
|
/external/brotli/c/enc/ |
D | brotli_bit_stream.c | 86 const Command* cmd, size_t* storage_ix, uint8_t* storage) { in StoreCommandExtra() argument 95 insnumextra + GetCopyExtra(copycode), bits, storage_ix, storage); in StoreCommandExtra() 109 static void StoreVarLenUint8(size_t n, size_t* storage_ix, uint8_t* storage) { in StoreVarLenUint8() argument 111 BrotliWriteBits(1, 0, storage_ix, storage); in StoreVarLenUint8() 114 BrotliWriteBits(1, 1, storage_ix, storage); in StoreVarLenUint8() 115 BrotliWriteBits(3, nbits, storage_ix, storage); in StoreVarLenUint8() 116 BrotliWriteBits(nbits, n - ((size_t)1 << nbits), storage_ix, storage); in StoreVarLenUint8() 126 uint8_t* storage) { in StoreCompressedMetaBlockHeader() argument 132 BrotliWriteBits(1, (uint64_t)is_final_block, storage_ix, storage); in StoreCompressedMetaBlockHeader() 135 BrotliWriteBits(1, 0, storage_ix, storage); in StoreCompressedMetaBlockHeader() [all …]
|
D | compress_fragment.c | 78 uint8_t* storage) { in BuildAndStoreLiteralPrefixCode() argument 113 depths, bits, storage_ix, storage); in BuildAndStoreLiteralPrefixCode() 129 uint8_t* storage) { in BuildAndStoreCommandPrefixCode() argument 171 cmd_depth, BROTLI_NUM_COMMAND_SYMBOLS, tree, storage_ix, storage); in BuildAndStoreCommandPrefixCode() 173 BrotliStoreHuffmanTree(&depth[64], 64, tree, storage_ix, storage); in BuildAndStoreCommandPrefixCode() 182 uint8_t* storage) { in EmitInsertLen() argument 185 BrotliWriteBits(depth[code], bits[code], storage_ix, storage); in EmitInsertLen() 192 BrotliWriteBits(depth[inscode], bits[inscode], storage_ix, storage); in EmitInsertLen() 193 BrotliWriteBits(nbits, tail - (prefix << nbits), storage_ix, storage); in EmitInsertLen() 199 BrotliWriteBits(depth[code], bits[code], storage_ix, storage); in EmitInsertLen() [all …]
|
/external/cronet/third_party/brotli/enc/ |
D | brotli_bit_stream.c | 86 const Command* cmd, size_t* storage_ix, uint8_t* storage) { in StoreCommandExtra() argument 95 insnumextra + GetCopyExtra(copycode), bits, storage_ix, storage); in StoreCommandExtra() 109 static void StoreVarLenUint8(size_t n, size_t* storage_ix, uint8_t* storage) { in StoreVarLenUint8() argument 111 BrotliWriteBits(1, 0, storage_ix, storage); in StoreVarLenUint8() 114 BrotliWriteBits(1, 1, storage_ix, storage); in StoreVarLenUint8() 115 BrotliWriteBits(3, nbits, storage_ix, storage); in StoreVarLenUint8() 116 BrotliWriteBits(nbits, n - ((size_t)1 << nbits), storage_ix, storage); in StoreVarLenUint8() 126 uint8_t* storage) { in StoreCompressedMetaBlockHeader() argument 132 BrotliWriteBits(1, (uint64_t)is_final_block, storage_ix, storage); in StoreCompressedMetaBlockHeader() 135 BrotliWriteBits(1, 0, storage_ix, storage); in StoreCompressedMetaBlockHeader() [all …]
|
D | compress_fragment.c | 76 uint8_t* storage) { in BuildAndStoreLiteralPrefixCode() argument 113 depths, bits, storage_ix, storage); in BuildAndStoreLiteralPrefixCode() 127 size_t* storage_ix, uint8_t* storage) { in BuildAndStoreCommandPrefixCode() argument 173 tmp_depth, BROTLI_NUM_COMMAND_SYMBOLS, s->tree, storage_ix, storage); in BuildAndStoreCommandPrefixCode() 175 BrotliStoreHuffmanTree(&depth[64], 64, s->tree, storage_ix, storage); in BuildAndStoreCommandPrefixCode() 184 uint8_t* storage) { in EmitInsertLen() argument 187 BrotliWriteBits(depth[code], bits[code], storage_ix, storage); in EmitInsertLen() 194 BrotliWriteBits(depth[inscode], bits[inscode], storage_ix, storage); in EmitInsertLen() 195 BrotliWriteBits(nbits, tail - (prefix << nbits), storage_ix, storage); in EmitInsertLen() 201 BrotliWriteBits(depth[code], bits[code], storage_ix, storage); in EmitInsertLen() [all …]
|
/external/icing/icing/index/numeric/ |
D | integer-index-storage_test.cc | 98 const IntegerIndexStorage* storage, int64_t key_lower, int64_t key_upper) { in Query() argument 100 storage->GetIterator(key_lower, key_upper)); in Query() 248 std::unique_ptr<IntegerIndexStorage> storage, in TEST_P() 253 ICING_ASSERT_OK(storage->PersistToDisk()); in TEST_P() 292 std::unique_ptr<IntegerIndexStorage> storage, in TEST_P() 298 ICING_ASSERT_OK(storage->AddKeys(/*document_id=*/0, /*section_id=*/20, in TEST_P() 300 ICING_ASSERT_OK(storage->AddKeys(/*document_id=*/1, /*section_id=*/2, in TEST_P() 302 ICING_ASSERT_OK(storage->AddKeys(/*document_id=*/2, /*section_id=*/15, in TEST_P() 357 std::unique_ptr<IntegerIndexStorage> storage, in TEST_P() 363 ICING_ASSERT_OK(storage->AddKeys(/*document_id=*/0, /*section_id=*/20, in TEST_P() [all …]
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | proto_trace_parser.cc | 57 metatrace_id_(context->storage->InternString("metatrace")), in ProtoTraceParser() 58 data_name_id_(context->storage->InternString("data")), in ProtoTraceParser() 60 context->storage->InternString("chrome_event.metadata")), in ProtoTraceParser() 62 context->storage->InternString("chrome_event.legacy_system_trace")), in ProtoTraceParser() 64 context->storage->InternString("chrome_event.legacy_user_trace")), in ProtoTraceParser() 66 context->storage->InternString("MISSING STRING")) {} in ProtoTraceParser() 152 auto* storage = context_->storage.get(); in ParseTraceStats() local 153 storage->SetStats(stats::traced_producers_connected, in ParseTraceStats() 155 storage->SetStats(stats::traced_producers_seen, in ParseTraceStats() 157 storage->SetStats(stats::traced_data_sources_registered, in ParseTraceStats() [all …]
|
/external/cronet/net/base/ |
D | sockaddr_util_posix_unittest.cc | 20 size_t MaxPathLength(SockaddrStorage* storage) { in MaxPathLength() argument 25 return storage->addr_len - offsetof(struct sockaddr_un, sun_path) - 1; in MaxPathLength() 31 SockaddrStorage storage; in TEST() local 35 FillUnixAddress(path, /*use_abstract_namespace=*/false, &storage)); in TEST() 40 (unsigned int)storage.addr_len); in TEST() 43 reinterpret_cast<struct sockaddr_un*>(storage.addr); in TEST() 52 SockaddrStorage storage; in TEST() local 55 FillUnixAddress(path, /*use_abstract_namespace=*/false, &storage)); in TEST() 59 SockaddrStorage storage; in TEST() local 60 size_t path_max = MaxPathLength(&storage); in TEST() [all …]
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | RecursiveDeleteOpenerTest.java | 44 private final SynchronousFileStorage storage = field in RecursiveDeleteOpenerTest 51 assertThrows(IOException.class, () -> storage.open(missing, RecursiveDeleteOpener.create())); in open_nonExistentUri_throwsException() 57 storage.open(file, WriteStringOpener.create("junk")); in open_file_deletesFile() 59 storage.open(file, RecursiveDeleteOpener.create()); in open_file_deletesFile() 61 assertThat(storage.exists(file)).isFalse(); in open_file_deletesFile() 68 storage.open(dir, RecursiveDeleteOpener.create()); in open_emptyDirectory_deletesDirectory() 70 assertThat(storage.exists(dir)).isFalse(); in open_emptyDirectory_deletesDirectory() 80 storage.open(file0, WriteStringOpener.create("junk")); in open_nonEmptyDirectory_deletesChildrenThenDirectory() 81 storage.open(file1, WriteStringOpener.create("junk")); in open_nonEmptyDirectory_deletesChildrenThenDirectory() 83 storage.open(dir, RecursiveDeleteOpener.create()); in open_nonEmptyDirectory_deletesChildrenThenDirectory() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 50 struct local_storage *storage; in BPF_PROG() local 56 storage = bpf_task_storage_get(&task_storage_map, in BPF_PROG() 58 if (storage) { in BPF_PROG() 60 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG() 74 struct local_storage *storage; in BPF_PROG() local 84 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG() 86 if (!storage) in BPF_PROG() 89 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG() 104 struct local_storage *storage; in BPF_PROG() local 110 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/depr/depr.c.headers/ |
D | string_h.pass.cpp | 50 char storage[] = "hello world"; in main() local 51 const char* s = storage; in main() 58 char storage[] = "hello world"; in main() local 59 char* s = storage; in main() 67 char storage[] = "hello world"; in main() local 68 const char* s = storage; in main() 75 char storage[] = "hello world"; in main() local 76 char* s = storage; in main() 84 char storage[] = "hello world"; in main() local 85 const char* s = storage; in main() [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | gl_nir_link_uniform_initializers.c | 56 struct gl_uniform_storage *storage = in set_opaque_binding() local 59 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding() 62 storage->storage[i].i = data->binding++; in set_opaque_binding() 69 if (!storage->opaque[sh].active) in set_opaque_binding() 72 if (glsl_type_is_sampler(storage->type)) { in set_opaque_binding() 74 const unsigned index = storage->opaque[sh].index + i; in set_opaque_binding() 76 if (storage->is_bindless) { in set_opaque_binding() 80 storage->storage[i].i; in set_opaque_binding() 87 storage->storage[i].i; in set_opaque_binding() 90 } else if (glsl_type_is_image(storage->type)) { in set_opaque_binding() [all …]
|
/external/perfetto/src/trace_processor/importers/ftrace/ |
D | virtio_video_tracker.cc | 57 unknown_id_(context->storage->InternString("Unknown")), in VirtioVideoTracker() 58 input_queue_id_(context->storage->InternString("INPUT")), in VirtioVideoTracker() 59 output_queue_id_(context->storage->InternString("OUTPUT")), in VirtioVideoTracker() 60 fields_string_ids_(*context->storage) { in VirtioVideoTracker() 61 TraceStorage& storage = *context_->storage; in VirtioVideoTracker() local 63 command_names_.Insert(0x100, storage.InternString("QUERY_CAPABILITY")); in VirtioVideoTracker() 64 command_names_.Insert(0x101, storage.InternString("STREAM_CREATE")); in VirtioVideoTracker() 65 command_names_.Insert(0x102, storage.InternString("STREAM_DESTROY")); in VirtioVideoTracker() 66 command_names_.Insert(0x103, storage.InternString("STREAM_DRAIN")); in VirtioVideoTracker() 67 command_names_.Insert(0x104, storage.InternString("RESOURCE_CREATE")); in VirtioVideoTracker() [all …]
|