/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 77 public BluetoothOppReceiveFileInfo(String filename, long length, Uri insertUri, int status) { in BluetoothOppReceiveFileInfo() argument 78 mFileName = filename; in BluetoothOppReceiveFileInfo() 93 String filename = null, hint = null, mimeType = null; in generateFileInfo() local 117 filename = choosefilename(hint); in generateFileInfo() 118 if (filename == null) { in generateFileInfo() 123 int dotIndex = filename.lastIndexOf("."); in generateFileInfo() 132 extension = filename.substring(dotIndex); in generateFileInfo() 133 filename = filename.substring(0, dotIndex); in generateFileInfo() 136 Log.d(Constants.TAG, " File Name " + filename); in generateFileInfo() 139 if (filename.getBytes().length > OPP_LENGTH_OF_FILE_NAME) { in generateFileInfo() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | encodedstreamtest.cpp | 43 static FILE* Open(const char* filename) { in Open() argument 53 sprintf(buffer, paths[i], filename); in Open() 61 static char *ReadFile(const char* filename, bool appendPath, size_t* outLength) { in ReadFile() argument 62 FILE *fp = appendPath ? Open(filename) : fopen(filename, "rb"); in ReadFile() 80 void TestEncodedInputStream(const char* filename) { in TestEncodedInputStream() argument 84 FILE *fp = Open(filename); in TestEncodedInputStream() 103 char* data = ReadFile(filename, true, &size); in TestEncodedInputStream() 120 void TestAutoUTFInputStream(const char *filename, bool expectHasBOM) { in TestAutoUTFInputStream() argument 124 FILE *fp = Open(filename); in TestAutoUTFInputStream() 143 char* data = ReadFile(filename, true, &size); in TestAutoUTFInputStream() [all …]
|
D | unittest.h | 65 inline FILE* TempFile(char *filename) { in TempFile() argument 67 filename = tmpnam(filename); in TempFile() 70 if (filename[0] == '\\') in TempFile() 71 for (int i = 0; filename[i] != '\0'; i++) in TempFile() 72 filename[i] = filename[i + 1]; in TempFile() 74 return fopen(filename, "wb"); in TempFile() 76 strcpy(filename, "/tmp/fileXXXXXX"); in TempFile() 77 int fd = mkstemp(filename); in TempFile()
|
D | jsoncheckertest.cpp | 21 static char* ReadFile(const char* filename, size_t& length) { in ReadFile() argument 32 sprintf(buffer, paths[i], filename); in ReadFile() 52 char filename[256]; in TEST() local 61 sprintf(filename, "fail%d.json", i); in TEST() 63 char* json = ReadFile(filename, length); in TEST() 65 printf("jsonchecker file %s not found", filename); in TEST() 82 sprintf(filename, "pass%d.json", i); in TEST() 84 char* json = ReadFile(filename, length); in TEST() 86 printf("jsonchecker file %s not found", filename); in TEST()
|
D | filestreamtest.cpp | 87 char filename[L_tmpnam]; in TEST_F() local 88 FILE* fp = TempFile(filename); in TEST_F() 98 fp = fopen(filename, "rb"); in TEST_F() 108 remove(filename); in TEST_F()
|
/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 305 String filename = null; 308 if (filename == null && hint != null && !hint.endsWith("/")) { 314 filename = hint.substring(index); 316 filename = hint; 321 if (filename == null && contentDisposition != null) { 322 filename = parseContentDisposition(contentDisposition); 323 if (filename != null) { 327 int index = filename.lastIndexOf('/') + 1; 329 filename = filename.substring(index); 335 if (filename == null && contentLocation != null) { [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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | AssetFileAddress.java | 34 public AssetFileAddress(final String filename, final long offset, final long length) { in AssetFileAddress() argument 35 mFilename = filename; in AssetFileAddress() 45 public static AssetFileAddress makeFromFileName(final String filename) { in makeFromFileName() argument 46 if (null == filename) return null; in makeFromFileName() 47 return makeFromFile(new File(filename)); in makeFromFileName() 50 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, in makeFromFileNameAndOffset() argument 52 if (null == filename) return null; in makeFromFileNameAndOffset() 53 final File f = new File(filename); in makeFromFileNameAndOffset() 55 return new AssetFileAddress(filename, offset, length); in makeFromFileNameAndOffset()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | XmpUtil.java | 84 public static XMPMeta extractXMPMeta(String filename) { in extractXMPMeta() argument 85 if (!filename.toLowerCase().endsWith(".jpg") in extractXMPMeta() 86 && !filename.toLowerCase().endsWith(".jpeg")) { in extractXMPMeta() 92 return extractXMPMeta(new FileInputStream(filename)); in extractXMPMeta() 94 Log.e(TAG, "Could not read file: " + filename, e); in extractXMPMeta() 139 public static XMPMeta extractOrCreateXMPMeta(String filename) { in extractOrCreateXMPMeta() argument 140 XMPMeta meta = extractXMPMeta(filename); in extractOrCreateXMPMeta() 147 public static boolean writeXMPMeta(String filename, XMPMeta meta) { in writeXMPMeta() argument 148 if (!filename.toLowerCase().endsWith(".jpg") in writeXMPMeta() 149 && !filename.toLowerCase().endsWith(".jpeg")) { in writeXMPMeta() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | MediaSaver.java | 61 String filename = ""; in saveDepth() local 65 filename = String.format("/sdcard/DCIM/Depth_%05d.img", i); in saveDepth() 66 file = new File(filename); in saveDepth() 68 throw new IOException(filename); in saveDepth() 79 throw new IOException(filename); in saveDepth() 94 return filename; in saveDepth() 102 String filename = ""; in saveJpeg() local 107 filename = String.format("/sdcard/DCIM/Camera/SNAP_%05d.JPG", i); in saveJpeg() 108 file = new File(filename); in saveJpeg() 133 return filename; in saveJpeg()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
D | DownloadDrmHelper.java | 74 public static String modifyDrmFwLockFileExtension(String filename) { in modifyDrmFwLockFileExtension() argument 75 if (filename != null) { in modifyDrmFwLockFileExtension() 77 extensionIndex = filename.lastIndexOf("."); in modifyDrmFwLockFileExtension() 79 filename = filename.substring(0, extensionIndex); in modifyDrmFwLockFileExtension() 81 filename = filename.concat(EXTENSION_INTERNAL_FWDL); in modifyDrmFwLockFileExtension() 83 return filename; in modifyDrmFwLockFileExtension()
|
D | DrmConvertSession.java | 126 public int close(String filename) { in close() argument 139 rndAccessFile = new RandomAccessFile(filename, "rw"); in close() 145 Log.w(TAG, "File: " + filename + " could not be found.", e); in close() 148 Log.w(TAG, "Could not access File: " + filename + " .", e); in close() 153 Log.w(TAG, "Access to File: " + filename + in close() 161 Log.w(TAG, "Failed to close File:" + filename in close()
|
/packages/apps/Car/libs/ |
D | resource_generator.py | 97 filename = directory + os.path.sep + resource_type + file_extension 98 if not os.path.exists(filename): 100 print("Creating file %s" % filename) 101 with open(filename, "w") as xmlfile: 106 filenames[modifier] = filename 108 print("Parsing %s" % (filename)) 110 xmltrees[modifier] = et.parse(filename, parser) 161 def ReadStartingLines(self, filename): argument 162 with open(filename) as f:
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/api/ |
D | ScanChannel.java | 29 public final String filename; field in ScanChannel 45 public static ScanChannel forFile(int frequency, String filename) { in forFile() argument 48 filename, null); in forFile() 56 String filename, in ScanChannel() argument 62 this.filename = filename; in ScanChannel()
|
/packages/apps/Nfc/nci/jni/ |
D | RouteDataSet.cpp | 246 std::string filename(nfc_storage_path); in saveToFile() local 249 filename.append(sConfigFile); in saveToFile() 250 fh = fopen(filename.c_str(), "w"); in saveToFile() 265 stat = chmod(filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in saveToFile() 284 std::string filename(nfc_storage_path); in loadFromFile() local 286 filename.append(sConfigFile); in loadFromFile() 287 fh = fopen(filename.c_str(), "r"); in loadFromFile() 454 std::string filename(nfc_storage_path); in deleteFile() local 455 filename.append(sConfigFile); in deleteFile() 456 int stat = remove(filename.c_str()); in deleteFile()
|
/packages/services/BuiltInPrintService/jni/lib/ |
D | lib_wprint.c | 171 char filename[MAX_PATHNAME_LENGTH + 1]; member 255 char filename[MAX_PATHNAME_LENGTH + 1]; in _stream_dbg_start_job() local 256 snprintf(filename, MAX_PATHNAME_LENGTH, "%s/jobstream.%s", jq->debug_path, ext); in _stream_dbg_start_job() 257 filename[MAX_PATHNAME_LENGTH] = 0; in _stream_dbg_start_job() 258 jq->job_debug_fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); in _stream_dbg_start_job() 310 char filename[MAX_PATHNAME_LENGTH + 1]; in _stream_dbg_start_page() member 313 snprintf(buff.filename, MAX_PATHNAME_LENGTH, "%s/page%4.4d.ppm", jq->debug_path, in _stream_dbg_start_page() 315 buff.filename[MAX_PATHNAME_LENGTH] = 0; in _stream_dbg_start_page() 316 jq->page_debug_fd = open(buff.filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); in _stream_dbg_start_page() 1015 if (strlen(page.filename) > 0) { in _job_thread() [all …]
|
/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/services/Car/evs/app/ |
D | TexWrapper.cpp | 60 TexWrapper* createTextureFromPng(const char * filename) in createTextureFromPng() argument 63 FILE *inputFile = fopen(filename, "rb"); in createTextureFromPng() 66 perror(filename); in createTextureFromPng() 75 printf("%s is not a PNG.\n", filename); in createTextureFromPng() 132 printf("%s: Unknown libpng color format %d.\n", filename, colorFormat); in createTextureFromPng()
|
/packages/apps/Messaging/build/ |
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"…
|
/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/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | DownloadService.java | 170 public static Intent makeCreateFileIntent(String mimetype, String filename) { in makeCreateFileIntent() argument 174 intent.putExtra(Intent.EXTRA_TITLE, filename); in makeCreateFileIntent() 208 final String filename = intent.getStringExtra(ARG_DISPLAY_NAME); in onStartCommand() local 211 if (network == null || userAgent == null || url == null || filename == null in onStartCommand() 214 + "filename: %s, outFile: %s", network, userAgent, url, filename, outFile)); in onStartCommand() 220 network.getPrivateDnsBypassingCopy(), userAgent, url, filename, outFile, this); in onStartCommand() 444 private Notification makeErrorNotification(@NonNull String filename) { in makeErrorNotification() argument 447 .setContentTitle(res.getString(R.string.error_downloading_paramfile, filename)) in makeErrorNotification()
|
/packages/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 147 for filename in os.listdir(path): 148 if filename.endswith('.arsc.flat'): 149 run_command(['rm', os.path.join(path, filename)]) 211 for filename in os.listdir(root_folder): 212 if filename.endswith('.arsc.flat'): 213 link_command.extend(['-R', os.path.join(root_folder, filename)])
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | CacheManager.java | 39 public static BlobCache getCache(Context context, String filename, in getCache() argument 46 BlobCache cache = sCacheMap.get(filename); in getCache() 49 String path = cacheDir.getAbsolutePath() + "/" + filename; in getCache() 53 sCacheMap.put(filename, cache); in getCache()
|
/packages/services/Car/tools/emulator/ |
D | VehicleHalProto_pb2.py | 22 filename=None, 80 filename=None, 130 filename=None, 182 filename=None, 252 filename=None, 350 filename=None, 441 filename=None, 476 filename=None,
|