Searched defs:filename (Results 1 - 25 of 100) sorted by relevance

1234

/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/native/android/
H A Dobb.cpp28 AObbInfo* AObbScanner_getObbInfo(const char* filename) { argument
30 if (obbFile == NULL || !obbFile->readFrom(filename)) {
/frameworks/av/cmds/stagefright/
H A DWaveWriter.h25 WaveWriter(const char *filename, argument
27 : mFile(fopen(filename, "wb")),
H A Djpeg.cpp40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument
47 f = fopen(filename, "w");
/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/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/native/opengl/tools/glgen/src/
H A DGenerateEGL.java26 private static void copy(String filename, PrintStream out) throws IOException { argument
27 BufferedReader br = new BufferedReader(new FileReader(filename));
57 String filename = stubRoot + ".nativeReg";
59 new BufferedReader(new FileReader(filename));
H A DGenerateGL.java26 static void copy(String filename, PrintStream out) throws IOException { argument
27 BufferedReader br = new BufferedReader(new FileReader(filename));
60 String filename = "stubs/jsr239/" + fname + ".nativeReg";
62 new BufferedReader(new FileReader(filename));
H A DGenerateGLES.java26 static void copy(String filename, PrintStream out) throws IOException { argument
27 BufferedReader br = new BufferedReader(new FileReader(filename));
57 String filename = stubRoot + ".nativeReg";
59 new BufferedReader(new FileReader(filename));
/frameworks/av/media/libstagefright/rtsp/
H A DUDPPusher.cpp32 UDPPusher::UDPPusher(const char *filename, unsigned port) argument
33 : mFile(fopen(filename, "rb")),
/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/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");
H A DBootReceiver.java135 String filename = new File(TOMBSTONE_DIR, path).getPath();
136 addFileToDropBox(db, prefs, headers, filename, LOG_SIZE, "SYSTEM_TOMBSTONE");
148 String headers, String filename, int maxSize, String tag) throws IOException {
151 File file = new File(filename);
156 long lastTime = prefs.getLong(filename, 0);
160 prefs.edit().putLong(filename, fileTime).apply();
163 Slog.i(TAG, "Copying " + filename + " to DropBox (" + tag + ")");
146 addFileToDropBox( DropBoxManager db, SharedPreferences prefs, String headers, String filename, int maxSize, String tag) argument
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DMenu.java51 void processFile(String filename, boolean selection) { argument
55 intent.putExtra(TestShellActivity.TEST_URL, "file://" + filename);
/frameworks/base/tools/aidl/
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/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/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;
H A DDrmConvertSession.java117 * @param fileName The filename of the converted file.
124 public int close(String filename) { argument
137 rndAccessFile = new RandomAccessFile(filename, "rw");
143 Log.w(TAG, "File: " + filename + " could not be found.", e);
146 Log.w(TAG, "Could not access File: " + filename + " .", e);
151 Log.w(TAG, "Access to File: " + filename +
159 Log.w(TAG, "Failed to close File:" + filename
/frameworks/av/media/libstagefright/
H A DFileSource.cpp27 FileSource::FileSource(const char *filename) argument
37 mFd = open(filename, O_LARGEFILE | O_RDONLY);
42 ALOGE("Failed to open file '%s'. (%s)", filename, strerror(errno));
/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/libs/androidfw/
H A DVirtualKeyMap.cpp48 status_t VirtualKeyMap::load(const String8& filename, VirtualKeyMap** outMap) { argument
52 status_t status = Tokenizer::open(filename, &tokenizer);
54 ALOGE("Error %d opening virtual key map file %s.", status, filename.string());
/frameworks/compile/slang/
H A Dslang_rs_reflection_base.cpp92 void RSReflectionBase::startFile(const string &filename) { argument
94 printf("Generating %s\n", filename.c_str());
136 bool RSReflectionBase::writeFile(const string &filename, const vector< string > &txt) { argument
137 FILE *pfin = fopen(filename.c_str(), "wt");
139 fprintf(stderr, "Error: could not write file %s\n", filename.c_str());

Completed in 418 milliseconds

1234