Searched defs:filePath (Results 1 - 22 of 22) sorted by relevance

/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/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
H A DScopedErrorReport.java34 ScopedErrorReport(String filePath, List<Location> locations) { argument
35 mFilePath = filePath;
/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 DMtpServer.cpp777 const char* filePath = (const char *)pathBuf; local
779 mfr.fd = open(filePath, O_RDONLY);
852 const char* filePath = (const char *)pathBuf; local
854 mfr.fd = open(filePath, O_RDONLY);
1129 MtpString filePath; local
1131 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format);
1133 ALOGV("deleting %s", (const char *)filePath);
1137 deletePath((const char *)filePath);
1196 const char* filePath = (const char *)edit->mPath; local
1197 ALOGV("receiving partial %s %" PRIu64 " %" PRIu32, filePath, offse
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp44 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 Dcom_android_internal_content_NativeLibraryHelper.cpp107 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/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/services/core/java/com/android/server/net/
H A DDelayedDiskWrite.java40 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 DIpConfigStore.java158 public void writeIpAndProxyConfigurations(String filePath, argument
160 mWriter.write(filePath, new DelayedDiskWrite.Writer() {
170 public SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { argument
175 in = new DataInputStream(new BufferedInputStream(new FileInputStream(filePath)));
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java189 public static Bitmap createVideoThumbnail(String filePath) { argument
199 method.invoke(instance, filePath);
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java78 * @param filePath the path of image file
84 public static Bitmap createImageThumbnail(String filePath, int kind) { argument
94 MediaFileType fileType = MediaFile.getFileType(filePath);
96 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
103 stream = new FileInputStream(filePath);
123 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom);
149 * @param filePath the path of video file
152 public static Bitmap createVideoThumbnail(String filePath, int kind) { argument
156 retriever.setDataSource(filePath);
472 private static void createThumbnailFromEXIF(String filePath, in argument
[all...]
H A DMediaScanner.java1053 private void prescan(String filePath, boolean prescanFiles) throws RemoteException { argument
1064 if (filePath != null) {
1068 selectionArgs = new String[] { "", filePath };
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java89 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java433 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 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/core/tests/coretests/src/android/os/storage/
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/performance/
H A DMediaPlayerPerformance.java263 public void stressAudioRecord(String filePath) { argument
271 mRecorder.setOutputFile(filePath);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp537 const char *filePath = strchr(uri + sizeof(fileTag) - 1, '/'); local
538 if (NULL != filePath && onCanHandle(uniqueId, String8(filePath))) {
539 int fd = open(filePath, O_RDONLY);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java310 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;
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp900 const String8& filePath, const AaptGroupEntry& entry,
907 String8 root, remain(filePath), partialPath;
919 group = new AaptGroup(rootStr, filePath);
925 file = new AaptFile(srcDir.appendPathCopy(filePath), entry, resType);
899 addFile( const String8& filePath, const AaptGroupEntry& entry, const String8& srcDir, sp<AaptGroup>* outGroup, const String8& resType) argument
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java3023 * @param filePath
3027 String filePath) {
3031 return telephony.iccExchangeSimIO(fileID, command, p1, p2, p3, filePath);
3026 iccExchangeSimIO(int fileID, int command, int p1, int p2, int p3, String filePath) argument

Completed in 522 milliseconds