/cts/tools/release-parser/tests/ |
D | generate_golden_sample_files.sh | 17 …release-parser.jar com.android.cts.releaseparser.ApkParser -i resources/$file -of resources/$file.… 23 …elease-parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -pi -of resources/$fil… 29 …/release-parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -of resources/$file.… 35 …elease-parser.jar com.android.cts.releaseparser.VdexParser -i resources/$file -of resources/$file.… 41 …elease-parser.jar com.android.cts.releaseparser.OdexParser -i resources/$file -of resources/$file.… 47 …release-parser.jar com.android.cts.releaseparser.OatParser -i resources/$file -of resources/$file.… 53 …release-parser.jar com.android.cts.releaseparser.ArtParser -i resources/$file -of resources/$file.… 59 …release-parser.jar com.android.cts.releaseparser.XmlParser -i resources/$file -of resources/$file.… 65 …e-parser.jar com.android.cts.releaseparser.BuildPropParser -i resources/$file -of resources/$file.…
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 103 final Resources resources = activity.getResources(); in shouldLoadDefault() local 104 assertThat(resources, notNullValue()); in shouldLoadDefault() 106 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadDefault() 125 final Resources resources = activity.getResources(); in shouldLoadPolishLocale() local 126 assertThat(resources, notNullValue()); in shouldLoadPolishLocale() 128 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadPolishLocale() 146 final Resources resources = activity.getResources(); in shouldLoadFeatureADefault() local 147 assertThat(resources, notNullValue()); in shouldLoadFeatureADefault() 149 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureADefault() 152 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault() [all …]
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderValuesTest.kt | 261 private fun getValue(c: Context = context) = parameter.getValue(c.resources) in <lambda>() 287 resources.addLoaders(loader) in <lambda>() 308 resources.addLoaders(loader1) in <lambda>() 312 resources.addLoaders(loader2) in <lambda>() 316 resources.removeLoaders(loader1) in <lambda>() 319 resources.removeLoaders(loader2) in <lambda>() 329 resources.addLoaders(loader) in <lambda>() 347 resources.addLoaders(loader1, loader2) in <lambda>() 350 resources.removeLoaders(loader2) in <lambda>() 353 resources.removeLoaders(loader1) in <lambda>() [all …]
|
D | ResourcesLoaderFallthroughTest.kt | 48 resources.addLoaders(loader, loader2) in <lambda>() 51 "openAssetFd" to "FileNotFoundException")), actual(resources)) in <lambda>() 56 "openAssetFd" to "One")), actual(resources)) in <lambda>() 61 "openAssetFd" to "One")), actual(resources)) in <lambda>() 66 "openAssetFd" to "Three")), actual(resources)) in <lambda>() 71 "openAssetFd" to "Three")), actual(resources)) in <lambda>() 82 .also { resources.addLoaders(it)} in <lambda>() 88 .apply { resources.getValue(0x7f0400ff /* R.string.two_and_four_only */, this, in <lambda>() 108 "openAssetFd" to "Two")), actual(resources)) in <lambda>() 117 "openAssetFd" to "AssetsTwo")), actual(resources)) in <lambda>()
|
D | Utils.kt | 39 fun Int.dpToPx(resources: Resources) = TypedValue.applyDimension( in dpToPx() 42 resources.displayMetrics in dpToPx() 54 return resources.assets.open(fileName).use { input -> in Context()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetDimensionsTest.java | 38 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBePositive() local 39 … assertTrue(resources.getDimension(android.R.dimen.system_app_widget_background_radius) >= 0); in backgroundRadius_shouldBePositive() 44 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBeLessThanMaxRadius() local 46 assertTrue(resources.getDimension(android.R.dimen.system_app_widget_background_radius) in backgroundRadius_shouldBeLessThanMaxRadius() 47 <= resources.getDimension(R.dimen.appwidget_max_background_radius)); in backgroundRadius_shouldBeLessThanMaxRadius() 52 Resources resources = getInstrumentation().getTargetContext().getResources(); in innerRadius_shouldBeFixedComparedToBackgroundRadius() local 53 float expectedRadius = resources.getDimension( in innerRadius_shouldBeFixedComparedToBackgroundRadius() 54 android.R.dimen.system_app_widget_background_radius) - resources.getDimension( in innerRadius_shouldBeFixedComparedToBackgroundRadius() 60 resources.getDimension(android.R.dimen.system_app_widget_inner_radius), 1e-4); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
|
/cts/hostsidetests/appsecurity/test-apps/CorruptApkTests/compressed_arsc/ |
D | build | 42 unzip basic_q.apk resources.arsc 47 zip -j compressed_Q.apk resources.arsc 52 zip -j compressed_R.apk resources.arsc 63 zip unaligned_Q.apk -d resources.arsc 65 zip unaligned_Q.apk -0 -X resources.arsc 70 zip unaligned_R.apk -d resources.arsc 72 zip unaligned_R.apk -0 -X resources.arsc 82 rm resources.arsc
|
/cts/tests/tests/resourcesloader/resources/ |
D | Android.bp | 58 cmd: "unzip $(in) resources.arsc -d $(genDir) && " 59 + " mv $(genDir)/resources.arsc $(genDir)/CtsResourcesLoaderTests_ProviderOne.arsc", 66 cmd: "unzip $(in) resources.arsc -d $(genDir) && " 67 + " mv $(genDir)/resources.arsc $(genDir)/CtsResourcesLoaderTests_ProviderTwo.arsc", 74 cmd: "unzip $(in) resources.arsc -d $(genDir) && " 75 + " mv $(genDir)/resources.arsc $(genDir)/CtsResourcesLoaderTests_ProviderThree.arsc", 82 cmd: "unzip $(in) resources.arsc -d $(genDir) && " 83 + " mv $(genDir)/resources.arsc $(genDir)/CtsResourcesLoaderTests_ProviderFour.arsc",
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactory_OptionsTest.java | 65 Resources resources = instrumentation.getTargetContext().getResources(); in testExtractMetaData() local 68 AssetManager assets = resources.getAssets(); in testExtractMetaData() 81 b = BitmapFactory.decodeResource(resources, R.drawable.alpha, options); in testExtractMetaData() 87 b = BitmapFactory.decodeResource(resources, R.drawable.icon_green, options); in testExtractMetaData() 95 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData() 105 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 224 Resources resources = mActivity.getResources(); in waitForSizeIsMiddle() local 226 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForSizeIsMiddle() 237 Resources resources = mActivity.getResources(); in waitForClipIsMiddle() local 239 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForClipIsMiddle() 252 Resources resources = mActivity.getResources(); in isRestartingAnimation() local 254 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 259 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 264 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 274 Resources resources = mActivity.getResources(); in isRestartingClip() local 276 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableRowTest.java | 108 Resources resources = mActivity.getResources(); in testGetVirtualChildAt() local 109 assertEquals(resources.getString(R.string.table_layout_first), in testGetVirtualChildAt() 111 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 113 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 121 assertEquals(resources.getString(R.string.table_layout_long), in testGetVirtualChildAt() 123 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 125 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 127 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 152 Resources resources = mActivity.getResources(); in testGenerateLayoutParamsFromAttributeSet() local 153 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DisplayUtils.java | 37 final Resources resources = activity.getResources(); in isCloseToSquareDisplay() local 40 closeToSquareMaxAspectRatio = resources.getFloat(resources.getIdentifier( in isCloseToSquareDisplay()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | Drawable_ConstantStateTest.java | 44 Resources resources = context.getResources(); in testNewDrawable() local 53 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable() 57 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ReferenceViewGroup.java | 41 Resources resources = context.getResources(); in ReferenceViewGroup() local 42 mWidthDp = resources.getDimensionPixelSize(R.dimen.reference_width); in ReferenceViewGroup() 43 mHeightDp = resources.getDimensionPixelSize(R.dimen.reference_height); in ReferenceViewGroup()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | ScriptC_set_target_api_11.java | 40 public ScriptC_set_target_api_11(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_11() argument 41 super(rs, resources, id); in ScriptC_set_target_api_11()
|
D | ScriptC_set_target_api_12.java | 40 public ScriptC_set_target_api_12(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_12() argument 41 super(rs, resources, id); in ScriptC_set_target_api_12()
|
D | ScriptC_set_target_api_13.java | 40 public ScriptC_set_target_api_13(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_13() argument 41 super(rs, resources, id); in ScriptC_set_target_api_13()
|
D | ScriptC_set_target_api_16.java | 40 public ScriptC_set_target_api_16(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_16() argument 41 super(rs, resources, id); in ScriptC_set_target_api_16()
|
D | ScriptC_set_target_api_17.java | 40 public ScriptC_set_target_api_17(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_17() argument 41 super(rs, resources, id); in ScriptC_set_target_api_17()
|
D | ScriptC_set_target_api_18.java | 40 public ScriptC_set_target_api_18(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_18() argument 41 super(rs, resources, id); in ScriptC_set_target_api_18()
|
D | ScriptC_set_target_api_19.java | 40 public ScriptC_set_target_api_19(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_19() argument 41 super(rs, resources, id); in ScriptC_set_target_api_19()
|
D | ScriptC_set_target_api_too_high.java | 40 public ScriptC_set_target_api_too_high(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_too_high() argument 41 super(rs, resources, id); in ScriptC_set_target_api_too_high()
|
D | ScriptC_set_target_api_14.java | 40 public ScriptC_set_target_api_14(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_14() argument 41 super(rs, resources, id); in ScriptC_set_target_api_14()
|
D | ScriptC_set_target_api_15.java | 40 public ScriptC_set_target_api_15(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_15() argument 41 super(rs, resources, id); in ScriptC_set_target_api_15()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 75 final Resources resources = activity.getResources(); in isCloseToSquareDisplay() local 78 closeToSquareMaxAspectRatio = resources.getFloat(resources.getIdentifier( in isCloseToSquareDisplay()
|