/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 89 public static int getDuration(String filePath) { in getDuration() argument 90 Log.v(TAG, "getDuration - " + filePath); in getDuration() 93 mp.setDataSource(filePath); in getDuration() 105 public static boolean getCurrentPosition(String filePath){ in getCurrentPosition() argument 106 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition() 112 mp.setDataSource(filePath); in getCurrentPosition() 130 if (filePath.equals(MediaNames.SHORTMP3)){ in getCurrentPosition() 140 public static boolean seekTo(String filePath){ in seekTo() argument 141 Log.v(TAG, "seekTo " + filePath); in seekTo() 145 mp.setDataSource(filePath); in seekTo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerIntegrationTest.java | 68 String filePath = mFile.getAbsolutePath(); in testMountSingleObb() local 69 mountObb(filePath); in testMountSingleObb() 70 verifyObb1Contents(filePath); in testMountSingleObb() 71 unmountObb(filePath, DONT_FORCE); in testMountSingleObb() 120 String filePath = mFile.getAbsolutePath(); in testMountSingleEncryptedObb() local 121 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb() 122 verifyObb3Contents(filePath); in testMountSingleEncryptedObb() 123 unmountObb(filePath, DONT_FORCE); in testMountSingleEncryptedObb() 133 String filePath = mFile.getAbsolutePath(); in testMountSingleEncryptedObbInvalidPassword() local 134 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/services/core/java/com/android/server/net/ |
D | DelayedDiskWrite.java | 40 public void write(final String filePath, final Writer w) { in write() argument 41 write(filePath, w, true); in write() 44 public void write(final String filePath, final Writer w, final boolean open) { in write() argument 45 if (TextUtils.isEmpty(filePath)) { in write() 61 doWrite(filePath, w, open); in write() 66 private void doWrite(String filePath, Writer w, boolean open) { in doWrite() argument 71 new FileOutputStream(filePath))); in doWrite() 75 loge("Error writing data file " + filePath); in doWrite()
|
D | IpConfigStore.java | 162 public void writeIpAndProxyConfigurations(String filePath, in writeIpAndProxyConfigurations() argument 164 mWriter.write(filePath, new DelayedDiskWrite.Writer() { in writeIpAndProxyConfigurations() 174 public SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations() argument 179 in = new DataInputStream(new BufferedInputStream(new FileInputStream(filePath))); in readIpAndProxyConfigurations()
|
/frameworks/base/tools/aapt2/dump/ |
D | Dump.cpp | 58 void tryDumpFile(IAaptContext* context, const std::string& filePath) { in tryDumpFile() argument 60 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::create(filePath, &err); in tryDumpFile() 66 context->getDiagnostics()->error(DiagMessage(filePath) in tryDumpFile() 73 context->getDiagnostics()->error(DiagMessage(filePath) in tryDumpFile() 79 pbTable, Source(filePath), context->getDiagnostics()); in tryDumpFile() 89 Maybe<android::FileMap> file = file::mmapPath(filePath, &err); in tryDumpFile() 91 context->getDiagnostics()->error(DiagMessage(filePath) << err); in tryDumpFile() 100 dumpCompiledTable(pbTable, Source(filePath), context); in tryDumpFile() 107 dumpCompiledFile(*pbFile, input.data(), input.size(), Source(filePath), context); in tryDumpFile()
|
/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 | 520 String filePath; in fullBackupFile() local 561 filePath = file.getCanonicalPath(); in fullBackupFile() 567 if (filePath.startsWith(cacheDir) in fullBackupFile() 568 || filePath.startsWith(codeCacheDir) in fullBackupFile() 569 || filePath.startsWith(nbFilesDir) in fullBackupFile() 570 || filePath.startsWith(deviceCacheDir) in fullBackupFile() 571 || filePath.startsWith(deviceCodeCacheDir) in fullBackupFile() 572 || filePath.startsWith(deviceNbFilesDir) in fullBackupFile() 573 || filePath.startsWith(libDir)) { in fullBackupFile() 580 if (filePath.startsWith(dbDir)) { in fullBackupFile() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 84 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail() argument 94 MediaFileType fileType = MediaFile.getFileType(filePath); in createImageThumbnail() 97 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap); in createImageThumbnail() 104 stream = new FileInputStream(filePath); in createImageThumbnail() 124 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom); in createImageThumbnail() 153 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail() argument 157 retriever.setDataSource(filePath); in createVideoThumbnail() 473 private static void createThumbnailFromEXIF(String filePath, int targetSize, in createThumbnailFromEXIF() argument 475 if (filePath == null) return; in createThumbnailFromEXIF() 480 exif = new ExifInterface(filePath); in createThumbnailFromEXIF() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | TaskPersister.java | 116 ImageWriteQueueItem(String filePath, Bitmap image) { in ImageWriteQueueItem() argument 117 mFilePath = filePath; in ImageWriteQueueItem() 300 void saveImage(Bitmap image, String filePath) { in saveImage() argument 307 if (imageWriteQueueItem.mFilePath.equals(filePath)) { in saveImage() 315 mWriteQueue.add(new ImageWriteQueueItem(filePath, image)); in saveImage() 322 if (DEBUG) Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" + in saveImage() 331 Bitmap getTaskDescriptionIcon(String filePath) { in getTaskDescriptionIcon() argument 333 final Bitmap icon = getImageFromWriteQueue(filePath); in getTaskDescriptionIcon() 337 return restoreImage(filePath); in getTaskDescriptionIcon() 340 Bitmap getImageFromWriteQueue(String filePath) { in getImageFromWriteQueue() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_content_res_ObbScanner.cpp | 44 const char* filePath = env->GetStringUTFChars(file, NULL); in android_content_res_ObbScanner_getObbInfo() local 47 if (!obb->readFrom(filePath)) { in android_content_res_ObbScanner_getObbInfo() 48 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo() 53 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo()
|
D | com_android_internal_content_NativeLibraryHelper.cpp | 107 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, in isFileDifferent() argument 110 if (lstat64(filePath, st) < 0) { in isFileDifferent() 112 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); in isFileDifferent() 130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); in isFileDifferent() 132 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); in isFileDifferent() 146 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); in isFileDifferent() 552 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk() local 553 ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str()); in com_android_internal_content_NativeLibraryHelper_openApk()
|
/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 | 778 const char* filePath = (const char *)pathBuf; in doGetObject() local 780 mfr.fd = open(filePath, O_RDONLY); in doGetObject() 857 const char* filePath = (const char *)pathBuf; in doGetPartialObject() local 859 mfr.fd = open(filePath, O_RDONLY); in doGetPartialObject() 1137 MtpString filePath; in doDeleteObject() local 1139 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); in doDeleteObject() 1141 ALOGV("deleting %s", (const char *)filePath); in doDeleteObject() 1145 deletePath((const char *)filePath); in doDeleteObject() 1204 const char* filePath = (const char *)edit->mPath; in doSendPartialObject() local 1205 ALOGV("receiving partial %s %" PRIu64 " %" PRIu32, filePath, offset, length); in doSendPartialObject()
|
D | MtpStorage.h | 40 MtpStorage(MtpStorageID id, const char* filePath,
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
D | Scope.java | 143 String filePath = null; in createReport() local 145 while (top != null && (filePath == null || locations == null)) { in createReport() 150 if (filePath == null && provider instanceof FileScopeProvider) { in createReport() 151 filePath = ((FileScopeProvider) provider).provideScopeFilePath(); in createReport() 155 return new ScopedErrorReport(filePath, locations); in createReport()
|
D | ScopedErrorReport.java | 33 ScopedErrorReport(String filePath, List<Location> locations) { in ScopedErrorReport() argument 34 mFilePath = filePath; in ScopedErrorReport()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 1298 String filePath) { in validateImage() argument 1313 validateJpegData(data, width, height, filePath); in validateImage() 1317 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1320 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1323 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1326 … validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1329 validateRawPrivateData(data, width, height, image.getTimestamp(), filePath); in validateImage() 1374 private static void validateJpegData(byte[] jpegData, int width, int height, String filePath) { in validateJpegData() argument 1387 if (DEBUG && filePath != null) { in validateJpegData() 1389 filePath + "/" + width + "x" + height + ".jpeg"; in validateJpegData() [all …]
|
/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/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
D | ObbBackupService.java | 72 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/ |
D | SmartCamera.java | 89 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/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
D | FwdLockEngine.cpp | 542 const char *filePath = strchr(uri + sizeof(fileTag) - 1, '/'); local 543 if (NULL != filePath && onCanHandle(uniqueId, String8(filePath))) { 544 int fd = open(filePath, O_RDONLY);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 189 public static Bitmap createVideoThumbnail(String filePath) { in createVideoThumbnail() argument 199 method.invoke(instance, filePath); in createVideoThumbnail()
|