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

12

/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.java151 String fileName = metadataCursor.getString(0);
152 Uri path = Uri.parse(fileName);
155 path = Uri.fromFile(new File(fileName));
168 public static void openReceivedFile(Context context, String fileName, String mimetype, argument
170 if (fileName == null || mimetype == null) {
171 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
175 File f = new File(fileName);
194 path = Uri.fromFile(new File(fileName));
/packages/apps/Contacts/src/com/android/contacts/util/
H A DContactPhotoUtils.java73 private static String pathForTempPhoto(Context context, String fileName) { argument
76 final File f = new File(dir, fileName);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DContactPhotoUtils.java57 public static String pathForCroppedPhoto(Context context, String fileName) { argument
60 final File f = new File(dir, fileName);
64 public static String pathForNewCameraPhoto(String fileName) { argument
67 final File f = new File(dir, fileName);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMimeType.java107 private static String getFilenameExtension(String fileName) { argument
109 if (!TextUtils.isEmpty(fileName)) {
110 int lastDot = fileName.lastIndexOf('.');
111 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
112 extension = fileName.substring(lastDot + 1).toLowerCase();
/packages/apps/UnifiedEmail/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/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dmmapped_buffer.cpp73 const char *const dirPath, const char *const fileName, const bool isUpdatable) {
77 fileName);
72 openBuffer( const char *const dirPath, const char *const fileName, const bool isUpdatable) argument
H A Dfile_utils.cpp108 const char *const fileName) {
109 return strlen(dirPath) + 1 /* '/' */ + strlen(fileName) + 1 /* terminator */;
112 /* static */ void FileUtils::getFilePath(const char *const dirPath, const char *const fileName, argument
114 snprintf(outFilePath, filePathBufSize, "%s/%s", dirPath, fileName);
107 getFilePathBufSize(const char *const dirPath, const char *const fileName) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java56 final String fileName = generateRandomName() + OUT_FILE_SUFFIX;
57 final File outFile = getOutputFile(context, fileName);
73 return DumpFileProvider.AUTHORITY_URI.buildUpon().appendPath(fileName).build();
85 public static void ensureValidFileName(String fileName) { argument
88 if (fileName.contains("..")) {
90 fileName);
93 if (!fileName.matches(VALID_FILE_NAME_REGEX)) {
95 " files are supported. Bad file name: " + fileName);
110 public static File getOutputFile(Context context, String fileName) { argument
111 return new File(getOutputDirectory(context), fileName);
[all...]
/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);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java212 * @param fileName The given filename
216 public static String inferMimeType(final String fileName, final String mimeType) { argument
218 String fileExtension = getFilenameExtension(fileName);
253 public static String getFilenameExtension(String fileName) { argument
255 if (!TextUtils.isEmpty(fileName)) {
256 int lastDot = fileName.lastIndexOf('.');
257 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
258 extension = fileName.substring(lastDot + 1).toLowerCase();
332 final String fileName = c.getString(0);
333 if (!TextUtils.isEmpty(fileName)) {
[all...]
/packages/apps/Email/provider_src/com/android/email/
H A DAttachmentInfo.java107 public AttachmentInfo(Context context, long id, long size, String fileName, String mimeType, argument
110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
111 mName = fileName;
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java229 * @param fileName the "file" to indicate in the attachment
235 public static Attachment setupAttachment(long messageId, String fileName, long length, argument
239 att.mFileName = fileName;
240 att.mContentId = "contentId " + fileName;
241 att.setContentUri("contentUri " + fileName);
243 att.mMimeType = "mimeType " + fileName;
244 att.mLocation = "location " + fileName;
245 att.mEncoding = "encoding " + fileName;
246 att.mContent = "content " + fileName;
248 att.mContentBytes = Utility.toUtf8("content " + fileName);
265 setupAttachment(long messageId, String fileName, long length, boolean saveIt, Context context) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DDebugUtils.java316 public static File getDebugFile(final String fileName, final boolean create) { argument
318 final File file = new File(dir, fileName);
H A DContentType.java155 * @param fileName a filename to determine the type from, such as img1231.jpg
160 public static String getContentTypeFromExtension(final String fileName, argument
163 final String extension = MimeTypeMap.getFileExtensionFromUrl(fileName);
/packages/apps/Settings/src/com/android/settings/users/
H A DEditUserPhotoController.java320 private Uri createTempImageUri(Context context, String fileName, boolean purge) { argument
323 final File fullPath = new File(folder, fileName);
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
H A DVpnTests.java333 * @param fileName certificate file name
336 private void installCertificatesFromFile(VpnProfile profile, String fileName, String password) argument
338 if (profile == null || fileName == null || password == null) {
343 mCertHelper.installCertificate(profile, fileName, password);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DDictionaryInfoUtils.java229 public static String getCategoryFromFileName(@Nonnull final String fileName) { argument
230 final String id = getWordListIdFromFileName(fileName);
272 final String fileName = replaceFileNameDangerousCharacters(id);
273 return getCacheDirectoryForLocale(locale, context) + File.separator + fileName;
286 final String fileName = replaceFileNameDangerousCharacters(
288 return stagingDirectory + File.separator + fileName;
295 final String fileName = stagingFile.getName();
296 final int index = fileName.indexOf(TEMP_DICT_FILE_SUB);
302 final String[] localeAndFileId = fileName.split(TEMP_DICT_FILE_SUB);
528 String fileName
[all...]
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DEmailSyncParser.java470 String fileName = null;
481 fileName = getValue();
502 if ((fileName != null) && (length != null) && (location != null)) {
506 att.mFileName = fileName;
508 att.mMimeType = getMimeTypeFromFileName(fileName);
534 * @param fileName the file name to ponder
538 public String getMimeTypeFromFileName(String fileName) { argument
540 int lastDot = fileName.lastIndexOf('.');
542 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) {
543 extension = fileName
[all...]
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
H A DPduPart.java373 * @param fileName the filename value
376 public void setFilename(byte[] fileName) { argument
377 if(null == fileName) {
381 mPartHeader.put(P_FILENAME, fileName);
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
H A DPduPart.java348 * @param fileName the filename value
351 public void setFilename(final byte[] fileName) { argument
352 if (null == fileName) {
356 mPartHeader.put(P_FILENAME, fileName);
/packages/apps/Nfc/src/com/android/nfc/beam/
H A DBeamTransferManager.java502 static File generateUniqueDestination(String path, String fileName) { argument
503 int dotIndex = fileName.lastIndexOf(".");
508 fileNameWithoutExtension = fileName;
510 extension = fileName.substring(dotIndex);
511 fileNameWithoutExtension = fileName.substring(0, dotIndex);
513 File dstFile = new File(path + File.separator + fileName);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DPhoneAccountRegistrar.java143 public PhoneAccountRegistrar(Context context, String fileName) { argument
150 mAtomicFile = new AtomicFile(new File(filePath, fileName));
152 mAtomicFile = new AtomicFile(new File(context.getFilesDir(), fileName));
/packages/apps/Camera2/src/com/android/camera/
H A DVideoModule.java1278 private void deleteVideoFile(String fileName) { argument
1279 Log.v(TAG, "Deleting video " + fileName);
1280 File f = new File(fileName);
1282 Log.v(TAG, "Could not delete " + fileName);
/packages/apps/Camera/src/com/android/camera/
H A DVideoModule.java1482 private void deleteVideoFile(String fileName) { argument
1483 Log.v(TAG, "Deleting video " + fileName);
1484 File f = new File(fileName);
1486 Log.v(TAG, "Could not delete " + fileName);
2087 public synchronized void onEffectsError(Exception exception, String fileName) { argument
2090 if (fileName != null && new File(fileName).exists()) {
2091 deleteVideoFile(fileName);

Completed in 1236 milliseconds

12