Home
last modified time | relevance | path

Searched refs:storage (Results 1 – 25 of 2023) sorted by relevance

12345678910>>...81

/external/libchrome/base/
Dvalue_iterators_unittest.cc60 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/grpc-grpc/src/core/lib/transport/
Dmetadata_batch.cc97 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/tests/
Dchardata.c57 CharData_Init(CharData *storage) in CharData_Init() argument
59 assert(storage != NULL); in CharData_Init()
60 storage->count = -1; in CharData_Init()
64 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) in CharData_AppendXMLChars() argument
68 assert(storage != NULL); in CharData_AppendXMLChars()
70 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); in CharData_AppendXMLChars()
71 if (storage->count < 0) in CharData_AppendXMLChars()
72 storage->count = 0; in CharData_AppendXMLChars()
75 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars()
76 len = (maxchars - storage->count); in CharData_AppendXMLChars()
[all …]
Dstructdata.c73 StructData_Init(StructData *storage) in StructData_Init() argument
75 assert(storage != NULL); in StructData_Init()
76 storage->count = 0; in StructData_Init()
77 storage->max_count = 0; in StructData_Init()
78 storage->entries = NULL; in StructData_Init()
82 StructData_AddItem(StructData *storage, in StructData_AddItem() argument
90 assert(storage != NULL); in StructData_AddItem()
92 if (storage->count == storage->max_count) { in StructData_AddItem()
95 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem()
96 new = realloc(storage->entries, in StructData_AddItem()
[all …]
/external/brotli/c/enc/
Dbrotli_bit_stream.c101 const Command* cmd, size_t* storage_ix, uint8_t* storage) { in StoreCommandExtra() argument
110 insnumextra + GetCopyExtra(copycode), bits, storage_ix, storage); in StoreCommandExtra()
124 static void StoreVarLenUint8(size_t n, size_t* storage_ix, uint8_t* storage) { in StoreVarLenUint8() argument
126 BrotliWriteBits(1, 0, storage_ix, storage); in StoreVarLenUint8()
129 BrotliWriteBits(1, 1, storage_ix, storage); in StoreVarLenUint8()
130 BrotliWriteBits(3, nbits, storage_ix, storage); in StoreVarLenUint8()
131 BrotliWriteBits(nbits, n - ((size_t)1 << nbits), storage_ix, storage); in StoreVarLenUint8()
141 uint8_t* storage) { in StoreCompressedMetaBlockHeader() argument
147 BrotliWriteBits(1, (uint64_t)is_final_block, storage_ix, storage); in StoreCompressedMetaBlockHeader()
150 BrotliWriteBits(1, 0, storage_ix, storage); in StoreCompressedMetaBlockHeader()
[all …]
Dcompress_fragment.c78 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/mesa3d/src/compiler/glsl/
Dlink_uniform_initializers.cpp48 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()
117 struct gl_uniform_storage *const storage = get_storage(prog, name); in set_opaque_binding() local
119 if (!storage) in set_opaque_binding()
122 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding()
132 storage->storage[i].i = (*binding)++; in set_opaque_binding()
[all …]
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyRepeatedField.java67 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/libaom/libaom/aom_dsp/
Dentenc.c73 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/perfetto/src/trace_processor/
Devent_tracker_unittest.cc36 context.storage.reset(new TraceStorage()); in EventTrackerTest()
56 const auto& timestamps = context.storage->slices().start_ns(); in TEST_F()
68 ASSERT_EQ(context.storage->GetThread(1).start_ns, 0); in TEST_F()
70 context.storage->GetString(context.storage->GetThread(1).name_id).c_str(), in TEST_F()
72 ASSERT_EQ(context.storage->slices().utids().front(), 1); in TEST_F()
73 ASSERT_EQ(context.storage->slices().durations().front(), 1); in TEST_F()
84 const auto& timestamps = context.storage->slices().start_ns(); in TEST_F()
102 ASSERT_EQ(context.storage->GetThread(1).start_ns, 0); in TEST_F()
103 ASSERT_EQ(context.storage->slices().durations().at(0), 1u); in TEST_F()
104 ASSERT_EQ(context.storage->slices().durations().at(1), 11u - 1u); in TEST_F()
[all …]
Dproto_trace_parser.cc161 utid_name_id_(context->storage->InternString("utid")), in ProtoTraceParser()
162 sched_wakeup_name_id_(context->storage->InternString("sched_wakeup")), in ProtoTraceParser()
163 cpu_freq_name_id_(context->storage->InternString("cpufreq")), in ProtoTraceParser()
164 cpu_idle_name_id_(context->storage->InternString("cpuidle")), in ProtoTraceParser()
165 comm_name_id_(context->storage->InternString("comm")), in ProtoTraceParser()
166 num_forks_name_id_(context->storage->InternString("num_forks")), in ProtoTraceParser()
167 num_irq_total_name_id_(context->storage->InternString("num_irq_total")), in ProtoTraceParser()
169 context->storage->InternString("num_softirq_total")), in ProtoTraceParser()
170 num_irq_name_id_(context->storage->InternString("num_irq")), in ProtoTraceParser()
171 num_softirq_name_id_(context->storage->InternString("num_softirq")), in ProtoTraceParser()
[all …]
Dheap_profile_tracker_unittest.cc56 context.storage.reset(new TraceStorage()); in HeapProfileTrackerDupTest()
59 mapping_name = context.storage->InternString("[mapping]"); in HeapProfileTrackerDupTest()
60 build = context.storage->InternString("[build id]"); in HeapProfileTrackerDupTest()
61 frame_name = context.storage->InternString("[frame]"); in HeapProfileTrackerDupTest()
145 EXPECT_THAT(context.storage->heap_profile_mappings().build_ids(), in TEST_F()
147 EXPECT_THAT(context.storage->heap_profile_mappings().offsets(), in TEST_F()
149 EXPECT_THAT(context.storage->heap_profile_mappings().starts(), in TEST_F()
151 EXPECT_THAT(context.storage->heap_profile_mappings().ends(), in TEST_F()
153 EXPECT_THAT(context.storage->heap_profile_mappings().load_biases(), in TEST_F()
155 EXPECT_THAT(context.storage->heap_profile_mappings().names(), in TEST_F()
[all …]
/external/autotest/client/site_tests/hardware_UsbMount/
Dhardware_UsbMount.py11 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/libese/apps/boot/card/src/com/android/verifiedboot/storage/
DBasicLock.java17 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 …]
DVersionStorage.java17 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 …]
DCarrierLock.java17 package com.android.verifiedboot.storage;
28 import com.android.verifiedboot.storage.LockInterface;
154 private byte[] storage; field in CarrierLock
190 if (storage == null) { in initialized()
226 storage = extStorage; in initialize()
235 if (storage == null) { in get()
239 Util.arrayCopy(storage, lockOffset(), in get()
254 if (storage == null) { in lockOffset()
268 if (storage == null) { in metadataOffset()
409 if (storage == null) { in setWithMetadata()
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Dcopy_constant_to_storage_tests.cpp32 copy_constant_to_storage(union gl_constant_value *storage,
50 gl_constant_value storage[17]; member in copy_constant_to_storage
73 const unsigned red_zone_size = ARRAY_SIZE(storage) - val->type->components(); in int_test()
74 fill_storage_array_with_sentinels(storage, in int_test()
78 linker::copy_constant_to_storage(storage, in int_test()
84 verify_data(storage, 0, val, red_zone_size, 0xF00F); in int_test()
93 const unsigned red_zone_size = ARRAY_SIZE(storage) - val->type->components(); in uint_test()
94 fill_storage_array_with_sentinels(storage, in uint_test()
98 linker::copy_constant_to_storage(storage, in uint_test()
104 verify_data(storage, 0, val, red_zone_size, 0xF00F); in uint_test()
[all …]
Duniform_initializer_utils.cpp31 fill_storage_array_with_sentinels(gl_constant_value *storage, in fill_storage_array_with_sentinels() argument
36 storage[i].u = 0xDEADBEEF; in fill_storage_array_with_sentinels()
39 storage[data_size + i].u = 0xBADDC0DE; in fill_storage_array_with_sentinels()
46 red_zone_is_intact(gl_constant_value *storage, in red_zone_is_intact() argument
53 if (storage[idx].u != 0xBADDC0DE) in red_zone_is_intact()
55 << "storage[" << idx << "].u = " << storage[idx].u in red_zone_is_intact()
208 uint64_storage(union gl_constant_value *storage) in uint64_storage() argument
211 memcpy(&val, &storage->i, sizeof(uint64_t)); in uint64_storage()
216 double_storage(union gl_constant_value *storage) in double_storage() argument
219 memcpy(&val, &storage->i, sizeof(double)); in double_storage()
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_dictionary_storage.py45 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/libchrome/mojo/public/cpp/base/
Dvalues_unittest.cc87 std::vector<base::Value::DictStorage::value_type> storage; in TEST() local
88 storage.emplace_back("null", std::make_unique<base::Value>()); in TEST()
89 storage.emplace_back("bool", std::make_unique<base::Value>(false)); in TEST()
90 storage.emplace_back("int", std::make_unique<base::Value>(0)); in TEST()
91 storage.emplace_back("double", std::make_unique<base::Value>(0.0)); in TEST()
92 storage.emplace_back("string", std::make_unique<base::Value>("0")); in TEST()
93 storage.emplace_back( in TEST()
95 storage.emplace_back( in TEST()
97 storage.emplace_back( in TEST()
101 base::Value::DictStorage(std::move(storage), base::KEEP_LAST_OF_DUPES)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DIRSymtab.cpp85 std::vector<storage::Comdat> Comdats;
86 std::vector<storage::Module> Mods;
87 std::vector<storage::Symbol> Syms;
88 std::vector<storage::Uncommon> Uncommons;
93 void setStr(storage::Str &S, StringRef Value) { in setStr()
99 void writeRange(storage::Range<T> &R, const std::vector<T> &Objs) { in writeRange()
127 storage::Module Mod; in addModule()
172 storage::Comdat Comdat; in getComdatIndex()
184 storage::Symbol &Sym = Syms.back(); in addSymbol()
187 storage::Uncommon *Unc = nullptr; in addSymbol()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp85 const gl_uniform_storage *storage) in brw_setup_image_uniform_values() argument
89 for (unsigned i = 0; i < MAX2(storage->array_elements, 1); i++) { in brw_setup_image_uniform_values()
90 const unsigned image_idx = storage->opaque[stage].index + i; in brw_setup_image_uniform_values()
137 struct gl_uniform_storage *storage = in brw_nir_setup_glsl_uniform() local
140 if (storage->builtin || storage->type->is_sampler()) in brw_nir_setup_glsl_uniform()
143 if (strncmp(var->name, storage->name, namelen) != 0 || in brw_nir_setup_glsl_uniform()
144 (storage->name[namelen] != 0 && in brw_nir_setup_glsl_uniform()
145 storage->name[namelen] != '.' && in brw_nir_setup_glsl_uniform()
146 storage->name[namelen] != '[')) { in brw_nir_setup_glsl_uniform()
150 if (storage->type->is_image()) { in brw_nir_setup_glsl_uniform()
[all …]
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_storage.py27 from oauth2client.contrib.django_util.storage import (
50 storage = Storage(FakeCredentialsModel, self.key_name,
53 self.assertEqual(storage.model_class, FakeCredentialsModel)
54 self.assertEqual(storage.key_name, self.key_name)
55 self.assertEqual(storage.key_value, self.key_value)
56 self.assertEqual(storage.property_name, self.property_name)
69 storage = Storage(FakeCredentialsModelMock, self.key_name,
71 credential = storage.locked_get()
83 storage = Storage(FakeCredentialsModelMock, self.key_name,
85 credential = storage.locked_get()
[all …]
/external/v8/src/base/
Dlazy-instance.h102 static T* MutableInstance(StorageType* storage) { in MutableInstance()
103 return reinterpret_cast<T*>(storage); in MutableInstance()
107 static void InitStorageUsingTrait(StorageType* storage) { in InitStorageUsingTrait()
108 ConstructTrait::Construct(storage); in InitStorageUsingTrait()
117 static T* MutableInstance(StorageType* storage) { in MutableInstance()
118 return *storage; in MutableInstance()
122 static void InitStorageUsingTrait(StorageType* storage) { in InitStorageUsingTrait()
123 *storage = CreateTrait::Create(); in InitStorageUsingTrait()
145 static void Init(OnceType* once, Function function, Storage storage) { in Init()
146 CallOnce(once, function, storage); in Init()
[all …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp273 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && isIllegalVertexInput(m_defaultB… in isValid()
275 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && isIllegalVertexOutput(m_defaul… in isValid()
277 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && m_defaultBlock.variables[varNd… in isValid()
282 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN || in isValid()
283 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
284 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
294 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && isIllegalFragmentInput(m_defaul… in isValid()
296 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && m_defaultBlock.variables[varNdx… in isValid()
298 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && isIllegalFragmentOutput(m_defa… in isValid()
303 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
[all …]

12345678910>>...81