/frameworks/minikin/tests/util/ |
H A D | FileUtils.cpp | 25 std::vector<uint8_t> readWholeFile(const std::string& filePath) { argument 26 FILE* fp = fopen(filePath.c_str(), "r");
|
/frameworks/rs/rsov/compiler/spirit/ |
H A D | word_stream.cpp | 41 InputWordStream *InputWordStream::Create(const char *filePath) { argument 42 return InputWordStream::Create(readFile<uint32_t>(filePath));
|
/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/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/services/tests/servicestests/src/com/android/server/ |
H A D | LockSettingsStorageTestable.java | 56 private File makeDirs(File baseDir, String filePath) { argument 57 File path = new File(filePath); 59 return new File(baseDir, filePath);
|
/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;
|
/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 | MtpServer.cpp | 792 const char* filePath = (const char *)pathBuf; local 794 mfr.fd = open(filePath, O_RDONLY); 878 const char* filePath = (const char *)pathBuf; local 880 mfr.fd = open(filePath, O_RDONLY); 1172 MtpString filePath; local 1174 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); 1176 ALOGV("deleting %s", (const char *)filePath); 1180 deletePath((const char *)filePath); 1239 const char* filePath = (const char *)edit->mPath; local 1240 ALOGV("receiving partial %s %" PRIu64 " %" PRIu32, filePath, offse [all...] |
/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 | 104 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, argument 107 if (lstat64(filePath, st) < 0) { 109 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); 127 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); 129 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); 143 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); 554 ScopedUtfChars filePath(env, apkPath); 555 ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str());
|
/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/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 | 166 public void writeIpAndProxyConfigurations(String filePath, argument 168 mWriter.write(filePath, new DelayedDiskWrite.Writer() { 178 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { argument 181 bufferedInputStream = new BufferedInputStream(new FileInputStream(filePath));
|
/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);
|
/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...] |
H A D | MediaScanner.java | 1176 private void prescan(String filePath, boolean prescanFiles) throws RemoteException { argument 1183 if (filePath != null) { 1187 selectionArgs = new String[] { "", filePath };
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 96 public static int getDuration(String filePath) { argument 97 Log.v(TAG, "getDuration - " + filePath); 100 mp.setDataSource(filePath); 112 public static boolean getCurrentPosition(String filePath){ argument 113 Log.v(TAG, "GetCurrentPosition - " + filePath); 119 mp.setDataSource(filePath); 137 if (filePath.equals(MediaNames.SHORTMP3)){ 147 public static boolean seekTo(String filePath){ argument 148 Log.v(TAG, "seekTo " + filePath); 152 mp.setDataSource(filePath); 171 setLooping(String filePath) argument 209 pause(String filePath) argument 238 prepareStopRelease(String filePath) argument 247 preparePauseRelease(String filePath) argument 267 videoHeight(String filePath) argument 302 videoWidth(String filePath) argument 338 videoSeekTo(String filePath) argument 384 seekToEnd(String filePath) argument 411 shortMediaStop(String filePath) argument 438 playToEnd(String filePath) argument 469 seektoBeforeStart(String filePath) argument 492 mediaRecorderRecord(String filePath) argument 530 getThumbnail(String filePath, String goldenPath) argument 597 prepareAsyncReset(String filePath) argument 613 isLooping(String filePath) argument 647 isLoopingAfterReset(String filePath) argument 719 prepareAsyncCallback(String filePath, boolean reset) argument 795 playMediaSamples(String filePath) argument 800 playMediaSamples(String filePath, int buffertime, boolean streamingTest) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
H A D | MediaRecorderTest.java | 433 private boolean validateVideo(String filePath, int width, int height) { argument 435 getOutputVideoProperty(filePath); 444 private boolean validateMetadata(String filePath, int captureRate) { argument 447 retriever.setDataSource(filePath);
|
/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/core/tests/coretests/src/android/os/storage/ |
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/performance/ |
H A D | MediaPlayerPerformance.java | 263 public void stressAudioRecord(String filePath) { argument 271 mRecorder.setOutputFile(filePath);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskPersister.java | 122 ImageWriteQueueItem(String filePath, Bitmap image) { argument 123 mFilePath = filePath; 306 void saveImage(Bitmap image, String filePath) { argument 313 if (imageWriteQueueItem.mFilePath.equals(filePath)) { 321 mWriteQueue.add(new ImageWriteQueueItem(filePath, image)); 328 if (DEBUG) Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" + 337 Bitmap getTaskDescriptionIcon(String filePath) { argument 339 final Bitmap icon = getImageFromWriteQueue(filePath); 343 return restoreImage(filePath); 346 getImageFromWriteQueue(String filePath) argument 633 createParentDirectory(String filePath) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A 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/core/java/android/os/ |
H A D | FileUtils.java | 438 public static boolean contains(String dirPath, String filePath) { argument 439 if (dirPath.equals(filePath)) { 445 return filePath.startsWith(dirPath);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 310 protected void setWallpaper(String filePath, final boolean finishActivityWhenDone) { argument 311 int rotation = getRotationFromExif(filePath); 313 this, filePath, null, rotation, 0, 0, true, false, null); 469 public BitmapCropTask(Context c, String filePath, argument 473 mInFilePath = filePath;
|