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

123

/frameworks/base/media/java/android/media/
H A DExifInterface.java113 public ExifInterface(String filename) throws IOException { argument
114 mFilename = filename;
H A DMediaScanner.java318 /** The filename for the default sound for the ringer ringtone. */
320 /** The filename for the default sound for the notification ringtone. */
322 /** The filename for the default sound for the alarm ringtone. */
853 private boolean doesPathHaveFilename(String path, String filename) { argument
855 int filenameLength = filename.length();
856 return path.regionMatches(pathFilenameStart, filename, 0, filenameLength) &&
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java354 private byte[] getWifiSupplicant(String filename) { argument
356 File file = new File(filename);
379 Log.w(TAG, "Couldn't backup " + filename);
384 private void restoreWifiSupplicant(String filename, BackupDataInput data) { argument
393 FileOutputStream fos = new FileOutputStream(filename, true);
397 Log.w(TAG, "Couldn't restore " + filename);
/frameworks/base/tools/localize/
H A Dmerge_res_and_xliff.cpp20 find_in_xliff(const set<StringResource>& s, const string& filename, const string& id, int index, argument
24 if (it->file == filename && it->id == id && it->index == index && it->version == version
67 const string& filename, const XLIFFFile* xliffFile)
103 StringResource r(convert_resource(*xx_c, filename, xx_config,
115 StringResource r(convert_resource(*xlf, filename, xx_config,
127 StringResource r(convert_resource(*xx_c, filename, xx_config,
65 merge_res_and_xliff(const ValuesFile* en_currentFile, const ValuesFile* xx_currentFile, const ValuesFile* xx_oldFile, const string& filename, const XLIFFFile* xliffFile) argument
H A DXLIFFFile.cpp21 if (filename != that.filename) {
22 return filename < that.filename ? -1 : 1;
55 XLIFFFile::Parse(const string& filename) argument
59 XMLNode* root = NodeHandler::ParseFile(filename, XMLNode::PRETTY);
170 result.insert(f->filename);
183 if (m_files[i].filename == str.file) {
190 file.filename = str.file;
234 bool keep = func(file.filename, t
272 EditTransUnit(const string& filename, const string& id) argument
[all...]
H A DXMLHandler.cpp175 string filename; member in struct:xml_handler_data
489 SourcePos pos(data->filename, (int)XML_GetCurrentLineNumber(data->parser));
522 SourcePos pos(data->filename, (int)XML_GetCurrentLineNumber(data->parser));
547 SourcePos pos(data->filename, (int)XML_GetCurrentLineNumber(data->parser));
556 SourcePos pos(data->filename, (int)XML_GetCurrentLineNumber(data->parser));
561 XMLHandler::ParseFile(const string& filename, XMLHandler* handler) argument
564 int fd = open(filename.c_str(), O_RDONLY);
566 SourcePos(filename, -1).Error("Unable to open file for read: %s", strerror(errno));
574 state.filename = filename;
772 ParseFile(const string& filename, int pretty) argument
783 ParseString(const string& filename, const string& text, int pretty) argument
[all...]
H A Dlocalize.cpp27 read_settings(const string& filename, map<string,Settings>* result, const string& rootDir) argument
29 XMLNode* root = NodeHandler::ParseFile(filename, XMLNode::PRETTY);
31 SourcePos(filename, -1).Error("Error reading file.");
382 stringstream filename; local
384 filename << outDir << '/';
386 filename << config << '-' << targetLocale << '-' << setting.currentVersion << ".xliff";
387 xliffs.push_back(pair<string,XLIFFFile*>(filename.str(), xliff));
400 const string& filename = it->first; local
403 write_to_file(filename, text);
/frameworks/base/cmds/stagefright/
H A Dstagefright.cpp467 fprintf(stderr, " -w(rite) filename (write to .mp4 file)\n");
596 const char *filename = argv[k]; local
598 CHECK_EQ(retriever->setDataSource(filename), (status_t)OK);
604 printf("getFrameAtTime(%s) => OK\n", filename);
609 printf("extractAlbumArt(%s) => OK\n", filename);
612 "failed on file '%s'.\n", filename);
696 const char *filename = argv[k]; local
698 sp<DataSource> dataSource = DataSource::CreateFromURI(filename);
700 if (strncasecmp(filename, "sine:", 5)
701 && strncasecmp(filename, "rts
[all...]
/frameworks/base/core/java/android/os/storage/
H A DIMountService.java487 public void mountObb(String filename, String key, IObbActionListener token, int nonce) argument
493 _data.writeString(filename);
512 public void unmountObb(String filename, boolean force, IObbActionListener token, argument
518 _data.writeString(filename);
534 public boolean isObbMounted(String filename) throws RemoteException { argument
540 _data.writeString(filename);
554 public String getMountedObbPath(String filename) throws RemoteException { argument
560 _data.writeString(filename);
854 String filename;
855 filename
939 getMountedObbPath(String filename) argument
965 isObbMounted(String filename) argument
988 mountObb(String filename, String key, IObbActionListener token, int nonce) argument
1032 unmountObb(String filename, boolean force, IObbActionListener token, int nonce) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java564 * @param filename
570 public int addSpeech(String text, String filename) { argument
576 mITts.addSpeechFile(mPackageName, text, filename);
668 * @param filename
674 public int addEarcon(String earcon, String filename) { argument
680 mITts.addEarconFile(mPackageName, earcon, filename);
1227 * @param filename
1228 * The string that gives the full output filename; it should be
1234 String filename) {
1255 result = mITts.synthesizeToFile(mPackageName, text, mCachedParams, filename)
1233 synthesizeToFile(String text, HashMap<String,String> params, String filename) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java442 * @param filename The name of the file to try to retrieve from the mock server
445 protected Uri getServerUri(String filename) throws Exception { argument
446 URL url = mServer.getUrl("/" + filename);
453 * @param filename The name of the file to try to retrieve from the mock server
586 * @param filename (optional) The name of the file to create on the SD card; pass in null to
587 * use a default temp filename.
593 protected File createFileOnSD(String filename, long fileSize, DataType type, argument
604 if (filename == null) {
608 fullPath.append(File.separatorChar).append(filename);
929 * Helper to do the additional steps (setting title and Uri of default filename) whe
[all...]
/frameworks/base/media/libstagefright/
H A DMPEG2TSWriter.cpp421 MPEG2TSWriter::MPEG2TSWriter(const char *filename) argument
422 : mFile(fopen(filename, "wb")),
H A DMPEG4Writer.cpp216 MPEG4Writer::MPEG4Writer(const char *filename) argument
217 : mFile(fopen(filename, "wb")),
/frameworks/base/packages/TtsService/src/android/tts/
H A DTtsService.java87 int itemType, String filename) {
91 mFilename = filename;
246 // Generate the TTS .so filename from the package
451 * @param filename
452 * The filename of the sound resource. This must be a complete
455 private void addSpeech(String callingApp, String text, String filename) { argument
456 mUtterances.put(text, new SoundResource(filename));
478 * @param filename
479 * The filename of the sound resource. This must be a complete
482 private void addEarcon(String callingApp, String earcon, String filename) { argument
86 SpeechItem(String source, String text, ArrayList<String> params, int itemType, String filename) argument
1172 synthesizeToFile(String callingApp, String text, ArrayList<String> params, String filename) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DBatteryStatsService.java50 BatteryStatsService(String filename) { argument
51 mStats = new BatteryStatsImpl(filename);
/frameworks/base/tools/aidl/
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
670 parse_preprocessed_file(const string& filename) argument
[all...]
H A Dgenerate_java.cpp624 generate_java(const string& filename, const string& originalSrc, argument
633 // printf("outputting... filename=%s\n", filename.c_str());
635 if (filename == "-") {
641 to = fopen(filename.c_str(), "wb");
643 fprintf(stderr, "unable to open %s for write\n", filename.c_str());
/frameworks/base/core/java/android/speech/srec/
H A DRecognizer.java443 || ESR_SessionGetLCHAR ( L("cmdline.vocabulary"), filename, &flen )
444 || SR_VocabularyLoad ( filename, &applicationData.vocabulary )
494 private static native void SR_SessionCreate(String filename); argument
638 // const LCHAR* filename);
640 // const LCHAR* filename);
676 private static native int SR_GrammarLoad(String filename); argument
677 private static native void SR_GrammarSave(int grammar, String filename); argument
700 // const LCHAR* filename);
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp860 char filename[64]; local
862 snprintf(filename, sizeof(filename), "/proc/%d/smaps", pid);
864 FILE * file = fopen(filename, "r");
H A Dandroid_util_Binder.cpp821 char filename[20]; local
824 sprintf(filename, "/proc/%d/cmdline", pid);
825 f = fopen(filename, "r");
/frameworks/base/libs/ui/
H A DEventHub.cpp933 char *filename; local
950 filename = devname + strlen(devname);
951 *filename++ = '/';
957 strcpy(filename, event->name);
977 char *filename; local
984 filename = devname + strlen(devname);
985 *filename++ = '/';
991 strcpy(filename, de->d_name);
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp27 * - the filename length must be less than kMaxAssetFileName bytes long
32 * Pass in just the filename, not the full path.
1487 "Invalid filename. Unable to add.");
1877 AaptAssets::slurpResourceZip(Bundle* bundle, const char* filename) argument
1883 status_t err = zip->open(filename, ZipFile::kOpenReadOnly);
1885 fprintf(stderr, "error opening zip file %s\n", filename);
H A DCommand.cpp415 const char* filename = bundle->getFileSpecEntry(1); local
419 if (!assets.addAssetPath(String8(filename), &assetsCookie)) {
/frameworks/base/services/java/com/android/server/
H A DMountService.java181 public ObbState(String filename, int callerUid, IObbActionListener token, int nonce) argument
183 this.filename = filename;
189 // OBB source filename
190 String filename; field in class:MountService.ObbState
222 sb.append("filename=");
223 sb.append(filename);
1531 public String getMountedObbPath(String filename) { argument
1532 if (filename == null) {
1533 throw new IllegalArgumentException("filename canno
1557 isObbMounted(String filename) argument
1567 mountObb(String filename, String key, IObbActionListener token, int nonce) argument
1586 unmountObb(String filename, boolean force, IObbActionListener token, int nonce) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java3883 public BatteryStatsImpl(String filename) { argument
3884 mFile = new JournaledFile(new File(filename), new File(filename + ".tmp"));

Completed in 807 milliseconds

123