Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java88 public static int getDuration(String filePath) { in getDuration() argument
89 Log.v(TAG, "getDuration - " + filePath); in getDuration()
92 mp.setDataSource(filePath); in getDuration()
104 public static boolean getCurrentPosition(String filePath){ in getCurrentPosition() argument
105 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition()
111 mp.setDataSource(filePath); in getCurrentPosition()
129 if (filePath.equals(MediaNames.SHORTMP3)){ in getCurrentPosition()
139 public static boolean seekTo(String filePath){ in seekTo() argument
140 Log.v(TAG, "seekTo " + filePath); in seekTo()
144 mp.setDataSource(filePath); in seekTo()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java67 String filePath = mFile.getAbsolutePath(); in testMountSingleObb() local
68 mountObb(filePath); in testMountSingleObb()
69 verifyObb1Contents(filePath); in testMountSingleObb()
70 unmountObb(filePath, DONT_FORCE); in testMountSingleObb()
119 String filePath = mFile.getAbsolutePath(); in testMountSingleEncryptedObb() local
120 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb()
121 verifyObb3Contents(filePath); in testMountSingleEncryptedObb()
122 unmountObb(filePath, DONT_FORCE); in testMountSingleEncryptedObb()
131 String filePath = mFile.getAbsolutePath(); in testMountSingleEncryptedObbInvalidPassword() local
132 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in testMountSingleEncryptedObbInvalidPassword()
[all …]
DStorageManagerBaseTest.java561 protected String doWaitForPath(String filePath) { in doWaitForPath() argument
565 assertTrue("OBB " + filePath + " is not currently mounted!", mSm.isObbMounted(filePath)); in doWaitForPath()
571 fail("Timed out waiting to get path of OBB file " + filePath); in doWaitForPath()
576 path = mSm.getMountedObbPath(filePath); in doWaitForPath()
589 protected void verifyObb1Contents(String filePath) { in verifyObb1Contents() argument
591 path = doWaitForPath(filePath); in verifyObb1Contents()
/frameworks/av/drm/common/
DReadWriteUtils.cpp35 String8 ReadWriteUtils::readBytes(const String8& filePath) { in readBytes() argument
37 file = fopen(filePath.string(), "r"); in readBytes()
57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { in readBytes() argument
59 file = fopen(filePath.string(), "r"); in readBytes()
78 void ReadWriteUtils::writeToFile(const String8& filePath, const String8& data) { in writeToFile() argument
80 file = fopen(filePath.string(), "w+"); in writeToFile()
88 ALOGE("Failed to write the data to: %s", filePath.string()); in writeToFile()
95 void ReadWriteUtils::appendToFile(const String8& filePath, const String8& data) { in appendToFile() argument
97 file = fopen(filePath.string(), "a+"); in appendToFile()
104 ALOGE("Failed to write the data to: %s", filePath.string()); in appendToFile()
/frameworks/base/core/java/android/content/res/
DObbScanner.java38 public static ObbInfo getObbInfo(String filePath) throws IOException { in getObbInfo() argument
39 if (filePath == null) { in getObbInfo()
43 final File obbFile = new File(filePath); in getObbInfo()
45 throw new IllegalArgumentException("OBB file does not exist: " + filePath); in getObbInfo()
61 private native static void getObbInfo_native(String filePath, ObbInfo obbInfo) in getObbInfo_native() argument
/frameworks/av/drm/libdrmframework/include/
DReadWriteUtils.h48 static String8 readBytes(const String8& filePath);
56 static int readBytes(const String8& filePath, char** buffer);
63 static void writeToFile(const String8& filePath, const String8& data);
70 static void appendToFile(const String8& filePath, const String8& data);
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java324 String filePath; in fullBackupFile() local
348 filePath = file.getCanonicalPath(); in fullBackupFile()
354 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) { in fullBackupFile()
361 if (filePath.startsWith(dbDir)) { in fullBackupFile()
364 } else if (filePath.startsWith(spDir)) { in fullBackupFile()
367 } else if (filePath.startsWith(filesDir)) { in fullBackupFile()
370 } else if (filePath.startsWith(mainDir)) { in fullBackupFile()
373 } else if ((efDir != null) && filePath.startsWith(efDir)) { in fullBackupFile()
377 Log.w(TAG, "File " + filePath + " is in an unsupported location; skipping"); in fullBackupFile()
382 Log.i(TAG, "backupFile() of " + filePath + " => domain=" + domain in fullBackupFile()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp99 isFileDifferent(const char* filePath, size_t fileSize, time_t modifiedTime, in isFileDifferent() argument
102 if (lstat64(filePath, st) < 0) { in isFileDifferent()
104 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); in isFileDifferent()
122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); in isFileDifferent()
124 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); in isFileDifferent()
136 ALOGV("%s: crc = %lx, zipCrc = %lx\n", filePath, crc, zipCrc); in isFileDifferent()
272 ScopedUtfChars filePath(env, javaFilePath); in iterateOverNativeFiles() local
278 if (zipFile.open(filePath.c_str()) != NO_ERROR) { in iterateOverNativeFiles()
279 ALOGI("Couldn't open APK %s\n", filePath.c_str()); in iterateOverNativeFiles()
Dandroid_content_res_ObbScanner.cpp42 const char* filePath = env->GetStringUTFChars(file, NULL); in android_content_res_ObbScanner_getObbInfo() local
45 if (!obb->readFrom(filePath)) { in android_content_res_ObbScanner_getObbInfo()
46 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo()
51 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java90 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail() argument
100 MediaFileType fileType = MediaFile.getFileType(filePath); in createImageThumbnail()
102 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap); in createImageThumbnail()
109 stream = new FileInputStream(filePath); in createImageThumbnail()
129 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom); in createImageThumbnail()
158 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail() argument
162 retriever.setDataSource(filePath); in createVideoThumbnail()
478 private static void createThumbnailFromEXIF(String filePath, int targetSize, in createThumbnailFromEXIF() argument
480 if (filePath == null) return; in createThumbnailFromEXIF()
485 exif = new ExifInterface(filePath); in createThumbnailFromEXIF()
[all …]
/frameworks/av/media/mtp/
DMtpStorage.cpp35 MtpStorage::MtpStorage(MtpStorageID id, const char* filePath, in MtpStorage() argument
39 mFilePath(filePath), in MtpStorage()
46 ALOGV("MtpStorage id: %d path: %s\n", id, filePath); in MtpStorage()
DMtpServer.cpp727 const char* filePath = (const char *)pathBuf; in doGetObject() local
729 mfr.fd = open(filePath, O_RDONLY); in doGetObject()
792 const char* filePath = (const char *)pathBuf; in doGetPartialObject() local
794 mfr.fd = open(filePath, O_RDONLY); in doGetPartialObject()
1052 MtpString filePath; in doDeleteObject() local
1054 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); in doDeleteObject()
1056 ALOGV("deleting %s", (const char *)filePath); in doDeleteObject()
1060 deletePath((const char *)filePath); in doDeleteObject()
1112 const char* filePath = (const char *)edit->mPath; in doSendPartialObject() local
1113 ALOGV("receiving partial %s %lld %lld\n", filePath, offset, length); in doSendPartialObject()
DMtpStorage.h40 MtpStorage(MtpStorageID id, const char* filePath,
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/
DMediaPlayerPowerTest.java49 public void audioPlayback(String filePath) { in audioPlayback() argument
52 mp.setDataSource(filePath); in audioPlayback()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DObbBackupService.java72 final String filePath = f.getCanonicalPath();
74 Log.i(TAG, "storing: " + filePath);
77 rootPath, filePath, out);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DSmartCamera.java89 public void runGraphOnImage(String filePath, String fileName) { in runGraphOnImage() argument
93 mGraph.getVariable("gallerySource").setValue(filePath + "/" + fileName); in runGraphOnImage()
94 Log.v(TAG, "runGraphOnImage : : " + filePath + " name: " + fileName); in runGraphOnImage()
96 mGraph.getVariable("filePath").setValue(filePath); // wrong in runGraphOnImage()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java432 final String filePath = location + dateFormat.format(date) + in createRandomFile() local
435 "\t FilePath = " + filePath); in createRandomFile()
436 return filePath; in createRandomFile()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java48 private native static int nativeCopyNativeBinaries(String filePath, String sharedLibraryPath, in nativeCopyNativeBinaries() argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp536 const char *filePath = strchr(uri + sizeof(fileTag) - 1, '/'); local
537 if (NULL != filePath && onCanHandle(uniqueId, String8(filePath))) {
538 int fd = open(filePath, O_RDONLY);
/frameworks/base/core/java/android/provider/
DMediaStore.java550 String filePath = c.getString(1); in getMiniThumbFromFile() local
609 String filePath = null; in getThumbnail() local
680 if (filePath == null) { in getThumbnail()
686 filePath = c.getString(1); in getThumbnail()
689 bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind); in getThumbnail()
691 bitmap = ThumbnailUtils.createImageThumbnail(filePath, kind); in getThumbnail()
/frameworks/base/include/androidfw/
DBackupHelpers.h138 const String8& rootPath, const String8& filePath, BackupDataWriter* outputStream);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java190 public static Bitmap createVideoThumbnail(String filePath) { in createVideoThumbnail() argument
200 method.invoke(instance, filePath); in createVideoThumbnail()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java282 protected void setWallpaper(String filePath, final boolean finishActivityWhenDone) { in setWallpaper() argument
283 int rotation = getRotationFromExif(filePath); in setWallpaper()
285 this, filePath, null, rotation, 0, 0, true, false, null); in setWallpaper()
446 public BitmapCropTask(Context c, String filePath,
450 mInFilePath = filePath;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java233 private boolean validateVideo(String filePath, int width, int height) { in validateVideo() argument
235 getOutputVideoProperty(filePath); in validateVideo()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java263 public void stressAudioRecord(String filePath) { in stressAudioRecord() argument
271 mRecorder.setOutputFile(filePath); in stressAudioRecord()

12