Home
last modified time | relevance | path

Searched refs:getResources (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/
DOverlayableTest.java94 String result = context.getResources().getString(R.string.not_overlayable); in testOverlayPolicyAll()
97 result = context.getResources().getString(R.string.policy_public); in testOverlayPolicyAll()
100 result = context.getResources().getString(R.string.policy_product); in testOverlayPolicyAll()
103 result = context.getResources().getString(R.string.policy_system); in testOverlayPolicyAll()
106 result = context.getResources().getString(R.string.policy_vendor); in testOverlayPolicyAll()
109 result = context.getResources().getString(R.string.policy_signature); in testOverlayPolicyAll()
112 result = context.getResources().getString(R.string.other_policy_public); in testOverlayPolicyAll()
121 String result = context.getResources().getString(R.string.policy_public); in testOverlayCodeNotLoaded()
134 String result = context.getResources().getString(R.string.not_overlayable); in testSameSignatureNoOverlayableSucceeds()
137 result = context.getResources().getString(R.string.policy_public); in testSameSignatureNoOverlayableSucceeds()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java208 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig
275 Resources res = config.getResources(); in testAllEmptyConfigs()
282 res = config.getResources(); in testAllEmptyConfigs()
290 res = config.getResources(); in testAllEmptyConfigs()
297 res = config.getResources(); in testAllEmptyConfigs()
304 res = config.getResources(); in testAllEmptyConfigs()
311 res = config.getResources(); in testAllEmptyConfigs()
318 res = config.getResources(); in testAllEmptyConfigs()
325 res = config.getResources(); in testAllEmptyConfigs()
332 res = config.getResources(); in testAllEmptyConfigs()
[all …]
DResources_ThemeTest.java47 mResTheme = getContext().getResources().newTheme(); in setUp()
76 XmlPullParser parser = getContext().getResources().getXml(R.xml.colors); in testObtainStyledAttributes()
98 getContext().getResources().getValue(R.raw.testmp3, value, true); in testResolveAttribute()
104 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations()
117 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations()
126 Resources res = getContext().getResources(); in testRebase()
156 final Resources res = getContext().getResources(); in testGetDrawable()
166 final Resources res = getContext().getResources(); in testGetResources()
168 assertSame(res, theme.getResources()); in testGetResources()
173 final Resources res = getContext().getResources(); in testEmptyDoesNotGetOverriden()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java103 new BitmapDrawable(mContext.getResources()); in testConstructor()
105 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor()
114 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor()
118 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor()
125 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity()
142 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testBitmapDrawableOpticalInset()
159 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap()
171 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias()
185 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap()
199 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DDialogPreferenceTest.java43 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle()
49 String titleExp = mActivity.getResources().getString( in testGetDialogTitle()
56 Drawable drawableExp = mActivity.getResources().getDrawable(R.drawable.ic_launcher); in testGetDialogIcon()
62 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage()
69 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText()
76 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
/cts/tests/tests/view/src/android/view/cts/
DViewPaddingTest.java70 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding()
71 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding()
72 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding()
73 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding()
74 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding()
75 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding()
76 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding()
78 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding()
79 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
/cts/tests/tests/security/src/android/security/cts/
DBitmapFactoryDecodeStreamTest.java37 InputStream inStream = new BufferedInputStream(mContext.getResources().openRawResource( in testNinePatchHeapOverflow()
45 InputStream exploitImage = new BufferedInputStream(mContext.getResources().openRawResource( in testPocCVE_2017_0691()
52 InputStream exploitImage = new BufferedInputStream(mContext.getResources().openRawResource( in test_b65290323()
/cts/tests/tests/graphics/src/android/graphics/cts/
DUtils.java35 private static Resources getResources() { in getResources() method in Utils
36 return InstrumentationRegistry.getTargetContext().getResources(); in getResources()
40 return getResources().openRawResource(resId); in obtainInputStream()
44 Resources res = getResources(); in getAsResourceUri()
76 String name = getResources().getResourceEntryName(resId).toString(); in obtainFile()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetDimensionsTest.java38 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBePositive()
44 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBeLessThanMaxRadius()
52 Resources resources = getInstrumentation().getTargetContext().getResources(); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRefocusTest.java72 Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), in refocus()
103 context.getResources().getResourcePackageName(resID) + '/' + in getResourceRef()
104 context.getResources().getResourceTypeName(resID) + '/' + in getResourceRef()
105 context.getResources().getResourceEntryName(resID)); in getResourceRef()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java153 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
164 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
180 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
210 (getContext().getResources().getConfiguration().uiMode in testGlobalSettings()
233 (getContext().getResources().getConfiguration().uiMode in testDeviceConfig()
257 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
265 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
275 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DScriptC_set_target_api_too_high.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_too_high()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_too_high()
DScriptC_set_target_api_14.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_14()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_14()
DScriptC_set_target_api_11.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_11()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_11()
DScriptC_set_target_api_13.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_13()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_13()
DScriptC_set_target_api_16.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_16()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_16()
DScriptC_set_target_api_19.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_19()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_19()
DScriptC_set_target_api_12.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_12()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_12()
DScriptC_set_target_api_15.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_15()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_15()
DScriptC_set_target_api_17.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_17()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_17()
DScriptC_set_target_api_18.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_18()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_18()
DScriptC_leak.java34 rs.getApplicationContext().getResources(), in ScriptC_leak()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java47 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions()
68 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha()
92 AssetManager assets = getActivity().getResources().getAssets(); in testMasked()
96 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(), in testMasked()
126 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationTest.java57 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
70 final Configuration newConfig = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
99 return (context.getResources().getConfiguration().uiMode in isVrHeadset()
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/
DStaticSharedLib.java26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion()
29 return context.getResources() in getRecursiveVersion()

12345678910>>...19