/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | AssetFileAddress.java | 32 public AssetFileAddress(final String filename, final long offset, final long length) { argument 33 mFilename = filename; 41 * @param filename the filename. 44 public static AssetFileAddress makeFromFileName(final String filename) { argument 45 if (null == filename) return null; 46 final File f = new File(filename); 48 return new AssetFileAddress(filename, 0l, f.length()); 54 * @param filename the filename 59 makeFromFileNameAndOffset(final String filename, final long offset, final long length) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | FilenameUtils.java | 26 * General filename and filepath manipulation utilities. 42 * This class defines six components within a filename 53 * If you omit the last separator, it is impossible to determine if the filename 200 * @param filename the filename to normalize, null returns null 201 * @return the normalized filename, or null if invalid 203 public static String normalize(String filename) { argument 204 return doNormalize(filename, true); 246 * @param filename the filename t 249 normalizeNoEndSeparator(String filename) argument 260 doNormalize(String filename, boolean keepSeparator) argument 492 getPrefixLength(String filename) argument 558 indexOfLastSeparator(String filename) argument 580 indexOfExtension(String filename) argument 619 getPrefix(String filename) argument 655 getPath(String filename) argument 682 getPathNoEndSeparator(String filename) argument 693 doGetPath(String filename, int separatorAdd) argument 733 getFullPath(String filename) argument 763 getFullPathNoEndSeparator(String filename) argument 774 doGetFullPath(String filename, boolean includeSeparator) argument 814 getName(String filename) argument 839 getBaseName(String filename) argument 860 getExtension(String filename) argument 890 removeExtension(String filename) argument 1010 isExtension(String filename, String extension) argument 1032 isExtension(String filename, String[] extensions) argument 1059 isExtension(String filename, Collection<String> extensions) argument 1097 wildcardMatch(String filename, String wildcardMatcher) argument 1122 wildcardMatchOnSystem(String filename, String wildcardMatcher) argument 1139 wildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity) argument [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadDrmHelper.java | 49 public static String modifyDrmFwLockFileExtension(String filename) { argument 50 if (filename != null) { 52 extensionIndex = filename.lastIndexOf("."); 54 filename = filename.substring(0, extensionIndex); 56 filename = filename.concat(EXTENSION_INTERNAL_FWDL); 58 return filename;
|
/packages/apps/Messaging/build/ |
H A D | process_style_output.py | 31 filename = match.group("file"); variable 33 filename = filename.replace(args.omit, "") variable 37 print " " + filename + ':' + match.group("line") + (match.group("column") if match.group("column") else "")
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
H A D | jsoncheckertest.cpp | 21 static char* ReadFile(const char* filename, size_t& length) {
argument 32 sprintf(buffer, paths[i], filename);
52 char filename[256];
local 61 sprintf(filename, "fail%d.json", i);
63 char* json = ReadFile(filename, length);
65 printf("jsonchecker file %s not found", filename);
82 sprintf(filename, "pass%d.json", i);
84 char* json = ReadFile(filename, length);
86 printf("jsonchecker file %s not found", filename);
|
H A D | unittest.h | 65 inline FILE* TempFile(char *filename) {
argument 67 filename = tmpnam(filename);
70 if (filename[0] == '\\')
71 for (int i = 0; filename[i] != '\0'; i++)
72 filename[i] = filename[i + 1];
74 return fopen(filename, "wb");
76 strcpy(filename, "/tmp/fileXXXXXX");
77 int fd = mkstemp(filename);
[all...] |
H A D | encodedstreamtest.cpp | 43 static FILE* Open(const char* filename) {
argument 53 sprintf(buffer, paths[i], filename);
61 static char *ReadFile(const char* filename, bool appendPath, size_t* outLength) {
argument 62 FILE *fp = appendPath ? Open(filename) : fopen(filename, "rb");
80 void TestEncodedInputStream(const char* filename) {
argument 84 FILE *fp = Open(filename);
103 char* data = ReadFile(filename, true, &size);
120 void TestAutoUTFInputStream(const char *filename, bool expectHasBOM) {
argument 124 FILE *fp = Open(filename);
165 char filename[L_tmpnam]; local 198 char filename[L_tmpnam]; local 229 CompareFile(const char* filename, const char* expectedFilename) argument [all...] |
H A D | filestreamtest.cpp | 87 char filename[L_tmpnam];
local 88 FILE* fp = TempFile(filename);
98 fp = fopen(filename, "rb");
107 //std::cout << filename << std::endl;
108 remove(filename);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | AssetFileAddress.java | 34 public AssetFileAddress(final String filename, final long offset, final long length) { argument 35 mFilename = filename; 45 public static AssetFileAddress makeFromFileName(final String filename) { argument 46 if (null == filename) return null; 47 return makeFromFile(new File(filename)); 50 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, argument 52 if (null == filename) return null; 53 final File f = new File(filename); 55 return new AssetFileAddress(filename, offset, length);
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
H A D | DownloadDrmHelper.java | 74 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 D | DrmConvertSession.java | 119 * @param fileName The filename of the converted file. 126 public int close(String filename) { argument 139 rndAccessFile = new RandomAccessFile(filename, "rw"); 145 Log.w(TAG, "File: " + filename + " could not be found.", e); 148 Log.w(TAG, "Could not access File: " + filename + " .", e); 153 Log.w(TAG, "Access to File: " + filename + 161 Log.w(TAG, "Failed to close File:" + filename
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppReceiveFileInfo.java | 83 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, argument 85 mFileName = filename; 100 String filename = null, hint = null, mimeType = null; 144 filename = choosefilename(hint); 145 if (filename == null) { 150 int dotIndex = filename.lastIndexOf("."); 159 extension = filename.substring(dotIndex); 160 filename = filename.substring(0, dotIndex); 162 if (D) Log.d(Constants.TAG, " File Name " + filename); 242 chooseUniquefilename(String filename, String extension) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
H A D | FileWriterWithEncoding.java | 60 * @param filename the name of the file to write to, not null 65 public FileWriterWithEncoding(String filename, String encoding) throws IOException { argument 66 this(new File(filename), encoding, false); 72 * @param filename the name of the file to write to, not null 78 public FileWriterWithEncoding(String filename, String encoding, boolean append) throws IOException { argument 79 this(new File(filename), encoding, append); 85 * @param filename the name of the file to write to, not null 90 public FileWriterWithEncoding(String filename, Charset encoding) throws IOException { argument 91 this(new File(filename), encoding, false); 97 * @param filename th 103 FileWriterWithEncoding(String filename, Charset encoding, boolean append) argument 115 FileWriterWithEncoding(String filename, CharsetEncoder encoding) argument 128 FileWriterWithEncoding(String filename, CharsetEncoder encoding, boolean append) argument [all...] |
/packages/apps/TV/src/com/android/tv/tuner/ |
H A D | ChannelScanFileParser.java | 40 public final String filename; field in class:ChannelScanFileParser.ScanChannel 54 public static ScanChannel forFile(int frequency, String filename) { argument 55 return new ScanChannel(Channel.TYPE_FILE, frequency, "file:", filename, null); 58 private ScanChannel(int type, int frequency, String modulation, String filename, argument 63 this.filename = filename;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | CacheManager.java | 39 public static BlobCache getCache(Context context, String filename, argument 46 BlobCache cache = sCacheMap.get(filename); 49 String path = cacheDir.getAbsolutePath() + "/" + filename; 53 sCacheMap.put(filename, cache);
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
H A D | XmpUtilHelper.java | 29 public static boolean writeXMPMeta(String filename, Object meta) { argument
|
/packages/services/Car/evs/app/ |
H A D | TexWrapper.h | 40 TexWrapper* createTextureFromPng(const char* filename);
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | MediaSaver.java | 61 String filename = ""; 65 filename = String.format("/sdcard/DCIM/Depth_%05d.img", i); 66 file = new File(filename); 68 throw new IOException(filename); 79 throw new IOException(filename); 94 return filename; 102 String filename = ""; 107 filename = String.format("/sdcard/DCIM/Camera/SNAP_%05d.JPG", i); 108 file = new File(filename); 133 return filename; [all...] |
/packages/services/Car/vehicle_monitor_service/ |
H A D | ProcessMonitor.cpp | 208 char filename[64]; local 209 sprintf(filename, "/proc/%d/stat", pid); 211 file = fopen(filename, "r"); 213 ALOGD("Failed to open file %s for reading", filename); 230 char filename[64]; local 231 sprintf(filename, "/proc/%d/io", pid); 233 file = fopen(filename, "r"); 235 ALOGD("Failed to open file %s for reading", filename); 246 char filename[64]; local 247 sprintf(filename, "/pro 263 char filename[64]; local [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
H A D | PgmImage.h | 36 PgmImage(std::string filename); 66 bool ReadPGM(const std::string filename); 68 bool WritePGM(const std::string filename, const std::string comment="");
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | Header.java | 34 return COMMAND + " <filename>: prints the header contents of a dictionary file"; 49 final String filename = mArgs[0]; 50 final File dictFile = new File(filename); 55 throw new UnsupportedFormatException(filename
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
H A D | RegulatoryInfoDisplayActivityTest.java | 124 final String filename = 126 new File(filename).delete(); 127 Log.d(TAG, "Deleting temp file " + filename); 138 final String filename = RegulatoryInfoDisplayActivity.getRegulatoryInfoImageFileName(); 139 if (new File(filename).exists()) { 142 Log.d(TAG, "Creating temp file " + filename); 145 final FileOutputStream out = new FileOutputStream(filename);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | XmpUtil.java | 39 * XMPMeta xmpMeta = XmpUtil.extractOrCreateXMPMeta(filename); 41 * XmpUtil.writeXMPMeta(filename, xmpMeta); 46 * XmpUtil.writeXMPMeta(filename, xmpMeta); 81 * @param filename JPEG image file name. 84 public static XMPMeta extractXMPMeta(String filename) { argument 85 if (!filename.toLowerCase().endsWith(".jpg") 86 && !filename.toLowerCase().endsWith(".jpeg")) { 92 return extractXMPMeta(new FileInputStream(filename)); 94 Log.e(TAG, "Could not read file: " + filename, e); 139 public static XMPMeta extractOrCreateXMPMeta(String filename) { argument 147 writeXMPMeta(String filename, XMPMeta meta) argument [all...] |
/packages/experimental/procstatlog/ |
H A D | procstatlog.c | 41 // /proc/<filename>:<label> = <part of a multiline file> 58 char *name; // filename, plus ":var" for many-valued files 71 // filename and contents of the file. Trims trailing whitespace. 72 static void read_data(struct data *data, const char *filename) { argument 74 data->name = strdup(filename); 75 int fd = open(filename, O_RDONLY); 83 perror(filename); 103 const char *filename, 107 int fd = open(filename, O_RDONLY); 112 perror(filename); 102 read_lines( const char *filename, char delimiter, const char *terminator, int skip_words, struct data *stats, int stats_count) argument 232 char filename[1024]; local [all...] |
/packages/services/Car/tools/bootio/ |
H A D | bootio_collector.cpp | 68 int ReadIo(char *filename, AppSample *sample) { argument 73 file = fopen(filename, "r"); 93 int ReadStatForName(char *filename, AppData *app) { argument 97 file = fopen(filename, "r"); 114 int ReadStat(char *filename, AppSample *sample) { argument 118 file = fopen(filename, "r"); 148 int ReadCmdline(char *filename, AppData *app) { argument 153 file = fopen(filename, "r"); 170 char filename[64]; local 185 sprintf(filename, PID_STAT_FIL [all...] |