Home
last modified time | relevance | path

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

12345678910>>...13

/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java185 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig
240 Resources res = config.getResources(); in testAllEmptyConfigs()
247 res = config.getResources(); in testAllEmptyConfigs()
255 res = config.getResources(); in testAllEmptyConfigs()
262 res = config.getResources(); in testAllEmptyConfigs()
269 res = config.getResources(); in testAllEmptyConfigs()
276 res = config.getResources(); in testAllEmptyConfigs()
283 res = config.getResources(); in testAllEmptyConfigs()
290 res = config.getResources(); in testAllEmptyConfigs()
297 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()
88 getContext().getResources().getValue(R.raw.testmp3, value, true); in testResolveAttribute()
94 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations()
107 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations()
116 Resources res = getContext().getResources(); in testRebase()
146 final Resources res = getContext().getResources(); in testGetDrawable()
156 final Resources res = getContext().getResources(); in testGetResources()
158 assertSame(res, theme.getResources()); in testGetResources()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java91 new BitmapDrawable(mContext.getResources()); in testConstructor()
93 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor()
102 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor()
106 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor()
112 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity()
128 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap()
139 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias()
152 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap()
165 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap()
181 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetDither()
[all …]
DPaintDrawableTest.java117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr)); in testInflateTag()
124 assertFalse(new MyPaintDrawable().inflateTag("", getContext().getResources(), parser, in testInflateTag()
130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr); in testInflateTag()
151 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), null, attr)); in testInflateTag()
155 new MyPaintDrawable().inflateTag("padding", getContext().getResources(), parser, null); in testInflateTag()
167 assertTrue(paintDrawable.inflateTag("corners", getContext().getResources(), parser, attr)); in testInflateTag()
172 return getContext().getResources().getXml(R.drawable.paintdrawable_attr); in getParser()
DDrawable_ConstantStateTest.java33 assertEquals(null, cs.newDrawable(mContext.getResources())); in testNewDrawable()
37 assertEquals(null, cs.newDrawable(mContext.getResources(), mContext.getTheme())); in testNewDrawable()
/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/graphics/src/android/graphics/cts/
DMovieTest.java44 mMovie = getActivity().getResources().getMovie(MOVIE); in setUp()
80 source = getActivity().getResources().openRawResource(MOVIE); in writeSampleImage()
113 InputStream is = getActivity().getResources().openRawResource(MOVIE); in testDecodeByteArray()
124 InputStream is = getActivity().getResources() in testDecodeStream()
145 int expectedHeight = getActivity().getResources().getDrawable(MOVIE).getIntrinsicHeight(); in testGetMovieProperties()
149 int expectedWidth = getActivity().getResources().getDrawable(MOVIE).getIntrinsicWidth(); in testGetMovieProperties()
/cts/tests/tests/text/src/android/text/cts/
DAutoTextTest.java34 Configuration config = getContext().getResources().getConfiguration(); in testGet()
37 getContext().getResources().updateConfiguration(config, null); in testGet()
80 Configuration config = getContext().getResources().getConfiguration(); in testGetSize()
83 getContext().getResources().updateConfiguration(config, null); in testGetSize()
/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_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_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_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_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_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/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java50 XmlPullParser parser = getContext().getResources().getXml(R.layout.imageswitcher_test); in testConstructor()
67 Resources resources = getContext().getResources(); in testSetImageResource()
109 getContext().getResources(), R.raw.testimage, in testSetImageURI()
118 getContext().getResources(), R.raw.scenery, in testSetImageURI()
136 Resources resources = getContext().getResources(); in testSetImageDrawable()
156 source = getContext().getResources().openRawResource(resid); in createSampleImage()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java35 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); in testConstructor()
43 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testGetLeadingMargin()
55 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testDrawLeadingMargin()
97 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testChooseHeight()
/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()

12345678910>>...13