Home
last modified time | relevance | path

Searched refs:fileUri (Results 1 – 15 of 15) 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/tests/provider/src/android/provider/cts/media/
DMediaStore_FilesTest.java103 Uri fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri() local
104 long fileId = ContentUris.parseId(fileUri); in testGetContentUri()
105 assertEquals(fileUri, ContentUris.withAppendedId(allFilesUri, fileId)); in testGetContentUri()
109 assertEquals(fileUri, rowUri); in testGetContentUri()
115 assertStringColumn(fileUri, MediaColumns.DATA, dataPath); in testGetContentUri()
121 assertEquals(1, mResolver.update(fileUri, values, null, null)); in testGetContentUri()
122 assertStringColumn(fileUri, MediaColumns.DATA, updatedPath); in testGetContentUri()
126 assertEquals(foo, fileUri); in testGetContentUri()
129 assertEquals(1, mResolver.delete(fileUri, null, null)); in testGetContentUri()
133 Cursor cursor = mResolver.query(fileUri, null, null, null, null); in testGetContentUri()
[all …]
DMediaStore_Video_ThumbnailsTest.java187 Uri fileUri = ContentUris.withAppendedId( in testThumbnailGenerationAndCleanup() local
190 c = mResolver.query(fileUri, in testThumbnailGenerationAndCleanup()
197 mResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup()
DMediaStore_Images_ThumbnailsTest.java353 Uri fileUri = ContentUris.withAppendedId( in testThumbnailGenerationAndCleanup() local
356 c = mContentResolver.query(fileUri, in testThumbnailGenerationAndCleanup()
363 mContentResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSource.java80 final Uri fileUri = Uri.fromFile(new File("/sdcard/sample.jpg")); in onCreate() local
82 setUpDragSource("file_local", fileUri, 0); in onCreate()
83 setUpDragSource("file_global", fileUri, View.DRAG_FLAG_GLOBAL); in onCreate()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java441 private void transcodeFile(Uri fileUri, boolean testFileDescriptor) throws Exception { in transcodeFile() argument
451 MediaFormat srcVideoFormat = getVideoTrackFormat(fileUri); in transcodeFile()
475 new VideoTranscodingRequest.Builder(fileUri, destinationUri, videoTrackFormat) in transcodeFile()
483 srcFd = mContentResolver.openAssetFileDescriptor(fileUri, in transcodeFile()
508 assertEquals(fileUri, request.getSourceUri()); in transcodeFile()
526 "transcoded_" + System.nanoTime() + "_" + fileUri.getLastPathSegment(); in transcodeFile()
548 MediaTranscodingTestUtil.computeStats(mContext, fileUri, destinationUri, DEBUG_YUV); in transcodeFile()
769 private MediaFormat getVideoTrackFormat(Uri fileUri) throws IOException { in getVideoTrackFormat() argument
772 extractor.setDataSource(fileUri.toString()); in getVideoTrackFormat()
785 private boolean isVideoTranscodingSupported(Uri fileUri) throws IOException { in isVideoTranscodingSupported() argument
[all …]
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/tests/tests/os/src/android/os/cts/
DFileObserverLegacyPathTest.java81 Uri fileUri = mContext.getContentResolver().insert(imageUri, cv); in testCreateFile() local
83 OutputStream os = mContext.getContentResolver().openOutputStream(fileUri); in testCreateFile()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java439 private boolean queryFileExists(Uri fileUri) { in queryFileExists() argument
440 Cursor c = mDe.getContentResolver().query(fileUri, null, null, null, null); in queryFileExists()
442 Log.w(TAG, "Couldn't query for file " + fileUri + "; returning false"); in queryFileExists()
459 Uri fileUri = FILE_INFO_URI.buildUpon().appendPath(fileName).build(); in awaitBroadcast() local
462 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.java965 final Uri fileUri = getFileUri(file); in assertCanQueryAndOpenFile() local
967 assertThat(fileUri).isNotNull(); in assertCanQueryAndOpenFile()
970 getContentResolver().openFileDescriptor(fileUri, mode)) { in assertCanQueryAndOpenFile()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java834 final Uri fileUri = getFileUri(file); in openWithMediaProvider() local
835 assertThat(fileUri).isNotNull(); in openWithMediaProvider()
836 Log.i(TAG, "Uri: " + fileUri + ". Data: " + file.getPath()); in openWithMediaProvider()
837 ParcelFileDescriptor pfd = getContentResolver().openFileDescriptor(fileUri, mode); in openWithMediaProvider()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerClientApiTest.java2170 final Uri fileUri = Uri.fromFile(file); in testShortcutsWithUriIcons() local
2171 final Icon icon1 = Icon.createWithContentUri(fileUri); in testShortcutsWithUriIcons()
2172 final Icon icon2 = Icon.createWithAdaptiveBitmapContentUri(fileUri); in testShortcutsWithUriIcons()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java3117 final Uri fileUri = getFileUri(file); in assertCanQueryAndOpenFile() local
3119 assertThat(fileUri).isNotNull(); in assertCanQueryAndOpenFile()
3122 getContentResolver().openFileDescriptor(fileUri, mode)) { in assertCanQueryAndOpenFile()