/packages/apps/Browser2/src/org/chromium/webview_shell/ |
D | WebViewLayoutTest.java | 73 private void runWebViewLayoutTest(final String fileName, final String fileNameExpected) in runWebViewLayoutTest() argument 75 runTest(PATH_WEBVIEW_PREFIX + fileName, PATH_WEBVIEW_PREFIX + fileNameExpected); in runWebViewLayoutTest() 78 private void runBlinkLayoutTest(final String fileName, final String fileNameExpected) in runBlinkLayoutTest() argument 81 runTest(PATH_BLINK_PREFIX + fileName, PATH_WEBVIEW_PREFIX + fileNameExpected); in runBlinkLayoutTest() 84 private void runTest(final String fileName, final String fileNameExpected) in runTest() argument 86 loadUrlWebViewAsync("file://" + fileName, mTestActivity); in runTest() 122 private static String readFile(String fileName) throws IOException { in readFile() argument 123 FileInputStream inputStream = new FileInputStream(new File(fileName)); in readFile() 148 private static void writeFile(final String fileName, final String contents, boolean overwrite) in writeFile() argument 150 File fileOut = new File(fileName); in writeFile()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
D | DataExporter.java | 55 final String fileName = generateRandomName() + OUT_FILE_SUFFIX; in exportData() local 56 final File outFile = getOutputFile(context, fileName); in exportData() 70 return DumpFileProvider.AUTHORITY_URI.buildUpon().appendPath(fileName).build(); in exportData() 82 public static void ensureValidFileName(String fileName) { in ensureValidFileName() argument 85 if (fileName.contains("..")) { in ensureValidFileName() 87 fileName); in ensureValidFileName() 90 if (!fileName.matches(VALID_FILE_NAME_REGEX)) { in ensureValidFileName() 92 " files are supported. Bad file name: " + fileName); in ensureValidFileName() 107 public static File getOutputFile(Context context, String fileName) { in getOutputFile() argument 108 return new File(getOutputDirectory(context), fileName); in getOutputFile()
|
D | DumpFileProvider.java | 80 final String fileName = extractFileName(uri); in openFile() local 81 DataExporter.ensureValidFileName(fileName); in openFile() 82 final File file = DataExporter.getOutputFile(getContext(), fileName); in openFile() 93 final String fileName = extractFileName(uri); in query() local 94 DataExporter.ensureValidFileName(fileName); in query() 109 b.add(fileName); in query() 111 final File file = DataExporter.getOutputFile(getContext(), fileName); in query()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 80 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument 82 mFileName = fileName; in BluetoothOppSendFileInfo() 104 String fileName = null; in generateFileInfo() local 124 fileName = metadataCursor.getString( in generateFileInfo() 128 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length); in generateFileInfo() 134 if (fileName == null) { in generateFileInfo() 136 fileName = uri.getLastPathSegment(); in generateFileInfo() 139 fileName = uri.getLastPathSegment(); in generateFileInfo() 213 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
|
D | BluetoothOppUtility.java | 155 String fileName = metadataCursor.getString(0); in queryTransfersInBatch() local 156 Uri path = Uri.parse(fileName); in queryTransfersInBatch() 159 path = Uri.fromFile(new File(fileName)); in queryTransfersInBatch() 172 public static void openReceivedFile(Context context, String fileName, String mimetype, in openReceivedFile() argument 174 if (fileName == null || mimetype == null) { in openReceivedFile() 179 File f = new File(fileName); in openReceivedFile() 198 path = Uri.fromFile(new File(fileName)); in openReceivedFile()
|
D | BluetoothOppNotification.java | 251 String fileName = cursor.getString(dataIndex); in updateActiveNotification() local 252 if (fileName == null) { in updateActiveNotification() 253 fileName = cursor.getString(filenameHintIndex); in updateActiveNotification() 255 if (fileName == null) { in updateActiveNotification() 256 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification() 271 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification() 274 .getString(R.string.notification_receiving, fileName); in updateActiveNotification()
|
D | BluetoothOppTransferHistory.java | 199 String fileName = mTransferCursor.getString(mTransferCursor in onCreateContextMenu() local 201 if (fileName == null) { in onCreateContextMenu() 202 fileName = this.getString(R.string.unknown_file); in onCreateContextMenu() 204 menu.setHeaderTitle(fileName); in onCreateContextMenu()
|
D | BluetoothOppLauncherActivity.java | 259 String fileName = getString(R.string.bluetooth_share_file_name) + ".html"; in creatFileForSharedContent() local 260 context.deleteFile(fileName); in creatFileForSharedContent() 315 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE); in creatFileForSharedContent() 318 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName)); in creatFileForSharedContent()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 216 public static String inferMimeType(final String fileName, final String mimeType) { in inferMimeType() argument 218 String fileExtension = getFilenameExtension(fileName); in inferMimeType() 253 public static String getFilenameExtension(String fileName) { in getFilenameExtension() argument 255 if (!TextUtils.isEmpty(fileName)) { in getFilenameExtension() 256 int lastDot = fileName.lastIndexOf('.'); in getFilenameExtension() 257 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { in getFilenameExtension() 258 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension() 332 final String fileName = c.getString(0); in deleteAllCachedAttachmentFiles() local 333 if (!TextUtils.isEmpty(fileName)) { in deleteAllCachedAttachmentFiles() 334 final File cachedFile = new File(fileName); in deleteAllCachedAttachmentFiles()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | LockableFileWriter.java | 70 public LockableFileWriter(String fileName) throws IOException { in LockableFileWriter() argument 71 this(fileName, false, null); in LockableFileWriter() 82 public LockableFileWriter(String fileName, boolean append) throws IOException { in LockableFileWriter() argument 83 this(fileName, append, null); in LockableFileWriter() 95 public LockableFileWriter(String fileName, boolean append, String lockDir) throws IOException { in LockableFileWriter() argument 96 this(new File(fileName), append, lockDir); in LockableFileWriter()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | DictionaryInfoUtils.java | 229 public static String getCategoryFromFileName(@Nonnull final String fileName) { 230 final String id = getWordListIdFromFileName(fileName); 272 final String fileName = replaceFileNameDangerousCharacters(id); 273 return getCacheDirectoryForLocale(locale, context) + File.separator + fileName; 286 final String fileName = replaceFileNameDangerousCharacters( 288 return stagingDirectory + File.separator + fileName; 295 final String fileName = stagingFile.getName(); 296 final int index = fileName.indexOf(TEMP_DICT_FILE_SUB); 302 final String[] localeAndFileId = fileName.split(TEMP_DICT_FILE_SUB); 528 String fileName = dictionaryFile.getName(); [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | MimeType.java | 107 private static String getFilenameExtension(String fileName) { in getFilenameExtension() argument 109 if (!TextUtils.isEmpty(fileName)) { in getFilenameExtension() 110 int lastDot = fileName.lastIndexOf('.'); in getFilenameExtension() 111 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { in getFilenameExtension() 112 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 235 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() argument 239 att.mFileName = fileName; in setupAttachment() 240 att.mContentId = "contentId " + fileName; in setupAttachment() 241 att.setContentUri("contentUri " + fileName); in setupAttachment() 243 att.mMimeType = "mimeType " + fileName; in setupAttachment() 244 att.mLocation = "location " + fileName; in setupAttachment() 245 att.mEncoding = "encoding " + fileName; in setupAttachment() 246 att.mContent = "content " + fileName; in setupAttachment() 248 att.mContentBytes = Utility.toUtf8("content " + fileName); in setupAttachment() 265 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() argument [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 108 const char *const fileName) { in getFilePathBufSize() argument 109 return strlen(dirPath) + 1 /* '/' */ + strlen(fileName) + 1 /* terminator */; in getFilePathBufSize() 112 /* static */ void FileUtils::getFilePath(const char *const dirPath, const char *const fileName, in getFilePath() argument 114 snprintf(outFilePath, filePathBufSize, "%s/%s", dirPath, fileName); in getFilePath()
|
D | file_utils.h | 39 static int getFilePathBufSize(const char *const dirPath, const char *const fileName); 41 static void getFilePath(const char *const dirPath, const char *const fileName,
|
D | mmapped_buffer.cpp | 73 const char *const dirPath, const char *const fileName, const bool isUpdatable) { in openBuffer() argument 77 fileName); in openBuffer()
|
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/ |
D | CarrierConfigTest.java | 134 for (String fileName : files) { in forEachConfigXml() 136 if (!fileName.startsWith("carrier_config_")) continue; in forEachConfigXml() 140 parser.setInput(assetMgr.open(fileName), "utf-8"); in forEachConfigXml() 145 throw new AssertionError("Problem in " + fileName + ": " + e.getMessage(), e); in forEachConfigXml()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 418 private void backupAll(FullBackupDataOutput data, Cursor cursor, String fileName) in backupAll() argument 425 try (JsonWriter jsonWriter = getJsonWriter(fileName)) { in backupAll() 426 if (fileName.endsWith(SMS_BACKUP_FILE_SUFFIX)) { in backupAll() 432 backupFile(messagesWritten, fileName, data); in backupAll() 461 private void backupFile(int messagesWritten, String fileName, FullBackupDataOutput data) in backupFile() argument 463 final File file = new File(getFilesDir().getPath() + "/" + fileName); in backupFile() 507 final String fileName = file.getName(); in onHandleIntent() local 509 mTelephonyBackupAgent.doRestoreFile(fileName, fileInputStream.getFD()); in onHandleIntent() 567 private void doRestoreFile(String fileName, FileDescriptor fd) throws IOException { 569 Log.i(TAG, "Restoring file " + fileName); [all …]
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduBody.java | 66 byte[] fileName = part.getFilename(); in putPartToMaps() 67 if(null != fileName) { in putPartToMaps() 68 String clc = new String(fileName); in putPartToMaps()
|
D | PduPart.java | 376 public void setFilename(byte[] fileName) { in setFilename() argument 377 if(null == fileName) { in setFilename() 381 mPartHeader.put(P_FILENAME, fileName); in setFilename()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPart.java | 351 public void setFilename(final byte[] fileName) { in setFilename() argument 352 if (null == fileName) { in setFilename() 356 mPartHeader.put(P_FILENAME, fileName); in setFilename()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferManager.java | 502 static File generateUniqueDestination(String path, String fileName) { in generateUniqueDestination() argument 503 int dotIndex = fileName.lastIndexOf("."); in generateUniqueDestination() 508 fileNameWithoutExtension = fileName; in generateUniqueDestination() 510 extension = fileName.substring(dotIndex); in generateUniqueDestination() 511 fileNameWithoutExtension = fileName.substring(0, dotIndex); in generateUniqueDestination() 513 File dstFile = new File(path + File.separator + fileName); in generateUniqueDestination()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | VCardService.java | 389 for (final String fileName : fileList()) { in clearCache() 390 if (fileName.startsWith(CACHE_FILE_PREFIX)) { in clearCache() 392 Log.i(LOG_TAG, "Remove a temporary file: " + fileName); in clearCache() 393 deleteFile(fileName); in clearCache()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | AttachmentInfo.java | 107 public AttachmentInfo(Context context, long id, long size, String fileName, String mimeType, in AttachmentInfo() argument 110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType); in AttachmentInfo() 111 mName = fileName; in AttachmentInfo()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | CropImage.java | 355 String fileName = oldPath.getName(); in saveOutput() local 356 fileName = fileName.substring(0, fileName.lastIndexOf(".")); in saveOutput() 363 + "/" + fileName + "-" + x + ".jpg"; in saveOutput() 378 directory.toString(), fileName + "-" + x + ".jpg", in saveOutput()
|