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

12

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DHelpersTest.java36 String fileName = Helpers.getFullPath(
41 assertEquals(hint, fileName);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertFile.java132 String fileName = file.getName();
135 ? fileName
136 : bundle.getString(KeyChain.EXTRA_NAME, fileName));
146 install(fileName, name, data);
179 private void install(String fileName, String name, byte[] value) { argument
182 if (fileName.endsWith(Credentials.EXTENSION_PFX)
183 || fileName.endsWith(Credentials.EXTENSION_P12)) {
185 } else if (fileName.endsWith(Credentials.EXTENSION_CER)
186 || fileName.endsWith(Credentials.EXTENSION_CRT)) {
189 throw new AssertionError(fileName);
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java80 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument
82 mFileName = fileName;
104 String fileName = null;
124 fileName = metadataCursor.getString(0);
126 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length);
132 if (fileName == null) {
134 fileName = uri.getLastPathSegment();
137 fileName = uri.getLastPathSegment();
194 return new BluetoothOppSendFileInfo(fileName, contentTyp
[all...]
H A DBluetoothOppUtility.java150 String fileName = metadataCursor.getString(0);
151 Uri path = Uri.parse(fileName);
154 path = Uri.fromFile(new File(fileName));
167 public static void openReceivedFile(Context context, String fileName, String mimetype, argument
169 if (fileName == null || mimetype == null) {
170 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
174 File f = new File(fileName);
189 Uri path = Uri.parse(fileName);
192 path = Uri.fromFile(new File(fileName));
H A DBluetoothOppLauncherActivity.java250 String fileName = getString(R.string.bluetooth_share_file_name) + ".html";
251 context.deleteFile(fileName);
259 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE);
262 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName));
H A DBluetoothOppTransferHistory.java195 String fileName = mTransferCursor.getString(mTransferCursor
197 if (fileName == null) {
198 fileName = this.getString(R.string.unknown_file);
200 menu.setHeaderTitle(fileName);
H A DBluetoothOppNotification.java249 String fileName = cursor.getString(dataIndex);
250 if (fileName == null) {
251 fileName = cursor.getString(filenameHintIndex);
253 if (fileName == null) {
254 fileName = mContext.getString(R.string.unknown_file);
269 item.description = mContext.getString(R.string.notification_sending, fileName);
272 .getString(R.string.notification_receiving, fileName);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DContactPhotoUtils.java56 public static String pathForCroppedPhoto(Context context, String fileName) { argument
59 final File f = new File(dir, fileName);
63 public static String pathForNewCameraPhoto(String fileName) { argument
66 final File f = new File(dir, 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/apps/Settings/src/com/android/settings/deviceinfo/
H A DFileItemInfoLayout.java55 public void setFileName(String fileName) { argument
56 mFileNameView.setText(fileName.substring(sLengthExternalStorageDirPrefix));
/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/src/com/android/providers/contacts/debug/
H A DDataExporter.java55 final String fileName = generateRandomName() + OUT_FILE_SUFFIX;
56 final File outFile = getOutputFile(context, fileName);
72 return DumpFileProvider.AUTHORITY_URI.buildUpon().appendPath(fileName).build();
95 public static File getOutputFile(Context context, String fileName) { argument
96 return new File(getOutputDirectory(context), fileName);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DPhotoSelectionHandler.java195 private void doCropPhoto(String fileName) { argument
199 final String newPath = ContactPhotoUtils.pathForNewCameraPhoto(fileName);
200 final String croppedPath = ContactPhotoUtils.pathForCroppedPhoto(mContext, fileName);
211 startPhotoActivity(intent, REQUEST_CODE_PHOTO_PICKED_WITH_DATA, fileName);
279 private static Intent getTakePhotoIntent(String fileName) { argument
281 final String newPhotoPath = ContactPhotoUtils.pathForNewCameraPhoto(fileName);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java202 * @param fileName The given filename
206 public static String inferMimeType(final String fileName, final String mimeType) { argument
208 String fileExtension = getFilenameExtension(fileName);
261 public static String getFilenameExtension(String fileName) { argument
263 if (!TextUtils.isEmpty(fileName)) {
264 int lastDot = fileName.lastIndexOf('.');
265 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
266 extension = fileName.substring(lastDot + 1).toLowerCase();
/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/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DDownloadItem.java72 public void setData(long downloadId, int position, String fileName, String mimeType) { argument
75 mFileName = 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/Nfc/src/com/android/nfc/handover/
H A DHandoverTransfer.java386 File generateUniqueDestination(String path, String fileName) { argument
387 int dotIndex = fileName.lastIndexOf(".");
392 fileNameWithoutExtension = fileName;
394 extension = fileName.substring(dotIndex);
395 fileNameWithoutExtension = fileName.substring(0, dotIndex);
397 File dstFile = new File(path + File.separator + fileName);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionaryGetter.java162 final String fileName = replaceFileNameDangerousCharacters(id);
163 return getCacheDirectoryForLocale(locale, context) + File.separator + fileName;
173 final String fileName = replaceFileNameDangerousCharacters(id);
174 return context.getCacheDir() + File.separator + fileName + "."
242 private static String getCategoryFromFileName(final String fileName) { argument
243 final String id = getWordListIdFromFileName(fileName);
H A DUserHistoryDictionary.java225 final String fileName = NAME + "." + mLocale + ".dict";
257 final File file = new File(getContext().getFilesDir(), fileName);
333 final String fileName = NAME + "." + mLocale + ".dict";
334 final File file = new File(mContext.getFilesDir(), fileName);
/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/Contacts/src/com/android/contacts/vcard/
H A DVCardService.java442 for (final String fileName : fileList()) {
443 if (fileName.startsWith(CACHE_FILE_PREFIX)) {
445 Log.i(LOG_TAG, "Remove a temporary file: " + fileName);
446 deleteFile(fileName);
/packages/apps/Exchange/exchange2/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/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/Browser/src/com/android/browser/homepages/
H A DRequestHandler.java234 void writeResource(String fileName) throws IOException { argument
237 int id = res.getIdentifier(fileName, null, packageName);

Completed in 781 milliseconds

12