Home
last modified time | relevance | path

Searched refs:fileUri (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java69 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testSingleFileDownloadFlow() local
71 checkFileContentIntegrity(CtsDownloadService.FILE_INFO_1, fileUri); in testSingleFileDownloadFlow()
88 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testFileInSubdirectoryDownloadFlow() local
93 assertTrue("got path: " + fileUri.getPath() + ", should end with: " + file2RelativePath, in testFileInSubdirectoryDownloadFlow()
94 fileUri.getPath().endsWith(file2RelativePath)); in testFileInSubdirectoryDownloadFlow()
95 checkFileContentIntegrity(CtsDownloadService.FILE_INFO_2, fileUri); in testFileInSubdirectoryDownloadFlow()
114 Uri fileUri = null; in testMultiFileDownloadFlow() local
116 fileUri = checkReceivedDownloadCompleteIntent( in testMultiFileDownloadFlow()
119 fileUri = checkReceivedDownloadCompleteIntent( in testMultiFileDownloadFlow()
126 assertTrue("got path: " + fileUri.getPath() + ", should end with: " + relativePath, in testMultiFileDownloadFlow()
[all …]
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_FilesTest.java102 Uri fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri() local
103 long fileId = ContentUris.parseId(fileUri); in testGetContentUri()
104 assertEquals(fileUri, ContentUris.withAppendedId(allFilesUri, fileId)); in testGetContentUri()
108 assertEquals(fileUri, rowUri); in testGetContentUri()
114 assertStringColumn(fileUri, MediaColumns.DATA, dataPath); in testGetContentUri()
120 assertEquals(1, mResolver.update(fileUri, values, null, null)); in testGetContentUri()
121 assertStringColumn(fileUri, MediaColumns.DATA, updatedPath); in testGetContentUri()
125 assertEquals(foo, fileUri); in testGetContentUri()
128 assertEquals(1, mResolver.delete(fileUri, null, null)); in testGetContentUri()
132 Cursor cursor = mResolver.query(fileUri, null, null, null, null); in testGetContentUri()
[all …]
DMediaStore_Video_ThumbnailsTest.java185 Uri fileUri = ContentUris.withAppendedId( in testThumbnailGenerationAndCleanup() local
188 c = mResolver.query(fileUri, in testThumbnailGenerationAndCleanup()
195 mResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup()
DMediaStore_Images_ThumbnailsTest.java348 Uri fileUri = ContentUris.withAppendedId( in testThumbnailGenerationAndCleanup() local
351 c = mContentResolver.query(fileUri, in testThumbnailGenerationAndCleanup()
358 mContentResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSource.java85 final Uri fileUri = Uri.fromFile(new File("/sdcard/sample.jpg")); in onCreate() local
87 setUpDragSource("file_local", fileUri, 0); in onCreate()
88 setUpDragSource("file_global", fileUri, View.DRAG_FLAG_GLOBAL); in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverLegacyPathTest.java83 Uri fileUri = mContext.getContentResolver().insert(imageUri, cv); in testCreateFile() local
85 OutputStream os = mContext.getContentResolver().openOutputStream(fileUri); in testCreateFile()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java435 private void transcodeFile(Uri fileUri, boolean testFileDescriptor) throws Exception { in transcodeFile() argument
445 MediaFormat srcVideoFormat = getVideoTrackFormat(fileUri); in transcodeFile()
469 new VideoTranscodingRequest.Builder(fileUri, destinationUri, videoTrackFormat) in transcodeFile()
477 srcFd = mContentResolver.openAssetFileDescriptor(fileUri, in transcodeFile()
502 assertEquals(fileUri, request.getSourceUri()); in transcodeFile()
520 "transcoded_" + System.nanoTime() + "_" + fileUri.getLastPathSegment(); in transcodeFile()
542 MediaTranscodingTestUtil.computeStats(mContext, fileUri, destinationUri, DEBUG_YUV); in transcodeFile()
889 private MediaFormat getVideoTrackFormat(Uri fileUri) throws IOException { in getVideoTrackFormat() argument
892 extractor.setDataSource(fileUri.toString()); in getVideoTrackFormat()
DMediaTranscodingTestUtil.java175 private static void decodeMp4ToYuv(final Context ctx, final Uri fileUri, final Uri yuvUri) in decodeMp4ToYuv() argument
186 fileFd = ctx.getContentResolver().openAssetFileDescriptor(fileUri, "r"); in decodeMp4ToYuv()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java458 private boolean queryFileExists(Uri fileUri) { in queryFileExists() argument
459 Cursor c = mDe.getContentResolver().query(fileUri, null, null, null, null); in queryFileExists()
461 Log.w(TAG, "Couldn't query for file " + fileUri + "; returning false"); in queryFileExists()
478 Uri fileUri = FILE_INFO_URI.buildUpon().appendPath(fileName).build(); in awaitBroadcast() local
481 BOOT_TIMEOUT_SECONDS, () -> queryFileExists(fileUri)); in awaitBroadcast()
/cts/tests/tests/mediastress/jni/
Dnative-media-jni.cpp315 jclass clazz, jstring fileUri) in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer() argument
320 const char *utf8 = env->GetStringUTFChars(fileUri, NULL); in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer()
366 env->ReleaseStringUTFChars(fileUri, utf8); in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaActivity.java184 public static native boolean createMediaPlayer(String fileUri); in createMediaPlayer() argument
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java1251 final Uri fileUri = getFileUri(file); in assertCanQueryAndOpenFile() local
1253 assertThat(fileUri).isNotNull(); in assertCanQueryAndOpenFile()
1256 getContentResolver().openFileDescriptor(fileUri, mode)) { in assertCanQueryAndOpenFile()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1019 final Uri fileUri = getFileUri(file); in openWithMediaProvider() local
1020 assertThat(fileUri).isNotNull(); in openWithMediaProvider()
1021 Log.i(TAG, "Uri: " + fileUri + ". Data: " + file.getPath()); in openWithMediaProvider()
1022 ParcelFileDescriptor pfd = getContentResolver().openFileDescriptor(fileUri, mode); in openWithMediaProvider()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerClientApiTest.java2218 final Uri fileUri = Uri.fromFile(file); in testShortcutsWithUriIcons() local
2219 final Icon icon1 = Icon.createWithContentUri(fileUri); in testShortcutsWithUriIcons()
2220 final Icon icon2 = Icon.createWithAdaptiveBitmapContentUri(fileUri); in testShortcutsWithUriIcons()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1651 final Uri fileUri = Uri.parse("file://some.file"); in testCheckContentUriPermissionFull_exceptionsAndNonExistentProviders() local
1667 mContext.checkContentUriPermissionFull(fileUri, myPid, myUid, in testCheckContentUriPermissionFull_exceptionsAndNonExistentProviders()
1673 int res = mContext.checkContentUriPermissionFull(fileUri, myPid, Process.INVALID_UID, in testCheckContentUriPermissionFull_exceptionsAndNonExistentProviders()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java3415 final Uri fileUri = getFileUri(file); in assertCanQueryAndOpenFile() local
3417 assertThat(fileUri).isNotNull(); in assertCanQueryAndOpenFile()
3420 getContentResolver().openFileDescriptor(fileUri, mode)) { in assertCanQueryAndOpenFile()