/frameworks/av/drm/libdrmframework/include/ |
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);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
file_utils.h | 27 static int getFileSize(const char *const filePath); 34 static int getFilePathWithSuffixBufSize(const char *const filePath, const char *const suffix); 36 static void getFilePathWithSuffix(const char *const filePath, const char *const suffix, 44 // Returns whether the filePath have the suffix. 45 static bool getFilePathWithoutSuffix(const char *const filePath, const char *const suffix, 48 static void getDirPath(const char *const filePath, const int dirPathBufSize, 51 static void getBasename(const char *const filePath, const int outNameBufSize,
|
file_utils.cpp | 31 /* static */ int FileUtils::getFileSize(const char *const filePath) { 32 const int fd = open(filePath, O_RDONLY); 75 char filePath[filePathBufSize]; 76 getFilePath(dirPath, dirent->d_name, filePathBufSize, filePath); 77 if (remove(filePath) != 0) { 78 AKLOGE("Cannot remove file %s.", filePath); 97 /* static */ int FileUtils::getFilePathWithSuffixBufSize(const char *const filePath, 99 return strlen(filePath) + strlen(suffix) + 1 /* terminator */; 102 /* static */ void FileUtils::getFilePathWithSuffix(const char *const filePath, 104 snprintf(outFilePath, filePathBufSize, "%s%s", filePath, suffix) [all...] |
dict_file_writing_utils.cpp | 40 /* static */ bool DictFileWritingUtils::createEmptyDictFile(const char *const filePath, 50 filePath, localeAsCodePointVector, attributeMap, formatVersion); 55 filePath, localeAsCodePointVector, attributeMap, formatVersion); 58 filePath, dictVersion); 85 char filePath[filePathBufSize]; 86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath); 87 return flushBufferToFile(filePath, buffer); 102 /* static */ bool DictFileWritingUtils::flushBufferToFile(const char *const filePath, 104 const int fd = open(filePath, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 106 AKLOGE("File %s cannot be opened. errno: %d", filePath, errno) [all...] |
dict_file_writing_utils.h | 34 static bool createEmptyDictFile(const char *const filePath, const int dictVersion, 49 static bool createEmptyV401DictFile(const char *const filePath, 55 static bool createEmptyV4DictFile(const char *const filePath, 60 static bool flushBufferToFile(const char *const filePath,
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
filetools.h | 27 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir=FALSE); 30 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar);
|
filetools.cpp | 35 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir) { 38 if (filePath == NULL || checkAgainst == NULL) { 59 isLatest = isFileModTimeLater(filePath, newpath, isDir); 64 int32_t latest = whichFileModTimeIsLater(filePath, newpath); 81 int32_t latest = whichFileModTimeIsLater(filePath, checkAgainst); 122 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) { 123 for (int32_t i = 0, length = uprv_strlen(filePath); i < length; i++) { 124 filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i] [all...] |
/external/icu/icu4c/source/tools/toolutil/ |
filetools.h | 27 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir=FALSE); 30 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar);
|
filetools.cpp | 43 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir) { 46 if (filePath == NULL || checkAgainst == NULL) { 67 isLatest = isFileModTimeLater(filePath, newpath, isDir); 72 int32_t latest = whichFileModTimeIsLater(filePath, newpath); 89 int32_t latest = whichFileModTimeIsLater(filePath, checkAgainst); 130 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) { 131 for (int32_t i = 0, length = uprv_strlen(filePath); i < length; i++) { 132 filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i] [all...] |
/external/qemu/android/filesystems/ |
ext4_utils.h | 22 // Create a new empty EXT4 partition image file at |filePath| 26 int android_createEmptyExt4Image(const char *filePath, 30 // Returns true iff the file at |filePath| is an actual EXT4 partition image. 31 bool android_pathIsExt4PartitionImage(const char* filePath);
|
/frameworks/base/core/java/android/content/res/ |
ObbScanner.java | 33 * @param filePath path to the OBB file to be scanned. 38 public static ObbInfo getObbInfo(String filePath) throws IOException { 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)
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
AudioFileReader.h | 46 PLATFORM_EXPORT PassRefPtr<AudioBus> createBusFromAudioFile(const char* filePath, bool mixToMono, float sampleRate); 49 PLATFORM_EXPORT void writeBusToAudioFile(AudioBus* bus, const char* filePath, double fileSampleRate);
|
/external/qemu/android/kernel/ |
kernel_utils_testing.h | 24 // file at |filePath|. On success, return true and sets |*text| to the 29 const char* filePath,
|
/external/smack/src/org/jivesoftware/smack/ |
BOSHConfiguration.java | 64 * @param filePath the file which is described by the URL 69 public BOSHConfiguration(boolean https, String host, int port, String filePath, String xmppDomain) { 73 file = (filePath != null ? filePath : "/"); 85 * @param filePath the file which is described by the URL 91 public BOSHConfiguration(boolean https, String host, int port, String filePath, ProxyInfo proxy, String xmppDomain) { 95 file = (filePath != null ? filePath : "/");
|
/frameworks/base/services/core/java/com/android/server/net/ |
DelayedDiskWrite.java | 40 public void write(final String filePath, final Writer w) { 41 if (TextUtils.isEmpty(filePath)) { 57 doWrite(filePath, w); 62 private void doWrite(String filePath, Writer w) { 66 new FileOutputStream(filePath))); 69 loge("Error writing data file " + filePath);
|
/frameworks/av/drm/common/ |
ReadWriteUtils.cpp | 35 String8 ReadWriteUtils::readBytes(const String8& filePath) { 37 file = fopen(filePath.string(), "r"); 57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { 59 file = fopen(filePath.string(), "r"); 78 void ReadWriteUtils::writeToFile(const String8& filePath, const String8& data) { 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) { 97 file = fopen(filePath.string(), "a+"); 104 ALOGE("Failed to write the data to: %s", filePath.string()) [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
StorageManagerIntegrationTest.java | 67 String filePath = mFile.getAbsolutePath(); 68 mountObb(filePath); 69 verifyObb1Contents(filePath); 70 unmountObb(filePath, DONT_FORCE); 119 String filePath = mFile.getAbsolutePath(); 120 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); 121 verifyObb3Contents(filePath); 122 unmountObb(filePath, DONT_FORCE); 131 String filePath = mFile.getAbsolutePath(); 132 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT) [all...] |
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
URLTestHelpers.cpp | 62 std::string filePath = std::string(Platform::current()->unitTestSupport()->webKitRootDir().utf8().data()); 63 filePath.append("/Source/web/tests/data/"); 64 filePath.append(std::string(relativeBaseDirectory.utf8().data())); 65 filePath.append(std::string(fileName.utf8().data())); 67 Platform::current()->unitTestSupport()->registerMockedURL(fullURL, response, WebString::fromUTF8(filePath.c_str()));
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebBlobInfo.h | 29 WebBlobInfo(const WebString& uuid, const WebString& filePath, const WebString& fileName, const WebString& type) 34 , m_filePath(filePath) 39 WebBlobInfo(const WebString& uuid, const WebString& filePath, const WebString& fileName, const WebString& type, double lastModified, long long size) 44 , m_filePath(filePath) 65 const WebString& filePath() const
|
/packages/apps/Camera/src/com/android/camera/ |
Thumbnail.java | 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 30 return createVideoThumbnailBitmap(filePath, null, targetWidth); 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 38 if (filePath != null) { 39 retriever.setDataSource(filePath);
|
/packages/apps/Camera2/src/com/android/camera/ |
Thumbnail.java | 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 30 return createVideoThumbnailBitmap(filePath, null, targetWidth); 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 38 if (filePath != null) { 39 retriever.setDataSource(filePath);
|
/device/generic/goldfish/camera/ |
EmulatedCameraHotplugThread.h | 56 int getCameraId(String8 filePath) const; 60 int readFile(String8 filePath) const;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
CodecTest.java | 88 public static int getDuration(String filePath) { 89 Log.v(TAG, "getDuration - " + filePath); 92 mp.setDataSource(filePath); 104 public static boolean getCurrentPosition(String filePath){ 105 Log.v(TAG, "GetCurrentPosition - " + filePath); 111 mp.setDataSource(filePath); 129 if (filePath.equals(MediaNames.SHORTMP3)){ 139 public static boolean seekTo(String filePath){ 140 Log.v(TAG, "seekTo " + filePath); 144 mp.setDataSource(filePath); [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
ClassDumper.java | 35 * @param filePath the file path for the class, excluding any base 40 String filePath, Args args) { 42 new ClassDumper(bytes, out, filePath, args); 51 String filePath, Args args) { 52 super(bytes, out, filePath, args);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/ |
EclipseTestCollector.java | 54 String filePath = entry.getPath().replace(".class", ""); 56 Class<?> testClass = getClass(filePath, expectedPackage); 70 //sLogger.log(Level.INFO, "Could not load class " + filePath); 107 * @param filePath - path of class in bundle 111 protected Class<?> getClass(String filePath, String expectedPackage) throws ClassNotFoundException { 112 String dotPath = filePath.replace('/', '.');
|