/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 88 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/ |
D | StorageManagerIntegrationTest.java | 67 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 …]
|
D | StorageManagerBaseTest.java | 561 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/ |
D | ReadWriteUtils.cpp | 35 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/ |
D | ObbScanner.java | 38 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/ |
D | ReadWriteUtils.h | 48 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/ |
D | BackupAgent.java | 277 String filePath; in fullBackupFile() local 293 filePath = file.getCanonicalPath(); in fullBackupFile() 299 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) { in fullBackupFile() 306 if (filePath.startsWith(dbDir)) { in fullBackupFile() 309 } else if (filePath.startsWith(spDir)) { in fullBackupFile() 312 } else if (filePath.startsWith(filesDir)) { in fullBackupFile() 315 } else if (filePath.startsWith(mainDir)) { in fullBackupFile() 319 Log.w(TAG, "File " + filePath + " is in an unsupported location; skipping"); in fullBackupFile() 324 Log.i(TAG, "backupFile() of " + filePath + " => domain=" + domain in fullBackupFile() 326 FullBackup.backupToTar(getPackageName(), domain, null, rootpath, filePath, in fullBackupFile() local [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 99 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()
|
D | android_content_res_ObbScanner.cpp | 42 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/ |
D | ThumbnailUtils.java | 90 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 …]
|
D | MediaScanner.java | 1037 private void prescan(String filePath, boolean prescanFiles) throws RemoteException { 1048 if (filePath != null) { 1052 selectionArgs = new String[] { "", filePath };
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 35 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()
|
D | MtpServer.cpp | 726 const char* filePath = (const char *)pathBuf; in doGetObject() local 728 mfr.fd = open(filePath, O_RDONLY); in doGetObject() 791 const char* filePath = (const char *)pathBuf; in doGetPartialObject() local 793 mfr.fd = open(filePath, O_RDONLY); in doGetPartialObject() 1051 MtpString filePath; in doDeleteObject() local 1053 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); in doDeleteObject() 1055 ALOGV("deleting %s", (const char *)filePath); in doDeleteObject() 1059 deletePath((const char *)filePath); in doDeleteObject() 1111 const char* filePath = (const char *)edit->mPath; in doSendPartialObject() local 1112 ALOGV("receiving partial %s %lld %lld\n", filePath, offset, length); in doSendPartialObject()
|
D | MtpStorage.h | 40 MtpStorage(MtpStorageID id, const char* filePath,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
D | MediaPlayerPowerTest.java | 49 public void audioPlayback(String filePath) { in audioPlayback() argument 52 mp.setDataSource(filePath); in audioPlayback()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | VideoEditorHelper.java | 432 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/android/provider/ |
D | MediaStore.java | 471 String filePath = c.getString(1); in getMiniThumbFromFile() local 529 String filePath = null; in getThumbnail() local 600 if (filePath == null) { in getThumbnail() 606 filePath = c.getString(1); in getThumbnail() 609 bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind); in getThumbnail() 611 bitmap = ThumbnailUtils.createImageThumbnail(filePath, kind); in getThumbnail()
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
D | FwdLockEngine.cpp | 533 const char *filePath = strchr(uri + sizeof(fileTag) - 1, '/'); local 534 if (NULL != filePath && onCanHandle(uniqueId, String8(filePath))) { 535 int fd = open(filePath, O_RDONLY);
|
/frameworks/base/core/java/com/android/internal/content/ |
D | NativeLibraryHelper.java | 48 private native static int nativeCopyNativeBinaries(String filePath, String sharedLibraryPath, in nativeCopyNativeBinaries() argument
|
/frameworks/base/include/androidfw/ |
D | BackupHelpers.h | 138 const String8& rootPath, const String8& filePath, BackupDataWriter* outputStream);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
D | MediaRecorderTest.java | 233 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/ |
D | MediaPlayerPerformance.java | 248 public void stressAudioRecord(String filePath) { in stressAudioRecord() argument 256 mRecorder.setOutputFile(filePath); in stressAudioRecord()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewCore.java | 418 String filePath = ""; in openFileChooser() local 428 filePath = cursor.getString(0); in openFileChooser() 434 filePath = uri.getLastPathSegment(); in openFileChooser() 437 BrowserFrame.sJavaBridge.storeFilePathForContentUri(filePath, uriString); in openFileChooser()
|
/frameworks/base/tools/aapt/ |
D | AaptAssets.cpp | 1940 const String8& filePath, const AaptGroupEntry& entry, in addFile() argument 1947 String8 root, remain(filePath), partialPath; in addFile() 1959 group = new AaptGroup(rootStr, filePath); in addFile() 1965 file = new AaptFile(srcDir.appendPathCopy(filePath), entry, resType); in addFile()
|
D | AaptAssets.h | 539 sp<AaptFile> addFile(const String8& filePath,
|