Home
last modified time | relevance | path

Searched refs:string_pool (Results 1 – 25 of 216) sorted by relevance

123456789

/aosp_15_r20/external/rust/android-crates-io/crates/libbpf-rs/src/
Dskeleton.rs119 string_pool: &mut Vec<CString>, in build_maps()
138 (*current_map).name = str_to_cstring_and_pool(&map.name, string_pool) in build_maps()
155 string_pool: &mut Vec<CString>, in build_progs()
173 (*current_prog).name = str_to_cstring_and_pool(&prog.name, string_pool) in build_progs()
186 let mut string_pool = Vec::new(); in build() localVariable
194 s.name = str_to_cstring_and_pool(n, &mut string_pool)?; in build()
204 let maps_layout = Self::build_maps(&mut self.maps, &mut s, &mut string_pool); in build()
205 let progs_layout = Self::build_progs(&mut self.progs, &mut s, &mut string_pool); in build()
214 _string_pool: string_pool, in build()
/aosp_15_r20/external/flatbuffers/java/com/google/flatbuffers/
H A DFlatBufferBuilder.java53 Map<String, Integer> string_pool; // map used to cache shared strings. field in FlatBufferBuilder
167 if (string_pool != null) { in init()
168 string_pool.clear(); in init()
247 if (string_pool != null) { in clear()
248 string_pool.clear(); in clear()
577 if (string_pool == null) { in createSharedString()
578 string_pool = new HashMap<>(); in createSharedString()
580 string_pool.put(s, offset); in createSharedString()
585 Integer offset = string_pool.get(s); in createSharedString()
589 string_pool.put(s, offset); in createSharedString()
/aosp_15_r20/prebuilts/android-emulator/linux-x86_64/include/flatbuffers/
H A Dflatbuffer_builder.h95 string_pool(nullptr) { in buf_()
109 string_pool(nullptr) { in FlatBufferBuilder()
135 swap(string_pool, other.string_pool); in Swap()
139 if (string_pool) delete string_pool; in ~FlatBufferBuilder() local
155 if (string_pool) string_pool->clear(); in Clear()
525 if (!string_pool) in CreateSharedString()
526 string_pool = new StringOffsetMap(StringOffsetCompare(buf_)); in CreateSharedString()
531 auto it = string_pool->find(off); in CreateSharedString()
533 if (it != string_pool->end()) { in CreateSharedString()
539 string_pool->insert(off); in CreateSharedString()
[all …]
/aosp_15_r20/external/flatbuffers/include/flatbuffers/
H A Dflatbuffer_builder.h95 string_pool(nullptr) { in buf_()
109 string_pool(nullptr) { in FlatBufferBuilder()
135 swap(string_pool, other.string_pool); in Swap()
139 if (string_pool) delete string_pool; in ~FlatBufferBuilder() local
155 if (string_pool) string_pool->clear(); in Clear()
525 if (!string_pool) in CreateSharedString()
526 string_pool = new StringOffsetMap(StringOffsetCompare(buf_)); in CreateSharedString()
531 auto it = string_pool->find(off); in CreateSharedString()
533 if (it != string_pool->end()) { in CreateSharedString()
539 string_pool->insert(off); in CreateSharedString()
[all …]
/aosp_15_r20/frameworks/base/libs/androidfw/
H A DIdmap.cpp261 std::unique_ptr<ResStringPool>&& string_pool, in LoadedIdmap() argument
270 string_pool_(std::move(string_pool)), in LoadedIdmap()
359 std::optional<std::string_view> string_pool = ReadString(&data_ptr, &data_size, "string pool"); in Load() local
360 if (!string_pool) { in Load()
364 if (!string_pool->empty()) { in Load()
365 const status_t err = idmap_string_pool->setTo(string_pool->data(), string_pool->size()); in Load()
/aosp_15_r20/frameworks/base/cmds/idmap2/tests/
H A DFabricatedOverlayTests.cpp78 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST() local
86 string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
111 ASSERT_EQ(std::string("foobar"), string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
168 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST() local
183 ASSERT_EQ(std::string("foobar"), string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
/aosp_15_r20/frameworks/base/tools/aapt2/link/
H A DTableMerger.cpp287 dst_config_value, src_config_value.get(), &main_table_->string_pool); in DoMerge()
300 CloningValueTransformer cloner(&main_table_->string_pool); in DoMerge()
332 CloningValueTransformer cloner(&main_table_->string_pool); in DoMerge()
359 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
367 CloningValueTransformer cloner(&main_table_->string_pool); in CloneAndMangleFile()
375 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
/aosp_15_r20/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp62 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
68 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
78 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
86 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
144 android::StringPool* ResourceTableBuilder::string_pool() { in string_pool() function in aapt::test::ResourceTableBuilder
145 return &table_->string_pool; in string_pool()
/aosp_15_r20/external/perfetto/src/trace_processor/perfetto_sql/intrinsics/table_functions/
H A Dwinscope_proto_to_args_with_defaults.cc124 StringPool* string_pool) { in InsertRows() argument
143 Delegate delegate(string_pool, base64_proto_id, inflated_args_table); in InsertRows()
152 StringPool* string_pool, in WinscopeProtoToArgsWithDefaults() argument
155 : string_pool_(string_pool), engine_(engine), context_(context) {} in WinscopeProtoToArgsWithDefaults()
/aosp_15_r20/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator_test.cpp242 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
243 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
249 expected->values = {util::make_unique<String>(table->string_pool.MakeRef("[žéŕö one]")), in TEST()
250 util::make_unique<String>(table->string_pool.MakeRef("[öñé one]"))}; in TEST()
273 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
277 auto string = util::make_unique<String>(table->string_pool.MakeRef(original_style.str)); in TEST()
347 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
348 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
407 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
/aosp_15_r20/external/perfetto/src/trace_processor/
H A Dexport_json.cc1192 storage_->string_pool().GetId("track_event.legacy_event"); in ExportRawEvents()
1194 storage_->string_pool().GetId("chrome_event.legacy_system_trace"); in ExportRawEvents()
1196 storage_->string_pool().GetId("chrome_event.legacy_user_trace"); in ExportRawEvents()
1198 storage_->string_pool().GetId("chrome_event.metadata"); in ExportRawEvents()
1450 auto id = *storage_->string_pool().GetId(metadata::kNames[i]); in ExportMetadata()
1469 storage_->string_pool().Get(*it.str_value()).c_str()); in ExportMetadata()
1475 storage_->string_pool().Get(*it.str_value()).c_str()); in ExportMetadata()
1489 "labels", storage_->string_pool().Get(*it.str_value()).c_str()); in ExportMetadata()
1494 "stories", storage_->string_pool().Get(*it.str_value()).c_str()); in ExportMetadata()
1509 storage_->string_pool().Get(*it.str_value()).c_str()); in ExportMetadata()
[all …]
/aosp_15_r20/out/soong/.intermediates/external/perfetto/perfetto_src_trace_processor_tables_tables_python/gen/src/trace_processor/tables/
Dwinscope_tables_py.h312 new column::StringStorage(string_pool(), &type_.vector())), in ProtoLogTable()
319 new column::StringStorage(string_pool(), &level_.vector())), in ProtoLogTable()
321 new column::StringStorage(string_pool(), &tag_.vector())), in ProtoLogTable()
323 new column::StringStorage(string_pool(), &message_.vector())), in ProtoLogTable()
325 new column::StringStorage(string_pool(), &stacktrace_.vector())), in ProtoLogTable()
327 new column::StringStorage(string_pool(), &location_.vector())) in ProtoLogTable()
449 type_.Append(string_pool()->InternString(row.type())); in Insert()
763 new column::StringStorage(string_pool(), &type_.vector())), in InputMethodClientsTable()
775 new column::StringStorage(string_pool(), &base64_proto_.vector())), in InputMethodClientsTable()
883 type_.Append(string_pool()->InternString(row.type())); in Insert()
[all …]
Dv8_tables_py.h356 new column::StringStorage(string_pool(), &type_.vector())), in V8IsolateTable()
542 type_.Append(string_pool()->InternString(row.type())); in Insert()
901 new column::StringStorage(string_pool(), &type_.vector())), in V8JsScriptTable()
913 new column::StringStorage(string_pool(), &script_type_.vector())), in V8JsScriptTable()
915 new column::StringStorage(string_pool(), &name_.vector())), in V8JsScriptTable()
917 new column::StringStorage(string_pool(), &source_.vector())) in V8JsScriptTable()
1029 type_.Append(string_pool()->InternString(row.type())); in Insert()
1333 new column::StringStorage(string_pool(), &type_.vector())), in V8WasmScriptTable()
1345 new column::StringStorage(string_pool(), &url_.vector())), in V8WasmScriptTable()
1347 new column::StringStorage(string_pool(), &source_.vector())) in V8WasmScriptTable()
[all …]
Dprofiler_tables_py.h334 new column::StringStorage(string_pool(), &type_.vector())), in StackProfileMappingTable()
336 new column::StringStorage(string_pool(), &build_id_.vector())), in StackProfileMappingTable()
363 new column::StringStorage(string_pool(), &name_.vector())) in StackProfileMappingTable()
495 type_.Append(string_pool()->InternString(row.type())); in Insert()
841 new column::StringStorage(string_pool(), &type_.vector())), in StackProfileFrameTable()
843 new column::StringStorage(string_pool(), &name_.vector())), in StackProfileFrameTable()
860 new column::StringStorage(string_pool(), &deobfuscated_name_.vector())) in StackProfileFrameTable()
973 type_.Append(string_pool()->InternString(row.type())); in Insert()
1255 new column::StringStorage(string_pool(), &type_.vector())), in StackProfileCallsiteTable()
1363 type_.Append(string_pool()->InternString(row.type())); in Insert()
[all …]
Dmetadata_tables_py.h202 new column::StringStorage(string_pool(), &type_.vector())), in MachineTable()
279 type_.Append(string_pool()->InternString(row.type())); in Insert()
675 new column::StringStorage(string_pool(), &type_.vector())), in ProcessTable()
682 new column::StringStorage(string_pool(), &name_.vector())), in ProcessTable()
709 new column::StringStorage(string_pool(), &cmdline_.vector())), in ProcessTable()
887 type_.Append(string_pool()->InternString(row.type())); in Insert()
1312 new column::StringStorage(string_pool(), &type_.vector())), in ThreadTable()
1319 new column::StringStorage(string_pool(), &name_.vector())), in ThreadTable()
1481 type_.Append(string_pool()->InternString(row.type())); in Insert()
1875 new column::StringStorage(string_pool(), &type_.vector())), in ArgTable()
[all …]
Dtrace_proto_tables_py.h268 new column::StringStorage(string_pool(), &type_.vector())), in ExperimentalProtoPathTable()
275 new column::StringStorage(string_pool(), &field_type_.vector())), in ExperimentalProtoPathTable()
277 new column::StringStorage(string_pool(), &field_name_.vector())), in ExperimentalProtoPathTable()
386 type_.Append(string_pool()->InternString(row.type())); in Insert()
703 new column::StringStorage(string_pool(), &type_.vector())), in ExperimentalProtoContentTable()
705 new column::StringStorage(string_pool(), &path_.vector())), in ExperimentalProtoContentTable()
837 type_.Append(string_pool()->InternString(row.type())); in Insert()
/aosp_15_r20/frameworks/base/cmds/idmap2/libidmap2/
H A DResourceContainer.cpp107 auto string_pool = am->GetStringPoolForCookie(value->cookie); in OpenXmlParser() local
108 auto file = string_pool->string8ObjectAt(value->data); in OpenXmlParser()
238 const auto& string_pool = parser->get_strings(); in CreateResourceMapping() local
239 const uint32_t string_pool_data_length = string_pool.bytes(); in CreateResourceMapping()
247 memcpy(overlay_data.string_pool_data->data.get(), string_pool.data().unsafe_ptr(), in CreateResourceMapping()
/aosp_15_r20/external/perfetto/src/trace_processor/util/
H A Dprofile_builder.cc68 const StringPool* string_pool) in StringTable() argument
69 : string_pool_(*string_pool), result_(*result) { in StringTable()
144 const StringPool& string_pool, in Mapping() argument
151 filename_str(string_pool.Get(mapping.name()).ToStdString()) {} in Mapping()
238 string_table_(&result_, &context->storage->string_pool()), in GProfileBuilder()
608 Mapping(mapping_ref, context_.storage->string_pool(), string_table_)); in WriteMappingIfNeeded()
/aosp_15_r20/prebuilts/android-emulator/darwin-x86_64/include/flatbuffers/
H A Dflatbuffers.h1088 string_pool(nullptr) {
1107 string_pool(nullptr) {
1139 swap(string_pool, other.string_pool);
1143 if (string_pool) delete string_pool;
1159 if (string_pool) string_pool->clear();
1515 if (!string_pool)
1516 string_pool = new StringOffsetMap(StringOffsetCompare(buf_));
1521 auto it = string_pool->find(off);
1523 if (it != string_pool->end()) {
1529 string_pool->insert(off);
[all …]
/aosp_15_r20/system/chre/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h1147 string_pool = nullptr;
1169 string_pool = nullptr;
1204 swap(string_pool, other.string_pool);
1210 if (string_pool) delete string_pool;
1228 if (string_pool) string_pool->clear();
1586 if (!string_pool)
1587 string_pool = new StringOffsetMap(StringOffsetCompare(buf_));
1592 auto it = string_pool->find(off);
1594 if (it != string_pool->end()) {
1600 string_pool->insert(off);
[all …]
/aosp_15_r20/external/grpc-grpc/test/core/xds/
H A Dxds_client_test_peer.h39 std::set<std::string> string_pool; in TestDumpClientConfig() local
41 xds_client_->DumpClientConfig(&string_pool, arena.ptr(), client_config); in TestDumpClientConfig()
/aosp_15_r20/external/harfbuzz_ng/src/OT/name/
H A Dname.hh462 const void *string_pool = (this+stringOffset).arrayZ; in sanitize_records() local
463 return_trace (nameRecordZ.sanitize (c, count, string_pool)); in sanitize_records()
555 const hb_bytes_t string_pool (pool, pool_len); in get_name() local
556 return string_pool.sub_array (record.offset, record.length); in get_name()
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/android_arm64_armv8-2a_cortex-a55_static_cfi/gen/proto/frameworks/base/core/proto/android/server/
Dnotificationhistory.pb.h1103 …const ::com::android::server::notification::NotificationHistoryProto_StringPool& string_pool() con… in Swap()
1106 …tring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
1112 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
2368 …:notification::NotificationHistoryProto_StringPool& NotificationHistoryProto::string_pool() const { in string_pool() function
2373 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in unsafe_arena_set_allocated_string_pool() argument
2377 _impl_.string_pool_ = string_pool; in unsafe_arena_set_allocated_string_pool()
2378 if (string_pool) { in unsafe_arena_set_allocated_string_pool()
2420 …ring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in set_allocated_string_pool() argument
2425 if (string_pool) { in set_allocated_string_pool()
2427 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(string_pool); in set_allocated_string_pool()
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/linux_glibc_x86_64_static/gen/proto/frameworks/base/core/proto/android/server/
Dnotificationhistory.pb.h1186 …const ::com::android::server::notification::NotificationHistoryProto_StringPool& string_pool() con… in Swap()
1189 …tring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
1195 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
2451 …:notification::NotificationHistoryProto_StringPool& NotificationHistoryProto::string_pool() const { in string_pool() function
2456 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in unsafe_arena_set_allocated_string_pool() argument
2460 _impl_.string_pool_ = string_pool; in unsafe_arena_set_allocated_string_pool()
2461 if (string_pool) { in unsafe_arena_set_allocated_string_pool()
2503 …ring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in set_allocated_string_pool() argument
2508 if (string_pool) { in set_allocated_string_pool()
2510 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(string_pool); in set_allocated_string_pool()
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/android_arm64_armv8-2a_cortex-a55_static/gen/proto/frameworks/base/core/proto/android/server/
Dnotificationhistory.pb.h1103 …const ::com::android::server::notification::NotificationHistoryProto_StringPool& string_pool() con… in Swap()
1106 …tring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
1112 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool); in Swap()
2368 …:notification::NotificationHistoryProto_StringPool& NotificationHistoryProto::string_pool() const { in string_pool() function
2373 ::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in unsafe_arena_set_allocated_string_pool() argument
2377 _impl_.string_pool_ = string_pool; in unsafe_arena_set_allocated_string_pool()
2378 if (string_pool) { in unsafe_arena_set_allocated_string_pool()
2420 …ring_pool(::com::android::server::notification::NotificationHistoryProto_StringPool* string_pool) { in set_allocated_string_pool() argument
2425 if (string_pool) { in set_allocated_string_pool()
2427 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(string_pool); in set_allocated_string_pool()
[all …]

123456789