Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 310) sorted by relevance

12345678910>>...13

/frameworks/base/native/android/
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) { in fireCallback()
121 target->cb(filename, state, target->data); in fireCallback()
124 ALOGI("Didn't find the callback handler for: %s\n", filename); in fireCallback()
144 …void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void… in unmountObb()
146 String16 filename16(filename); in unmountObb()
150 int isObbMounted(const char* filename) { in isObbMounted()
151 String16 filename16(filename); in isObbMounted()
155 const char* getMountedObbPath(const char* filename) { in getMountedObbPath()
156 String16 filename16(filename); in getMountedObbPath()
[all …]
/frameworks/base/tools/obbtool/
DMain.cpp92 void doAdd(const char* filename, struct PackageInfo* info) { in doAdd() argument
94 if (obb->readFrom(filename)) { in doAdd()
95 fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename); in doAdd()
106 if (!obb->writeTo(filename)) { in doAdd()
108 filename, strerror(errno)); in doAdd()
115 void doRemove(const char* filename) { in doRemove() argument
117 if (!obb->readFrom(filename)) { in doRemove()
118 fprintf(stderr, "ERROR: %s: no OBB signature present\n", filename); in doRemove()
122 if (!obb->removeFrom(filename)) { in doRemove()
123 fprintf(stderr, "ERROR: %s: couldn't remove OBB signature\n", filename); in doRemove()
[all …]
/frameworks/base/tools/validatekeymaps/
DMain.cpp50 static FileType getFileType(const char* filename) { in getFileType() argument
51 const char *extension = strrchr(filename, '.'); in getFileType()
64 if (strstr(filename, "virtualkeys.")) { in getFileType()
71 static bool validateFile(const char* filename) { in validateFile() argument
72 fprintf(stdout, "Validating file '%s'...\n", filename); in validateFile()
74 FileType fileType = getFileType(filename); in validateFile()
82 status_t status = KeyLayoutMap::load(String8(filename), &map); in validateFile()
92 status_t status = KeyCharacterMap::load(String8(filename), in validateFile()
103 status_t status = PropertyMap::load(String8(filename), &map); in validateFile()
114 status_t status = VirtualKeyMap::load(String8(filename), &map); in validateFile()
/frameworks/base/tools/aidl/
Daidl.cpp88 const char* filename; member
164 check_filename(const char* filename, const char* package, buffer_type* name) argument
174 if (isalpha(filename[0]) && filename[1] == ':'
175 && filename[2] == OS_PATH_SEPARATOR) {
177 if (filename[0] == OS_PATH_SEPARATOR) {
179 fn = filename;
186 fn += filename;
234 filename, name->lineno, name->data, expected.c_str());
242 check_filenames(const char* filename, document_item_type* items) argument
248 err |= check_filename(filename, p->package, &p->name);
[all …]
/frameworks/base/core/java/android/webkit/
DMimeTypeMap.java56 String filename = in getFileExtensionFromUrl() local
61 if (!filename.isEmpty() && in getFileExtensionFromUrl()
62 Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) { in getFileExtensionFromUrl()
63 int dotPos = filename.lastIndexOf('.'); in getFileExtensionFromUrl()
65 return filename.substring(dotPos + 1); in getFileExtensionFromUrl()
135 String filename = null; in remapGenericMimeType() local
137 filename = URLUtil.parseContentDisposition(contentDisposition); in remapGenericMimeType()
139 if (filename != null) { in remapGenericMimeType()
140 url = filename; in remapGenericMimeType()
DURLUtil.java303 String filename = null; in guessFileName() local
307 if (filename == null && contentDisposition != null) { in guessFileName()
308 filename = parseContentDisposition(contentDisposition); in guessFileName()
309 if (filename != null) { in guessFileName()
310 int index = filename.lastIndexOf('/') + 1; in guessFileName()
312 filename = filename.substring(index); in guessFileName()
318 if (filename == null) { in guessFileName()
329 filename = decodedUrl.substring(index); in guessFileName()
336 if (filename == null) { in guessFileName()
337 filename = "downloadfile"; in guessFileName()
[all …]
/frameworks/opt/mms/src/java/com/google/android/mms/util/
DDownloadDrmHelper.java74 public static String modifyDrmFwLockFileExtension(String filename) { in modifyDrmFwLockFileExtension() argument
75 if (filename != null) { in modifyDrmFwLockFileExtension()
77 extensionIndex = filename.lastIndexOf("."); in modifyDrmFwLockFileExtension()
79 filename = filename.substring(0, extensionIndex); in modifyDrmFwLockFileExtension()
81 filename = filename.concat(EXTENSION_INTERNAL_FWDL); in modifyDrmFwLockFileExtension()
83 return filename; in modifyDrmFwLockFileExtension()
/frameworks/native/libs/utils/
DTokenizer.cpp38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, in Tokenizer() argument
40 mFilename(filename), mFileMap(fileMap), in Tokenizer()
54 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { in open() argument
58 int fd = ::open(filename.string(), O_RDONLY); in open()
61 ALOGE("Error opening file '%s', %s.", filename.string(), strerror(errno)); in open()
66 ALOGE("Error getting size of file '%s', %s.", filename.string(), strerror(errno)); in open()
88 ALOGE("Error reading file '%s', %s.", filename.string(), strerror(errno)); in open()
97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length); in open()
105 status_t Tokenizer::fromContents(const String8& filename, in fromContents() argument
107 *outTokenizer = new Tokenizer(filename, NULL, in fromContents()
/frameworks/base/tools/aapt/
Dprintapk.cpp27 const char* filename; in main() local
43 filename = argv[1]; in main()
44 fd = open(filename, O_RDONLY); in main()
46 fprintf(stderr, "apk: couldn't open file for read: %s\n", filename); in main()
54 fprintf(stderr, "apk: error determining file size: %s\n", filename); in main()
60 fprintf(stderr, "apk: file too big: %s\n", filename); in main()
66 fprintf(stderr, "apk: error reading file: %s\n", filename); in main()
75 filename); in main()
DXMLNode.h43 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { in newNamespace() argument
44 return new XMLNode(filename, prefix, uri, true); in newNamespace()
48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument
49 return new XMLNode(filename, ns, name, false); in newElement()
53 sp<XMLNode> newCData(const String8& filename) { in newCData() argument
54 return new XMLNode(filename); in newCData()
145 String8 filename; member
167 XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace);
170 XMLNode(const String8& filename);
/frameworks/native/include/android/
Dstorage_manager.h98 typedef void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* da…
103 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key,
109 void AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force,
115 int AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename);
120 const char* AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename);
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java129 String filename = DOWNLOAD_5MB_FILENAME; in initiateDownload() local
141 Uri remoteUri = getExternalFileUri(filename); in initiateDownload()
165 String filename = DOWNLOAD_5MB_FILENAME; in verifyFileDownloadSucceeded() local
226 String filename = DOWNLOAD_10MB_FILENAME; in runLargeDownloadOverWiFi() local
234 Uri remoteUri = getExternalFileUri(filename); in runLargeDownloadOverWiFi()
268 String filename = DOWNLOAD_500K_FILENAME; in runDownloadMultipleSwitching() local
273 File downloadedFile = new File(localDownloadDirectory, filename); in runDownloadMultipleSwitching()
282 Uri remoteUri = getExternalFileUri(filename); in runDownloadMultipleSwitching()
343 String filename = DOWNLOAD_500K_FILENAME; in runDownloadMultipleWiFiEnableDisable() local
348 File downloadedFile = new File(localDownloadDirectory, filename); in runDownloadMultipleWiFiEnableDisable()
[all …]
/frameworks/compile/linkloader/
Dmain.cpp35 bool open_mmap_file(char const *filename,
55 char const *filename = argv[1]; in main() local
62 if (!open_mmap_file(filename, fd, image, image_size)) { in main()
211 bool open_mmap_file(char const *filename, in open_mmap_file() argument
217 if (stat(filename, &sb) != 0) { in open_mmap_file()
218 llvm::errs() << "ERROR: " << filename << " not found.\n"; in open_mmap_file()
223 llvm::errs() << "ERROR: " << filename << " is not a regular file.\n"; in open_mmap_file()
230 fd = open(filename, O_RDONLY); in open_mmap_file()
232 llvm::errs() << "ERROR: Unable to open " << filename << "\n"; in open_mmap_file()
241 llvm::errs() << "ERROR: Unable to map " << filename << " to memory.\n"; in open_mmap_file()
/frameworks/base/services/java/com/android/server/
DRandomBlock.java41 static RandomBlock fromFile(String filename) throws IOException { in fromFile() argument
42 if (DEBUG) Slog.v(TAG, "reading from file " + filename); in fromFile()
45 stream = new FileInputStream(filename); in fromFile()
65 void toFile(String filename, boolean sync) throws IOException { in toFile() argument
66 if (DEBUG) Slog.v(TAG, "writing to file " + filename); in toFile()
69 out = new RandomAccessFile(filename, sync ? "rws" : "rw"); in toFile()
DBootReceiver.java146 String filename = new File(TOMBSTONE_DIR, path).getPath(); in logBootEvents()
147 addFileToDropBox(db, prefs, headers, filename, LOG_SIZE, "SYSTEM_TOMBSTONE"); in logBootEvents()
159 String headers, String filename, int maxSize, String tag) throws IOException { in addFileToDropBox() argument
162 File file = new File(filename); in addFileToDropBox()
167 long lastTime = prefs.getLong(filename, 0); in addFileToDropBox()
171 prefs.edit().putLong(filename, fileTime).apply(); in addFileToDropBox()
174 Slog.i(TAG, "Copying " + filename + " to DropBox (" + tag + ")"); in addFileToDropBox()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java465 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument
466 File inFile = new File(path, filename); in doValidateIntContents()
468 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents()
480 Log.i(LOG_TAG, "Successfully validated file " + filename); in doValidateIntContents()
495 protected void doValidateTextContents(String path, String filename, String contents) { in doValidateTextContents() argument
496 File inFile = new File(path, filename); in doValidateTextContents()
499 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateTextContents()
508 fail("File " + filename + " in OBB " + path + " does not match expected value"); in doValidateTextContents()
513 Log.i(LOG_TAG, "File " + filename + " successfully verified."); in doValidateTextContents()
530 protected void doValidateZeroLongFile(String path, String filename, long size, in doValidateZeroLongFile() argument
[all …]
/frameworks/base/cmds/backup/
Dbackup.cpp55 perform_list(const char* filename) in perform_list() argument
60 fd = open(filename, O_RDONLY); in perform_list()
62 fprintf(stderr, "Error opening: %s\n", filename); in perform_list()
98 int perform_print(const char* entityname, const char* filename) in perform_print() argument
100 printf("perform_print(%s, %s);", entityname, filename); in perform_print()
/frameworks/base/libs/androidfw/
DObbFile.cpp86 bool ObbFile::readFrom(const char* filename) in readFrom() argument
91 fd = ::open(filename, O_RDONLY); in readFrom()
93 ALOGW("couldn't open file %s: %s", filename, strerror(errno)); in readFrom()
100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd); in readFrom()
226 bool ObbFile::writeTo(const char* filename) in writeTo() argument
231 fd = ::open(filename, O_WRONLY); in writeTo()
240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno)); in writeTo()
311 bool ObbFile::removeFrom(const char* filename) in removeFrom() argument
316 fd = ::open(filename, O_RDWR); in removeFrom()
325 ALOGW("failed to remove signature from %s: %s\n", filename, strerror(errno)); in removeFrom()
DBackupHelpers.cpp120 char* filename = nameBufSize <= (int)sizeof(filenameBuf) in read_snapshot_file() local
123 amt = read(fd, filename, nameBufSize); in read_snapshot_file()
125 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file()
128 if (filename != filenameBuf) { in read_snapshot_file()
129 free(filename); in read_snapshot_file()
736 RestoreHelperBase::WriteFile(const String8& filename, BackupDataReader* in) in WriteFile() argument
759 ALOGW("Could not read metadata for %s -- %ld / %s", filename.string(), in WriteFile()
776 fd = open(filename.string(), O_CREAT|O_RDWR|O_TRUNC, mode); in WriteFile()
778 ALOGW("Could not open file %s -- %s", filename.string(), strerror(errno)); in WriteFile()
786 ALOGW("Error '%s' writing '%s'", strerror(errno), filename.string()); in WriteFile()
[all …]
/frameworks/base/core/java/android/os/storage/
DIObbActionListener.java70 String filename; in onTransact() local
71 filename = data.readString(); in onTransact()
76 this.onObbResult(filename, nonce, status); in onTransact()
106 public void onObbResult(String filename, int nonce, int status) in onObbResult() argument
112 _data.writeString(filename); in onObbResult()
135 public void onObbResult(String filename, int nonce, int status) throws RemoteException; in onObbResult() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java157 String MediaId, String filename, int renderingMode) { in createMediaItem() argument
160 mvi = new MediaVideoItem(videoEditor, MediaId, filename, in createMediaItem()
166 + filename + " Issue = " + e.toString()); in createMediaItem()
170 + filename + " Issue = " + e.toString(), false); in createMediaItem()
181 String MediaId, String filename, long duration, int renderingMode) { in createMediaItem() argument
184 mii = new MediaImageItem(videoEditor, MediaId, filename, duration, in createMediaItem()
190 + filename + " Issue = " + e.toString(), false); in createMediaItem()
193 + filename + " Issue = " + e.toString(), false); in createMediaItem()
293 String filename) { in createAudio() argument
296 audio = new AudioTrack(videoEditor, audioTrackId, filename); in createAudio()
[all …]
/frameworks/base/media/tests/omxjpegdecoder/
Djpeg_decoder_bench.cpp81 const char* filename = "/sdcard/omxJpegDecodedBitmap.rgba"; in testDecodePixels() local
82 return storeBitmapToFile(bitmap, filename); in testDecodePixels()
86 int testDecoder(SkImageDecoder* decoder, char* filename) { in testDecoder() argument
88 SkStream* stream = new SkFILEStream(filename); in testDecoder()
94 stream = new SkFILEStream(filename); in testDecoder()
/frameworks/base/docs/html/sdk/
Ddownload.jd14 var filename = location.substring(location.indexOf('=')+1,location.length);
16 document.location = "http://dl.google.com/android/" + filename;
19 + filename);
55 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
56 document.write("File: " + filename);
81 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
82 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
/frameworks/base/docs/html/tools/sdk/
Ddownload.jd14 var filename = location.substring(location.indexOf('=')+1,location.length);
16 document.location = "http://dl.google.com/android/" + filename;
19 + filename);
55 …var filename = loc.substring(loc.indexOf('=')+1,loc.length).replace(/</g,"&lt;").replace(/>/g,"&gt…
56 document.write("File: " + filename);
81 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
82 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaPlayerStressTest.java73 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument
74 output.write("File Name: " + filename); in writeTestOutput()
130 String filename = children[i]; in testVideoPlayback() local
132 CodecTest.playMediaSamples(dir + "/" + filename); in testVideoPlayback()
135 fileWithError += filename + '\n'; in testVideoPlayback()
141 writeTestOutput(filename,output); in testVideoPlayback()

12345678910>>...13