Home
last modified time | relevance | path

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

/cts/tests/tests/notification/NotificationProvider/src/com/android/test/notificationprovider/
DAssetFileProvider.kt29 override fun openAssetFile(uri: Uri, mode: String): AssetFileDescriptor? { in openAssetFile() method in com.android.test.notificationprovider.AssetFileProvider
35 return super.openAssetFile(uri, mode) in openAssetFile()
/cts/tests/app/app/src/android/app/stubs/
DAssetFileProvider.kt27 override fun openAssetFile(uri: Uri, mode: String): AssetFileDescriptor? { in onCreate() method in android.app.stubs.AssetFileProvider
33 return super.openAssetFile(uri, mode) in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DAssetsProvider.java41 public AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode) in openAssetFile() method in AssetsProvider
53 return super.openAssetFile(uri, mode); in openAssetFile()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java300 mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal); in testOpenAssetFile()
302 … verify(mIContentProvider).openAssetFile(mAttributionSource, URI, MODE, mICancellationSignal); in testOpenAssetFile()
307 doAnswer(ANSWER_SLEEP).when(mIContentProvider).openAssetFile(mAttributionSource, in testOpenAssetFileTimeout()
310 testTimeout(() -> mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal)); in testOpenAssetFileTimeout()
312 verify(mIContentProvider, after(150)).openAssetFile(mAttributionSource, URI, MODE, in testOpenAssetFileTimeout()
318 () -> mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal)); in testOpenAssetFileAlreadyCancelled()
320 verify(mIContentProvider, never()).openAssetFile(mAttributionSource, URI, MODE, in testOpenAssetFileAlreadyCancelled()
DContentResolverWrapTest.java191 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, MODE, null); in testOpenAssetFile()
192 assertEquals(ASSET_FD, mResolver.openAssetFile(URI, MODE, null)); in testOpenAssetFile()
207 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, "r", null); in testOpenStream()
208 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, "w", null); in testOpenStream()
DContentProviderTest.java101 mockContentProvider.openAssetFile(uri, "r"); in testOpenAssetFile()
291 assertAssetFileContents(cp.openAssetFile(uri, "r"), "OK"); in testOpenPipeHelper()
294 assertAssetFileContents(cp.openAssetFile(uri, "wrong"), in testOpenPipeHelper()
301 assertAssetFileContents(cp.openAssetFile(uri, "r"), in testOpenPipeHelper()
304 assertAssetFileContents(cp.openAssetFile((Uri) null, "r"), in testOpenPipeHelper()
539 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile() method in ContentProviderTest.OpenFilePipeContentProvider
DMockContentProvider.java391 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() method in MockContentProvider
401 return super.openAssetFile(uri, mode); in openAssetFile()
/cts/tests/tests/graphics/src/android/graphics/cts/
DEmptyProvider.java41 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() method in EmptyProvider
/cts/tests/tests/notification/NotificationListener/src/com/android/test/notificationlistener/
DNotificationUriAccessService.kt48 contentResolver.openAssetFile(uri!!, "r", null).use { return true } in isFileUriAccessible()
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/content-provider/src/android/security/cts/BUG_261036568_provider/
DImageProvider.java90 public AssetFileDescriptor openAssetFile(Uri uri, String mode) { in openAssetFile() method in ImageProvider
101 AssetFileDescriptor fd = openAssetFile(uri, mode); in openFile()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java73 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile() method in MockContentProvider
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetTestImageProvider.java64 public AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode) in openAssetFile() method in SharesheetTestImageProvider
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java223 public AssetFileDescriptor openAssetFile(final Uri uri, String mode) { in openAssetFile() method in DirectoryProvider
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java2333 try (AssetFileDescriptor fd = contentResolver.openAssetFile(uri, "r", null)) { in assertAccessible()
2351 try (AssetFileDescriptor fd = contentResolver.openAssetFile(uri, "r", null)) { in assertInaccessible()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt10219 …method @Nullable public android.content.res.AssetFileDescriptor openAssetFile(@NonNull android.net…
10220 …method @Nullable public android.content.res.AssetFileDescriptor openAssetFile(@NonNull android.net…
10264 …method @Nullable public android.content.res.AssetFileDescriptor openAssetFile(@NonNull android.net…
10265 …method @Nullable public android.content.res.AssetFileDescriptor openAssetFile(@NonNull android.net…
10388 …method @Nullable public final android.content.res.AssetFileDescriptor openAssetFile(@NonNull andro…
37101 …method public final android.content.res.AssetFileDescriptor openAssetFile(android.net.Uri, String)…
37102 …method public final android.content.res.AssetFileDescriptor openAssetFile(android.net.Uri, String,…