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

12

/frameworks/av/drm/libdrmframework/include/
H A DReadWriteUtils.h45 * @param[in] filePath Path of the file
48 static String8 readBytes(const String8& filePath);
52 * @param[in] filePath Path of the file
56 static int readBytes(const String8& filePath, char** buffer);
60 * @param[in] filePath Path of the file
63 static void writeToFile(const String8& filePath, const String8& data);
67 * @param[in] filePath Path of the file
70 static void appendToFile(const String8& filePath, const String8& data);
/frameworks/base/core/java/android/content/res/
H A DObbScanner.java33 * @param filePath path to the OBB file to be scanned.
38 public static ObbInfo getObbInfo(String filePath) throws IOException { argument
39 if (filePath == null) {
43 final File obbFile = new File(filePath);
45 throw new IllegalArgumentException("OBB file does not exist: " + filePath);
61 private native static void getObbInfo_native(String filePath, ObbInfo obbInfo) argument
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp35 String8 ReadWriteUtils::readBytes(const String8& filePath) { argument
37 file = fopen(filePath.string(), "r");
57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { argument
59 file = fopen(filePath.string(), "r");
78 void ReadWriteUtils::writeToFile(const String8& filePath, const String8& data) { argument
80 file = fopen(filePath.string(), "w+");
88 ALOGE("Failed to write the data to: %s", filePath.string());
95 void ReadWriteUtils::appendToFile(const String8& filePath, const String8& data) { argument
97 file = fopen(filePath.string(), "a+");
104 ALOGE("Failed to write the data to: %s", filePath
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java67 String filePath = mFile.getAbsolutePath();
68 mountObb(filePath);
69 verifyObb1Contents(filePath);
70 unmountObb(filePath, DONT_FORCE);
119 String filePath = mFile.getAbsolutePath();
120 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED);
121 verifyObb3Contents(filePath);
122 unmountObb(filePath, DONT_FORCE);
131 String filePath = mFile.getAbsolutePath();
132 mountObb(filePath, OBB_FILE_3_PASSWOR
[all...]
H A DStorageManagerBaseTest.java558 * @param filePath The full normalized path to the OBB file
561 protected String doWaitForPath(String filePath) { argument
565 assertTrue("OBB " + filePath + " is not currently mounted!", mSm.isObbMounted(filePath));
571 fail("Timed out waiting to get path of OBB file " + filePath);
576 path = mSm.getMountedObbPath(filePath);
587 * @param filePath The normalized path to the already-mounted OBB file
589 protected void verifyObb1Contents(String filePath) { argument
591 path = doWaitForPath(filePath);
604 * @param filePath Th
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java88 public static int getDuration(String filePath) { argument
89 Log.v(TAG, "getDuration - " + filePath);
92 mp.setDataSource(filePath);
104 public static boolean getCurrentPosition(String filePath){ argument
105 Log.v(TAG, "GetCurrentPosition - " + filePath);
111 mp.setDataSource(filePath);
129 if (filePath.equals(MediaNames.SHORTMP3)){
139 public static boolean seekTo(String filePath){ argument
140 Log.v(TAG, "seekTo " + filePath);
144 mp.setDataSource(filePath);
163 setLooping(String filePath) argument
201 pause(String filePath) argument
230 prepareStopRelease(String filePath) argument
239 preparePauseRelease(String filePath) argument
259 videoHeight(String filePath) argument
294 videoWidth(String filePath) argument
330 videoSeekTo(String filePath) argument
376 seekToEnd(String filePath) argument
403 shortMediaStop(String filePath) argument
430 playToEnd(String filePath) argument
461 seektoBeforeStart(String filePath) argument
484 mediaRecorderRecord(String filePath) argument
522 getThumbnail(String filePath, String goldenPath) argument
589 prepareAsyncReset(String filePath) argument
605 isLooping(String filePath) argument
639 isLoopingAfterReset(String filePath) argument
711 prepareAsyncCallback(String filePath, boolean reset) argument
788 playMediaSamples(String filePath) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp42 const char* filePath = env->GetStringUTFChars(file, NULL); local
45 if (!obb->readFrom(filePath)) {
46 env->ReleaseStringUTFChars(file, filePath);
51 env->ReleaseStringUTFChars(file, filePath);
H A Dcom_android_internal_content_NativeLibraryHelper.cpp99 isFileDifferent(const char* filePath, size_t fileSize, time_t modifiedTime, argument
102 if (lstat64(filePath, st) < 0) {
104 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno));
122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY));
124 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno));
136 ALOGV("%s: crc = %lx, zipCrc = %lx\n", filePath, crc, zipCrc);
272 ScopedUtfChars filePath(env, javaFilePath);
278 if (zipFile.open(filePath.c_str()) != NO_ERROR) {
279 ALOGI("Couldn't open APK %s\n", filePath.c_str());
/frameworks/av/media/mtp/
H A DMtpStorage.cpp35 MtpStorage::MtpStorage(MtpStorageID id, const char* filePath, argument
39 mFilePath(filePath),
46 ALOGV("MtpStorage id: %d path: %s\n", id, filePath);
H A DMtpStorage.h40 MtpStorage(MtpStorageID id, const char* filePath,
H A DMtpServer.cpp727 const char* filePath = (const char *)pathBuf; local
729 mfr.fd = open(filePath, O_RDONLY);
792 const char* filePath = (const char *)pathBuf; local
794 mfr.fd = open(filePath, O_RDONLY);
1052 MtpString filePath; local
1054 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format);
1056 ALOGV("deleting %s", (const char *)filePath);
1060 deletePath((const char *)filePath);
1112 const char* filePath = (const char *)edit->mPath; local
1113 ALOGV("receiving partial %s %lld %lld\n", filePath, offse
[all...]
/frameworks/base/core/java/android/app/backup/
H A DBackupAgent.java324 String filePath;
348 filePath = file.getCanonicalPath();
354 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) {
361 if (filePath.startsWith(dbDir)) {
364 } else if (filePath.startsWith(spDir)) {
367 } else if (filePath.startsWith(filesDir)) {
370 } else if (filePath.startsWith(mainDir)) {
373 } else if ((efDir != null) && filePath.startsWith(efDir)) {
377 Log.w(TAG, "File " + filePath
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/
H A DMediaPlayerPowerTest.java49 public void audioPlayback(String filePath) { argument
52 mp.setDataSource(filePath);
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java84 * @param filePath the path of image file
90 public static Bitmap createImageThumbnail(String filePath, int kind) { argument
100 MediaFileType fileType = MediaFile.getFileType(filePath);
102 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
109 stream = new FileInputStream(filePath);
129 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom);
155 * @param filePath the path of video file
158 public static Bitmap createVideoThumbnail(String filePath, int kind) { argument
162 retriever.setDataSource(filePath);
478 private static void createThumbnailFromEXIF(String filePath, in argument
[all...]
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
H A DObbBackupService.java72 final String filePath = f.getCanonicalPath();
74 Log.i(TAG, "storing: " + filePath);
77 rootPath, filePath, out);
/frameworks/base/core/java/com/android/internal/content/
H A DNativeLibraryHelper.java48 private native static int nativeCopyNativeBinaries(String filePath, String sharedLibraryPath, argument
/frameworks/base/include/androidfw/
H A DBackupHelpers.h138 const String8& rootPath, const String8& filePath, BackupDataWriter* outputStream);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DSmartCamera.java89 public void runGraphOnImage(String filePath, String fileName) { argument
93 mGraph.getVariable("gallerySource").setValue(filePath + "/" + fileName);
94 Log.v(TAG, "runGraphOnImage : : " + filePath + " name: " + fileName);
96 mGraph.getVariable("filePath").setValue(filePath); // wrong
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java190 public static Bitmap createVideoThumbnail(String filePath) { argument
200 method.invoke(instance, filePath);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DVideoEditorHelper.java432 final String filePath = location + dateFormat.format(date) +
435 "\t FilePath = " + filePath);
436 return filePath;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A 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/
H A DMediaStore.java550 String filePath = c.getString(1);
609 String filePath = null;
680 if (filePath == null) {
686 filePath = c.getString(1);
689 bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind);
691 bitmap = ThumbnailUtils.createImageThumbnail(filePath, kind);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java282 protected void setWallpaper(String filePath, final boolean finishActivityWhenDone) { argument
283 int rotation = getRotationFromExif(filePath);
285 this, filePath, null, rotation, 0, 0, true, false, null);
446 public BitmapCropTask(Context c, String filePath, argument
450 mInFilePath = filePath;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java233 private boolean validateVideo(String filePath, int width, int height) { argument
235 getOutputVideoProperty(filePath);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
H A DMediaPlayerPerformance.java263 public void stressAudioRecord(String filePath) { argument
271 mRecorder.setOutputFile(filePath);

Completed in 829 milliseconds

12