/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | HelpersTest.java | 36 String fileName = Helpers.getFullPath( 41 assertEquals(hint, fileName);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | CertFile.java | 132 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 D | BluetoothOppSendFileInfo.java | 80 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 D | BluetoothOppUtility.java | 150 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 D | BluetoothOppLauncherActivity.java | 211 String fileName = getString(R.string.bluetooth_share_file_name) + ".html"; 212 context.deleteFile(fileName); 220 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE); 223 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName));
|
H A D | BluetoothOppTransferHistory.java | 195 String fileName = mTransferCursor.getString(mTransferCursor 197 if (fileName == null) { 198 fileName = this.getString(R.string.unknown_file); 200 menu.setHeaderTitle(fileName);
|
H A D | BluetoothOppNotification.java | 249 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 D | ContactPhotoUtils.java | 56 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 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/Settings/src/com/android/settings/deviceinfo/ |
H A D | FileItemInfoLayout.java | 55 public void setFileName(String fileName) { argument 56 mFileNameView.setText(fileName.substring(sLengthExternalStorageDirPrefix));
|
/packages/apps/Mms/src/com/android/mms/ |
H A D | TempFileProvider.java | 64 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 D | DataExporter.java | 55 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 D | PhotoSelectionHandler.java | 195 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 D | AttachmentUtilities.java | 202 * @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 D | SettingsLicenseActivity.java | 69 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 D | DownloadItem.java | 72 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 D | ProviderTestUtils.java | 240 * @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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionaryGetter.java | 162 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 D | UserHistoryDictionary.java | 225 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 D | AttachmentInfo.java | 100 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 D | VCardService.java | 442 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 D | FolderSyncParserTests.java | 222 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 D | FolderSyncParserTests.java | 222 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 D | RequestHandler.java | 234 void writeResource(String fileName) throws IOException {
argument 237 int id = res.getIdentifier(fileName, null, packageName);
|
/packages/apps/Email/src/com/android/email/provider/ |
H A D | AttachmentProvider.java | 114 String fileName = c.getString(MIME_TYPE_COLUMN_FILENAME); 115 mimeType = AttachmentUtilities.inferMimeType(fileName, mimeType);
|