Home
last modified time | relevance | path

Searched refs:resid (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/content/src/android/content/res/cts/
DPrimitiveTest.java35 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 …]
DArrayTest.java34 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 …]
DResourceNameTest.java47 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()
DResourcesTest.java622 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 …]
DFractionTest.java76 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/
DMediaMetadataRetrieverTest.java46 protected void setDataSourceFd(int resid) { in setDataSourceFd() argument
48 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); in setDataSourceFd()
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java136 int resid, in onApplyThemeResource() argument
138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java53 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/
DTestUtils.java419 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/
DImageSwitcherTest.java182 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument
183 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
DImageViewTest.java117 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument
118 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
DRemoteViewsTest.java1849 private void createSampleImage(File imagefile, int resid) throws IOException { in createSampleImage() argument
1850 try (InputStream source = mContext.getResources().openRawResource(resid); in createSampleImage()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java422 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/
DAudioPlaybackCaptureTest.java169 private MediaPlayer createMediaPlayer(@CapturePolicy int capturePolicy, int resid, in createMediaPlayer() argument
173 resid, in createMediaPlayer()
DMediaScannerTest.java97 private void writeFile(int resid, String path) throws IOException { in writeFile() argument
102 copier.copyToExternalStorage(resid, out); in writeFile()