/packages/apps/Email/src/org/apache/commons/io/ |
D | FilenameUtils.java | 203 public static String normalize(String filename) { in normalize() argument 204 return doNormalize(filename, true); in normalize() 249 public static String normalizeNoEndSeparator(String filename) { in normalizeNoEndSeparator() argument 250 return doNormalize(filename, false); in normalizeNoEndSeparator() 260 private static String doNormalize(String filename, boolean keepSeparator) { in doNormalize() argument 261 if (filename == null) { in doNormalize() 264 int size = filename.length(); in doNormalize() 266 return filename; in doNormalize() 268 int prefix = getPrefixLength(filename); in doNormalize() 274 filename.getChars(0, filename.length(), array, 0); in doNormalize() [all …]
|
D | FileUtils.java | 471 String filename = url.getFile().replace('/', File.separatorChar); in toFile() local 473 while ((pos = filename.indexOf('%', pos)) >= 0) { in toFile() 474 if (pos + 2 < filename.length()) { in toFile() 475 String hexStr = filename.substring(pos + 1, pos + 3); in toFile() 477 filename = filename.substring(0, pos) + ch + filename.substring(pos + 3); in toFile() 480 return new File(filename); in toFile()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 101 static String getFullPath(String filename, String mimeType, int destination, File base) in getFullPath() argument 104 int dotIndex = filename.lastIndexOf('.'); in getFullPath() 105 boolean missingExtension = dotIndex < 0 || dotIndex < filename.lastIndexOf('/'); in getFullPath() 111 extension = filename.substring(dotIndex); in getFullPath() 112 filename = filename.substring(0, dotIndex); in getFullPath() 120 extension = chooseExtensionFromFilename(mimeType, destination, filename, dotIndex); in getFullPath() 121 filename = filename.substring(0, dotIndex); in getFullPath() 125 boolean recoveryDir = Constants.RECOVERY_DIRECTORY.equalsIgnoreCase(filename + extension); in getFullPath() 128 filename = base.getPath() + File.separator + filename; in getFullPath() 132 Log.v(Constants.TAG, "target file: " + filename + extension); in getFullPath() [all …]
|
D | DownloadDrmHelper.java | 49 public static String modifyDrmFwLockFileExtension(String filename) { in modifyDrmFwLockFileExtension() argument 50 if (filename != null) { in modifyDrmFwLockFileExtension() 52 extensionIndex = filename.lastIndexOf("."); in modifyDrmFwLockFileExtension() 54 filename = filename.substring(0, extensionIndex); in modifyDrmFwLockFileExtension() 56 filename = filename.concat(EXTENSION_INTERNAL_FWDL); in modifyDrmFwLockFileExtension() 58 return filename; in modifyDrmFwLockFileExtension()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
D | FileUtils.java | 84 final String filename; in getMaskFilename() local 87 filename = "mask_countour.jpg"; in getMaskFilename() 92 filename = "mask_diagonal.jpg"; in getMaskFilename() 101 final File mf = new File(context.getFilesDir(), filename); in getMaskFilename() 113 fos = context.openFileOutput(filename, Context.MODE_WORLD_READABLE); in getMaskFilename() 144 final String filename = new File(path).getName(); in getMaskRawId() local 146 if (filename.equals("mask_countour.jpg")) { in getMaskRawId() 148 } else if (filename.equals("mask_diagonal.jpg")) { in getMaskRawId() 166 final String filename; in getAudioTrackFilename() local 169 filename = "theme_travel.m4a"; in getAudioTrackFilename() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 77 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, in BluetoothOppReceiveFileInfo() argument 79 mFileName = filename; in BluetoothOppReceiveFileInfo() 94 String filename = null, hint = null, mimeType = null; in generateFileInfo() local 138 filename = choosefilename(hint); in generateFileInfo() 139 if (filename == null) { in generateFileInfo() 144 int dotIndex = filename.lastIndexOf("."); in generateFileInfo() 153 extension = filename.substring(dotIndex); in generateFileInfo() 154 filename = filename.substring(0, dotIndex); in generateFileInfo() 156 filename = base.getPath() + File.separator + filename; in generateFileInfo() 158 String fullfilename = chooseUniquefilename(filename, extension); in generateFileInfo() [all …]
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 72 static void read_data(struct data *data, const char *filename) { in read_data() argument 74 data->name = strdup(filename); in read_data() 75 int fd = open(filename, O_RDONLY); in read_data() 83 perror(filename); in read_data() 103 const char *filename, in read_lines() argument 107 int fd = open(filename, O_RDONLY); in read_lines() 112 perror(filename); in read_lines() 124 int filename_len = strlen(filename); in read_lines() 145 unspace(data->name, filename, filename_len); in read_lines() 232 char filename[1024]; in read_stats() local [all …]
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | FileWriterWithEncoding.java | 65 public FileWriterWithEncoding(String filename, String encoding) throws IOException { in FileWriterWithEncoding() argument 66 this(new File(filename), encoding, false); in FileWriterWithEncoding() 78 …public FileWriterWithEncoding(String filename, String encoding, boolean append) throws IOException… in FileWriterWithEncoding() argument 79 this(new File(filename), encoding, append); in FileWriterWithEncoding() 90 public FileWriterWithEncoding(String filename, Charset encoding) throws IOException { in FileWriterWithEncoding() argument 91 this(new File(filename), encoding, false); in FileWriterWithEncoding() 103 …public FileWriterWithEncoding(String filename, Charset encoding, boolean append) throws IOExceptio… in FileWriterWithEncoding() argument 104 this(new File(filename), encoding, append); in FileWriterWithEncoding() 115 public FileWriterWithEncoding(String filename, CharsetEncoder encoding) throws IOException { in FileWriterWithEncoding() argument 116 this(new File(filename), encoding, false); in FileWriterWithEncoding() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtils.java | 162 static void crash(final String filename, final Exception e) { in crash() argument 163 throw new RuntimeException("Can't read file " + filename, e); in crash() 166 static FusionDictionary getDictionary(final String filename, final boolean report) { in getDictionary() argument 167 final File file = new File(filename); in getDictionary() 173 if (XmlDictInputOutput.isXmlUnigramDictionary(filename)) { in getDictionary() 178 } else if (CombinedInputOutput.isCombinedDictionary(filename)) { in getDictionary() 185 crash(filename, new RuntimeException( in getDictionary() 186 filename + " does not seem to be a dictionary file")); in getDictionary() 201 crash(filename, e); in getDictionary() 203 crash(filename, e); in getDictionary() [all …]
|
D | DictionaryMaker.java | 172 String filename = args.get(0); in Arguments() local 175 if (XmlDictInputOutput.isXmlUnigramDictionary(filename)) { in Arguments() 176 inputUnigramXml = filename; in Arguments() 177 } else if (CombinedInputOutput.isCombinedDictionary(filename)) { in Arguments() 178 inputCombined = filename; in Arguments() 179 } else if (BinaryDictInputOutput.isBinaryDictionary(filename)) { in Arguments() 180 inputBinary = filename; in Arguments() 183 "Unknown format for file " + filename); in Arguments() 186 inputShortcutXml = filename; in Arguments() 188 inputBigramXml = filename; in Arguments() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | AssetFileAddress.java | 32 public AssetFileAddress(final String filename, final long offset, final long length) { in AssetFileAddress() argument 33 mFilename = filename; in AssetFileAddress() 44 public static AssetFileAddress makeFromFileName(final String filename) { in makeFromFileName() argument 45 if (null == filename) return null; in makeFromFileName() 46 final File f = new File(filename); in makeFromFileName() 48 return new AssetFileAddress(filename, 0l, f.length()); in makeFromFileName() 59 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, in makeFromFileNameAndOffset() argument 61 if (null == filename) return null; in makeFromFileNameAndOffset() 62 final File f = new File(filename); in makeFromFileNameAndOffset() 64 return new AssetFileAddress(filename, offset, length); in makeFromFileNameAndOffset()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/service/ |
D | ApiService.java | 351 public static void exportVideoEditor(Context context, String projectPath, String filename, in exportVideoEditor() argument 356 intent.putExtra(PARAM_FILENAME, filename); in exportVideoEditor() 371 public static boolean isVideoEditorExportPending(String projectPath, String filename) { in isVideoEditorExportPending() argument 378 if (fn.equals(filename)) { in isVideoEditorExportPending() 396 String filename) { in cancelExportVideoEditor() argument 401 intent.putExtra(PARAM_FILENAME, filename); in cancelExportVideoEditor() 1784 String filename = null; in processIntent() local 1791 filename = cursor.getString(0); in processIntent() 1799 if (filename == null) { in processIntent() 1805 filename, in processIntent() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | AssetFileAddress.java | 32 public AssetFileAddress(final String filename, final long offset, final long length) { in AssetFileAddress() argument 33 mFilename = filename; in AssetFileAddress() 43 public static AssetFileAddress makeFromFileName(final String filename) { in makeFromFileName() argument 44 if (null == filename) return null; in makeFromFileName() 45 return makeFromFile(new File(filename)); in makeFromFileName() 48 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, in makeFromFileNameAndOffset() argument 50 if (null == filename) return null; in makeFromFileNameAndOffset() 51 final File f = new File(filename); in makeFromFileNameAndOffset() 53 return new AssetFileAddress(filename, offset, length); in makeFromFileNameAndOffset()
|
D | ExpandableBinaryDictionary.java | 115 String filename) { in getSharedDictionaryController() argument 116 DictionaryController controller = sSharedDictionaryControllers.get(filename); in getSharedDictionaryController() 119 sSharedDictionaryControllers.put(filename, controller); in getSharedDictionaryController() 133 final Context context, final String filename, final String dictType) { in ExpandableBinaryDictionary() argument 135 mFilename = filename; in ExpandableBinaryDictionary() 138 mSharedDictionaryController = getSharedDictionaryController(filename); in ExpandableBinaryDictionary() 283 final String filename = file.getAbsolutePath(); in loadBinaryDictionary() local 287 final BinaryDictionary newBinaryDictionary = new BinaryDictionary(filename, 0, length, in loadBinaryDictionary()
|
/packages/apps/Nfc/nci/jni/ |
D | RouteDataSet.cpp | 255 std::string filename (bcm_nfc_location); in saveToFile() local 257 filename.append (sConfigFile); in saveToFile() 258 fh = fopen (filename.c_str (), "w"); in saveToFile() 274 chmod (filename.c_str (), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in saveToFile() 295 std::string filename (bcm_nfc_location); in loadFromFile() local 297 filename.append (sConfigFile); in loadFromFile() 298 fh = fopen (filename.c_str (), "r"); in loadFromFile() 474 std::string filename (bcm_nfc_location); in deleteFile() local 475 filename.append (sConfigFile); in deleteFile() 476 int stat = remove (filename.c_str()); in deleteFile()
|
/packages/apps/Gallery2/perftests/panorama/ |
D | benchmark.cpp | 35 char filename[512]; in loadImages() local 40 sprintf(filename, "%s_%03d.ppm", basename, i + 1); in loadImages() 41 if (stat(filename, &filestat) != 0) break; in loadImages() 42 ImageType rgbFrame = ImageUtils::readBinaryPPM(filename, width, height); in loadImages() 59 const char *filename; in main() local 66 filename = argv[2]; in main() 124 ImageUtils::writeBinaryPPM(imageRGB, filename, mosaicWidth, in main()
|
/packages/apps/Camera/perftests/panorama/ |
D | benchmark.cpp | 35 char filename[512]; in loadImages() local 40 sprintf(filename, "%s_%03d.ppm", basename, i + 1); in loadImages() 41 if (stat(filename, &filestat) != 0) break; in loadImages() 42 ImageType rgbFrame = ImageUtils::readBinaryPPM(filename, width, height); in loadImages() 59 const char *filename; in main() local 66 filename = argv[2]; in main() 124 ImageUtils::writeBinaryPPM(imageRGB, filename, mosaicWidth, in main()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 107 entry.filename = file.getName(); in store() 118 entry.filename = original.filename; in store() 147 file.id, downloadUrl, new File(mRootDir, file.filename)); in lookup() 154 Log.w(TAG, "cannot delete entry: " + file.filename, t); in lookup() 268 public String filename; field in FileCache.FileEntry 282 .append("filename").append(filename).toString(); in toString()
|
/packages/apps/Gallery2/jni_mosaic/feature_stab/src/dbregtest/ |
D | PgmImage.cpp | 22 PgmImage::PgmImage(std::string filename) : in PgmImage() argument 25 if ( !ReadPGM(filename) ) in PgmImage() 109 bool PgmImage::ReadPGM(const std::string filename) in ReadPGM() argument 111 ifstream in(filename.c_str(),std::ios::in | std::ios::binary); in ReadPGM() 178 bool PgmImage::WritePGM(const std::string filename, const std::string comment) in WritePGM() argument 195 ofstream out(filename.c_str(),std::ios::out |ios::binary); in WritePGM()
|
/packages/apps/Camera/jni/feature_stab/src/dbregtest/ |
D | PgmImage.cpp | 22 PgmImage::PgmImage(std::string filename) : in PgmImage() argument 25 if ( !ReadPGM(filename) ) in PgmImage() 109 bool PgmImage::ReadPGM(const std::string filename) in ReadPGM() argument 111 ifstream in(filename.c_str(),std::ios::in | std::ios::binary); in ReadPGM() 178 bool PgmImage::WritePGM(const std::string filename, const std::string comment) in WritePGM() argument 195 ofstream out(filename.c_str(),std::ios::out |ios::binary); in WritePGM()
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | PgmImage.cpp | 22 PgmImage::PgmImage(std::string filename) : in PgmImage() argument 25 if ( !ReadPGM(filename) ) in PgmImage() 109 bool PgmImage::ReadPGM(const std::string filename) in ReadPGM() argument 111 ifstream in(filename.c_str(),std::ios::in | std::ios::binary); in ReadPGM() 178 bool PgmImage::WritePGM(const std::string filename, const std::string comment) in WritePGM() argument 195 ofstream out(filename.c_str(),std::ios::out |ios::binary); in WritePGM()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageFileView.java | 95 private void setTitle(String filename) { in setTitle() argument 96 mActionBar.setTitle(getString(R.string.eml_view_title, filename)); in setTitle() 116 protected void onSuccess(String filename) { in onSuccess() argument 117 if (filename == null) { in onSuccess() 120 setTitle(filename); in onSuccess()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 281 ImageType ImageUtils::readBinaryPPM(const char *filename, int &width, int &height) in readBinaryPPM() argument 288 imgin = fopen(filename, "r"); in readBinaryPPM() 290 fprintf(stderr, "Error: Filename %s not found\n", filename); in readBinaryPPM() 311 void ImageUtils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int n… in writeBinaryPPM() argument 313 FILE *imgout = fopen(filename, "w"); in writeBinaryPPM() 316 fprintf(stderr, "Error: Filename %s could not be opened for writing\n", filename); in writeBinaryPPM()
|
/packages/apps/Gallery2/jni_mosaic/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 281 ImageType ImageUtils::readBinaryPPM(const char *filename, int &width, int &height) in readBinaryPPM() argument 288 imgin = fopen(filename, "r"); in readBinaryPPM() 290 fprintf(stderr, "Error: Filename %s not found\n", filename); in readBinaryPPM() 311 void ImageUtils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int n… in writeBinaryPPM() argument 313 FILE *imgout = fopen(filename, "w"); in writeBinaryPPM() 316 fprintf(stderr, "Error: Filename %s could not be opened for writing\n", filename); in writeBinaryPPM()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 281 ImageType ImageUtils::readBinaryPPM(const char *filename, int &width, int &height) in readBinaryPPM() argument 288 imgin = fopen(filename, "r"); in readBinaryPPM() 290 fprintf(stderr, "Error: Filename %s not found\n", filename); in readBinaryPPM() 311 void ImageUtils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int n… in writeBinaryPPM() argument 313 FILE *imgout = fopen(filename, "w"); in writeBinaryPPM() 316 fprintf(stderr, "Error: Filename %s could not be opened for writing\n", filename); in writeBinaryPPM()
|