/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | ResourceEntryTest.java | 35 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 …]
|
D | FakeOverrideContentProvider.java | 50 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()
|
D | PartnerConfigHelperTest.java | 57 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/ |
D | Partner.java | 64 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/ |
D | ResourceEntry.java | 30 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
|
D | PartnerConfigHelper.java | 91 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/ |
D | ResourceTable.h | 116 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;
|
D | ResourceTable.cpp | 134 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/ |
D | ResourceDeduper.cpp | 46 explicit DominatedKeyValueRemover(IAaptContext* context, ResourceEntry* entry) in DominatedKeyValueRemover() 94 ResourceEntry* entry_; 97 static void DedupeEntry(IAaptContext* context, ResourceEntry* entry) { in DedupeEntry()
|
D | VersionCollapser.cpp | 73 static void CollapseVersions(int min_sdk, ResourceEntry* entry) { in CollapseVersions()
|
/frameworks/base/tools/aapt2/link/ |
D | Linkers.h | 35 class ResourceEntry; variable 46 bool ShouldGenerateVersionedResource(const ResourceEntry* entry, 52 ApiVersion FindNextApiVersionForConfig(const ResourceEntry* entry,
|
D | PrivateAttributeMover.cpp | 71 std::vector<std::unique_ptr<ResourceEntry>> private_attr_entries; in Consume() 74 [](const std::unique_ptr<ResourceEntry>& entry) -> bool { in Consume()
|
D | NoDefaultResourceRemover.cpp | 29 static bool KeepResource(const std::unique_ptr<ResourceEntry>& entry, int minSdk) { in KeepResource() 74 [&minSdk](const std::unique_ptr<ResourceEntry>& entry) -> bool { in Consume()
|
D | AutoVersioner.cpp | 32 bool ShouldGenerateVersionedResource(const ResourceEntry* entry, in ShouldGenerateVersionedResource() 40 ApiVersion FindNextApiVersionForConfig(const ResourceEntry* entry, in FindNextApiVersionForConfig()
|
D | AutoVersioner_test.cpp | 32 ResourceEntry entry("foo"); in TEST() 45 ResourceEntry entry("foo"); in TEST()
|
D | ResourceExcluder.cpp | 33 ResourceEntry* entry, in RemoveIfExcluded()
|
D | TableMerger.cpp | 95 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/ |
D | PartnerTest.java | 32 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/ |
D | JavaClassGenerator.h | 92 const ResourceEntry& entry); 102 const ResourceEntry& entry, ClassDefinition* out_class_def,
|
D | JavaClassGenerator.cpp | 450 const ResourceEntry& entry, ClassDefinition* out_class_def, in ProcessResource() 509 const ResourceEntry& entry) { in UnmangleResource()
|
/frameworks/base/cmds/idmap2/libidmap2/proto/ |
D | fabricated_v1.proto | 41 repeated ResourceEntry entries = 2; 44 message ResourceEntry { message
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/ |
D | CarSetupWizardCompatLayoutTest.java | 37 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/ |
D | TableSplitter.cpp | 247 ResourceEntry* split_entry = split_type->FindOrCreateEntry(entry->name); in SplitTable()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 43 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/ |
D | PseudolocaleGenerator.cpp | 317 StringPool* pool, ResourceEntry* entry) { in PseudolocalizeIfNeeded()
|