Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 77) sorted by relevance

1234

/cts/tools/release-parser/tests/
Dgenerate_golden_sample_files.sh17 …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/
DSplitAppTest.java103 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/
DResourcesLoaderValuesTest.kt261 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 …]
DResourcesLoaderFallthroughTest.kt48 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>()
DUtils.kt39 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/
DAppWidgetDimensionsTest.java38 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/
Dbuild42 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/
DAndroid.bp58 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/
DBitmapFactory_OptionsTest.java65 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/
DChangeBoundsTest.java224 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/
DTableRowTest.java108 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/
DDisplayUtils.java37 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/
DDrawable_ConstantStateTest.java44 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/
DReferenceViewGroup.java41 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/
DScriptC_set_target_api_11.java40 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()
DScriptC_set_target_api_12.java40 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()
DScriptC_set_target_api_13.java40 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()
DScriptC_set_target_api_16.java40 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()
DScriptC_set_target_api_17.java40 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()
DScriptC_set_target_api_18.java40 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()
DScriptC_set_target_api_19.java40 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()
DScriptC_set_target_api_too_high.java40 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()
DScriptC_set_target_api_14.java40 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()
DScriptC_set_target_api_15.java40 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/
DOrientationTestUtils.java75 final Resources resources = activity.getResources(); in isCloseToSquareDisplay() local
78 closeToSquareMaxAspectRatio = resources.getFloat(resources.getIdentifier( in isCloseToSquareDisplay()

1234