Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DTableRowTest.java91 Resources resources = activity.getResources(); in testGetVirtualChildAt() local
92 assertEquals(resources.getString(R.string.table_layout_first), in testGetVirtualChildAt()
94 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
96 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt()
104 assertEquals(resources.getString(R.string.table_layout_long), in testGetVirtualChildAt()
106 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
108 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
110 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt()
134 Resources resources = mTargetContext.getResources(); in testGenerateLayoutParams() local
135 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParams()
DImageSwitcherTest.java67 Resources resources = getContext().getResources(); in testSetImageResource() local
68 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource()
76 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageResource()
136 Resources resources = getContext().getResources(); in testSetImageDrawable() local
138 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable()
143 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageDrawable()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java214 Resources resources = mContext.getResources(); in testInflate() local
215 XmlPullParser parser = resources.getXml(R.drawable.gradientdrawable); in testInflate()
227 gradientDrawable.inflate(resources, parser, attrs); in testInflate()
251 Resources resources = mContext.getResources(); in testInflateGradientRadius() local
256 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius()
262 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius()
293 Resources resources = mContext.getResources(); in testMutate() local
294 GradientDrawable d1 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate()
295 GradientDrawable d2 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate()
296 GradientDrawable d3 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate()
DRotateDrawableTest.java47 Resources resources = mContext.getResources(); in setUp() local
48 mRotateDrawable = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in setUp()
211 Resources resources = mContext.getResources(); in testMutate() local
213 RotateDrawable d1 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate()
214 RotateDrawable d2 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate()
215 RotateDrawable d3 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate()
DLevelListDrawableTest.java167 Resources resources = getInstrumentation().getTargetContext().getResources(); in testMutate() local
169 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate()
171 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate()
173 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate()
176 d1.addLevel(100, 200, resources.getDrawable(R.drawable.testimage)); in testMutate()
DTransitionDrawableTest.java56 Resources resources = getInstrumentation().getTargetContext().getResources(); in testConstructor() local
58 resources.getDrawable(R.drawable.testimage), in testConstructor()
59 resources.getDrawable(R.drawable.levellistdrawable) in testConstructor()
DVectorDrawableTest.java269 Resources resources = mContext.getResources(); in testMutate() local
271 VectorDrawable d1 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate()
272 VectorDrawable d2 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate()
273 VectorDrawable d3 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate()
/cts/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java118 public static Bitmap getUnscaledBitmap(Resources resources, int resId) { in getUnscaledBitmap() argument
121 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledBitmap()
130 public static Bitmap getUnscaledAndDitheredBitmap(Resources resources, in getUnscaledAndDitheredBitmap() argument
136 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledAndDitheredBitmap()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DBaseRenderScriptComparer.java23 public abstract boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
27 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument
35 return verifySameRowsRS(resources, ideal, given, offset, stride, width, height, in verifySameRS()
DBitmapComparer.java42 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument
/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_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()
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_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_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_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_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_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_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_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_leak.java40 public ScriptC_leak(RenderScript rs, Resources resources, int id) { in ScriptC_leak() argument
41 super(rs, resources, id); in ScriptC_leak()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DResourceModifier.java54 public ResourceModifier(Resources resources) { in ResourceModifier() argument
55 bitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); in ResourceModifier()
130 public static void init(Resources resources) { in init() argument
131 sInstance = new ResourceModifier(resources); in init()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java167 Resources resources = getInstrumentation().getTargetContext().getResources(); in setUp() local
168 Configuration oldConfiguration = resources.getConfiguration(); in setUp()
171 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in setUp()
174 resources.updateConfiguration(newConfiguration, displayMetrics); in setUp()
202 Resources resources = getInstrumentation().getTargetContext().getResources(); in tearDown() local
203 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in tearDown()
204 Configuration newConfiguration = new Configuration(resources.getConfiguration()); in tearDown()
207 resources.updateConfiguration(newConfiguration, displayMetrics); in tearDown()
/cts/tests/tests/media/src/android/media/cts/
DAdaptivePlaybackTest.java1382 public CodecFamily(Context context, String mime, String explicitCodecName, int ... resources) {
1385 Media[] mediaList = new Media[resources.length];
1386 for (int i = 0; i < resources.length; i++) {
1387 Log.v(TAG, "reading media " + resources[i]);
1388 Media media = Media.read(context, resources[i], NUM_FRAMES);
1390 "test stream " + resources[i] + " has " + media.getMime() +
1442 public CodecByName(Context context, String mime, String codecName, int ... resources) {
1443 for (Codec c: new CodecFamily(context, mime, codecName, resources)) {
1454 Context context, String mime, String exceptCodecName, int ... resources) {
1455 for (Codec c: new CodecFamily(context, mime, null, resources)) {
[all …]

12