Searched refs:filename (Results 1 - 25 of 158) sorted by relevance

1234567

/frameworks/av/cmds/stagefright/
H A Djpeg.h4 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height);
H A DWaveWriter.h25 WaveWriter(const char *filename, argument
27 : mFile(fopen(filename, "wb")),
/frameworks/native/include/android/
H A Dstorage_manager.h98 typedef void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* data);
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);
H A Dobb.h37 AObbInfo* AObbScanner_getObbInfo(const char* filename);
/frameworks/opt/mms/src/java/com/google/android/mms/util/
H A DDownloadDrmHelper.java74 public static String modifyDrmFwLockFileExtension(String filename) { argument
75 if (filename != null) {
77 extensionIndex = filename.lastIndexOf(".");
79 filename = filename.substring(0, extensionIndex);
81 filename = filename.concat(EXTENSION_INTERNAL_FWDL);
83 return filename;
/frameworks/base/tools/validatekeymaps/
H A DMain.cpp50 static FileType getFileType(const char* filename) { argument
51 const char *extension = strrchr(filename, '.');
64 if (strstr(filename, "virtualkeys.")) {
71 static bool validateFile(const char* filename) { argument
72 fprintf(stdout, "Validating file '%s'...\n", filename);
74 FileType fileType = getFileType(filename);
82 status_t status = KeyLayoutMap::load(String8(filename), &map);
92 status_t status = KeyCharacterMap::load(String8(filename),
103 status_t status = PropertyMap::load(String8(filename), &map);
114 status_t status = VirtualKeyMap::load(String8(filename),
[all...]
/frameworks/base/core/java/android/webkit/
H A DMimeTypeMap.java56 String filename =
59 // if the filename contains special characters, we don't
61 if (!filename.isEmpty() &&
62 Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) {
63 int dotPos = filename.lastIndexOf('.');
65 return filename.substring(dotPos + 1);
133 // for attachment, use the filename in the Content-Disposition
135 String filename = null;
137 filename = URLUtil.parseContentDisposition(contentDisposition);
139 if (filename !
[all...]
H A DURLUtil.java290 * Guesses canonical filename that a download would have, using
297 * @return suggested filename
303 String filename = null;
307 if (filename == null && contentDisposition != null) {
308 filename = parseContentDisposition(contentDisposition);
309 if (filename != null) {
310 int index = filename.lastIndexOf('/') + 1;
312 filename = filename.substring(index);
318 if (filename
[all...]
/frameworks/base/cmds/backup/
H A Dbackup.cpp55 perform_list(const char* filename) argument
60 fd = open(filename, O_RDONLY);
62 fprintf(stderr, "Error opening: %s\n", filename);
98 int perform_print(const char* entityname, const char* filename) argument
100 printf("perform_print(%s, %s);", entityname, filename);
/frameworks/base/native/android/
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...]
H A Dobb.cpp28 AObbInfo* AObbScanner_getObbInfo(const char* filename) { argument
30 if (obbFile == NULL || !obbFile->readFrom(filename)) {
/frameworks/base/libs/storage/
H A DIObbActionListener.cpp33 virtual void onObbResult(const String16& filename, const int32_t nonce, const int32_t state) { } argument
46 String16 filename = data.readString16(); local
49 onObbResult(filename, nonce, state);
/frameworks/base/core/java/android/os/storage/
H A DIObbActionListener.java70 String filename;
71 filename = data.readString();
76 this.onObbResult(filename, nonce, status);
102 * @param filename the path to the OBB the operation was performed
106 public void onObbResult(String filename, int nonce, int status) argument
112 _data.writeString(filename);
131 * @param filename the path to the OBB the operation was performed on
135 public void onObbResult(String filename, int nonce, int status) throws RemoteException; argument
/frameworks/base/services/java/com/android/server/
H A DRandomBlock.java41 static RandomBlock fromFile(String filename) throws IOException { argument
42 if (DEBUG) Slog.v(TAG, "reading from file " + filename);
45 stream = new FileInputStream(filename);
65 void toFile(String filename, boolean sync) throws IOException { argument
66 if (DEBUG) Slog.v(TAG, "writing to file " + filename);
69 out = new RandomAccessFile(filename, sync ? "rws" : "rw");
/frameworks/base/tools/aapt/
H A Dprintapk.cpp27 const char* filename; local
43 filename = argv[1];
44 fd = open(filename, O_RDONLY);
46 fprintf(stderr, "apk: couldn't open file for read: %s\n", filename);
54 fprintf(stderr, "apk: error determining file size: %s\n", filename);
60 fprintf(stderr, "apk: file too big: %s\n", filename);
66 fprintf(stderr, "apk: error reading file: %s\n", filename);
75 filename);
H A DFileFinder.cpp23 bool isDirectory(const char* filename) { argument
25 if (stat(filename, &fileStat) == -1) {
33 bool isFile(const char* filename) { argument
35 if (stat(filename, &fileStat) == -1) {
/frameworks/base/tools/obbtool/
H A DMain.cpp92 void doAdd(const char* filename, struct PackageInfo* info) { argument
94 if (obb->readFrom(filename)) {
95 fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename);
106 if (!obb->writeTo(filename)) {
108 filename, strerror(errno));
115 void doRemove(const char* filename) { argument
117 if (!obb->readFrom(filename)) {
118 fprintf(stderr, "ERROR: %s: no OBB signature present\n", filename);
122 if (!obb->removeFrom(filename)) {
123 fprintf(stderr, "ERROR: %s: couldn't remove OBB signature\n", filename);
130 doInfo(const char* filename) argument
268 const char* filename = argv[optind++]; local
[all...]
/frameworks/native/libs/utils/
H A DTokenizer.cpp38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, argument
40 mFilename(filename), mFileMap(fileMap),
54 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { argument
58 int fd = ::open(filename.string(), O_RDONLY);
61 ALOGE("Error opening file '%s', %s.", filename.string(), strerror(errno));
66 ALOGE("Error getting size of file '%s', %s.", filename.string(), strerror(errno));
88 ALOGE("Error reading file '%s', %s.", filename.string(), strerror(errno));
97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length);
105 status_t Tokenizer::fromContents(const String8& filename, argument
107 *outTokenizer = new Tokenizer(filename, NUL
[all...]
/frameworks/base/media/tests/omxjpegdecoder/
H A Djpeg_decoder_bench.cpp81 const char* filename = "/sdcard/omxJpegDecodedBitmap.rgba"; local
82 return storeBitmapToFile(bitmap, filename);
86 int testDecoder(SkImageDecoder* decoder, char* filename) { argument
88 SkStream* stream = new SkFILEStream(filename);
94 stream = new SkFILEStream(filename);
/frameworks/base/tools/aidl/
H A Daidl.cpp88 const char* filename; member in struct:import_info
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;
215 // Input filename under cygwin most likely has / separators
234 filename, nam
242 check_filenames(const char* filename, document_item_type* items) argument
294 gather_types(const char* filename, document_item_type* items) argument
405 check_method(const char* filename, int kind, method_type* m) argument
543 check_types(const char* filename, document_item_type* items) argument
583 exactly_one_interface(const char* filename, const document_item_type* items, const Options& options, bool* onlyParcelable) argument
747 parse_preprocessed_file(const string& filename) argument
[all...]
H A Dgenerate_java.cpp61 generate_java(const string& filename, const string& originalSrc, argument
79 // printf("outputting... filename=%s\n", filename.c_str());
81 if (filename == "-") {
87 to = fopen(filename.c_str(), "wb");
89 fprintf(stderr, "unable to open %s for write\n", filename.c_str());
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewUtilities.java20 * @param filename the name of the file to write
23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { argument
25 File file = new File(path, filename);
/frameworks/wilhelm/tools/mphtogen/
H A Dmphtogen.c25 static void convert(const signed char MPH_to[MPH_MAX], const char *filename) argument
27 FILE *fp = fopen(filename, "w");
/frameworks/base/core/java/android/content/res/
H A DObbInfo.java32 * The canonical filename of the OBB.
34 public String filename; field in class:ObbInfo
81 dest.writeString(filename);
100 filename = source.readString();
/frameworks/native/include/utils/
H A DTokenizer.h31 Tokenizer(const String8& filename, FileMap* fileMap, char* buffer,
43 static status_t open(const String8& filename, Tokenizer** outTokenizer);
51 static status_t fromContents(const String8& filename,
75 * Formats a location string consisting of the filename and current line number.

Completed in 363 milliseconds

1234567