Searched defs:filename (Results 51 - 75 of 99) sorted by last modified time

1234

/frameworks/base/native/android/
H A Dasset_manager.cpp87 AAsset* AAssetManager_open(AAssetManager* amgr, const char* filename, int mode) argument
108 Asset* asset = mgr->open(filename, amMode);
H A Dobb.cpp28 AObbInfo* AObbScanner_getObbInfo(const char* filename) { argument
30 if (obbFile == NULL || !obbFile->readFrom(filename)) {
H A Dstorage_manager.cpp44 virtual void onObbResult(const android::String16& filename, const int32_t nonce,
105 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { argument
121 target->cb(filename, state, target->data);
124 ALOGI("Didn't find the callback handler for: %s\n", filename);
144 void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void* data) { argument
146 String16 filename16(filename);
150 int isObbMounted(const char* filename) { argument
151 String16 filename16(filename);
155 const char* getMountedObbPath(const char* filename) { argument
156 String16 filename16(filename);
166 onObbResult(const android::String16& filename, const int32_t nonce, const int32_t state) argument
186 AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, AStorageManager_obbCallbackFunc cb, void* data) argument
191 AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force, AStorageManager_obbCallbackFunc cb, void* data) argument
196 AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename) argument
200 AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp102 FileStream::FileStream(const String8 filename) argument
104 mFile = fopen(filename.string(), "r");
145 piex::StreamInterface* stream, const String8& filename,
152 ALOGV("Format not supported: %s", filename.string());
160 ALOGV("Raw image not detected: %s (piex error code: %d)", filename.string(), (int32_t)err);
144 GetExifFromRawImage( piex::StreamInterface* stream, const String8& filename, piex::PreviewImageData& image_data) argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaFrameworkTest.java121 public void startPlayback(String filename){ argument
123 Uri path = Uri.parse(filename);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DMediaPlayerStreamingStressTest.java77 private void writeTestOutput(String filename, Writer output) throws Exception{ argument
78 output.write("URL: " + filename);
145 String filename = urls.get(i);
147 CodecTest.playMediaSamples(filename, 60000);
150 fileWithError += filename + '\n';
156 writeTestOutput(filename,output);
H A DMediaPlayerStressTest.java73 private void writeTestOutput(String filename, Writer output) throws Exception{ argument
74 output.write("File Name: " + filename);
139 //Get filename
140 String filename = children[i];
142 CodecTest.playMediaSamples(mMediaSrc + filename);
145 fileWithError += filename + '\n';
151 writeTestOutput(filename,output);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp94 char* filename = buf; local
95 while (*filename && *filename == '/') {
96 ++filename;
98 char* p = filename;
105 path.appendPath(filename);
1354 /* grab it, reducing path to just the filename component */
1377 * Process "exclude" directives. If we find a filename that ends with
1783 // XXX This is broken -- the filename cache needs to hold the base
1784 // asset path separately from its filename
[all...]
H A DBackupHelpers.cpp115 // filename is not NULL terminated, but it is padded
117 char* filename = nameBufSize <= (int)sizeof(filenameBuf) local
120 amt = read(fd, filename, nameBufSize);
122 snapshot->add(String8(filename, file.nameLen), file);
125 if (filename != filenameBuf) {
126 free(filename);
129 ALOGW("read_snapshot_file filename truncated/error with read at %d bytes\n", bytesRead);
182 // filename is not NULL terminated, but it is padded
185 ALOGW("write_snapshot_file error writing filename %s", strerror(errno));
193 ALOGW("write_snapshot_file error writing %d bytes of filename paddin
737 WriteFile(const String8& filename, BackupDataReader* in) argument
[all...]
H A DObbFile.cpp86 bool ObbFile::readFrom(const char* filename) argument
91 fd = ::open(filename, O_RDONLY);
93 ALOGW("couldn't open file %s: %s", filename, strerror(errno));
100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd);
226 bool ObbFile::writeTo(const char* filename) argument
231 fd = ::open(filename, O_WRONLY);
240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno));
311 bool ObbFile::removeFrom(const char* filename) argument
316 fd = ::open(filename, O_RDWR);
325 ALOGW("failed to remove signature from %s: %s\n", filename, strerro
[all...]
/frameworks/base/libs/storage/
H A DIMountService.cpp466 void unmountObb(const String16& filename, const bool force, argument
471 data.writeString16(filename);
486 bool isObbMounted(const String16& filename) argument
490 data.writeString16(filename);
503 bool getMountedObbPath(const String16& filename, String16& path) argument
507 data.writeString16(filename);
H A DIObbActionListener.cpp33 virtual void onObbResult(const String16& /* filename */, const int32_t /* nonce */,
47 String16 filename = data.readString16(); local
50 onObbResult(filename, nonce, state);
/frameworks/base/media/java/android/media/
H A DExifInterface.java1096 public ExifInterface(String filename) throws IOException { argument
1097 if (filename == null) {
1098 throw new IllegalArgumentException("filename cannot be null");
1102 mFilename = filename;
1105 in = new FileInputStream(filename);
H A DMediaScanner.java339 /** The filename for the default sound for the ringer ringtone. */
341 /** The filename for the default sound for the notification ringtone. */
343 /** The filename for the default sound for the alarm ringtone. */
1059 private boolean doesPathHaveFilename(String path, String filename) { argument
1061 int filenameLength = filename.length();
1062 return path.regionMatches(pathFilenameStart, filename, 0, filenameLength) &&
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java326 public static boolean fixSdPermissions(String cid, int gid, String filename) { argument
328 int rc = getMountService().fixPermissionsSecureContainer(cid, gid, filename);
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java207 String headers, String filename, int maxSize, String tag) throws IOException {
208 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag);
213 String headers, String footers, String filename, int maxSize,
217 File file = new File(filename);
221 if (timestamps.containsKey(filename) && timestamps.get(filename) == fileTime) {
225 timestamps.put(filename, fileTime);
227 Slog.i(TAG, "Copying " + filename + " to DropBox (" + tag + ")");
319 final String filename = parser.getAttributeValue(null, "filename");
205 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
211 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_backup_FileBackupHelperBase.cpp85 char const* filename; local
87 filename = env->GetStringUTFChars(filenameObj, NULL);
89 err = restore->WriteFile(String8(filename), reader);
91 env->ReleaseStringUTFChars(filenameObj, filename);
H A Dandroid_util_Binder.cpp997 char filename[32]; local
1000 snprintf(filename, sizeof(filename), "/proc/%d/cmdline", pid);
1001 f = fopen(filename, "r");
H A Dandroid_util_Process.cpp331 const char *filename; local
337 filename = "/dev/cpuset/background/cpus";
342 filename = "/dev/cpuset/foreground/cpus";
345 filename = "/dev/cpuset/top-app/cpus";
348 filename = NULL;
351 if (!filename) return;
353 file = fopen(filename, "re");
363 ALOGE("Failed to read %s", filename);
1064 char filename[64]; local
1066 snprintf(filename, sizeo
[all...]
H A Dcom_android_internal_content_NativeLibraryHelper.cpp75 isFilenameSafe(const char* filename) argument
79 switch (*(filename + offset)) {
311 * - The entry filename is "safe" (as determined by isFilenameSafe).
335 // Make sure this entry has a filename.
340 // Make sure the filename is at least to the minimum library name size.
356 // Make sure the filename starts with lib and ends with ".so".
362 // Make sure the filename is safe.
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java437 * @param filename The name of the file to try to retrieve from the mock server
440 protected Uri getServerUri(String filename) throws Exception { argument
441 URL url = mServer.getUrl("/" + filename);
448 * @param filename The name of the file to try to retrieve from the mock server
579 * @param filename (optional) The name of the file to create on the SD card; pass in null to
580 * use a default temp filename.
586 protected File createFileOnSD(String filename, long fileSize, DataType type, argument
597 if (filename == null) {
601 fullPath.append(File.separatorChar).append(filename);
945 * Helper to do the additional steps (setting title and Uri of default filename) whe
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerBaseTest.java461 * @param filename The filename containing the ints to validate
465 protected void doValidateIntContents(String path, String filename, int start, int end) { argument
466 File inFile = new File(path, filename);
468 Log.i(LOG_TAG, "Validating file " + filename + " at " + path);
480 Log.i(LOG_TAG, "Successfully validated file " + filename);
492 * @param filename The filename containing the ints to validate
495 protected void doValidateTextContents(String path, String filename, String contents) { argument
496 File inFile = new File(path, filename);
530 doValidateZeroLongFile(String path, String filename, long size, boolean checkContents) argument
606 verifyObb2Contents(String filename) argument
622 verifyObb3Contents(String filename) argument
[all...]
/frameworks/base/cmds/backup/
H A Dbackup.cpp52 static int perform_list(const char* filename) argument
57 fd = open(filename, O_RDONLY);
59 fprintf(stderr, "Error opening: %s\n", filename);
95 static int perform_print(const char* entityname, const char* filename) argument
97 printf("perform_print(%s, %s);", entityname, filename);
/frameworks/base/cmds/idmap/
H A Dscan.cpp36 bool writePackagesList(const char *filename, const SortedVector<Overlay>& overlayVector) argument
38 FILE* fout = fopen(filename, "w");
53 if (chmod(filename, mode) == -1) {
54 unlink(filename);
172 String8 filename = String8(idmap_dir); local
173 filename.appendPath("overlays.list");
174 if (unlink(filename.string()) != 0 && errno != ENOENT) {
221 if (!writePackagesList(filename.string(), overlayVector)) {
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DTracer.java125 throw new IllegalArgumentException("Please provide a filename before " +
136 throw new IllegalArgumentException("Please provide a filename before " +
160 * @param filename name of the log file.
162 public void setOutputFilename(String filename) { argument
163 mOutputFile = new File(filename);

Completed in 604 milliseconds

1234