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

12

/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
H A DPMCStatusLogger.java46 public PMCStatusLogger(String fileName, String tag) { argument
50 mFile = new File(LOG_DIR + "/" + fileName);
54 Log.e(TAG, "Exception creating log file: " + fileName + " " + e);
/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;
128 fileName = metadataCursor.getString(
132 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length);
138 if (fileName == null) {
140 fileName = uri.getLastPathSegment();
153 fileName = uri.getLastPathSegment();
231 return new BluetoothOppSendFileInfo(fileName, contentTyp
[all...]
H A DBluetoothOppUtility.java159 String fileName = metadataCursor.getString(0);
160 Uri path = Uri.parse(fileName);
163 path = Uri.fromFile(new File(fileName));
176 public static void openReceivedFile(Context context, String fileName, String mimetype, argument
178 if (fileName == null || mimetype == null) {
179 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
188 File f = new File(fileName);
211 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/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.java55 final String fileName = generateRandomName() + OUT_FILE_SUFFIX;
56 final File outFile = getOutputFile(context, fileName);
70 return DumpFileProvider.AUTHORITY_URI.buildUpon().appendPath(fileName).build();
82 public static void ensureValidFileName(String fileName) { argument
85 if (fileName.contains("..")) {
87 fileName);
90 if (!fileName.matches(VALID_FILE_NAME_REGEX)) {
92 " files are supported. Bad file name: " + fileName);
107 public static File getOutputFile(Context context, String fileName) { argument
108 return new File(getOutputDirectory(context), fileName);
[all...]
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
H A DPdfRender.java96 private int openDocument(String fileName) { argument
97 if (DEBUG) Log.d(TAG, "openDocument() " + fileName);
100 if (mCurrentFile != null && !mCurrentFile.equals(fileName)) {
105 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(new File(fileName),
109 Log.w(TAG, "Failed to open " + fileName, ex);
/packages/apps/Browser2/src/org/chromium/webview_shell/
H A DWebViewLayoutTest.java73 private void runWebViewLayoutTest(final String fileName, final String fileNameExpected) argument
75 runTest(PATH_WEBVIEW_PREFIX + fileName, PATH_WEBVIEW_PREFIX + fileNameExpected);
78 private void runBlinkLayoutTest(final String fileName, final String fileNameExpected) argument
81 runTest(PATH_BLINK_PREFIX + fileName, PATH_WEBVIEW_PREFIX + fileNameExpected);
84 private void runTest(final String fileName, final String fileNameExpected) argument
86 loadUrlWebViewAsync("file://" + fileName, mTestActivity);
122 private static String readFile(String fileName) throws IOException { argument
123 FileInputStream inputStream = new FileInputStream(new File(fileName));
144 * Writes a file with the given fileName and contents. If overwrite is true overwrites any
148 private static void writeFile(final String fileName, fina argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/logging/
H A DFileLog.java147 String fileName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) & 1);
149 if (!fileName.equals(mCurrentFileName)) {
155 mCurrentFileName = fileName;
158 File logFile = new File(sLogsDirectory, fileName);
206 private static void dumpFile(PrintWriter out, String fileName) { argument
207 File logFile = new File(sLogsDirectory, fileName);
214 out.println("--- logfile: " + fileName + " ---");
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DMetadataEntryParserTest.java231 private String readAssetAsString(String fileName) throws IOException { argument
233 InputStream input = context.getAssets().open(fileName);
/packages/services/BuiltInPrintService/jni/plugins/
H A Dpdf_render.c48 static int openDocument(pdf_render_ifc_t *obj, const char *fileName) { argument
49 LOGD("getPageCount %p %s", obj, fileName);
53 jstring fileNameString = (*self->env)->NewStringUTF(self->env, fileName);
56 LOGD("getPageCount %p %s returning %d", obj, fileName, count);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DDocumentsProviderHelper.java293 public void assertFileContents(String parentId, String fileName, byte[] expected) argument
295 DocumentInfo file = findFile(parentId, fileName);
/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/tests/app/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/apps/Settings/src/com/android/settings/users/
H A DEditUserPhotoController.java363 private Uri createTempImageUri(Context context, String fileName, boolean purge) { argument
366 final File fullPath = new File(folder, fileName);
/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/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);

Completed in 721 milliseconds

12