/cts/tests/tests/util/src/android/util/cts/ |
D | StrictJarFileTest.java | 39 private File resources; field in StrictJarFileTest 44 resources = File.createTempFile("sjf_resources", "", null); in setUp() 45 resources.delete(); in setUp() 46 resources.mkdirs(); in setUp() 50 resources.deleteOnExit(); in setUp() 62 String fileName = (new File(resources, JAR_1)).getCanonicalPath(); in testConstructor() 69 StrictJarFile jarFile = new StrictJarFile(new File(resources, JAR_1).getAbsolutePath()); in testIteration() 106 StrictJarFile jarFile = new StrictJarFile(new File(resources, JAR_1).getAbsolutePath()); in testFindEntry() 121 StrictJarFile jarFile = new StrictJarFile(new File(resources, JAR_1).getAbsolutePath()); in testGetManifest() 129 … StrictJarFile jarFile = new StrictJarFile(new File(resources, "Integrate.jar").getAbsolutePath()); in testJarSigning_wellFormed() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 178 Resources resources = mActivity.getResources(); in isRestartingAnimation() local 180 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 185 Resources resources = mActivity.getResources(); in isRestartingClip() local 187 SMALL_SQUARE_SIZE_DP + SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip() 189 LARGE_SQUARE_SIZE_DP - SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip() 208 Resources resources = mActivity.getResources(); in validateViewPlacement() local 210 resources.getDisplayMetrics()); in validateViewPlacement() 234 Resources resources = mActivity.getResources(); in validateIntermediatePosition() local 236 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in validateIntermediatePosition() 238 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in validateIntermediatePosition() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableRowTest.java | 91 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()
|
D | ImageSwitcherTest.java | 67 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/libs/deviceutil/src/android/cts/util/ |
D | WidgetTestUtils.java | 118 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/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | ScriptC_set_target_api_11.java | 40 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()
|
D | ScriptC_set_target_api_12.java | 40 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()
|
D | ScriptC_set_target_api_15.java | 40 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()
|
D | ScriptC_set_target_api_16.java | 40 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()
|
D | ScriptC_set_target_api_17.java | 40 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()
|
D | ScriptC_set_target_api_18.java | 40 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()
|
D | ScriptC_set_target_api_13.java | 40 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()
|
D | ScriptC_set_target_api_14.java | 40 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()
|
D | ScriptC_set_target_api_19.java | 40 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()
|
D | ScriptC_set_target_api_too_high.java | 40 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()
|
D | ScriptC_leak.java | 40 public ScriptC_leak(RenderScript rs, Resources resources, int id) { in ScriptC_leak() argument 41 super(rs, resources, id); in ScriptC_leak()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ReferenceViewGroup.java | 41 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/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | BaseRenderScriptComparer.java | 23 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()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | ResourceModifier.java | 54 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/icu/ |
D | Android.mk | 29 LOCAL_JAVA_RESOURCE_DIRS := resources 72 LOCAL_JAVA_RESOURCE_DIRS := resources
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LevelListDrawableTest.java | 167 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()
|
D | GradientDrawableTest.java | 382 Resources resources = mContext.getResources(); in testInflate() local 383 XmlPullParser parser = resources.getXml(R.drawable.gradientdrawable); in testInflate() 395 gradientDrawable.inflate(resources, parser, attrs); in testInflate() 420 Resources resources = mContext.getResources(); in testInflateGradientRadius() local 425 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius() 431 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius() 466 Resources resources = mContext.getResources(); in testMutate() local 467 GradientDrawable d1 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() 468 GradientDrawable d2 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() 469 GradientDrawable d3 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate()
|
D | RotateDrawableTest.java | 47 Resources resources = mContext.getResources(); in setUp() local 48 mRotateDrawable = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in setUp() 265 Resources resources = mContext.getResources(); in testMutate() local 267 RotateDrawable d1 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() 268 RotateDrawable d2 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() 269 RotateDrawable d3 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VideoDecoderPerfTest.java | 262 private MediaFormat[] getVideoTrackFormats(int... resources) throws Exception { in getVideoTrackFormats() argument 263 MediaFormat[] formats = new MediaFormat[resources.length]; in getVideoTrackFormats() 264 for (int i = 0; i < resources.length; ++i) { in getVideoTrackFormats() 265 formats[i] = MediaUtils.getTrackFormatForResource(mContext, resources[i], "video/"); in getVideoTrackFormats() 270 private void count(int[] resources, int numGoog, int numOther) throws Exception { in count() argument 271 MediaFormat[] formats = getVideoTrackFormats(resources); in count() 276 private void perf(int[] resources, boolean isGoog, int ix) throws Exception { in perf() argument 277 MediaFormat[] formats = getVideoTrackFormats(resources); in perf() 291 for (int i = 0; i < resources.length; ++i) { in perf() 293 decode(decoderName, resources[i], formats[i]); in perf()
|
/cts/tests/jdwp/runner/host-side/ |
D | Android.mk | 30 LOCAL_JAVA_RESOURCE_DIRS := resources
|