Home
last modified time | relevance | path

Searched refs:resourceName (Results 1 – 14 of 14) sorted by relevance

/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DResourceStore.java56 public static Stream<VirtualPath> readResource(ClassLoader classLoader, String resourceName) { in readResource() argument
58 VirtualPath resourcePath = VirtualPath.get(classLoader, resourceName); in readResource()
59 if (resourceName.endsWith(".zip")) { in readResource()
65 Path path = extractResourceToFile(resourceName, resourcePath); in readResource()
94 private static Path extractResourceToFile(String resourceName, VirtualPath resourcePath) in extractResourceToFile() argument
97 Path file = tempDirectory.resolve(resourceName); in extractResourceToFile()
99 Log.i(TAG, "extractResourceToFile: extracting " + resourceName + " to " + file); in extractResourceToFile()
DAbstractApiTest.java261 .flatMap(resourceName -> ResourceStore.readResource(classLoader, resourceName));
/cts/tests/tests/content/src/android/content/cts/
DIntent_ShortcutIconResourceTest.java44 String resourceName = mContext.getResources().getResourceName( in testToString() local
54 String resourceName = mContext.getResources().getResourceName( in testFromContext() local
60 assertEquals(resourceName, mShortcutIconResource.resourceName); in testFromContext()
76 assertEquals(mShortcutIconResource.resourceName, target.resourceName); in testWriteToParcel()
/cts/hostsidetests/silentupdate/testapp/src/com/android/tests/silentupdate/
DSilentUpdateTests.java272 private int silentInstallResource(String resourceName) throws Exception { in silentInstallResource() argument
273 return install(resourceSupplier(resourceName), false); in silentInstallResource()
276 private int installResource(String resourceName, Boolean requireUserAction) throws Exception { in installResource() argument
277 return install(resourceSupplier(resourceName), requireUserAction); in installResource()
335 private Supplier<InputStream> resourceSupplier(String resourceName) { in resourceSupplier() argument
338 getClass().getClassLoader().getResourceAsStream(resourceName); in resourceSupplier()
340 throw new RuntimeException("Resource " + resourceName + " could not be found."); in resourceSupplier()
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java338 for (String resourceName : app.getResourceNames()) { in createSingleInstallSession()
339 try (OutputStream os = session.openWrite(resourceName, 0, -1); in createSingleInstallSession()
340 InputStream is = app.getResourceStream(resourceName);) { in createSingleInstallSession()
342 throw new IOException("Resource " + resourceName + " not found"); in createSingleInstallSession()
/cts/tests/signature/lib/android/src/android/signature/cts/
DVirtualPath.java52 public static ResourcePath get(ClassLoader classLoader, String resourceName) in get() argument
54 return new ResourcePath(classLoader, resourceName); in get()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestHelper.java131 UiObject2 findUiObject(String resourceName) { in findUiObject() argument
132 return mUiDevice.findObject(By.res(resourceName)); in findUiObject()
/cts/tests/tests/packageinstaller/packagescheme/src/android/packageinstaller/packagescheme/cts/
DPackageSchemeTestBase.kt217 private fun resourceSupplier(resourceName: String): Supplier<InputStream> { in <lambda>()
219 val resourceAsStream = javaClass.classLoader.getResourceAsStream(resourceName) in <lambda>()
220 ?: throw RuntimeException("Resource $resourceName could not be found.") in <lambda>()
/cts/hostsidetests/compilation/status_checker_app/src/android/compilation/cts/statuscheckerapp/
DStatusCheckerAppTest.java143 public File copyResourceToFile(String resourceName, File file) throws Exception { in copyResourceToFile() argument
145 InputStream inputStream = getClass().getResourceAsStream(resourceName)) { in copyResourceToFile()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DUtils.java154 public File copyResourceToFile(String resourceName, File file) throws Exception { in copyResourceToFile() argument
156 InputStream inputStream = getClass().getResourceAsStream(resourceName)) { in copyResourceToFile()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java421 for (String resourceName : resourceNames) { in assertResourcesDoNotExist()
422 final int resid = resources.getIdentifier(resourceName, null, null); in assertResourcesDoNotExist()
424 fail("Found resource '" + resourceName + "' with ID " + Integer.toHexString(resid)); in assertResourcesDoNotExist()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java779 String resourceName = path.substring(RAW_PREFIX.length()); in getResponse() local
780 int id = mResources.getIdentifier(resourceName, "raw", mContext.getPackageName()); in getResponse()
782 Log.w(TAG, "Can't find raw resource " + resourceName); in getResponse()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java783 private void testSingleDrawInstruction(final String resourceName, final int docId, in testSingleDrawInstruction() argument
791 final float rmse = compareImages(expectedBitmap, actualBitmap, resourceName); in testSingleDrawInstruction()
796 actualBitmap, resourceName + "_actual"); in testSingleDrawInstruction()
798 expectedBitmap, resourceName + "_expected"); in testSingleDrawInstruction()
799 Assert.fail("Failed validating " + resourceName + " rmse=" + rmse in testSingleDrawInstruction()
825 private String saveBitmapToFile(final Bitmap image, final String resourceName) in saveBitmapToFile() argument
832 final File dest = new File(dir, resourceName + "_" + System.currentTimeMillis() + ".png"); in saveBitmapToFile()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt11500 field public String resourceName;