/cts/tests/tests/content/src/android/content/res/cts/ |
D | ArrayTest.java | 34 private void checkEntry(final int resid, final int index, final Object res, in checkEntry() argument 36 assertEquals("in resource 0x" + Integer.toHexString(resid) in checkEntry() 40 private void checkStringArray(final int resid, final String[] expected) { in checkStringArray() argument 41 final String[] res = mResources.getStringArray(resid); in checkStringArray() 44 checkEntry(resid, i, res[i], expected[i]); in checkStringArray() 48 private void checkTextArray(final int resid, final String[] expected) { in checkTextArray() argument 49 final CharSequence[] res = mResources.getTextArray(resid); in checkTextArray() 52 checkEntry(resid, i, res[i], expected[i]); in checkTextArray() 56 private void checkIntArray(final int resid, final int[] expected) { in checkIntArray() argument 57 final int[] res = mResources.getIntArray(resid); in checkIntArray() [all …]
|
D | PrimitiveTest.java | 35 private void tryEnum(final int resid, final int expected) { in tryEnum() argument 36 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.EnumStyle); in tryEnum() 41 + ": in resource 0x" + Integer.toHexString(resid), expected, value); in tryEnum() 52 private void tryFlag(final int resid, final int expected) { in tryFlag() argument 53 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.FlagStyle); in tryFlag() 58 + ": in resource 0x" + Integer.toHexString(resid), expected, value); in tryFlag() 70 private void tryBoolean(final int resid, final boolean expected) { in tryBoolean() argument 72 mContext.getResources().getValue(resid, v, true); in tryBoolean() 75 + " from TypedValue: in resource 0x" + Integer.toHexString(resid), in tryBoolean() 78 + " from getBoolean(): in resource 0x" + Integer.toHexString(resid), in tryBoolean() [all …]
|
D | ResourceNameTest.java | 47 int resid = res.getIdentifier( in testGetResourceIdentifier() local 50 assertEquals(R.configVarying.simple, resid); in testGetResourceIdentifier() 52 resid = res.getIdentifier("configVarying/simple", null, in testGetResourceIdentifier() 54 assertEquals(R.configVarying.simple, resid); in testGetResourceIdentifier() 56 resid = res.getIdentifier("simple", "configVarying", in testGetResourceIdentifier() 58 assertEquals(R.configVarying.simple, resid); in testGetResourceIdentifier()
|
D | ResourcesTest.java | 622 int resid = mResources.getIdentifier(COM_ANDROID_CTS_STUB_IDENTIFIER, null, null); in testGetIdentifier() local 623 assertEquals(R.configVarying.simple, resid); in testGetIdentifier() 625 resid = mResources.getIdentifier(CONFIG_VARYING_SIMPLE, null, PACKAGE_NAME); in testGetIdentifier() 626 assertEquals(R.configVarying.simple, resid); in testGetIdentifier() 628 resid = mResources.getIdentifier(SIMPLE, CONFIG_VARYING, PACKAGE_NAME); in testGetIdentifier() 629 assertEquals(R.configVarying.simple, resid); in testGetIdentifier() 736 private static void checkString(final int resid, final String actual, final String expected) { in checkString() argument 738 + actual + "\" in resources 0x" + Integer.toHexString(resid), in checkString() 757 private void checkStringArray(final int resid, final String[] expected) { in checkStringArray() argument 758 final String[] res = mResources.getStringArray(resid); in checkStringArray() [all …]
|
D | FractionTest.java | 76 private void tryFraction(final int resid, final float base, final float pbase, in tryFraction() argument 78 mResources.getValue(resid, mValue, true); in tryFraction() 87 + Integer.toHexString(resid) + " " + mValue, diff > prec); in tryFraction()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaMetadataRetrieverTest.java | 46 protected void setDataSourceFd(int resid) { in setDataSourceFd() argument 48 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); in setDataSourceFd()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | AppStubActivity.java | 136 int resid, in onApplyThemeResource() argument 138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 53 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument 55 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 419 public static Drawable getDrawable(Context context, @DrawableRes int resid) { 420 return context.getResources().getDrawable(resid); 423 public static Bitmap getBitmap(Context context, @DrawableRes int resid) { 424 return ((BitmapDrawable) getDrawable(context, resid)).getBitmap();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageSwitcherTest.java | 182 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument 183 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
|
D | ImageViewTest.java | 117 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument 118 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
|
D | RemoteViewsTest.java | 1913 private void createSampleImage(File imagefile, int resid) throws IOException { in createSampleImage() argument 1914 try (InputStream source = mContext.getResources().openRawResource(resid); in createSampleImage()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 422 final int resid = resources.getIdentifier(resourceName, null, null); in assertResourcesDoNotExist() local 423 if (resid != 0) { in assertResourcesDoNotExist() 424 fail("Found resource '" + resourceName + "' with ID " + Integer.toHexString(resid)); in assertResourcesDoNotExist()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPlaybackCaptureTest.java | 169 private MediaPlayer createMediaPlayer(@CapturePolicy int capturePolicy, int resid, in createMediaPlayer() argument 173 resid, in createMediaPlayer()
|
D | MediaScannerTest.java | 97 private void writeFile(int resid, String path) throws IOException { in writeFile() argument 102 copier.copyToExternalStorage(resid, out); in writeFile()
|