Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 5291) sorted by relevance

12345678910>>...212

/aosp_15_r20/external/angle/src/common/spirv/
H A Dspirv_instruction_builder_autogen.cpp41 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t version, uint32_t idCount) in WriteSpirvHeader() argument
55 ASSERT(blob->empty()); in WriteSpirvHeader()
57 blob->push_back(spv::MagicNumber); in WriteSpirvHeader()
58 blob->push_back(version); in WriteSpirvHeader()
59 blob->push_back(kANGLEGeneratorId << 16 | kANGLEGeneratorVersion); in WriteSpirvHeader()
60 blob->push_back(idCount); in WriteSpirvHeader()
61 blob->push_back(0x00000000); in WriteSpirvHeader()
64 void WriteNop(Blob *blob) in WriteNop() argument
66 const size_t startSize = blob->size(); in WriteNop()
67 blob->push_back(0); in WriteNop()
[all …]
H A Dspirv_instruction_builder_autogen.h23 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t version, uint32_t idCount);
24 void WriteNop(Blob *blob);
25 void WriteUndef(Blob *blob, IdResultType idResultType1, IdResult idResult2);
26 void WriteSourceContinued(Blob *blob, LiteralString continuedSource);
27 void WriteSource(Blob *blob,
32 void WriteSourceExtension(Blob *blob, LiteralString extension);
33 void WriteName(Blob *blob, IdRef target, LiteralString name);
34 void WriteMemberName(Blob *blob, IdRef type, LiteralInteger member, LiteralString name);
35 void WriteString(Blob *blob, IdResult idResult1, LiteralString string);
36 void WriteLine(Blob *blob, IdRef file, LiteralInteger line, LiteralInteger column);
[all …]
/aosp_15_r20/external/mesa3d/src/util/
H A Dblob.c44 grow_to_fit(struct blob *blob, size_t additional) in grow_to_fit() argument
49 if (blob->out_of_memory) in grow_to_fit()
52 if (blob->size + additional <= blob->allocated) in grow_to_fit()
55 if (blob->fixed_allocation) { in grow_to_fit()
56 blob->out_of_memory = true; in grow_to_fit()
60 if (blob->allocated == 0) in grow_to_fit()
63 to_allocate = blob->allocated * 2; in grow_to_fit()
65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit()
67 new_data = realloc(blob->data, to_allocate); in grow_to_fit()
69 blob->out_of_memory = true; in grow_to_fit()
[all …]
H A Dblob.h49 struct blob { struct
94 blob_init(struct blob *blob);
108 blob_init_fixed(struct blob *blob, void *data, size_t size);
117 blob_finish(struct blob *blob) in blob_finish() argument
119 if (!blob->fixed_allocation) in blob_finish()
120 free(blob->data); in blob_finish()
124 blob_finish_get_buffer(struct blob *blob, void **buffer, size_t *size);
134 blob_align(struct blob *blob, size_t alignment);
142 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write);
155 blob_reserve_bytes(struct blob *blob, size_t to_write);
[all …]
/aosp_15_r20/external/mesa3d/src/util/tests/
H A Dblob_test.cpp58 struct blob blob; in TEST() local
64 blob_init(&blob); in TEST()
68 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in TEST()
70 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in TEST()
71 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in TEST()
74 str_offset = blob.size; in TEST()
75 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in TEST()
77 blob_write_uint32(&blob, uint32_test); in TEST()
80 uint_offset = blob.size; in TEST()
81 blob_write_uint32(&blob, uint32_placeholder); in TEST()
[all …]
/aosp_15_r20/cts/tests/tests/os/src/android/os/cts/
H A DHwBinderTest.java59 void test(HwBlob blob, int offset); in test() argument
77 HwBlob blob = new HwBlob(mSize + deltaSize); in test() local
78 mMethod.test(blob, offset); in test()
83 new MarshalCase("Bool", 1, (blob, offset) -> {
84 blob.putBool(offset, true);
85 assertEquals(true, blob.getBool(offset));
87 new MarshalCase("Int8", 1, (blob, offset) -> {
88 blob.putInt8(offset, (byte) 3);
89 assertEquals((byte) 3, blob.getInt8(offset));
91 new MarshalCase("Int16", 2, (blob, offset) -> {
[all …]
/aosp_15_r20/external/mesa3d/src/freedreno/ir3/
H A Dir3_disk_cache.c69 struct blob blob; in ir3_disk_cache_init_shader_key() local
70 blob_init(&blob); in ir3_disk_cache_init_shader_key()
71 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key()
72 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key()
73 blob_finish(&blob); in ir3_disk_cache_init_shader_key()
93 struct blob blob; in compute_variant_key() local
94 blob_init(&blob); in compute_variant_key()
96 blob_write_bytes(&blob, &shader->cache_key, sizeof(shader->cache_key)); in compute_variant_key()
97 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
98 blob_write_uint8(&blob, v->binning_pass); in compute_variant_key()
[all …]
/aosp_15_r20/external/skia/src/text/gpu/
H A DTextBlobRedrawCoordinator.cpp45 sk_sp<TextBlob> blob = this->findOrCreateBlob(viewMatrix, glyphRunList, paint, in drawGlyphRunList() local
48 blob->draw(canvas, glyphRunList.origin(), paint, atlasDelegate); in drawGlyphRunList()
60 sk_sp<TextBlob> blob; in findOrCreateBlob() local
62 blob = this->find(key); in findOrCreateBlob()
65 if (blob == nullptr || !blob->canReuse(paint, positionMatrix)) { in findOrCreateBlob()
66 if (blob != nullptr) { in findOrCreateBlob()
68 this->remove(blob.get()); in findOrCreateBlob()
71 blob = TextBlob::Make( in findOrCreateBlob()
76 blob->addKey(key); in findOrCreateBlob()
79 blob = this->addOrReturnExisting(glyphRunList, blob); in findOrCreateBlob()
[all …]
/aosp_15_r20/external/libbrillo/brillo/
H A Dsecure_blob_test.cc26 const Blob blob(std::begin(kTestBytes), std::end(kTestBytes)); in TEST() local
27 const string obtained_string = BlobToString(blob); in TEST()
31 EXPECT_EQ(blob, obtained_blob); in TEST()
77 SecureBlob blob(32); in TEST_F() local
79 EXPECT_EQ(32, blob.size()); in TEST_F()
84 SecureBlob blob(32, 'a'); in TEST_F() local
86 for (size_t i = 0; i < blob.size(); i++) { in TEST_F()
87 EXPECT_EQ('a', blob[i]); in TEST_F()
93 SecureBlob blob(32, 0); in TEST_F() local
95 for (size_t i = 0; i < blob.size(); i++) { in TEST_F()
[all …]
/aosp_15_r20/external/mesa3d/src/broadcom/vulkan/
H A Dv3dv_pipeline_cache.c101 struct blob blob; in v3dv_pipeline_cache_upload_nir() local
102 blob_init(&blob); in v3dv_pipeline_cache_upload_nir()
104 nir_serialize(&blob, nir, false); in v3dv_pipeline_cache_upload_nir()
105 if (blob.out_of_memory) { in v3dv_pipeline_cache_upload_nir()
106 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
117 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
123 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir()
125 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir()
126 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir()
128 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/apex/blobstore/service/service-blobstore/android_common/turbine-combined/
Dservice-blobstore.jar ... .blob abstract annotation com.android.server.blob.BlobAccessMode$AccessType extends java.lang.Object ...
/aosp_15_r20/out/soong/.intermediates/frameworks/base/apex/blobstore/service/service-blobstore/android_common/repackaged-jarjar/turbine/
Dservice-blobstore.jar ... .server.blob com.android.server.blob.BlobStoreSession extends android.app.blob.IBlobStoreSession ...
/aosp_15_r20/external/mesa3d/src/compiler/nir/
H A Dnir_serialize.c42 struct blob *blob; member
72 struct blob_reader *blob; member
125 return read_lookup_object(ctx, blob_read_uint32(ctx->blob)); in read_object()
179 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); in write_constant()
180 blob_write_uint32(ctx->blob, c->num_elements); in write_constant()
191 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); in read_constant()
193 c->num_elements = blob_read_uint32(ctx->blob); in read_constant()
285 blob_write_uint32(ctx->blob, flags.u32); in write_variable()
288 encode_type_to_blob(ctx->blob, var->type); in write_variable()
293 encode_type_to_blob(ctx->blob, var->interface_type); in write_variable()
[all …]
/aosp_15_r20/external/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_disk_cache.c68 struct blob blob; in etna_disk_cache_init_shader_key() local
70 blob_init(&blob); in etna_disk_cache_init_shader_key()
71 nir_serialize(&blob, shader->nir, true); in etna_disk_cache_init_shader_key()
72 _mesa_sha1_update(&ctx, blob.data, blob.size); in etna_disk_cache_init_shader_key()
73 blob_finish(&blob); in etna_disk_cache_init_shader_key()
82 struct blob blob; in compute_variant_key() local
84 blob_init(&blob); in compute_variant_key()
86 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key()
87 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
89 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key()
[all …]
/aosp_15_r20/external/mesa3d/src/nouveau/codegen/
H A Dnv50_ir_serialize.cpp21 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) in nv50_ir_prog_info_serialize() argument
23 blob_write_uint32(blob, info->bin.smemSize); in nv50_ir_prog_info_serialize()
24 blob_write_uint16(blob, info->target); in nv50_ir_prog_info_serialize()
25 blob_write_uint8(blob, info->type); in nv50_ir_prog_info_serialize()
26 blob_write_uint8(blob, info->optLevel); in nv50_ir_prog_info_serialize()
27 blob_write_uint8(blob, info->dbgFlags); in nv50_ir_prog_info_serialize()
28 blob_write_uint8(blob, info->omitLineNum); in nv50_ir_prog_info_serialize()
30 nir_serialize(blob, info->bin.nir, true); in nv50_ir_prog_info_serialize()
33 blob_write_bytes(blob, &info->prop.cp, sizeof(info->prop.cp)); in nv50_ir_prog_info_serialize()
35 blob_write_bytes(blob, &info->io, sizeof(info->io)); in nv50_ir_prog_info_serialize()
[all …]
/aosp_15_r20/external/mesa3d/src/gallium/drivers/asahi/
H A Dagx_disk_cache.c59 write_shader(struct blob *blob, const struct agx_compiled_shader *binary, in write_shader() argument
62 blob_write_uint32(blob, binary->b.binary_size); in write_shader()
65 blob_write_bytes(blob, binary->b.binary, binary->b.binary_size); in write_shader()
68 blob_write_bytes(blob, &binary->b.info, sizeof(binary->b.info)); in write_shader()
69 blob_write_bytes(blob, &binary->uvs, sizeof(binary->uvs)); in write_shader()
70 blob_write_bytes(blob, &binary->attrib_components_read, in write_shader()
72 blob_write_bytes(blob, &binary->epilog_key, sizeof(binary->epilog_key)); in write_shader()
73 blob_write_uint32(blob, binary->push_range_count); in write_shader()
74 blob_write_bytes(blob, binary->push, in write_shader()
78 blob_write_uint32(blob, binary->gs_count_words); in write_shader()
[all …]
/aosp_15_r20/external/mesa3d/src/vulkan/runtime/
H A Dvk_pipeline_cache.c46 struct blob *blob) in vk_raw_data_cache_object_serialize() argument
51 blob_write_bytes(blob, data_obj->data, data_obj->data_size); in vk_raw_data_cache_object_serialize()
60 struct blob_reader *blob) in vk_raw_data_cache_object_deserialize() argument
67 assert(blob->current < blob->end); in vk_raw_data_cache_object_deserialize()
68 size_t data_size = blob->end - blob->current; in vk_raw_data_cache_object_deserialize()
69 const void *data = blob_read_bytes(blob, data_size); in vk_raw_data_cache_object_deserialize()
203 struct blob *blob, uint32_t *data_size) in vk_pipeline_cache_object_serialize() argument
208 assert(blob->size == align64(blob->size, VK_PIPELINE_CACHE_BLOB_ALIGN)); in vk_pipeline_cache_object_serialize()
209 size_t start = blob->size; in vk_pipeline_cache_object_serialize()
217 if (blob->data == NULL && blob->fixed_allocation) { in vk_pipeline_cache_object_serialize()
[all …]
/aosp_15_r20/external/harfbuzz_ng/src/
H A Dhb-blob.cc82 hb_blob_t *blob = hb_blob_create_or_fail (data, length, mode, in hb_blob_create() local
84 return likely (blob) ? blob : hb_blob_get_empty (); in hb_blob_create()
113 hb_blob_t *blob; in hb_blob_create_or_fail() local
116 !(blob = hb_object_create<hb_blob_t> ())) in hb_blob_create_or_fail()
123 blob->data = data; in hb_blob_create_or_fail()
124 blob->length = length; in hb_blob_create_or_fail()
125 blob->mode = mode; in hb_blob_create_or_fail()
127 blob->user_data = user_data; in hb_blob_create_or_fail()
128 blob->destroy = destroy; in hb_blob_create_or_fail()
130 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create_or_fail()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/security/
H A DREADME.md12 [SECURITY.md](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md).
16 | [TFSA-2022-084](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
17 | [TFSA-2022-083](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
18 | [TFSA-2022-082](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
19 | [TFSA-2022-081](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
20 | [TFSA-2022-080](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
21 | [TFSA-2022-079](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
22 | [TFSA-2022-078](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
23 | [TFSA-2022-077](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
24 | [TFSA-2022-076](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory…
[all …]
/aosp_15_r20/external/pigweed/pw_blob_store/
H A Dblob_store_test.cc77 BlobStoreBuffer<kBufferSize> blob( in WriteTestBlock() local
79 EXPECT_EQ(OkStatus(), blob.Init()); in WriteTestBlock()
81 BlobStore::BlobWriterWithBuffer writer(blob); in WriteTestBlock()
86 VerifyBlob(blob, write_size_bytes); in WriteTestBlock()
89 void VerifyBlob(BlobStore& blob, size_t expected_data_size) { in VerifyBlob() argument
90 EXPECT_TRUE(blob.HasData()); in VerifyBlob()
91 BlobStore::BlobReader reader(blob); in VerifyBlob()
109 BlobStoreBuffer<kBufferSize> blob( in ChunkReadTest() local
111 EXPECT_EQ(OkStatus(), blob.Init()); in ChunkReadTest()
114 BlobStore::BlobReader reader1(blob); in ChunkReadTest()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rusqlite/src/blob/
Dmod.rs203 blob: *mut ffi::sqlite3_blob, field
227 let mut blob = ptr::null_mut(); in blob_open() localVariable
239 &mut blob, in blob_open()
244 blob, in blob_open()
258 let rc = unsafe { ffi::sqlite3_blob_reopen(self.blob, row) }; in reopen()
270 unsafe { ffi::sqlite3_blob_bytes(self.blob) } in size()
304 let rc = unsafe { ffi::sqlite3_blob_close(self.blob) }; in close_()
305 self.blob = ptr::null_mut(); in close_()
324 let rc = unsafe { ffi::sqlite3_blob_read(self.blob, buf.as_mut_ptr().cast(), n, self.pos) }; in read()
354 let rc = unsafe { ffi::sqlite3_blob_write(self.blob, buf.as_ptr() as *mut _, n, self.pos) }; in write()
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/apex/blobstore/service/service-blobstore/android_common/turbine/
Dservice-blobstore.jar ... .blob abstract annotation com.android.server.blob.BlobAccessMode$AccessType extends java.lang.Object ...
/aosp_15_r20/external/perfetto/src/trace_processor/importers/ftrace/
H A Dftrace_parser.cc520 base::Status FtraceParser::ParseFtraceStats(ConstBytes blob, in ParseFtraceStats() argument
522 protos::pbzero::FtraceStats::Decoder evt(blob.data, blob.size); in ParseFtraceStats()
1489 ConstBytes blob) { in ParseGenericFtrace() argument
1490 protos::pbzero::GenericFtraceEvent::Decoder evt(blob.data, blob.size); in ParseGenericFtrace()
1520 ConstBytes blob, in ParseTypedFtraceToRaw() argument
1525 ProtoDecoder decoder(blob.data, blob.size); in ParseTypedFtraceToRaw()
1633 ConstBytes blob) { in ParseSchedSwitch() argument
1634 protos::pbzero::SchedSwitchFtraceEvent::Decoder ss(blob.data, blob.size); in ParseSchedSwitch()
1644 ConstBytes blob) { in ParseKprobe() argument
1645 protos::pbzero::KprobeEvent::Decoder kp(blob.data, blob.size); in ParseKprobe()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/
DCustomAudienceBlobTest.java199 CustomAudienceBlob blob = new CustomAudienceBlob(true, true, true, 12L, true, false); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() local
219 blob.overrideFromJSONObject(jsonObjectWithAuctionServerRequestFlags); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
221 assertEquals(blob.getOwner(), VALID_OWNER); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
222 assertEquals(blob.getBuyer(), VALID_BUYER_1); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
223 assertEquals(blob.getName(), VALID_NAME); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
224 assertEquals(blob.getActivationTime(), VALID_ACTIVATION_TIME); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
225 assertEquals(blob.getExpirationTime(), VALID_EXPIRATION_TIME); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
227 blob.getDailyUpdateUri(), in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
229 assertEquals(blob.getBiddingLogicUri(), getValidBiddingLogicUriByBuyer(VALID_BUYER_1)); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
230 assertEquals(blob.getUserBiddingSignals(), VALID_USER_BIDDING_SIGNALS); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
[all …]
/aosp_15_r20/external/mesa3d/src/intel/vulkan_hasvk/
H A Danv_pipeline_cache.c36 struct blob *blob);
41 struct blob_reader *blob);
170 struct blob *blob) in anv_shader_bin_serialize() argument
175 blob_write_uint32(blob, shader->stage); in anv_shader_bin_serialize()
177 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_serialize()
178 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_serialize()
180 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_serialize()
181 blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_serialize()
182 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_serialize()
186 blob_write_uint32(blob, shader->num_stats); in anv_shader_bin_serialize()
[all …]

12345678910>>...212