Home
last modified time | relevance | path

Searched refs:Obfuscator (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp37 Obfuscator::Obfuscator(OptimizeOptions& optimizeOptions) in Obfuscator() function in aapt::Obfuscator
43 std::string Obfuscator::ShortenFileName(android::StringPiece file_path, int output_length) { in ShortenFileName()
108 bool Obfuscator::HandleShortenFilePaths(ResourceTable* table, in HandleShortenFilePaths()
153 void Obfuscator::ObfuscateResourceName( in ObfuscateResourceName()
185 auto onObfuscate = [&entryResId, &id_resource_map](const Obfuscator::Result obfuscatedResult, in HandleCollapseKeyStringPool()
187 if (obfuscatedResult == Obfuscator::Result::Obfuscated) { in HandleCollapseKeyStringPool()
207 Obfuscator::ObfuscateResourceName(collapse_key_string_pool, name_collapse_exemptions, in HandleCollapseKeyStringPool()
216 bool Obfuscator::Consume(IAaptContext* context, ResourceTable* table) { in Consume()
226 bool Obfuscator::WriteObfuscationMap(const std::string& file_path) const { in WriteObfuscationMap()
257 bool Obfuscator::IsEnabled() const { in IsEnabled()
DObfuscator.h36 class Obfuscator : public IResourceTableConsumer {
38 explicit Obfuscator(OptimizeOptions& optimizeOptions);
67 DISALLOW_COPY_AND_ASSIGN(Obfuscator);
DObfuscator_test.cpp54 class FakeObfuscator : public Obfuscator {
58 : Obfuscator(optimize_options), shortened_name_map_(shortened_name_map) { in FakeObfuscator()
83 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
120 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
142 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
179 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
272 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table1.get())); in TEST()
294 ASSERT_TRUE(Obfuscator(actualOptimizerOptions).Consume(context.get(), table2.get())); in TEST()
333 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
346 Obfuscator obfuscatorWithDefaultOption(options); in TEST()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp477 auto onObfuscate = [this, &local_key_index, &entry](Obfuscator::Result obfuscatedResult, in FlattenTypes()
479 if (obfuscatedResult == Obfuscator::Result::Keep_ExemptionList) { in FlattenTypes()
481 } else if (obfuscatedResult == Obfuscator::Result::Keep_Overlayable) { in FlattenTypes()
495 (uint32_t)key_pool_.MakeRef(Obfuscator::kObfuscatedResourceName).index(); in FlattenTypes()
499 Obfuscator::ObfuscateResourceName(collapse_key_stringpool_, name_collapse_exemptions_, in FlattenTypes()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp379 auto onObfuscate = [pb_entry, &entry](Obfuscator::Result obfuscatedResult, in SerializeTableToPb()
381 pb_entry->set_name(obfuscatedResult == Obfuscator::Result::Obfuscated in SerializeTableToPb()
382 ? Obfuscator::kObfuscatedResourceName in SerializeTableToPb()
386 Obfuscator::ObfuscateResourceName(options.collapse_key_stringpool, in SerializeTableToPb()
/frameworks/base/tools/aapt2/
DAndroid.bp125 "optimize/Obfuscator.cpp",
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp158 Obfuscator obfuscator(options_); in Run()