Searched refs:filename (Results 1 - 25 of 169) 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.h123 typedef void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* data);
128 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key,
134 void AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force,
140 int AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename);
145 const char* AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename);
H A Dobb.h48 AObbInfo* AObbScanner_getObbInfo(const char* filename);
/frameworks/opt/telephony/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.java292 * Guesses canonical filename that a download would have, using
299 * @return suggested filename
305 String filename = null;
309 if (filename == null && contentDisposition != null) {
310 filename = parseContentDisposition(contentDisposition);
311 if (filename != null) {
312 int index = filename.lastIndexOf('/') + 1;
314 filename = filename.substring(index);
320 if (filename
[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/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/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/core/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/obbtool/
H A DMain.cpp92 void doAdd(const char* filename, 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/opengl/tools/glgen2/registry/
H A Dgenheaders.py31 # registry <filename> - use specified XML registry instead of gl.xml
271 filename = 'GL/glext.h',
290 filename = 'GL/glcorearb.h',
309 filename = 'GLES/gl.h',
328 filename = 'GLES/glext.h',
347 filename = 'GLES2/gl2.h',
366 filename = 'GLES2/gl2ext.h',
385 filename = 'GLES3/gl31.h',
404 filename = 'GLES3/gl3.h',
423 filename
[all...]
/frameworks/base/libs/storage/
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/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/tools/aapt/
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/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorInstrumentationTestRunner.java44 String filename = getArguments().getString("traceLogFilename");
45 if (filename == null) {
49 Tracer.getInstance().setOutputFilename(filename);
/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/base/tools/aapt2/util/
H A DFiles.cpp135 StringPiece filename = getFilename(path); local
136 const char* const end = filename.end();
137 const char* c = std::find(filename.begin(), end, '.');
216 bool FileFilter::operator()(const std::string& filename, FileType type) const { argument
217 if (filename == "." || filename == "..") {
223 const size_t filenameLen = filename.length();
253 ignore = strncasecmp(tokenStr, filename.c_str() + filenameLen - n, n) == 0;
257 ignore = strncasecmp(tokenStr, filename.c_str(), n - 1) == 0;
259 ignore = strcasecmp(tokenStr, filename
[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/libs/androidfw/
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/tools/layoutlib/rename_font/
H A Dbuild_font.py76 for filename in files:
77 os.remove(filename)
82 for filename in filenames:
83 input_path = os.path.join(dirname, filename)
84 extension = os.path.splitext(filename)[1].lower()
98 filename = os.path.basename(input_path)
99 print 'Converting font: ' + filename
101 ttx_path = os.path.join(dest_dir, filename)
119 print filename + ' is not a valid font'
122 print 'Error converting font: ' + filename
[all...]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerTestApp.java126 String filename = DOWNLOAD_FILENAME;
138 Uri remoteUri = getExternalFileUri(filename);
162 String filename = DOWNLOAD_FILENAME;
221 String filename = DOWNLOAD_FILENAME;
229 Uri remoteUri = getExternalFileUri(filename);
263 String filename = DOWNLOAD_FILENAME;
268 File downloadedFile = new File(localDownloadDirectory, filename);
277 Uri remoteUri = getExternalFileUri(filename);
340 String filename = DOWNLOAD_FILENAME;
345 File downloadedFile = new File(localDownloadDirectory, filename);
[all...]

Completed in 782 milliseconds

1234567