/frameworks/base/core/java/android/content/om/ |
D | FabricatedOverlay.java | 180 @NonNull String resourceName, in setResourceValue() 184 return setResourceValue(resourceName, dataType, value, null /* configuration */); in setResourceValue() 205 @NonNull String resourceName, in setResourceValue() 210 ensureValidResourceName(resourceName); in setResourceValue() 211 mEntries.add(generateFabricatedOverlayInternalEntry(resourceName, dataType, value, in setResourceValue() 232 @NonNull String resourceName, in setResourceValue() 235 return setResourceValue(resourceName, dataType, value, null /* configuration */); in setResourceValue() 255 @NonNull String resourceName, in setResourceValue() 259 ensureValidResourceName(resourceName); in setResourceValue() 260 mEntries.add(generateFabricatedOverlayInternalEntry(resourceName, dataType, value, in setResourceValue() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelper.java | 88 String resourceName = partnerConfig.getResourceName(); in getColor() local 89 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColor() 91 Log.w(TAG, "Resource not found: " + resourceName); in getColor() 127 String resourceName = partnerConfig.getResourceName(); in getColorStateList() local 128 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getColorStateList() 130 Log.w(TAG, "Resource not found: " + resourceName); in getColorStateList() 171 String resourceName = partnerConfig.getResourceName(); in getDrawable() local 172 ResourceEntry resourceEntry = getResourceEntryFromKey(resourceName); in getDrawable() 174 Log.w(TAG, "Resource not found: " + resourceName); in getDrawable() 214 String resourceName = partnerConfig.getResourceName(); in getString() local [all …]
|
D | ResourceEntry.java | 52 String resourceName = bundle.getString(KEY_RESOURCE_NAME); in fromBundle() local 54 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle() 57 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() argument 59 mResourceName = resourceName; in ResourceEntry()
|
D | PartnerConfig.java | 110 PartnerConfig(@PartnerConfigKey String resourceName, ResourceType type) { in PartnerConfig() argument 111 this.mResourceName = resourceName; in PartnerConfig()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaMemoryTracer.cpp | 35 std::optional<std::string> SkiaMemoryTracer::mapName(const std::string& resourceName) { in mapName() argument 37 if (resourceName.find(resource.first) != std::string::npos) { in mapName() 77 std::optional<std::string> resourceName = mapName(mCurrentElement); in processElement() local 82 resourceName = categoryResult->second.units; in processElement() 84 resourceName = "Other"; in processElement() 89 if (!resourceName) { in processElement() 90 resourceName = mCurrentElement; in processElement() 93 auto result = mResults.find(*resourceName); in processElement() 108 mResults.insert({*resourceName, mCurrentValues}); in processElement()
|
D | SkiaMemoryTracer.h | 69 std::optional<std::string> mapName(const std::string& resourceName);
|
/frameworks/base/core/tests/overlaytests/remount/src/com/android/overlaytest/remounted/ |
D | RegenerateIdmapTest.java | 32 final String targetOverlaid = resourceName(TARGET_PACKAGE, "bool", "target_overlaid"); in testTargetUpgrade() 33 final String targetReference = resourceName(TARGET_PACKAGE, "bool", "target_reference"); in testTargetUpgrade() 51 final String targetOverlaid = resourceName(TARGET_PACKAGE, "bool", "target_overlaid"); in testTargetRelocated() 52 final String targetReference = resourceName(TARGET_PACKAGE, "bool", "target_reference"); in testTargetRelocated() 74 final String targetResource = resourceName(TARGET_PACKAGE, "bool", in testIdmapPoliciesChanged()
|
D | OverlaySharedLibraryTest.java | 37 final String targetResource = resourceName(TARGET_PACKAGE, "bool", in testSharedLibrary() 39 final String libraryResource = resourceName(SHARED_LIBRARY_PACKAGE, "bool", in testSharedLibrary() 60 final String targetResource = resourceName(TARGET_PACKAGE, "bool", in testSharedLibraryPreEnabled() 62 final String libraryResource = resourceName(SHARED_LIBRARY_PACKAGE, "bool", in testSharedLibraryPreEnabled()
|
D | OverlayRemountedTestBase.java | 50 String resourceName(String pkg, String type, String entry) { in resourceName() method in OverlayRemountedTestBase 54 void assertResource(String resourceName, String expectedValue) in assertResource() argument 61 String.format("cmd overlay lookup %s %s", TARGET_PACKAGE, resourceName)); in assertResource()
|
D | OverlayApexTest.java | 31 final String targetResource = resourceName(TARGET_PACKAGE, "bool", "target_overlaid"); in testApkInApexCanBeOverlaid() 50 final String targetResource = resourceName(TARGET_PACKAGE, "bool", "target_overlaid"); in testApkInApexCanOverlay()
|
/frameworks/native/libs/renderengine/skia/debug/ |
D | SkiaMemoryReporter.cpp | 36 const char* SkiaMemoryReporter::mapName(const char* resourceName) { in mapName() argument 38 if (SkStrContains(resourceName, resource.first)) { in mapName() 53 const char* resourceName = mCurrentElement.empty() ? nullptr : mapName(mCurrentElement.c_str()); in processCurrentElement() local 57 if (resourceName == nullptr) { in processCurrentElement() 90 auto result = results.find(resourceName); in processCurrentElement() 97 resourceName); in processCurrentElement() 101 ALOGE("an entry (%s) should not exist in the results without a size", resourceName); in processCurrentElement() 105 results.insert({resourceName, {{sizeResult->first, sizeResult->second}}}); in processCurrentElement()
|
D | SkiaMemoryReporter.h | 84 const char* mapName(const char* resourceName);
|
/frameworks/base/mime/java/android/content/type/ |
D | DefaultMimeMapFactory.java | 51 return create(resourceName -> c.getResourceAsStream("/res/" + resourceName)); in create() 77 Function<String, InputStream> resourceSupplier, String resourceName) { in parseTypes() argument 78 try (InputStream inputStream = Objects.requireNonNull(resourceSupplier.apply(resourceName)); in parseTypes() 102 throw new RuntimeException("Failed to parse " + resourceName, e); in parseTypes()
|
/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/ |
D | IconPackOverlayTest.java | 169 String resourceName = iconPackDrawables.get(i); in containsAllOverlayedIcons() local 170 int targetRid = targetResources.getIdentifier(resourceName, "drawable", targetPkg); in containsAllOverlayedIcons() 173 resourceName, targetPkg)); in containsAllOverlayedIcons() 209 String resourceName = iconPackDrawables.get(i); in hasEqualVectorDrawableAttributes() local 210 int targetRid = targetRes.getIdentifier(resourceName, "drawable", targetPkg); in hasEqualVectorDrawableAttributes() 211 int overlayRid = overlayRes.getIdentifier(resourceName, "drawable", overlayPkg); in hasEqualVectorDrawableAttributes() 216 resourceName, targetPkg)); in hasEqualVectorDrawableAttributes() 224 resourceName, overlayPkg)); in hasEqualVectorDrawableAttributes() 231 resourceName, targetPkg, overlayPkg)); in hasEqualVectorDrawableAttributes()
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | TestPackageInstaller.java | 55 public InstalledPackage installPackage(String resourceName) throws IOException, in installPackage() argument 57 Log.d(LOG_TAG, "Installing resource APK '" + resourceName + "'"); in installPackage() 70 InputStream is = mContext.getResources().getAssets().openNonAsset(resourceName)) { in installPackage() 72 throw new IOException("Resource " + resourceName + " not found"); in installPackage()
|
/frameworks/base/core/java/android/app/admin/ |
D | ParcelableResource.java | 104 @AnyRes int resourceId, @NonNull String packageName, @NonNull String resourceName, in ParcelableResource() argument 108 this.mResourceName = requireNonNull(resourceName); in ParcelableResource() 307 String resourceName = xmlPullParser.getAttributeValue( in createFromXml() local 313 resourceId, packageName, resourceName, resourceType); in createFromXml() 351 String resourceName = in.readString(); 355 resourceId, packageName, resourceName, resourceType);
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerShellCommand.java | 329 final String resourceName = getNextArgRequired(); in runFabricate() local 332 if (addOverlayValue(overlay, resourceName, typeStr, strData, config) != 0) { in runFabricate() 408 private int addOverlayValue(FabricatedOverlay overlay, String resourceName, String typeString, in addOverlayValue() argument 422 overlay.setResourceValue(resourceName, type, valueString, configuration); in addOverlayValue() 426 overlay.setNinePatchResourceValue(resourceName, pfd, configuration); in addOverlayValue() 428 overlay.setResourceValue(resourceName, pfd, configuration); in addOverlayValue() 437 overlay.setResourceValue(resourceName, type, intData, configuration); in addOverlayValue()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryUsageStatsRule.java | 160 public BatteryUsageStatsRule setTestPowerProfile(String resourceName) { in setTestPowerProfile() argument 161 mPowerProfile.initForTesting(resolveParser(resourceName)); in setTestPowerProfile() 165 public static XmlPullParser resolveParser(String resourceName) { in resolveParser() argument 169 .getResourceAsStream("res/xml/" + resourceName + ".xml")); in resolveParser() 176 int resId = resources.getIdentifier(resourceName, "xml", context.getPackageName()); in resolveParser()
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.h | 39 const String16& resourceName, 46 const String16& resourceName, 54 const String16& resourceName, 84 String16 resourceName; member 206 bool versionForCompat(const Bundle* bundle, const String16& resourceName, 211 const String16& resourceName, 216 const String16& resourceName, 619 const String16& resourceName,
|
/frameworks/base/cmds/idmap2/idmap2d/aidl/core/android/os/ |
D | FabricatedOverlayInternalEntry.aidl | 23 @utf8InCpp String resourceName;
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_om_OverlayManagerImpl.cpp | 41 jfieldID resourceName; member 268 env->GetObjectField(entry, gFabricatedOverlayInternalEntryOffsets.resourceName)); in CreateFrroFile() 269 const ScopedUtfChars resourceName(env, jsResourceName); in CreateFrroFile() local 295 FabricatedOverlayEntryParameters{resourceName.c_str(), (DataType)dataType, in CreateFrroFile() 304 resourceName.c_str(), dataType, data, string_data.value_or(std::string()).c_str(), in CreateFrroFile() 439 gFabricatedOverlayInternalEntryOffsets.resourceName = in register_com_android_internal_content_om_OverlayManagerImpl()
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | DesktopModeAppHelper.kt | 98 ?.find { it.resourceName.endsWith(MAXIMIZE_BUTTON_VIEW) } in <lambda>() 107 val closeButton = caption?.children?.find { it.resourceName.endsWith(CLOSE_BUTTON) } in <lambda>()
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
D | FabricatedOverlaysTest.java | 305 final String resourceName = TEST_RESOURCE; in waitForResourceValue() local 306 final int resourceId = mResources.getIdentifier(resourceName, "", in waitForResourceValue() 317 throw new TimeoutException("Timed out waiting for '" + resourceName + "' value to equal '" in waitForResourceValue()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | DynamicRenderResources.java | 189 String resourceName = resourcePrefix + "_" + key; in extractPalette() local 191 colorMap.put(resourceName, colorValue); in extractPalette()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerProfileTest.java | 550 private XmlPullParser getTestModemElement(String resourceName, String elementName) in getTestModemElement() argument 552 XmlPullParser parser = resolveParser(resourceName); in getTestModemElement() 569 private XmlPullParser resolveParser(String resourceName) { in resolveParser() argument 573 .getResourceAsStream("res/xml/" + resourceName + ".xml")); in resolveParser() 580 int resId = resources.getIdentifier(resourceName, "xml", context.getPackageName()); in resolveParser()
|