/frameworks/base/tools/aapt2/ |
SdkConstants_test.cpp | 24 EXPECT_EQ(1, FindAttributeSdkLevel(ResourceId(0x01010000))); 28 EXPECT_EQ(0, FindAttributeSdkLevel(ResourceId(0x7f010345)));
|
Resource.h | 136 struct ResourceId { 139 ResourceId(); 140 ResourceId(const ResourceId& rhs); 141 ResourceId(uint32_t res_id); // NOLINT(implicit) 142 ResourceId(uint8_t p, uint8_t t, uint16_t e); 206 // ResourceId implementation. 209 inline ResourceId::ResourceId() : id(0) {} 211 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id) { [all...] |
SdkConstants.h | 58 ApiVersion FindAttributeSdkLevel(const ResourceId& id);
|
/frameworks/base/tools/aapt2/compile/ |
IdAssigner.h | 34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map) 40 const std::unordered_map<ResourceName, ResourceId>* assigned_id_map_ = nullptr;
|
IdAssigner.cpp | 34 static bool AssignId(IDiagnostics* diag, const ResourceId& id, 48 const ResourceId existing_id(pkg->id.value(), type->id ? type->id.value() : 0, 56 std::map<ResourceId, ResourceName> assigned_ids; 69 const ResourceId assigned_id = iter->second; 81 ResourceId resource_id(package->id.value(), type->id.value(), 102 const ResourceId& pre_assigned_id = stable_id_entry.second; 123 // Build a half filled ResourceId object, which will be used to find the 128 ResourceId resource_id(package->id.value(), 0, 0); 131 // Find the closest matching ResourceId that is <= the one with only the 169 resource_id = ResourceId(package->id.value(), type->id.value(), 0) [all...] |
/frameworks/base/tools/aapt2/link/ |
XmlReferenceLinker_test.cpp | 34 .AddPublicSymbol("android:attr/layout_width", ResourceId(0x01010000), 40 .AddPublicSymbol("android:attr/background", ResourceId(0x01010001), 44 .AddPublicSymbol("android:attr/attr", ResourceId(0x01010002), 46 .AddPublicSymbol("android:attr/text", ResourceId(0x01010003), 52 .AddPublicSymbol("android:attr/colorAccent", ResourceId(0x01010435), 56 .AddSymbol("android:color/hidden", ResourceId(0x01020001)) 58 .AddPublicSymbol("android:id/id", ResourceId(0x01030000)) 59 .AddSymbol("com.app.test:id/id", ResourceId(0x7f030000)) 60 .AddSymbol("com.app.test:color/green", ResourceId(0x7f020000)) 61 .AddSymbol("com.app.test:color/red", ResourceId(0x7f020001) [all...] |
ReferenceLinker_test.cpp | 30 .AddReference("com.app.test:string/foo", ResourceId(0x7f020000), 34 .AddReference("com.app.test:string/bar", ResourceId(0x7f020001), 37 .AddReference("com.app.test:string/baz", ResourceId(0x7f020002), 50 .AddPublicSymbol("android:string/ok", ResourceId(0x01040034)) 60 EXPECT_EQ(ResourceId(0x7f020001), ref->id.value()); 65 EXPECT_EQ(ResourceId(0x7f020002), ref->id.value()); 70 EXPECT_EQ(ResourceId(0x01040034), ref->id.value()); 103 ResourceId(0x01060000)) 104 .AddPublicSymbol("android:attr/foo", ResourceId(0x01010001), 108 .AddPublicSymbol("android:attr/bar", ResourceId(0x01010002) [all...] |
AutoVersioner_test.cpp | 58 ResourceId(0x7f020000), 60 .AddItem("android:attr/onClick", ResourceId(0x0101026f), 62 .AddItem("android:attr/paddingStart", ResourceId(0x010103b3), 65 ResourceId(0x01010364), util::make_unique<Id>()) 66 .AddItem("android:attr/colorAccent", ResourceId(0x01010435), 71 ResourceId(0x7f020000), 73 .AddItem("android:attr/paddingEnd", ResourceId(0x010103b4),
|
/frameworks/base/tools/aapt2/optimize/ |
ResourceDeduper_test.cpp | 39 .AddString("android:string/dedupe", ResourceId{}, default_config, "dedupe") 40 .AddString("android:string/dedupe", ResourceId{}, ldrtl_config, "dedupe") 41 .AddString("android:string/dedupe", ResourceId{}, land_config, "dedupe") 43 .AddString("android:string/dedupe2", ResourceId{}, default_config, "dedupe") 44 .AddString("android:string/dedupe2", ResourceId{}, ldrtl_config, "dedupe") 45 .AddString("android:string/dedupe2", ResourceId{}, ldrtl_v21_config, "keep") 46 .AddString("android:string/dedupe2", ResourceId{}, land_config, "dedupe") 48 .AddString("android:string/dedupe3", ResourceId{}, default_config, "dedupe") 49 .AddString("android:string/dedupe3", ResourceId{}, en_config, "dedupe") 50 .AddString("android:string/dedupe3", ResourceId{}, en_v21_config, "dedupe" [all...] |
/frameworks/base/core/java/android/content/res/ |
ResourceId.java | 24 public final class ResourceId {
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 69 typedef uint64_t ResourceId; 70 static const ResourceId InvalidId = ~0U; 72 ResourceId getNext() { 74 ResourceId I = FreeIds.back(); 80 void release(ResourceId I) { FreeIds.push_back(I); } 83 ResourceId NextId = 0; 84 std::vector<ResourceId> FreeIds; 132 void(ResourceIdMgr::ResourceId AllocatorID)> 136 void(ResourceIdMgr::ResourceId StubOwnerID)> 144 void(ResourceIdMgr::ResourceId AllocatorID) [all...] |
/frameworks/base/tools/aapt2/process/ |
SymbolTable.h | 45 inline android::hash_t hash_type(const ResourceId& id) { 58 explicit Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr = {}, 68 Maybe<ResourceId> id; 93 const Symbol* FindById(const ResourceId& id); 109 android::LruCache<ResourceId, std::shared_ptr<Symbol>> id_cache_; 126 ResourceId id, const std::vector<std::unique_ptr<ISymbolSource>>& sources) = 0; 141 ResourceId id, const std::vector<std::unique_ptr<ISymbolSource>>& sources) override; 155 virtual std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) = 0; 179 std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) override { 198 std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) override [all...] |
SymbolTable_test.cpp | 26 .AddSimple("android:id/foo", ResourceId(0x01020000)) 28 .AddValue("android:attr/foo", ResourceId(0x01010000), 45 .AddValue("android:^attr-private/foo", ResourceId(0x01010000),
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ExecutionEngine/Orc/ |
OrcRemoteTargetRPCAPI.h | 90 typedef uint64_t ResourceId; 91 static const ResourceId InvalidId = ~0U; 93 ResourceId getNext() { 95 ResourceId I = FreeIds.back(); 101 void release(ResourceId I) { FreeIds.push_back(I); } 104 ResourceId NextId = 0; 105 std::vector<ResourceId> FreeIds; 134 void(ResourceIdMgr::ResourceId AllocatorID)> { 141 void(ResourceIdMgr::ResourceId StubOwnerID)> { 155 void(ResourceIdMgr::ResourceId AllocatorID)> [all...] |
/frameworks/base/tools/aapt2/test/ |
Builders.h | 39 ResourceTableBuilder& AddSimple(const android::StringPiece& name, const ResourceId& id = {}); 41 const ResourceId& id = {}); 44 ResourceTableBuilder& AddReference(const android::StringPiece& name, const ResourceId& id, 48 ResourceTableBuilder& AddString(const android::StringPiece& name, const ResourceId& id, 50 ResourceTableBuilder& AddString(const android::StringPiece& name, const ResourceId& id, 54 ResourceTableBuilder& AddFileReference(const android::StringPiece& name, const ResourceId& id, 60 ResourceTableBuilder& AddValue(const android::StringPiece& name, const ResourceId& id, 63 const ResourceId& id, std::unique_ptr<Value> value); 64 ResourceTableBuilder& SetSymbolState(const android::StringPiece& name, const ResourceId& id, 77 const Maybe<ResourceId>& id = {}) [all...] |
Builders.cpp | 40 const ResourceId& id) { 46 const ResourceId& id) { 56 const ResourceId& id, 66 ResourceTableBuilder& ResourceTableBuilder::AddString(const StringPiece& name, const ResourceId& id, 71 ResourceTableBuilder& ResourceTableBuilder::AddString(const StringPiece& name, const ResourceId& id, 83 const ResourceId& id, 100 ResourceTableBuilder& ResourceTableBuilder::AddValue(const StringPiece& name, const ResourceId& id, 107 const ResourceId& id, 116 const ResourceId& id, SymbolState state, 134 std::unique_ptr<Reference> BuildReference(const StringPiece& ref, const Maybe<ResourceId>& id) [all...] |
/frameworks/base/tools/aapt2/flatten/ |
TableFlattener_test.cpp | 85 const ResourceId& expected_id, 152 .AddSimple("com.app.test:id/one", ResourceId(0x7f020000)) 153 .AddSimple("com.app.test:id/two", ResourceId(0x7f020001)) 154 .AddValue("com.app.test:id/three", ResourceId(0x7f020002), 156 ResourceId(0x7f020000))) 157 .AddValue("com.app.test:integer/one", ResourceId(0x7f030000), 161 ResourceId(0x7f030000), 164 .AddString("com.app.test:string/test", ResourceId(0x7f040000), "foo") 165 .AddString("com.app.test:layout/bar", ResourceId(0x7f050000), 172 EXPECT_TRUE(Exists(&res_table, "com.app.test:id/one", ResourceId(0x7f020000) [all...] |
/frameworks/base/tools/aapt2/java/ |
JavaClassGenerator_test.cpp | 35 .AddSimple("android:id/class", ResourceId(0x01020000)) 54 .AddSimple("android:id/hey-man", ResourceId(0x01020000)) 55 .AddValue("android:attr/cool.attr", ResourceId(0x01010000), 58 "android:styleable/hey.dude", ResourceId(0x01030000), 60 .AddItem("android:attr/cool.attr", ResourceId(0x01010000)) 91 .AddSimple("android:id/one", ResourceId(0x01020000)) 92 .AddSimple("android:id/com.foo$two", ResourceId(0x01020001)) 117 .AddSimple("android:attr/two", ResourceId(0x01010001)) 118 .AddSimple("android:^attr-private/one", ResourceId(0x01010000)) 142 .AddSimple("android:id/one", ResourceId(0x01020000) [all...] |