/packages/apps/Email/tests/src/com/android/exchange/ |
D | EasSyncServiceTests.java | 44 String fileName = "A11achm3n1.doc"; in testCreateUniqueFile() local 45 File uniqueFile = svc.createUniqueFileInternal(null, fileName); in testCreateUniqueFile() 46 assertEquals(fileName, uniqueFile.getName()); in testCreateUniqueFile() 48 uniqueFile = svc.createUniqueFileInternal(null, fileName); in testCreateUniqueFile() 51 uniqueFile = svc.createUniqueFileInternal(null, fileName); in testCreateUniqueFile() 55 fileName = "A11achm3n1"; in testCreateUniqueFile() 56 uniqueFile = svc.createUniqueFileInternal(null, fileName); in testCreateUniqueFile() 57 assertEquals(fileName, uniqueFile.getName()); in testCreateUniqueFile() 59 uniqueFile = svc.createUniqueFileInternal(null, fileName); in testCreateUniqueFile()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsLicenseActivity.java | 53 String fileName = SystemProperties.get(PROPERTY_LICENSE_PATH, DEFAULT_LICENSE_PATH); in onCreate() local 54 if (TextUtils.isEmpty(fileName)) { in onCreate() 66 if (fileName.endsWith(".gz")) { in onCreate() 68 new GZIPInputStream(new FileInputStream(fileName))); in onCreate() 70 inputReader = new FileReader(fileName); in onCreate() 76 Log.e(TAG, "License HTML file not found at " + fileName, e); in onCreate() 80 Log.e(TAG, "Error reading license HTML file at " + fileName, e); in onCreate() 93 Log.e(TAG, "License HTML is empty (from " + fileName + ")"); in onCreate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 68 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument 70 mFileName = fileName; in BluetoothOppSendFileInfo() 98 String fileName = null; in generateFileInfo() local 110 fileName = metadataCursor.getString(0); in generateFileInfo() 118 fileName = u.getLastPathSegment(); in generateFileInfo() 134 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0, dest); in generateFileInfo()
|
D | BluetoothOppNotification.java | 181 String fileName = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare._DATA)); in updateActiveNotification() local 182 if (fileName == null) { in updateActiveNotification() 183 fileName = cursor.getString(cursor in updateActiveNotification() 186 if (fileName == null) { in updateActiveNotification() 187 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification() 201 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification() 204 .getString(R.string.notification_receiving, fileName); in updateActiveNotification() 272 String fileName = cursor.getString(cursor in updateCompletedNotification() local 274 if (fileName == null) { in updateCompletedNotification() 275 fileName = mContext.getString(R.string.unknown_file); in updateCompletedNotification() [all …]
|
D | BluetoothOppUtility.java | 140 String fileName = metadataCursor.getString(0); in queryTransfersInBatch() local 141 Uri path = Uri.parse(fileName); in queryTransfersInBatch() 144 path = Uri.fromFile(new File(fileName)); in queryTransfersInBatch() 157 public static void openReceivedFile(Context context, String fileName, String mimetype, in openReceivedFile() argument 159 if (fileName == null || mimetype == null) { in openReceivedFile() 164 File f = new File(fileName); in openReceivedFile() 174 Uri path = Uri.parse(fileName); in openReceivedFile() 177 path = Uri.fromFile(new File(fileName)); in openReceivedFile()
|
/packages/apps/Email/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LegacyContactImporterTest.java | 56 public LegacyMockContext(String fileName) { in LegacyMockContext() argument 57 mFileName = fileName; in LegacyMockContext() 203 … private void assertQueryResults(String fileName, Uri uri, String[] projection) throws Exception { in assertQueryResults() argument 204 String expected = readAssetAsString(fileName).trim(); in assertQueryResults() 206 assertEquals("Checking golden file " + fileName, expected, actual); in assertQueryResults() 209 private String readAssetAsString(String fileName) throws IOException { in readAssetAsString() argument 211 InputStream input = context.getAssets().open(fileName); in readAssetAsString()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadFileInfo.java | 29 public DownloadFileInfo(String fileName, FileOutputStream stream, int status) { in DownloadFileInfo() argument 30 mFileName = fileName; in DownloadFileInfo()
|
D | DownloadInfo.java | 58 String hint, String fileName, in DownloadInfo() argument 68 mFileName = fileName; in DownloadInfo()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 173 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() argument 177 att.mFileName = fileName; in setupAttachment() 178 att.mContentId = "contentId " + fileName; in setupAttachment() 179 att.mContentUri = "contentUri " + fileName; in setupAttachment() 181 att.mMimeType = "mimeType " + fileName; in setupAttachment() 182 att.mLocation = "location " + fileName; in setupAttachment() 183 att.mEncoding = "encoding " + fileName; in setupAttachment()
|
D | ProviderTests.java | 1071 String fileName = "A11achm3n1.doc"; in testCreateUniqueFile() local 1072 File uniqueFile = Attachment.createUniqueFile(fileName); in testCreateUniqueFile() 1073 assertEquals(fileName, uniqueFile.getName()); in testCreateUniqueFile() 1075 uniqueFile = Attachment.createUniqueFile(fileName); in testCreateUniqueFile() 1078 uniqueFile = Attachment.createUniqueFile(fileName); in testCreateUniqueFile() 1082 fileName = "A11achm3n1"; in testCreateUniqueFile() 1083 uniqueFile = Attachment.createUniqueFile(fileName); in testCreateUniqueFile() 1084 assertEquals(fileName, uniqueFile.getName()); in testCreateUniqueFile() 1086 uniqueFile = Attachment.createUniqueFile(fileName); in testCreateUniqueFile()
|
/packages/apps/Email/src/com/android/exchange/adapter/ |
D | EmailSyncAdapter.java | 246 String fileName = null; in attachmentParser() local 255 fileName = getValue(); in attachmentParser() 270 if ((fileName != null) && (length != null) && (location != null)) { in attachmentParser() 274 att.mFileName = fileName; in attachmentParser() 276 att.mMimeType = getMimeTypeFromFileName(fileName); in attachmentParser() 291 public String getMimeTypeFromFileName(String fileName) { in getMimeTypeFromFileName() argument 293 int lastDot = fileName.lastIndexOf('.'); in getMimeTypeFromFileName() 295 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { in getMimeTypeFromFileName() 296 extension = fileName.substring(lastDot + 1).toLowerCase(); in getMimeTypeFromFileName()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ExportVCardActivity.java | 98 public ExportConfirmationListener(String fileName) { in ExportConfirmationListener() argument 99 mFileName = fileName; in ExportConfirmationListener() 116 public ActualExportThread(String fileName) { in ActualExportThread() argument 117 mExportingFileName = fileName; in ActualExportThread()
|
D | ImportVCardActivity.java | 272 for (String fileName : mErrorFileNameList) { in run() 278 builder.append(fileName); in run() 570 String fileName = file.getName(); in getVCardFileRecursively() local 572 fileName, canonicalPath, file.lastModified()); in getVCardFileRecursively()
|
/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()
|
D | VideoCamera.java | 1011 private void deleteVideoFile(String fileName) { in deleteVideoFile() argument 1012 Log.v(TAG, "Deleting video " + fileName); in deleteVideoFile() 1013 File f = new File(fileName); in deleteVideoFile() 1015 Log.v(TAG, "Could not delete " + fileName); in deleteVideoFile()
|
/packages/apps/Camera/src/com/android/camera/ |
D | CropImage.java | 353 String fileName = oldPath.getName(); in saveOutput() local 354 fileName = fileName.substring(0, fileName.lastIndexOf(".")); in saveOutput() 361 + "/" + fileName + "-" + x + ".jpg"; in saveOutput() 376 directory.toString(), fileName + "-" + x + ".jpg", in saveOutput()
|
D | VideoCamera.java | 1013 private void deleteVideoFile(String fileName) { in deleteVideoFile() argument 1014 Log.v(TAG, "Deleting video " + fileName); in deleteVideoFile() 1015 File f = new File(fileName); in deleteVideoFile() 1017 Log.v(TAG, "Could not delete " + fileName); in deleteVideoFile()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsProvider.java | 689 String fileName = Mms.ScrapSpace.SCRAP_FILE_PATH; in getTempStoreFd() local 693 File file = new File(fileName); in getTempStoreFd() 707 Log.e(TAG, "getTempStoreFd: error creating pfd for " + fileName, ex); in getTempStoreFd()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ComposeMessageActivity.java | 1384 String fileName = new String(location); in copyPart() local 1388 if ((index = fileName.indexOf(".")) == -1) { in copyPart() 1392 extension = fileName.substring(index + 1, fileName.length()); in copyPart() 1393 fileName = fileName.substring(0, index); in copyPart() 1396 File file = getUniqueDestination(dir + fileName, extension); in copyPart()
|