Searched defs:fileName (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java76 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument
78 mFileName = fileName;
104 String fileName = null;
118 fileName = metadataCursor.getString(0);
120 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length);
127 fileName = u.getLastPathSegment();
157 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));
/packages/apps/Browser/src/com/android/browser/homepages/
H A DRequestHandler.java121 void writeResource(String fileName) throws IOException { argument
124 int id = res.getIdentifier(fileName, null, packageName);
/packages/apps/Email/emailcommon/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/apps/Settings/src/com/android/settings/
H A DSettingsLicenseActivity.java69 public LicenseFileLoader(String fileName, Handler handler) { argument
70 mFileName = fileName;
134 String fileName = SystemProperties.get(PROPERTY_LICENSE_PATH, DEFAULT_LICENSE_PATH);
135 if (TextUtils.isEmpty(fileName)) {
170 Thread thread = new Thread(new LicenseFileLoader(fileName, mHandler));
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DFileItemInfoLayout.java53 public void setFileName(String fileName) { argument
54 mFileNameView.setText(fileName.substring(mLengthExternalStorageDirPrefix));
H A DStorageMeasurement.java531 FileInfo(String fileName, long size, long id) { argument
532 mFileName = fileName;
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertFile.java174 private void install(String fileName, byte[] value) { argument
176 intent.putExtra(CredentialHelper.CERT_NAME_KEY, fileName);
177 if (fileName.endsWith(Credentials.EXTENSION_PFX)
178 || fileName.endsWith(Credentials.EXTENSION_P12)) {
180 } else if (fileName.endsWith(Credentials.EXTENSION_CER)
181 || fileName.endsWith(Credentials.EXTENSION_CRT)) {
184 throw new AssertionError(fileName);
/packages/apps/Mms/src/com/android/mms/
H A DTempFileProvider.java64 String fileName = getScrapPath(getContext());
68 File file = new File(fileName);
82 Log.e(TAG, "getTempStoreFd: error creating pfd for " + fileName, ex);
121 public static String getScrapPath(Context context, String fileName) { argument
122 return context.getExternalCacheDir().getAbsolutePath() + "/" + fileName;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DLegacyContactImporterTest.java58 public LegacyMockContext(String fileName) { argument
59 mFileName = fileName;
245 private void assertQueryResults(String fileName, Uri uri, String[] projection) argument
247 String expected = readAssetAsString(fileName).trim();
249 assertEquals("Checking golden file " + fileName, expected, actual);
252 private String readAssetAsString(String fileName) throws IOException { argument
254 InputStream input = context.getAssets().open(fileName);
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DDownloadItem.java70 public void setData(long downloadId, int position, String fileName, String mimeType) { argument
73 mFileName = fileName;
H A DDownloadList.java95 SelectionObjAttrs(String fileName, String mimeType) { argument
96 mFileName = fileName;
640 String fileName, String mimeType) {
642 mSelectedIds.put(downloadId, new SelectionObjAttrs(fileName, mimeType));
733 String fileName = item.getFileName();
735 attachments.add(Uri.fromFile(new File(fileName)));
639 onDownloadSelectionChanged(long downloadId, boolean isSelected, String fileName, String mimeType) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java191 * @param fileName The given filename
195 public static String inferMimeType(final String fileName, final String mimeType) { argument
197 String fileExtension = getFilenameExtension(fileName);
249 public static String getFilenameExtension(String fileName) { argument
251 if (!TextUtils.isEmpty(fileName)) {
252 int lastDot = fileName.lastIndexOf('.');
253 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
254 extension = fileName.substring(lastDot + 1).toLowerCase();
/packages/apps/Email/src/com/android/email/
H A DAttachmentInfo.java100 public AttachmentInfo(Context context, long id, long size, String fileName, String mimeType, argument
103 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
104 mName = fileName;
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java240 * @param fileName the "file" to indicate in the attachment
246 public static Attachment setupAttachment(long messageId, String fileName, long length, argument
250 att.mFileName = fileName;
251 att.mContentId = "contentId " + fileName;
252 att.mContentUri = "contentUri " + fileName;
254 att.mMimeType = "mimeType " + fileName;
255 att.mLocation = "location " + fileName;
256 att.mEncoding = "encoding " + fileName;
257 att.mContent = "content " + fileName;
259 att.mContentBytes = Utility.toUtf8("content " + fileName);
276 setupAttachment(long messageId, String fileName, long length, boolean saveIt, Context context) argument
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityUnitTests.java203 String dir, String fileName) throws Exception {
205 Utility.createUniqueFileInternal(nfc, new File(dir), fileName).toString());
202 checkCreateUniqueFile(String expectedFileName, NewFileCreator nfc, String dir, String fileName) argument
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DFolderSyncParserTests.java222 public MockFolderSyncParser(String fileName, AbstractSyncAdapter adapter) argument
226 InputStream is = am.open(fileName);
359 * @param fileName the name of the file containing emaillog data for folder sync
363 private void testComplexFolderListParse(String fileName) throws IOException, argument
367 FolderSyncParser parser = new MockFolderSyncParser(fileName, adapter);
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DEmailSyncAdapter.java785 String fileName = null;
796 fileName = getValue();
817 if ((fileName != null) && (length != null) && (location != null)) {
821 att.mFileName = fileName;
823 att.mMimeType = getMimeTypeFromFileName(fileName);
849 * @param fileName the file name to ponder
853 public String getMimeTypeFromFileName(String fileName) { argument
855 int lastDot = fileName.lastIndexOf('.');
857 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
858 extension = fileName
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DVideoCamera.java1459 private void deleteVideoFile(String fileName) { argument
1460 Log.v(TAG, "Deleting video " + fileName);
1461 File f = new File(fileName);
1463 Log.v(TAG, "Could not delete " + fileName);
2046 public synchronized void onEffectsError(Exception exception, String fileName) { argument
2049 if (fileName != null && new File(fileName).exists()) {
2050 deleteVideoFile(fileName);

Completed in 1569 milliseconds