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

1234567

/frameworks/base/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/base/tools/aidl/
H A Dgenerate_java.h10 int generate_java(const string& filename, const string& originalSrc,
H A Daidl.cpp83 const char* filename; member in struct:import_info
159 check_filename(const char* filename, const char* package, buffer_type* name) argument
169 if (isalpha(filename[0]) && filename[1] == ':'
170 && filename[2] == OS_PATH_SEPARATOR) {
172 if (filename[0] == OS_PATH_SEPARATOR) {
174 fn = filename;
181 fn += filename;
210 // Input filename under cygwin most likely has / separators
229 filename, nam
237 check_filenames(const char* filename, document_item_type* items) argument
288 gather_types(const char* filename, document_item_type* items) argument
384 check_method(const char* filename, method_type* m) argument
496 check_types(const char* filename, document_item_type* items) argument
535 exactly_one_interface(const char* filename, const document_item_type* items, const Options& options, bool* onlyParcelable) argument
698 parse_preprocessed_file(const string& filename) argument
[all...]
/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 LOGI("Didn't find the callback handler for: %s\n", filename);
128 void mountObb(const char* filename, const char* key, AStorageManager_obbCallbackFunc func, void* data) { argument
130 String16 filename16(filename);
135 void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void* data) { argument
137 String16 filename16(filename);
141 int isObbMounted(const char* filename) { argument
142 String16 filename16(filename);
146 getMountedObbPath(const char* filename) argument
157 onObbResult(const android::String16& filename, const int32_t nonce, const int32_t state) argument
177 AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, AStorageManager_obbCallbackFunc cb, void* data) argument
182 AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force, AStorageManager_obbCallbackFunc cb, void* data) argument
187 AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename) argument
191 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/compile/libbcc/lib/ExecutionEngine/
H A DSha1Helper.h33 void calcFileSHA1(unsigned char *result, char const *filename);
35 // Read binary representation of sha1 from filename.
36 void readSHA1(unsigned char *result, int resultsize, char const *filename);
H A DSha1Helper.cpp50 void calcFileSHA1(unsigned char *result, char const *filename) { argument
55 if (file.open(filename, OpenMode::Read) < 0) {
56 LOGE("Unable to calculate the sha1 checksum of %s\n", filename);
85 void readSHA1(unsigned char *result, int result_size, char const *filename) { argument
87 if (file.open(filename, OpenMode::Read) < 0) {
88 LOGE("Unable to read binary sha1 file %s\n", 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), &map);
102 status_t status = PropertyMap::load(String8(filename), &map);
112 status_t status = VirtualKeyMap::load(String8(filename),
[all...]
/frameworks/base/core/java/android/webkit/
H A DMimeTypeMap.java57 String filename =
60 // if the filename contains special characters, we don't
62 if (!filename.isEmpty() &&
63 Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) {
64 int dotPos = filename.lastIndexOf('.');
66 return filename.substring(dotPos + 1);
134 // for attachment, use the filename in the Content-Disposition
136 String filename = null;
138 filename = URLUtil.parseContentDisposition(contentDisposition);
140 if (filename !
[all...]
H A DURLUtil.java289 * Guesses canonical filename that a download would have, using
296 * @return suggested filename
302 String filename = null;
306 if (filename == null && contentDisposition != null) {
307 filename = parseContentDisposition(contentDisposition);
308 if (filename != null) {
309 int index = filename.lastIndexOf('/') + 1;
311 filename = filename.substring(index);
317 if (filename
[all...]
/frameworks/base/tools/localize/
H A Dfile_utils.h13 ValuesFile* get_values_file(const string& filename, const Configuration& configuration,
15 ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration,
19 int write_to_file(const string& filename, const string& text);
H A Dmerge_res_and_xliff.h9 const string& filename, const XLIFFFile* xliff);
H A Dfile_utils.cpp97 get_values_file(const string& filename, const Configuration& configuration, argument
103 log_printf("get_values_file filename=%s\n", filename.c_str());
104 err = Perforce::GetFile(filename, versionString, &text, printOnFailure);
109 ValuesFile* result = ValuesFile::ParseString(filename, text, configuration, version,
112 fprintf(stderr, "unable to parse file: %s\n", filename.c_str());
119 get_local_values_file(const string& filename, const Configuration& configuration, argument
128 fd = open(filename.c_str(), O_RDONLY);
130 fprintf(stderr, "unable to open file: %s\n", filename.c_str());
144 ValuesFile* result = ValuesFile::ParseString(filename, tex
161 write_to_file(const string& filename, const string& text) argument
[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/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);
/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/base/core/jni/
H A Dandroid_net_TrafficStats.cpp46 static jlong readNumber(char const* filename) { argument
48 int fd = open(filename, O_RDONLY);
50 if (errno != ENOENT) LOGE("Can't open %s: %s", filename, strerror(errno));
56 LOGE("Can't read %s: %s", filename, strerror(errno));
78 char filename[80]; local
84 snprintf(filename, sizeof(filename), "/sys/class/net/%s/statistics/%s",
86 jlong number = readNumber(filename);
101 char filename[PATH_MAX] = "/sys/class/net/"; local
102 DIR *dir = opendir(filename);
[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/cmds/stagefright/
H A DWaveWriter.h25 WaveWriter(const char *filename, argument
27 : mFile(fopen(filename, "wb")),
/frameworks/base/include/utils/
H A DTokenizer.h31 Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, size_t length);
42 static status_t open(const String8& filename, Tokenizer** outTokenizer);
65 * Formats a location string consisting of the filename and current line number.
/frameworks/base/libs/utils/
H A DTokenizer.cpp38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, size_t length) : argument
39 mFilename(filename), mFileMap(fileMap),
51 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { argument
55 int fd = ::open(filename.string(), O_RDONLY);
58 LOGE("Error opening file '%s', %s.", filename.string(), strerror(errno));
63 LOGE("Error getting size of file '%s', %s.", filename.string(), strerror(errno));
83 LOGE("Error reading file '%s', %s.", filename.string(), strerror(errno));
92 *outTokenizer = new Tokenizer(filename, fileMap, buffer, length);

Completed in 387 milliseconds

1234567