/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppSendFileInfo.java | 77 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument 79 mFileName = fileName; 105 String fileName = null; 119 fileName = metadataCursor.getString(0); 121 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length); 128 fileName = u.getLastPathSegment(); 158 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0, dest);
|
H A D | BluetoothOppUtility.java | 140 String fileName = metadataCursor.getString(0); 141 Uri path = Uri.parse(fileName); 144 path = Uri.fromFile(new File(fileName)); 157 public static void openReceivedFile(Context context, String fileName, String mimetype, argument 159 if (fileName == null || mimetype == null) { 160 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null"); 164 File f = new File(fileName); 179 Uri path = Uri.parse(fileName); 182 path = Uri.fromFile(new File(fileName));
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
H A D | LockableFileWriter.java | 66 * @param fileName the file to write to, not null
70 public LockableFileWriter(String fileName) throws IOException {
argument 71 this(fileName, false, null);
77 * @param fileName file to write to, not null
82 public LockableFileWriter(String fileName, boolean append) throws IOException {
argument 83 this(fileName, append, null);
89 * @param fileName the file to write to, not null
95 public LockableFileWriter(String fileName, boolean append, String lockDir) throws IOException {
argument 96 this(new File(fileName), append, lockDir);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | CertFile.java | 165 private void install(String fileName, byte[] value) { argument 167 intent.putExtra(CredentialHelper.CERT_NAME_KEY, fileName); 168 if (fileName.endsWith(PKCS12_EXT)) {
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | ProviderTestUtils.java | 187 * @param fileName the "file" to indicate in the attachment 192 public static Attachment setupAttachment(long messageId, String fileName, long length, argument 196 att.mFileName = fileName; 197 att.mContentId = "contentId " + fileName; 198 att.mContentUri = "contentUri " + fileName; 200 att.mMimeType = "mimeType " + fileName; 201 att.mLocation = "location " + fileName; 202 att.mEncoding = "encoding " + fileName; 203 att.mContent = "content " + fileName; 205 att.mContentBytes = Utility.toUtf8("content " + fileName); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | LegacyContactImporterTest.java | 55 public LegacyMockContext(String fileName) { argument 56 mFileName = fileName; 241 private void assertQueryResults(String fileName, Uri uri, String[] projection) argument 243 String expected = readAssetAsString(fileName).trim(); 245 assertEquals("Checking golden file " + fileName, expected, actual); 248 private String readAssetAsString(String fileName) throws IOException { argument 250 InputStream input = context.getAssets().open(fileName);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ExportVCardActivity.java | 107 public ExportConfirmationListener(String fileName) { argument 108 mFileName = fileName; 124 public ActualExportThread(String fileName) { argument 125 mExportingFileName = fileName;
|
/packages/apps/Email/src/com/android/email/provider/ |
H A D | AttachmentProvider.java | 169 String fileName = c.getString(MIME_TYPE_COLUMN_FILENAME); 170 mimeType = inferMimeType(fileName, mimeType); 193 * @param fileName The given filename 197 public static String inferMimeType(String fileName, String mimeType) { argument 205 if (!TextUtils.isEmpty(fileName)) { 206 int lastDot = fileName.lastIndexOf('.'); 208 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { 209 extension = fileName.substring(lastDot + 1).toLowerCase();
|
/packages/apps/Email/src/com/android/exchange/adapter/ |
H A D | EmailSyncAdapter.java | 341 String fileName = null; 350 fileName = getValue(); 365 if ((fileName != null) && (length != null) && (location != null)) { 369 att.mFileName = fileName; 371 att.mMimeType = getMimeTypeFromFileName(fileName); 381 * @param fileName the file name to ponder 386 public String getMimeTypeFromFileName(String fileName) { argument 388 int lastDot = fileName.lastIndexOf('.'); 390 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { 391 extension = fileName [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | VideoCamera.java | 1096 private void deleteVideoFile(String fileName) { argument 1097 Log.v(TAG, "Deleting video " + fileName); 1098 File f = new File(fileName); 1100 Log.v(TAG, "Could not delete " + fileName);
|