Home
last modified time | relevance | path

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

12345678910>>...16

/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java189 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig
244 Resources res = config.getResources(); in testAllEmptyConfigs()
251 res = config.getResources(); in testAllEmptyConfigs()
259 res = config.getResources(); in testAllEmptyConfigs()
266 res = config.getResources(); in testAllEmptyConfigs()
273 res = config.getResources(); in testAllEmptyConfigs()
280 res = config.getResources(); in testAllEmptyConfigs()
287 res = config.getResources(); in testAllEmptyConfigs()
294 res = config.getResources(); in testAllEmptyConfigs()
301 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.java108 new BitmapDrawable(mContext.getResources()); in testConstructor()
110 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor()
119 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor()
123 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor()
130 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity()
147 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap()
159 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias()
173 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap()
187 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap()
204 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetDither()
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DDialogPreferenceTest.java45 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle()
51 String titleExp = mActivity.getResources().getString( in testGetDialogTitle()
58 Drawable drawableExp = mActivity.getResources().getDrawable(R.drawable.ic_launcher); in testGetDialogIcon()
64 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage()
71 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText()
78 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
/cts/tests/tests/view/src/android/view/cts/
DViewPaddingTest.java69 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding()
70 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding()
71 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding()
72 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding()
73 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding()
74 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding()
75 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding()
77 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding()
78 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java46 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions()
67 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha()
91 AssetManager assets = getActivity().getResources().getAssets(); in testMasked()
95 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(), in testMasked()
125 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
146 AssetManager assets = getActivity().getResources().getAssets(); in testMirroredTransferFunctions()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRefocusTest.java76 …Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), R.drawable.expected_output… in refocus()
104 context.getResources().getResourcePackageName(resID) + '/' + in getResourceRef()
105 context.getResources().getResourceTypeName(resID) + '/' + in getResourceRef()
106 context.getResources().getResourceEntryName(resID)); in getResourceRef()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
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_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_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_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_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_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_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_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_leak.java34 rs.getApplicationContext().getResources(), in ScriptC_leak()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioInputDeviceNotificationsActivity.java50 mContext.getResources().getString(R.string.audio_dev_notification_connectMsg)); in onAudioDevicesAdded()
57 mContext.getResources().getString( in onAudioDevicesRemoved()
78 ((TextView)findViewById(R.id.info_text)).setText(mContext.getResources().getString( in onCreate()
DAudioOutputDeviceNotificationsActivity.java50 mContext.getResources().getString(R.string.audio_dev_notification_connectMsg)); in onAudioDevicesAdded()
57 mContext.getResources().getString( in onAudioDevicesRemoved()
78 ((TextView)findViewById(R.id.info_text)).setText(mContext.getResources().getString( in onCreate()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java80 final Resources resources = context.getResources(); in shouldLoadDefault()
94 final Resources resources = context.getResources(); in shouldLoadPolishLocale()
109 final Resources resources = context.getResources(); in shouldLoadFeatureADefault()
125 final Resources resources = context.getResources(); in shouldLoadFeatureAPolishLocale()
153 final Resources resources = context.getResources(); in shouldLoadFeatureBDefault()
172 final Resources resources = context.getResources(); in shouldLoadFeatureBPolishLocale()
202 final Resources resources = context.getResources(); in shouldLoadFeatureCDefault()
218 final Resources resources = context.getResources(); in shouldLoadFeatureCPolishLocale()
253 final Resources resources = context.getResources(); in assertResourcesDoNotExist()
/cts/tests/tests/widget/src/android/widget/cts/
DTwoLineListItemTest.java60 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor()
79 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2()
85 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3()
94 Resources res = mActivity.getResources(); in testGetTexts()
DImageSwitcherTest.java79 XmlPullParser parser = mActivity.getResources().getXml(R.layout.imageswitcher_layout); in testConstructor()
96 Resources resources = mActivity.getResources(); in testSetImageResource()
138 mActivity.getResources(), R.raw.testimage, in testSetImageURI()
147 mActivity.getResources(), R.raw.scenery, in testSetImageURI()
166 Resources resources = mActivity.getResources(); in testSetImageDrawable()
182 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DCardPresenter.java41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder()
43 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder()
44 mDefaultCardImage = parent.getResources().getDrawable(R.drawable.movie, null); in onCreateViewHolder()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DPhaseStartFragment.java63 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ACCURACY.… in onCreateView()
67 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ROBUSTNES… in onCreateView()
71 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.COMPLEX_M… in onCreateView()

12345678910>>...16