/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 | 29 public final class ResourceEntry { class 43 public static ResourceEntry fromBundle(@Nullable Bundle bundle) { in fromBundle() 54 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle() 57 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() method in ResourceEntry
|
D | PartnerConfigHelper.java | 89 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColor() 128 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColorStateList() 172 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getDrawable() 215 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getString() 261 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getDimension() 297 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getBoolean() 338 private ResourceEntry getResourceEntryFromKey(String resourceName) { in getResourceEntryFromKey() 342 return ResourceEntry.fromBundle(mResultBundle.getBundle(resourceName)); in getResourceEntryFromKey()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/ |
D | SplitNavLayoutTest.java | 28 import com.android.car.setupwizardlib.partner.ResourceEntry; 66 List<ResourceEntry> resourceEntries = prepareCustomContentWidth(); in test_UltraWideContentWidth_isSetToCustomWidth() 67 for (ResourceEntry entry : resourceEntries) { in test_UltraWideContentWidth_isSetToCustomWidth() 119 private List<ResourceEntry> prepareCustomContentWidth() { in prepareCustomContentWidth() 128 new ResourceEntry( in prepareCustomContentWidth()
|
D | CarSetupWizardCompatLayoutTest.java | 38 import com.android.car.setupwizardlib.partner.ResourceEntry; 84 List<ResourceEntry> resourceEntries = prepareFakeData(); in setUp() 85 for (ResourceEntry entry : resourceEntries) { in setUp() 693 private List<ResourceEntry> prepareFakeData() { in prepareFakeData() 701 new ResourceEntry( in prepareFakeData()
|
/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 | 96 static bool MergeEntry(IAaptContext* context, const android::Source& src, ResourceEntry* dst_entry, in MergeEntry() 97 ResourceEntry* src_entry, bool strict_visibility) { in MergeEntry() 251 ResourceEntry* dst_entry; in DoMerge()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.h | 116 class ResourceEntry { 139 explicit ResourceEntry(android::StringPiece name) : name(name) { in ResourceEntry() function 165 DISALLOW_COPY_AND_ASSIGN(ResourceEntry); 178 std::vector<std::unique_ptr<ResourceEntry>> entries; 184 ResourceEntry* CreateEntry(android::StringPiece name); 185 ResourceEntry* FindEntry(android::StringPiece name) const; 186 ResourceEntry* FindOrCreateEntry(android::StringPiece name); 318 ResourceEntry* entry;
|
D | ResourceTable.cpp | 142 ResourceEntry* ResourceTableType::CreateEntry(android::StringPiece name) { in CreateEntry() 143 return FindElementsRunAction<ResourceEntry>(name, entries, [&](bool found, auto& iter) { in CreateEntry() 144 return entries.emplace(iter, new ResourceEntry(name))->get(); in CreateEntry() 148 ResourceEntry* ResourceTableType::FindEntry(android::StringPiece name) const { in FindEntry() 149 return FindElementsRunAction<ResourceEntry>( in FindEntry() 153 ResourceEntry* ResourceTableType::FindOrCreateEntry(android::StringPiece name) { in FindOrCreateEntry() 154 return FindElementsRunAction<ResourceEntry>(name, entries, [&](bool found, auto& iter) { in FindOrCreateEntry() 155 return found ? iter->get() : entries.emplace(iter, new ResourceEntry(name))->get(); in FindOrCreateEntry() 159 ResourceConfigValue* ResourceEntry::FindValue(const ConfigDescription& config, in FindValue() 172 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() 93 ResourceEntry* entry_; 96 static void DedupeEntry(IAaptContext* context, ResourceEntry* entry) { in DedupeEntry()
|
D | VersionCollapser.cpp | 73 static void CollapseVersions(IAaptContext* context, int min_sdk, ResourceEntry* entry) { in CollapseVersions()
|
/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 | 91 const ResourceEntry& entry); 101 const ResourceEntry& entry, ClassDefinition* out_class_def,
|
D | JavaClassGenerator.cpp | 453 const ResourceEntry& entry, ClassDefinition* out_class_def, in ProcessResource() 511 StringPiece package_name, StringPiece package_name_to_generate, 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/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 403 ResourceEntry* entry, const Pseudolocalizer::Method method, in GrammaticalGender() 434 android::StringPool* pool, ResourceEntry* entry, in GrammaticalGenderIfNeeded() 454 ResourceEntry* entry, uint32_t gender_state, bool gender_flag) { in PseudolocalizeIfNeeded()
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 245 ResourceEntry* split_entry = split_type->FindOrCreateEntry(entry->name); in SplitTable()
|