Home
last modified time | relevance | path

Searched refs:ResourceEntry (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DResourceEntryTest.java35 ResourceEntry resourceEntry = in toBundle_getBundleWithCorrectData()
36 new ResourceEntry( in toBundle_getBundleWithCorrectData()
42 assertThat(result.getString(ResourceEntry.KEY_PACKAGE_NAME)).isEqualTo(TEST_PACKAGE_NAME); in toBundle_getBundleWithCorrectData()
43 assertThat(result.getString(ResourceEntry.KEY_RESOURCE_NAME)) in toBundle_getBundleWithCorrectData()
45 assertThat(result.getInt(ResourceEntry.KEY_RESOURCE_ID)).isEqualTo(TEST_RESOURCE_ID); in toBundle_getBundleWithCorrectData()
51 source.putString(ResourceEntry.KEY_PACKAGE_NAME, TEST_PACKAGE_NAME); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
53 ResourceEntry.KEY_RESOURCE_NAME, PartnerConfigKey.KEY_TOOLBAR_BG_COLOR); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
54 source.putInt(ResourceEntry.KEY_RESOURCE_ID, TEST_RESOURCE_ID); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
56 ResourceEntry result = ResourceEntry.fromBundle(source); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
65 assertThat(ResourceEntry.fromBundle(null)).isNull(); in fromNullBundle_returnNull()
[all …]
DFakeOverrideContentProvider.java50 public FakeOverrideContentProvider injectResourceEntry(ResourceEntry resourceEntry) { in injectResourceEntry()
72 contentProvider.injectResourceEntry(new ResourceEntry( in installDefaultProvider()
85 contentProvider.injectResourceEntry(new ResourceEntry( in installDefaultProvider()
98 contentProvider.injectResourceEntry(new ResourceEntry( in installDefaultProvider()
111 contentProvider.injectResourceEntry(new ResourceEntry( in installDefaultProvider()
124 contentProvider.injectResourceEntry(new ResourceEntry( in installDefaultProvider()
DPartnerConfigHelperTest.java57 private List<ResourceEntry> mResourceEntries;
64 for (ResourceEntry entry : mResourceEntries) { in setUp()
178 private List<ResourceEntry> prepareFakeData() { in prepareFakeData()
195 new ResourceEntry( in prepareFakeData()
202 new ResourceEntry( in prepareFakeData()
209 new ResourceEntry( in prepareFakeData()
216 new ResourceEntry( in prepareFakeData()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java64 final ResourceEntry entry = getResourceEntry(context, id); in getDrawable()
74 final ResourceEntry entry = getResourceEntry(context, id); in getString()
82 final ResourceEntry resourceEntry = getResourceEntry(context, id); in getColor()
91 final ResourceEntry entry = getResourceEntry(context, id); in getText()
105 public static ResourceEntry getResourceEntry(Context context, @AnyRes int id) { in getResourceEntry()
113 return new ResourceEntry(partner.resources, partnerId, true); in getResourceEntry()
116 return new ResourceEntry(context.getResources(), id, false); in getResourceEntry()
119 public static class ResourceEntry { class in Partner
124 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry() method in Partner.ResourceEntry
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DResourceEntry.java30 public final class ResourceEntry { class
44 public static ResourceEntry fromBundle(@Nullable Bundle bundle) { in fromBundle()
55 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle()
58 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() method in ResourceEntry
DPartnerConfigHelper.java91 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColor()
130 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColorStateList()
174 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getDrawable()
217 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getString()
263 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getDimension()
299 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getBoolean()
340 private ResourceEntry getResourceEntryFromKey(String resourceName) { in getResourceEntryFromKey()
344 return ResourceEntry.fromBundle(mResultBundle.getBundle(resourceName)); in getResourceEntryFromKey()
/frameworks/base/tools/aapt2/
DResourceTable.h116 class ResourceEntry {
139 explicit ResourceEntry(const android::StringPiece& name) : name(name.to_string()) {} in ResourceEntry() function
164 DISALLOW_COPY_AND_ASSIGN(ResourceEntry);
177 std::vector<std::unique_ptr<ResourceEntry>> entries;
181 ResourceEntry* CreateEntry(const android::StringPiece& name);
182 ResourceEntry* FindEntry(const android::StringPiece& name) const;
183 ResourceEntry* FindOrCreateEntry(const android::StringPiece& name);
309 ResourceEntry* entry;
DResourceTable.cpp134 ResourceEntry* ResourceTableType::CreateEntry(const android::StringPiece& name) { in CreateEntry()
135 return FindElementsRunAction<ResourceEntry>(name, entries, [&](bool found, auto& iter) { in CreateEntry()
136 return entries.emplace(iter, new ResourceEntry(name))->get(); in CreateEntry()
140 ResourceEntry* ResourceTableType::FindEntry(const android::StringPiece& name) const { in FindEntry()
141 return FindElementsRunAction<ResourceEntry>( in FindEntry()
145 ResourceEntry* ResourceTableType::FindOrCreateEntry(const android::StringPiece& name) { in FindOrCreateEntry()
146 return FindElementsRunAction<ResourceEntry>(name, entries, [&](bool found, auto& iter) { in FindOrCreateEntry()
147 return found ? iter->get() : entries.emplace(iter, new ResourceEntry(name))->get(); in FindOrCreateEntry()
151 ResourceConfigValue* ResourceEntry::FindValue(const ConfigDescription& config, in FindValue()
164 const ResourceConfigValue* ResourceEntry::FindValue(const android::ConfigDescription& config, in FindValue()
[all …]
/frameworks/base/tools/aapt2/optimize/
DResourceDeduper.cpp46 explicit DominatedKeyValueRemover(IAaptContext* context, ResourceEntry* entry) in DominatedKeyValueRemover()
94 ResourceEntry* entry_;
97 static void DedupeEntry(IAaptContext* context, ResourceEntry* entry) { in DedupeEntry()
DVersionCollapser.cpp73 static void CollapseVersions(int min_sdk, ResourceEntry* entry) { in CollapseVersions()
/frameworks/base/tools/aapt2/link/
DLinkers.h35 class ResourceEntry; variable
46 bool ShouldGenerateVersionedResource(const ResourceEntry* entry,
52 ApiVersion FindNextApiVersionForConfig(const ResourceEntry* entry,
DPrivateAttributeMover.cpp71 std::vector<std::unique_ptr<ResourceEntry>> private_attr_entries; in Consume()
74 [](const std::unique_ptr<ResourceEntry>& entry) -> bool { in Consume()
DNoDefaultResourceRemover.cpp29 static bool KeepResource(const std::unique_ptr<ResourceEntry>& entry, int minSdk) { in KeepResource()
74 [&minSdk](const std::unique_ptr<ResourceEntry>& entry) -> bool { in Consume()
DAutoVersioner.cpp32 bool ShouldGenerateVersionedResource(const ResourceEntry* entry, in ShouldGenerateVersionedResource()
40 ApiVersion FindNextApiVersionForConfig(const ResourceEntry* entry, in FindNextApiVersionForConfig()
DAutoVersioner_test.cpp32 ResourceEntry entry("foo"); in TEST()
45 ResourceEntry entry("foo"); in TEST()
DResourceExcluder.cpp33 ResourceEntry* entry, in RemoveIfExcluded()
DTableMerger.cpp95 ResourceEntry* dst_entry, ResourceEntry* src_entry, in MergeEntry()
250 ResourceEntry* dst_entry; in DoMerge()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DPartnerTest.java32 import com.android.setupwizardlib.util.Partner.ResourceEntry;
93 ResourceEntry entry = Partner.getResourceEntry(application, R.integer.suwTransitionDuration); in getResourceEntry_hasOverlay_shouldReturnOverlayValue()
123 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_partnerValueNotPresent_shouldReturnDefault()
133 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_directBootUnawareNoValueDefined_shouldReturnDefaultValue()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.h92 const ResourceEntry& entry);
102 const ResourceEntry& entry, ClassDefinition* out_class_def,
DJavaClassGenerator.cpp450 const ResourceEntry& entry, ClassDefinition* out_class_def, in ProcessResource()
509 const ResourceEntry& entry) { in UnmangleResource()
/frameworks/base/cmds/idmap2/libidmap2/proto/
Dfabricated_v1.proto41 repeated ResourceEntry entries = 2;
44 message ResourceEntry { message
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayoutTest.java37 import com.android.car.setupwizardlib.partner.ResourceEntry;
82 List<ResourceEntry> resourceEntries = prepareFakeData(); in setUp()
83 for (ResourceEntry entry : resourceEntries) { in setUp()
641 private List<ResourceEntry> prepareFakeData() { in prepareFakeData()
649 new ResourceEntry( in prepareFakeData()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp247 ResourceEntry* split_entry = split_type->FindOrCreateEntry(entry->name); in SplitTable()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp43 ResourceEntry* GetEntry(ResourceTable* table, const ResourceNameRef& res_name) { in GetEntry()
48 ResourceEntry* GetEntry(ResourceTable* table, const ResourceNameRef& res_name, ResourceId id) { in GetEntry()
788 ResourceEntry* entry = GetEntry(&new_table, obfuscated_id_resource, id_three_id); in TEST()
870 ResourceEntry* entry = GetEntry(&new_table, obfuscated_id_resource, id_three_id); in TEST()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp317 StringPool* pool, ResourceEntry* entry) { in PseudolocalizeIfNeeded()

12