/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/rust/crates/grpcio-sys/grpc/src/core/lib/transport/ |
D | metadata_batch.cc | 108 grpc_linked_mdelem* storage, in link_callout() argument 113 batch->idx.array[idx] = storage; in link_callout() 116 return error_with_md(storage->md); in link_callout() 120 grpc_linked_mdelem* storage) 124 grpc_linked_mdelem* storage) { in maybe_link_callout() argument 126 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_link_callout() 130 return link_callout(batch, storage, idx); in maybe_link_callout() 134 grpc_linked_mdelem* storage) { in maybe_unlink_callout() argument 136 GRPC_BATCH_INDEX_OF(GRPC_MDKEY(storage->md)); in maybe_unlink_callout() 146 grpc_linked_mdelem* storage, in grpc_metadata_batch_add_head() argument [all …]
|
D | metadata_batch.h | 69 grpc_linked_mdelem* storage); 75 grpc_linked_mdelem* storage, 78 void grpc_metadata_batch_set_value(grpc_linked_mdelem* storage, 87 grpc_linked_mdelem* storage) 90 grpc_metadata_batch* batch, grpc_linked_mdelem* storage, 99 grpc_linked_mdelem* storage) 102 grpc_metadata_batch* batch, grpc_linked_mdelem* storage, 112 grpc_metadata_batch* batch, grpc_linked_mdelem* storage, 118 grpc_metadata_batch* batch, grpc_linked_mdelem* storage, in grpc_metadata_batch_add_head() argument 120 return grpc_metadata_batch_link_head(batch, storage, idx); in grpc_metadata_batch_add_head() [all …]
|
/external/expat/tests/ |
D | structdata.c | 69 StructData_Init(StructData *storage) { in StructData_Init() argument 70 assert(storage != NULL); in StructData_Init() 71 storage->count = 0; in StructData_Init() 72 storage->max_count = 0; in StructData_Init() 73 storage->entries = NULL; in StructData_Init() 77 StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, in StructData_AddItem() argument 81 assert(storage != NULL); in StructData_AddItem() 83 if (storage->count == storage->max_count) { in StructData_AddItem() 86 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem() 87 new = realloc(storage->entries, in StructData_AddItem() [all …]
|
D | chardata.c | 54 CharData_Init(CharData *storage) { in CharData_Init() argument 55 assert(storage != NULL); in CharData_Init() 56 storage->count = -1; in CharData_Init() 60 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) { in CharData_AppendXMLChars() argument 63 assert(storage != NULL); in CharData_AppendXMLChars() 65 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); in CharData_AppendXMLChars() 66 if (storage->count < 0) in CharData_AppendXMLChars() 67 storage->count = 0; in CharData_AppendXMLChars() 70 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars() 71 len = (maxchars - storage->count); in CharData_AppendXMLChars() [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/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/llvm-project/mlir/test/Dialect/Quant/ |
D | parse-any-invalid.mlir | 4 // Unrecognized token: missing storage type maximum 19 // Unrecognized storage type: illegal prefix 20 // expected-error@+1 {{illegal storage type prefix}} 24 // Unrecognized storage type: no width 25 // expected-error@+1 {{illegal storage type prefix}} 29 // Unrecognized storage type: storage size > 32 30 // expected-error@+1 {{illegal storage type size: 33}} 34 // Unrecognized storage type: storage size < 0 35 // expected-error@+1 {{illegal storage type size: 1024}} 39 // Unrecognized storage type: storage size == 0 [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 …]
|
D | link_uniform_initializers.cpp | 48 copy_constant_to_storage(union gl_constant_value *storage, in copy_constant_to_storage() argument 57 storage[i].u = val->value.u[i]; in copy_constant_to_storage() 61 storage[i].i = val->value.i[i]; in copy_constant_to_storage() 64 storage[i].f = val->value.f[i]; in copy_constant_to_storage() 70 memcpy(&storage[i * 2].u, &val->value.d[i], sizeof(double)); in copy_constant_to_storage() 73 storage[i].b = val->value.b[i] ? boolean_true : 0; in copy_constant_to_storage() 119 struct gl_uniform_storage *const storage = get_storage(prog, name); in set_opaque_binding() local 121 if (!storage) in set_opaque_binding() 124 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding() 134 storage->storage[i].i = (*binding)++; in set_opaque_binding() [all …]
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | proto_trace_parser.cc | 74 metatrace_id_(context->storage->InternString("metatrace")), in ProtoTraceParser() 75 data_name_id_(context->storage->InternString("data")), in ProtoTraceParser() 77 context->storage->InternString("chrome_event.metadata")), in ProtoTraceParser() 79 context->storage->InternString("chrome_event.legacy_system_trace")), in ProtoTraceParser() 81 context->storage->InternString("chrome_event.legacy_user_trace")) { in ProtoTraceParser() 84 context_->storage->mutable_symbol_table()->Insert( in ProtoTraceParser() 185 auto* storage = context_->storage.get(); in ParseTraceStats() local 186 storage->SetStats(stats::traced_producers_connected, in ParseTraceStats() 188 storage->SetStats(stats::traced_data_sources_registered, in ParseTraceStats() 190 storage->SetStats(stats::traced_data_sources_seen, in ParseTraceStats() [all …]
|
D | frame_timeline_event_parser.cc | 62 return context->storage->InternString("Unspecified"); in JankTypeBitmaskToStringId() 64 return context->storage->InternString("None"); in JankTypeBitmaskToStringId() 91 return context->storage->InternString(base::StringView(jank_str)); in JankTypeBitmaskToStringId() 119 context->storage->IncrementStats(stats::frame_timeline_event_parser_errors); in ValidatePredictionType() 128 context->storage->IncrementStats(stats::frame_timeline_event_parser_errors); in ValidatePresentType() 136 {context->storage->InternString( in FrameTimelineEventParser() 138 context->storage->InternString( in FrameTimelineEventParser() 140 context->storage->InternString("Late Present") /* PRESENT_LATE */, in FrameTimelineEventParser() 141 context->storage->InternString("Early Present") /* PRESENT_EARLY */, in FrameTimelineEventParser() 142 context->storage->InternString( in FrameTimelineEventParser() [all …]
|
D | heap_graph_tracker.cc | 34 void ForReferenceSet(const TraceStorage& storage, in ForReferenceSet() argument 37 uint32_t row = *storage.heap_graph_object_table().id().IndexOf(id); in ForReferenceSet() 39 storage.heap_graph_object_table().reference_set_id()[row]; in ForReferenceSet() 44 reference_row < storage.heap_graph_reference_table().row_count(); in ForReferenceSet() 47 storage.heap_graph_reference_table().reference_set_id()[reference_row]; in ForReferenceSet() 56 const TraceStorage& storage, in GetChildren() argument 58 uint32_t obj_row = *storage.heap_graph_object_table().id().IndexOf(id); in GetChildren() 59 uint32_t cls_row = *storage.heap_graph_class_table().id().IndexOf( in GetChildren() 60 storage.heap_graph_object_table().type_id()[obj_row]); in GetChildren() 62 StringPool::Id kind = storage.heap_graph_class_table().kind()[cls_row]; in GetChildren() [all …]
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyRepeatedField.java | 67 this.storage = runtime.newArray(); in RubyRepeatedField() 74 this.storage = runtime.newArray(); in initialize() 97 this.storage.add(arr.eltInternal(i)); in initialize() 115 for (int i = this.storage.size(); i < arrIndex; i++) { in indexSet() 116 this.storage.set(i, defaultValue); in indexSet() 118 this.storage.set(arrIndex, value); in indexSet() 135 if (arrIndex < 0 || arrIndex >= this.storage.size()) { in index() 138 return this.storage.eltInternal(arrIndex); in index() 144 return this.storage.subseq(beg, len); in index() 151 beg += this.storage.size(); in index() [all …]
|
/external/autotest/client/site_tests/hardware_UsbMount/ |
D | hardware_UsbMount.py | 11 from cros import storage as storage_mod 44 storage = self.wait_for_device(filter_dict, cycles=1, 47 if not os.path.ismount(storage['mountpoint']): 50 storage_filter = {'fs_uuid': storage['fs_uuid']} 53 self._tmpfile = os.path.join(storage['mountpoint'], 62 logging.debug('storage to umount %s', storage) 65 self.scanner.umount_volume(storage_dict=storage) 66 storage = self.wait_for_device(storage_filter, 68 if os.path.ismount(storage['mountpoint']): 73 self.scanner.mount_volume(storage_dict=storage) [all …]
|
/external/perfetto/src/trace_processor/importers/ftrace/ |
D | sched_event_tracker_unittest.cc | 36 context.storage.reset(new TraceStorage()); in SchedEventTrackerTest() 61 ASSERT_EQ(context.storage->sched_slice_table().row_count(), 1ul); in TEST_F() 66 ASSERT_EQ(context.storage->sched_slice_table().row_count(), 2ul); in TEST_F() 68 const auto& timestamps = context.storage->sched_slice_table().ts(); in TEST_F() 70 ASSERT_EQ(context.storage->thread_table().start_ts()[1], base::nullopt); in TEST_F() 73 context.storage->GetString(context.storage->thread_table().name()[1]); in TEST_F() 75 ASSERT_EQ(context.storage->sched_slice_table().utid()[0], 1u); in TEST_F() 76 ASSERT_EQ(context.storage->sched_slice_table().dur()[0], 1); in TEST_F() 90 ASSERT_EQ(context.storage->sched_slice_table().row_count(), 1u); in TEST_F() 101 ASSERT_EQ(context.storage->sched_slice_table().row_count(), 4ul); in TEST_F() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | entenc.c | 73 uint32_t storage; in od_ec_enc_normalize() local 77 storage = enc->precarry_storage; in od_ec_enc_normalize() 79 if (offs + 2 > storage) { in od_ec_enc_normalize() 80 storage = 2 * storage + 2; in od_ec_enc_normalize() 81 buf = (uint16_t *)realloc(buf, sizeof(*buf) * storage); in od_ec_enc_normalize() 88 enc->precarry_storage = storage; in od_ec_enc_normalize() 93 assert(offs < storage); in od_ec_enc_normalize() 99 assert(offs < storage); in od_ec_enc_normalize() 115 enc->storage = size; in od_ec_enc_init() 117 enc->storage = 0; in od_ec_enc_init() [all …]
|
/external/libese/apps/boot/card/src/com/android/verifiedboot/storage/ |
D | BasicLock.java | 17 package com.android.verifiedboot.storage; 28 import com.android.verifiedboot.storage.LockInterface; 33 private byte[] storage; field in BasicLock 72 Util.arrayCopy(storage, storageOffset, in backup() 88 storage, storageOffset, in restore() 147 if (storage == null) { in initialized() 178 storage = extStorage; in initialize() 187 if (storage == null) { in get() 191 Util.arrayCopy(storage, storageOffset, in get() 206 if (storage == null) { in lockOffset() [all …]
|
D | VersionStorage.java | 17 package com.android.verifiedboot.storage; 22 import com.android.verifiedboot.storage.BackupInterface; 30 private byte[] storage; field in VersionStorage 33 storage = new byte[NUM_SLOTS * SLOT_BYTES]; in VersionStorage() 35 Util.arrayFillNonAtomic(storage, (short) 0, (short) storage.length, (byte) 0x00); in VersionStorage() 51 Util.arrayCopy(storage, (short)(SLOT_BYTES * slot), in getSlot() 79 storage, (short)(SLOT_BYTES * slot), SLOT_BYTES); in setSlot() 94 inBytesLength > (short)(storage.length + 1)) { in restore() 101 Util.arrayCopy(inBytes, inBytesOffset, storage, (short) 0, inBytesLength); in restore() 120 Util.arrayCopy(storage, (short) 0, outBytes, (short)(outBytesOffset + 1), in backup() [all …]
|
/external/perfetto/src/trace_processor/ |
D | export_json_unittest.cc | 75 context_.storage.reset(new TraceStorage()); in ExportJsonTest() 86 ExportJson(context_.storage.get(), &writer, argument_filter, in ToJson() 109 util::Status status = ExportJson(context_.storage.get(), output); in TEST_F() 131 StringId cat_id = context_.storage->InternString(base::StringView(kCategory)); in TEST_F() 132 StringId name_id = context_.storage->InternString(base::StringView(kName)); in TEST_F() 134 context_.storage->mutable_thread_slice_table()->Insert( in TEST_F() 141 util::Status status = ExportJson(context_.storage.get(), output); in TEST_F() 177 StringId cat_id = context_.storage->InternString(base::StringView(kCategory)); in TEST_F() 178 StringId name_id = context_.storage->InternString(base::StringView(kName)); in TEST_F() 179 context_.storage->mutable_thread_slice_table()->Insert( in TEST_F() [all …]
|
/external/python/oauth2client/tests/contrib/ |
D | test_dictionary_storage.py | 45 storage = dictionary_storage.DictionaryStorage(dictionary, key) 47 self.assertEqual(dictionary, storage._dictionary) 48 self.assertEqual(key, storage._key) 49 self.assertIsNone(storage._lock) 54 storage = dictionary_storage.DictionaryStorage(dictionary, key) 57 storage = dictionary_storage.DictionaryStorage( 59 self.assertEqual(storage._lock, lock) 65 storage = dictionary_storage.DictionaryStorage(dictionary, key) 67 self.assertIsNone(storage.get()) 70 returned = storage.get() [all …]
|
/external/mesa3d/src/compiler/glsl/tests/ |
D | copy_constant_to_storage_tests.cpp | 32 copy_constant_to_storage(union gl_constant_value *storage, 50 gl_constant_value storage[17]; member in copy_constant_to_storage 77 const unsigned red_zone_size = ARRAY_SIZE(storage) - val->type->components(); in int_test() 78 fill_storage_array_with_sentinels(storage, in int_test() 82 linker::copy_constant_to_storage(storage, in int_test() 88 verify_data(storage, 0, val, red_zone_size, 0xF00F); in int_test() 97 const unsigned red_zone_size = ARRAY_SIZE(storage) - val->type->components(); in uint_test() 98 fill_storage_array_with_sentinels(storage, in uint_test() 102 linker::copy_constant_to_storage(storage, in uint_test() 108 verify_data(storage, 0, val, red_zone_size, 0xF00F); in uint_test() [all …]
|
/external/webrtc/examples/objc/AppRTCMobile/ |
D | ARDSettingsStore.m | 24 @property(nonatomic, strong, readonly) NSUserDefaults *storage; property 53 - (NSUserDefaults *)storage { method 61 return [self.storage objectForKey:kVideoResolutionKey]; 65 [self.storage setObject:resolution forKey:kVideoResolutionKey]; 66 [self.storage synchronize]; 70 return [self.storage objectForKey:kVideoCodecKey]; 74 [self.storage setObject:videoCodec forKey:kVideoCodecKey]; 75 [self.storage synchronize]; 79 return [self.storage objectForKey:kBitrateKey]; 83 [self.storage setObject:value forKey:kBitrateKey]; [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/ |
D | elementwise_test_util.cc | 33 for (auto storage : env->GetSupportedStorages()) { in AbsTest() local 38 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in AbsTest() 39 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in AbsTest() 59 for (auto storage : env->GetSupportedStorages()) { in CosTest() local 65 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in CosTest() 66 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in CosTest() 86 for (auto storage : env->GetSupportedStorages()) { in CopyTest() local 91 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in CopyTest() 92 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in CopyTest() 110 for (auto storage : env->GetSupportedStorages()) { in EluTest() local [all …]
|