Searched refs:fileName (Results 1 - 24 of 24) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadFileInfo.java29 public DownloadFileInfo(String fileName, FileOutputStream stream, int status) { argument
30 mFileName = fileName;
H A DDownloadInfo.java58 String hint, String fileName,
68 mFileName = fileName;
57 DownloadInfo(int id, String uri, boolean noIntegrity, String hint, String fileName, String mimeType, int destination, int visibility, int control, int status, int numFailed, int retryAfter, int redirectCount, long lastMod, String pckg, String clazz, String extras, String cookies, String userAgent, String referer, int totalBytes, int currentBytes, String eTag, boolean mediaScanned) argument
/packages/apps/Settings/src/com/android/settings/
H A DSettingsLicenseActivity.java53 String fileName = SystemProperties.get(PROPERTY_LICENSE_PATH, DEFAULT_LICENSE_PATH);
54 if (TextUtils.isEmpty(fileName)) {
66 if (fileName.endsWith(".gz")) {
68 new GZIPInputStream(new FileInputStream(fileName)));
70 inputReader = new FileReader(fileName);
76 Log.e(TAG, "License HTML file not found at " + fileName, e);
80 Log.e(TAG, "Error reading license HTML file at " + fileName, e);
93 Log.e(TAG, "License HTML is empty (from " + fileName + ")");
/packages/apps/Email/tests/src/com/android/exchange/
H A DEasSyncServiceTests.java54 String fileName = "A11achm3n1.doc";
55 File uniqueFile = svc.createUniqueFileInternal(null, fileName);
56 assertEquals(fileName, uniqueFile.getName());
58 uniqueFile = svc.createUniqueFileInternal(null, fileName);
61 uniqueFile = svc.createUniqueFileInternal(null, fileName);
65 fileName = "A11achm3n1";
66 uniqueFile = svc.createUniqueFileInternal(null, fileName);
67 assertEquals(fileName, uniqueFile.getName());
69 uniqueFile = svc.createUniqueFileInternal(null, fileName);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java77 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 DBluetoothOppUtility.java140 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));
H A DBluetoothOppLauncherActivity.java180 String fileName = getString(R.string.bluetooth_share_file_name) + ".html";
181 context.deleteFile(fileName);
189 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE);
192 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName));
H A DBluetoothOppTransferHistory.java180 String fileName = mTransferCursor.getString(mTransferCursor
182 if (fileName == null) {
183 fileName = this.getString(R.string.unknown_file);
185 menu.setHeaderTitle(fileName);
H A DBluetoothOppNotification.java212 String fileName = cursor.getString(dataIndex);
213 if (fileName == null) {
214 fileName = cursor.getString(filenameHintIndex);
216 if (fileName == null) {
217 fileName = mContext.getString(R.string.unknown_file);
231 item.description = mContext.getString(R.string.notification_sending, fileName);
234 .getString(R.string.notification_receiving, fileName);
/packages/apps/Email/src/org/apache/commons/io/output/
H A DLockableFileWriter.java66 * @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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DLegacyContactImporterTest.java55 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/CertInstaller/src/com/android/certinstaller/
H A DCertFile.java165 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/src/com/android/email/provider/
H A DAttachmentProvider.java166 String fileName = c.getString(MIME_TYPE_COLUMN_FILENAME);
167 mimeType = inferMimeType(fileName, mimeType);
187 * @param fileName The given filename
191 public static String inferMimeType(String fileName, String mimeType) { argument
199 if (!TextUtils.isEmpty(fileName)) {
200 int lastDot = fileName.lastIndexOf('.');
202 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
203 extension = fileName.substring(lastDot + 1).toLowerCase();
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java187 * @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...]
H A DProviderTests.java1283 String fileName = "A11achm3n1.doc";
1284 File uniqueFile = Attachment.createUniqueFile(fileName);
1285 assertEquals(fileName, uniqueFile.getName());
1287 uniqueFile = Attachment.createUniqueFile(fileName);
1290 uniqueFile = Attachment.createUniqueFile(fileName);
1294 fileName = "A11achm3n1";
1295 uniqueFile = Attachment.createUniqueFile(fileName);
1296 assertEquals(fileName, uniqueFile.getName());
1298 uniqueFile = Attachment.createUniqueFile(fileName);
/packages/apps/Contacts/src/com/android/contacts/
H A DExportVCardActivity.java106 public ExportConfirmationListener(String fileName) { argument
107 mFileName = fileName;
123 public ActualExportThread(String fileName) { argument
124 mExportingFileName = fileName;
H A DImportVCardActivity.java312 for (String fileName : mErrorFileNameList) {
318 builder.append(fileName);
624 String fileName = file.getName();
626 fileName, canonicalPath, file.lastModified());
/packages/apps/Email/src/com/android/exchange/adapter/
H A DEmailSyncAdapter.java341 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/Gallery/src/com/android/camera/
H A DCropImage.java355 String fileName = oldPath.getName();
356 fileName = fileName.substring(0, fileName.lastIndexOf("."));
363 + "/" + fileName + "-" + x + ".jpg";
378 directory.toString(), fileName + "-" + x + ".jpg",
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DCropImage.java476 String fileName = oldPath.getName();
477 fileName = fileName.substring(0, fileName.lastIndexOf("."));
484 String candidate = directory.toString() + "/" + fileName + "-" + x + ".jpg";
493 String title = fileName + "-" + x;
/packages/apps/Camera/src/com/android/camera/
H A DVideoCamera.java1016 private void deleteVideoFile(String fileName) { argument
1017 Log.v(TAG, "Deleting video " + fileName);
1018 File f = new File(fileName);
1020 Log.v(TAG, "Could not delete " + fileName);
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java713 String fileName = Mms.ScrapSpace.SCRAP_FILE_PATH;
717 File file = new File(fileName);
731 Log.e(TAG, "getTempStoreFd: error creating pfd for " + fileName, ex);
/packages/apps/Contacts/src/com/android/contacts/ui/
H A DEditContactActivity.java285 String fileName = savedInstanceState.getString(KEY_CURRENT_PHOTO_FILE);
286 if (fileName != null) {
287 mCurrentPhotoFile = new File(fileName);
/packages/apps/Mms/src/com/android/mms/ui/
H A DComposeMessageActivity.java1428 String fileName;
1431 fileName = fallback;
1433 fileName = new String(location);
1441 if ((index = fileName.indexOf(".")) == -1) {
1445 extension = fileName.substring(index + 1, fileName.length());
1446 fileName = fileName.substring(0, index);
1449 File file = getUniqueDestination(dir + fileName, extension);

Completed in 216 milliseconds