Home
last modified time | relevance | path

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

/cts/tests/app/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/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java296 mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal); in testOpenAssetFile()
298 … verify(mIContentProvider).openAssetFile(mAttributionSource, URI, MODE, mICancellationSignal); in testOpenAssetFile()
303 doAnswer(ANSWER_SLEEP).when(mIContentProvider).openAssetFile(mAttributionSource, in testOpenAssetFileTimeout()
306 testTimeout(() -> mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal)); in testOpenAssetFileTimeout()
308 verify(mIContentProvider).openAssetFile(mAttributionSource, URI, MODE, in testOpenAssetFileTimeout()
314 () -> mContentProviderClient.openAssetFile(URI, MODE, mCancellationSignal)); in testOpenAssetFileAlreadyCancelled()
316 verify(mIContentProvider, never()).openAssetFile(mAttributionSource, URI, MODE, in testOpenAssetFileAlreadyCancelled()
DContentResolverWrapTest.java189 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, MODE, null); in testOpenAssetFile()
190 assertEquals(ASSET_FD, mResolver.openAssetFile(URI, MODE, null)); in testOpenAssetFile()
205 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, "r", null); in testOpenStream()
206 doReturn(ASSET_FD).when(mProvider).openAssetFile(URI, "w", null); in testOpenStream()
DMockContentProvider.java391 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() method in MockContentProvider
401 return super.openAssetFile(uri, mode); in openAssetFile()
DContentProviderTest.java92 mockContentProvider.openAssetFile(uri, "r"); in testOpenAssetFile()
/cts/tests/app/NotificationListener/src/com/android/test/notificationlistener/
DNotificationUriAccessService.kt48 contentResolver.openAssetFile(uri!!, "r", null).use { return true } in isFileUriAccessible()
/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/webkit/src/android/webkit/cts/
DMockContentProvider.java73 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile() method in MockContentProvider
/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/app/src/android/app/cts/
DNotificationManagerTest.java3089 try (AssetFileDescriptor fd = contentResolver.openAssetFile(uri, "r", null)) { in assertAccessible()
3099 try (AssetFileDescriptor fd = contentResolver.openAssetFile(uri, "r", null)) { in assertInaccessible()