/frameworks/av/drm/libdrmframework/include/ |
H A D | ReadWriteUtils.h | 45 * @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 D | ObbScanner.java | 33 * @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/base/services/core/java/com/android/server/net/ |
H A D | DelayedDiskWrite.java | 40 public void write(final String filePath, final Writer w) { argument 41 write(filePath, w, true); 44 public void write(final String filePath, final Writer w, final boolean open) { argument 45 if (TextUtils.isEmpty(filePath)) { 61 doWrite(filePath, w, open); 66 private void doWrite(String filePath, Writer w, boolean open) { argument 71 new FileOutputStream(filePath))); 75 loge("Error writing data file " + filePath);
|
H A D | IpConfigStore.java | 162 public void writeIpAndProxyConfigurations(String filePath, argument 164 mWriter.write(filePath, new DelayedDiskWrite.Writer() { 174 public SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { argument 179 in = new DataInputStream(new BufferedInputStream(new FileInputStream(filePath)));
|
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 35 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 D | StorageManagerIntegrationTest.java | 68 String filePath = mFile.getAbsolutePath(); 69 mountObb(filePath); 70 verifyObb1Contents(filePath); 71 unmountObb(filePath, DONT_FORCE); 120 String filePath = mFile.getAbsolutePath(); 121 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); 122 verifyObb3Contents(filePath); 123 unmountObb(filePath, DONT_FORCE); 133 String filePath = mFile.getAbsolutePath(); 134 mountObb(filePath, OBB_FILE_3_PASSWOR [all...] |
H A D | StorageManagerBaseTest.java | 558 * @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 D | CodecTest.java | 89 public static int getDuration(String filePath) { argument 90 Log.v(TAG, "getDuration - " + filePath); 93 mp.setDataSource(filePath); 105 public static boolean getCurrentPosition(String filePath){ argument 106 Log.v(TAG, "GetCurrentPosition - " + filePath); 112 mp.setDataSource(filePath); 130 if (filePath.equals(MediaNames.SHORTMP3)){ 140 public static boolean seekTo(String filePath){ argument 141 Log.v(TAG, "seekTo " + filePath); 145 mp.setDataSource(filePath); 164 setLooping(String filePath) argument 202 pause(String filePath) argument 231 prepareStopRelease(String filePath) argument 240 preparePauseRelease(String filePath) argument 260 videoHeight(String filePath) argument 295 videoWidth(String filePath) argument 331 videoSeekTo(String filePath) argument 377 seekToEnd(String filePath) argument 404 shortMediaStop(String filePath) argument 431 playToEnd(String filePath) argument 462 seektoBeforeStart(String filePath) argument 485 mediaRecorderRecord(String filePath) argument 523 getThumbnail(String filePath, String goldenPath) argument 590 prepareAsyncReset(String filePath) argument 606 isLooping(String filePath) argument 640 isLoopingAfterReset(String filePath) argument 712 prepareAsyncCallback(String filePath, boolean reset) argument 788 playMediaSamples(String filePath) argument 793 playMediaSamples(String filePath, int buffertime) argument [all...] |
/frameworks/base/tools/aapt2/dump/ |
H A D | Dump.cpp | 58 void tryDumpFile(IAaptContext* context, const std::string& filePath) { argument 60 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::create(filePath, &err); 66 context->getDiagnostics()->error(DiagMessage(filePath) 73 context->getDiagnostics()->error(DiagMessage(filePath) 79 pbTable, Source(filePath), context->getDiagnostics()); 89 Maybe<android::FileMap> file = file::mmapPath(filePath, &err); 91 context->getDiagnostics()->error(DiagMessage(filePath) << err); 100 dumpCompiledTable(pbTable, Source(filePath), context); 107 dumpCompiledFile(*pbFile, input.data(), input.size(), Source(filePath), context);
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
H A D | ScopedErrorReport.java | 33 ScopedErrorReport(String filePath, List<Location> locations) { argument 34 mFilePath = filePath;
|
H A D | Scope.java | 143 String filePath = null; 145 while (top != null && (filePath == null || locations == null)) { 150 if (filePath == null && provider instanceof FileScopeProvider) { 151 filePath = ((FileScopeProvider) provider).provideScopeFilePath(); 155 return new ScopedErrorReport(filePath, locations);
|
/frameworks/base/core/jni/ |
H A D | android_content_res_ObbScanner.cpp | 44 const char* filePath = env->GetStringUTFChars(file, NULL); local 47 if (!obb->readFrom(filePath)) { 48 env->ReleaseStringUTFChars(file, filePath); 53 env->ReleaseStringUTFChars(file, filePath);
|
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 107 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, argument 110 if (lstat64(filePath, st) < 0) { 112 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); 130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); 132 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); 146 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); 552 ScopedUtfChars filePath(env, apkPath); 553 ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str());
|
/frameworks/av/media/mtp/ |
H A D | MtpStorage.cpp | 35 MtpStorage::MtpStorage(MtpStorageID id, const char* filePath, argument 39 mFilePath(filePath), 46 ALOGV("MtpStorage id: %d path: %s\n", id, filePath);
|
H A D | MtpStorage.h | 40 MtpStorage(MtpStorageID id, const char* filePath,
|
H A D | MtpServer.cpp | 778 const char* filePath = (const char *)pathBuf; local 780 mfr.fd = open(filePath, O_RDONLY); 857 const char* filePath = (const char *)pathBuf; local 859 mfr.fd = open(filePath, O_RDONLY); 1141 MtpString filePath; local 1143 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); 1145 ALOGV("deleting %s", (const char *)filePath); 1149 deletePath((const char *)filePath); 1208 const char* filePath = (const char *)edit->mPath; local 1209 ALOGV("receiving partial %s %" PRIu64 " %" PRIu32, filePath, offse [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
H A D | MediaPlayerPowerTest.java | 49 public void audioPlayback(String filePath) { argument 52 mp.setDataSource(filePath);
|
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 78 * @param filePath the path of image file 84 public static Bitmap createImageThumbnail(String filePath, int kind) { argument 94 MediaFileType fileType = MediaFile.getFileType(filePath); 97 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap); 104 stream = new FileInputStream(filePath); 124 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom); 150 * @param filePath the path of video file 153 public static Bitmap createVideoThumbnail(String filePath, int kind) { argument 157 retriever.setDataSource(filePath); 473 private static void createThumbnailFromEXIF(String filePath, in argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupAgent.java | 522 String filePath; 563 filePath = file.getCanonicalPath(); 569 if (filePath.startsWith(cacheDir) 570 || filePath.startsWith(codeCacheDir) 571 || filePath.startsWith(nbFilesDir) 572 || filePath.startsWith(deviceCacheDir) 573 || filePath.startsWith(deviceCodeCacheDir) 574 || filePath.startsWith(deviceNbFilesDir) 575 || filePath.startsWith(libDir)) { 582 if (filePath [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskPersister.java | 118 ImageWriteQueueItem(String filePath, Bitmap image) { argument 119 mFilePath = filePath; 302 void saveImage(Bitmap image, String filePath) { argument 309 if (imageWriteQueueItem.mFilePath.equals(filePath)) { 317 mWriteQueue.add(new ImageWriteQueueItem(filePath, image)); 324 if (DEBUG) Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" + 333 Bitmap getTaskDescriptionIcon(String filePath) { argument 335 final Bitmap icon = getImageFromWriteQueue(filePath); 339 return restoreImage(filePath); 342 getImageFromWriteQueue(String filePath) argument 610 createParentDirectory(String filePath) argument [all...] |
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
H A D | ObbBackupService.java | 72 final String filePath = f.getCanonicalPath(); 74 Log.i(TAG, "storing: " + filePath); 77 rootPath, filePath, out);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1293 * @param filePath The debug dump file path, null if don't want to dump to 1298 String filePath) { 1313 validateJpegData(data, width, height, filePath); 1317 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); 1320 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); 1323 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); 1326 validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); 1329 validateRawPrivateData(data, width, height, image.getTimestamp(), filePath); 1374 private static void validateJpegData(byte[] jpegData, int width, int height, String filePath) { argument 1387 if (DEBUG && filePath ! 1297 validateImage(Image image, int width, int height, int format, String filePath) argument 1394 validateYuvData(byte[] yuvData, int width, int height, int format, long ts, String filePath) argument 1410 validateRaw16Data(byte[] rawData, int width, int height, int format, long ts, String filePath) argument 1427 validateRawPrivateData(byte[] rawData, int width, int height, long ts, String filePath) argument 1447 validateDepth16Data(byte[] depthData, int width, int height, int format, long ts, String filePath) argument 1465 validateDepthPointCloudData(byte[] depthData, int width, int height, int format, long ts, String filePath) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | SmartCamera.java | 89 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/include/androidfw/ |
H A D | BackupHelpers.h | 140 const String8& rootPath, const String8& filePath, off_t* outSize,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 189 public static Bitmap createVideoThumbnail(String filePath) { argument 199 method.invoke(instance, filePath);
|