Searched defs:filename (Results 51 - 75 of 99) sorted by relevance

1234

/frameworks/native/opengl/libs/EGL/
H A Degl_cache.cpp189 void egl_cache_t::setCacheFilename(const char* filename) { argument
191 mFilename = filename;
/frameworks/rs/api/
H A DGenerateHeaderFiles.cpp27 static string makeGuardString(const string& filename) { argument
29 s.resize(15 + filename.size());
31 for (char c : filename) {
/frameworks/rs/
H A DrsFileA3D.cpp310 bool FileA3D::writeFile(const char *filename) { argument
320 FILE *writeHandle = fopen(filename, "wb");
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DNativeMedia.java330 public static native boolean createStreamingMediaPlayer(String filename); argument
/frameworks/av/cmds/stagefright/
H A Dstream.cpp128 MyConvertingStreamSource(const char *filename);
160 MyConvertingStreamSource::MyConvertingStreamSource(const char *filename) argument
164 DataSource::CreateFromURI(NULL /* httpService */, filename);
307 fprintf(stderr, "Usage: %s filename\n", argv[0]);
H A Dstagefright.cpp141 static void dumpSource(const sp<IMediaSource> &source, const String8 &filename) { argument
142 FILE *out = fopen(filename.string(), "wb");
615 fprintf(stderr, " -w(rite) filename (write to .mp4 file)\n");
853 const char *filename = argv[k]; local
857 int fd = open(filename, O_RDONLY | O_LARGEFILE);
874 printf("getFrameAtTime(%s) => OK\n", filename);
888 printf("extractAlbumArt(%s) => OK\n", filename);
894 "failed on file '%s'.\n", filename);
975 const char *filename = argv[k]; local
978 DataSource::CreateFromURI(NULL /* httpService */, filename);
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DDecTestBench.c39 void WriteOutput(char *filename, u8 *data, u32 picSize);
442 void WriteOutput(char *filename, u8 *data, u32 picSize) argument
450 if (strcmp(filename, "none") != 0)
453 foutput = fopen(filename, "wb");
/frameworks/base/core/java/android/os/
H A DFileUtils.java244 * Check if a filename is "safe" (no metacharacters or spaces).
320 * Writes string to file. Basically same as "echo -n $string > $filename"
322 * @param filename
326 public static void stringToFile(String filename, String string) throws IOException { argument
327 FileWriter out = new FileWriter(filename);
481 * Check if given filename is valid for an ext4 filesystem.
488 * Mutate the given filename to make it valid for an ext4 filesystem,
530 * Check if given filename is valid for a FAT filesystem.
537 * Mutate the given filename to make it valid for a FAT filesystem,
641 * extension is regarded as a part of filename an
[all...]
/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/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/services/core/java/com/android/server/am/
H A DTaskPersister.java525 String filename = file.getName();
526 final int taskIdEnd = filename.indexOf('_');
530 taskId = Integer.parseInt(filename.substring(0, taskIdEnd));
572 static Bitmap restoreImage(String filename) { argument
573 if (DEBUG) Slog.d(TAG, "restoreImage: restoring " + filename);
574 return BitmapFactory.decodeFile(filename);
696 if (DEBUG) Slog.d(TAG, "writing bitmap: filename=" + filePath);
/frameworks/base/tools/aapt2/compile/
H A DCompile.cpp88 std::string& filename = parts[parts.size() - 1]; local
89 StringPiece name = filename;
91 size_t dotPos = filename.find('.');
93 extension = name.substr(dotPos + 1, filename.size() - (dotPos + 1));
129 static bool isHidden(const StringPiece& filename) { argument
130 return util::stringStartsWith<char>(filename, ".");
202 // If the filename includes donottranslate, then the default translatable is false.
/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c341 jclass clazz, jstring filename)
346 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL);
393 (*env)->ReleaseStringUTFChars(env, filename, utf8);
340 Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer(JNIEnv* env, jclass clazz, jstring filename) argument
/frameworks/base/core/jni/
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/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);
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbPortManager.java653 private static String readFile(File dir, String filename) { argument
654 final File file = new File(dir, filename);
678 private static String propertyFromFilename(String filename) { argument
679 return USB_TYPEC_PROP_PREFIX + filename;
682 private static boolean writeFile(File dir, String filename, String contents) { argument
683 SystemProperties.set(propertyFromFilename(filename), contents);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c241 " %s filename\n", argv[0]);
259 const char *filename = argv[i]; local
262 sndfile = sf_open(filename, SFM_READ, &sfinfo);
264 perror(filename);
H A Dplaybq.cpp241 " %s filename\n", argv[0]);
259 const char *filename = argv[i]; local
262 sndfile = sf_open(filename, SFM_READ, &sfinfo);
264 perror(filename);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp415 AString filename = href; local
416 if (!filename.startsWith("media_codecs_") ||
417 !filename.endsWith(".xml")) {
421 filename.insert(mHrefBase, 0);
423 parseXMLFile(filename.c_str());
/frameworks/base/libs/androidfw/
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...]
/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/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java1117 private byte[] getFileData(String filename) { argument
1120 File file = new File(filename);
1136 Log.w(TAG, "Couldn't backup " + filename);
1141 Log.w(TAG, "Couldn't backup " + filename);
1153 private void restoreFileData(String filename, byte[] bytes, int size) { argument
1155 File file = new File(filename);
1158 OutputStream os = new BufferedOutputStream(new FileOutputStream(filename, true));
1162 Log.w(TAG, "Couldn't restore " + filename);
1167 private byte[] getWifiSupplicant(String filename) { argument
1170 File file = new File(filename);
1200 restoreWifiSupplicant(String filename, byte[] bytes, int size) argument
[all...]
/frameworks/native/cmds/atrace/
H A Datrace.cpp237 static bool fileExists(const char* filename) { argument
238 return access(filename, F_OK) != -1;
242 static bool fileIsWritable(const char* filename) { argument
243 return access(filename, W_OK) != -1;
264 static bool _writeStr(const char* filename, const char* str, int flags) argument
266 int fd = open(filename, flags);
268 fprintf(stderr, "error opening %s: %s (%d)\n", filename,
276 fprintf(stderr, "error writing to %s: %s (%d)\n", filename,
287 static bool writeStr(const char* filename, const char* str) argument
289 return _writeStr(filename, st
293 appendStr(const char* filename, const char* str) argument
326 setKernelOptionEnable(const char* filename, bool enable) argument
[all...]
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp109 status_t KeyCharacterMap::load(const String8& filename, argument
114 status_t status = Tokenizer::open(filename, &tokenizer);
116 ALOGE("Error %d opening key character map file %s.", status, filename.string());
124 status_t KeyCharacterMap::loadContents(const String8& filename, const char* contents, argument
129 status_t status = Tokenizer::fromContents(filename, contents, &tokenizer);

Completed in 800 milliseconds

1234