/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
D | DataExporter.java | 55 final String fileName = generateRandomName() + OUT_FILE_SUFFIX; in exportData() local 56 final File outFile = getOutputFile(context, fileName); in exportData() 70 return DumpFileProvider.AUTHORITY_URI.buildUpon().appendPath(fileName).build(); in exportData() 82 public static void ensureValidFileName(String fileName) { in ensureValidFileName() argument 85 if (fileName.contains("..")) { in ensureValidFileName() 87 fileName); in ensureValidFileName() 90 if (!fileName.matches(VALID_FILE_NAME_REGEX)) { in ensureValidFileName() 92 " files are supported. Bad file name: " + fileName); in ensureValidFileName() 107 public static File getOutputFile(Context context, String fileName) { in getOutputFile() argument 108 return new File(getOutputDirectory(context), fileName); in getOutputFile()
|
D | DumpFileProvider.java | 80 final String fileName = extractFileName(uri); in openFile() local 81 DataExporter.ensureValidFileName(fileName); in openFile() 82 final File file = DataExporter.getOutputFile(getContext(), fileName); in openFile() 93 final String fileName = extractFileName(uri); in query() local 94 DataExporter.ensureValidFileName(fileName); in query() 109 b.add(fileName); in query() 111 final File file = DataExporter.getOutputFile(getContext(), fileName); in query()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 82 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument 84 mFileName = fileName; in BluetoothOppSendFileInfo() 106 String fileName = null; in generateFileInfo() local 139 fileName = metadataCursor.getString(indexName); in generateFileInfo() 145 Log.d(TAG, "fileName = " + fileName + " length = " + length); in generateFileInfo() 152 if (fileName == null) { in generateFileInfo() 154 fileName = uri.getLastPathSegment(); in generateFileInfo() 155 if (D) Log.d(TAG, "fileName from URI :" + fileName); in generateFileInfo() 168 fileName = uri.getLastPathSegment(); in generateFileInfo() 247 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | LicenseHtmlGeneratorFromXml.java | 201 String fileName = readText(parser).trim(); in parse() local 202 if (!TextUtils.isEmpty(fileName)) { in parse() 203 fileNameToContentIdMap.put(fileName, contentId); in parse() 249 for (String fileName : fileNameList) { in generateHtml() 250 String contentId = fileNameToContentIdMap.get(fileName); in generateHtml() 261 contentIdAndFileNamesList.get(id).mFileNameList.add(fileName); in generateHtml() 262 writer.format("<li><a href=\"#id%d\">%s</a></li>\n", id, fileName); in generateHtml() 273 for (String fileName : contentIdAndFileNames.mFileNameList) { in generateHtml() 274 writer.format("%s <br/>\n", fileName); in generateHtml()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | InternalStorageUiTest.java | 34 private static final String fileName = "!Test3345678"; field in InternalStorageUiTest 64 bots.directory.selectDocument(fileName); in testRenameFile() 74 bots.directory.assertDocumentsAbsent(fileName); in testRenameFile() 81 mDocsHelper.createFolder(rootPrimary, fileName); in createTestFiles() 87 if (bots.directory.hasDocuments(fileName)) { in deleteTestFiles() 88 bots.directory.selectDocument(fileName); in deleteTestFiles()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | SimpleUploaderAsyncTask.java | 84 Storage storage, MetaBugReport bugReport, String fileName, InputStream data) in uploadSimple() argument 99 .setName(fileName) in uploadSimple() 109 Log.v(TAG, "started uploading object " + fileName + " to bucket " + bucket); in uploadSimple() 128 String fileName = bugReport.getBugReportFileName(); in upload() local 129 if (Strings.isNullOrEmpty(fileName)) { in upload() 131 fileName = new File(bugReport.getFilePath()).getName(); in upload() 134 StorageObject object = uploadSimple(storage, bugReport, fileName, inputStream); in upload() 135 Log.v(TAG, "finished uploading object " + object.getName() + " file " + fileName); in upload()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | HeaderTextSelectorTest.java | 55 CharSequence fileName = "filename"; in testSimpleFileName() local 57 String testSequence = fileName + extension; in testSimpleFileName() 65 assertEquals(selectedSequence, fileName); in testSimpleFileName() 71 CharSequence fileName = "filename"; in testLotsOfPeriodsInFileName() local 73 String testSequence = fileName + extension; in testLotsOfPeriodsInFileName() 81 assertEquals(selectedSequence, fileName); in testLotsOfPeriodsInFileName()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | DictionaryInfoUtils.java | 229 public static String getCategoryFromFileName(@Nonnull final String fileName) { 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 = dictionaryFile.getName(); [all …]
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | E2eCarTestBase.java | 85 protected List<CarPropertyValue> getExpectedEvents(String fileName) in getExpectedEvents() argument 87 try (InputStream in = mContext.getAssets().open(fileName)) { in getExpectedEvents() 88 Log.d(TAG, "Reading golden test data" + fileName); in getExpectedEvents() 97 protected File makeShareable(String fileName) throws IOException { in makeShareable() argument 105 File internalFile = new File(filesDir, fileName); in makeShareable() 108 InputStream in = mContext.getAssets().open(fileName); in makeShareable()
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 86 char* fileName = de->d_name; in findTrainInfoFileNameLocked() local 87 if (fileName[0] == '.') continue; in findTrainInfoFileNameLocked() 89 size_t fileNameLength = strlen(fileName); in findTrainInfoFileNameLocked() 91 if (0 == strncmp(fileName + fileNameLength - trainName.length(), trainName.c_str(), in findTrainInfoFileNameLocked() 93 return string(fileName); in findTrainInfoFileNameLocked() 157 std::string fileName = in writeTrainInfo() local 161 int fd = open(fileName.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR); in writeTrainInfo() 163 VLOG("Attempt to access %s but failed", fileName.c_str()); in writeTrainInfo() 270 string fileName = findTrainInfoFileNameLocked(trainName); in readTrainInfoLocked() local 271 if (fileName.empty()) { in readTrainInfoLocked() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | FileLog.java | 152 String fileName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) % LOG_DAYS); in handleMessage() local 154 if (!fileName.equals(mCurrentFileName)) { in handleMessage() 160 mCurrentFileName = fileName; in handleMessage() 163 File logFile = new File(sLogsDirectory, fileName); in handleMessage() 212 private static void dumpFile(PrintWriter out, String fileName) { 213 File logFile = new File(sLogsDirectory, fileName); 220 out.println("--- logfile: " + fileName + " ---");
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
D | TsStreamWriter.java | 224 String fileName = file.getName(); in getFileId() local 225 int lastSeparator = fileName.lastIndexOf(SEPARATOR); in getFileId() 226 if (!fileName.endsWith(".ts") || lastSeparator == -1) { in getFileId() 230 return Integer.parseInt(fileName.substring(lastSeparator + 1, fileName.length() - 3)); in getFileId() 233 Log.e(TAG, fileName + " is not a valid file name."); in getFileId()
|
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/ |
D | CarrierConfigTest.java | 239 for (String fileName : files) { in forEachConfigXml() 241 if (!fileName.startsWith("carrier_config_")) continue; in forEachConfigXml() 242 if (fileName.startsWith("carrier_config_mccmnc_")) { in forEachConfigXml() 243 mccmnc = fileName.substring("carrier_config_mccmnc_".length(), in forEachConfigXml() 244 fileName.indexOf(".xml")); in forEachConfigXml() 249 parser.setInput(assetMgr.open(fileName), "utf-8"); in forEachConfigXml() 254 throw new AssertionError("Problem in " + fileName + ": " + e.getMessage(), e); in forEachConfigXml()
|
/packages/services/BuiltInPrintService/src/com/android/bips/jni/ |
D | PdfRender.java | 101 private int openDocument(String fileName) { in openDocument() argument 102 if (DEBUG) Log.d(TAG, "openDocument() " + fileName); in openDocument() 107 if (mCurrentFile != null && !mCurrentFile.equals(fileName)) { in openDocument() 112 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(new File(fileName), in openDocument() 116 Log.w(TAG, "Failed to open " + fileName, ex); in openDocument()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/ |
D | CertUtils.java | 43 public static X509Certificate createCertFromPemFile(String fileName) throws Exception { in createCertFromPemFile() argument 46 context.getResources().getAssets().open(PEM_FOLDER_NAME + "/" + fileName); in createCertFromPemFile() 53 public static RSAPrivateKey createRsaPrivateKeyFromKeyFile(String fileName) throws Exception { in createRsaPrivateKeyFromKeyFile() argument 56 context.getResources().getAssets().open(KEY_FOLDER_NAME + "/" + fileName); in createRsaPrivateKeyFromKeyFile()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | DvrStorageManager.java | 169 String fileName = in readTrackInfoFiles() local 172 File file = new File(getBufferDir(), fileName); in readTrackInfoFiles() 209 String fileName = in readCaptionInfoFiles() local 212 File file = new File(getBufferDir(), fileName); in readCaptionInfoFiles() 334 String fileName = in writeTrackInfoFiles() local 337 File file = new File(getBufferDir(), fileName); in writeTrackInfoFiles() 367 String fileName = in writeCaptionInfoFiles() local 369 File file = new File(getBufferDir(), fileName); in writeCaptionInfoFiles()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | DvrStorageManager.java | 169 String fileName = in readTrackInfoFiles() local 172 File file = new File(getBufferDir(), fileName); in readTrackInfoFiles() 209 String fileName = in readCaptionInfoFiles() local 212 File file = new File(getBufferDir(), fileName); in readCaptionInfoFiles() 334 String fileName = in writeTrackInfoFiles() local 337 File file = new File(getBufferDir(), fileName); in writeTrackInfoFiles() 367 String fileName = in writeCaptionInfoFiles() local 369 File file = new File(getBufferDir(), fileName); in writeCaptionInfoFiles()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | IconInfo.java | 50 public IconInfo(int width, int height, String language, String iconType, String fileName) { in IconInfo() argument 55 mFileName = fileName; in IconInfo() 77 String fileName = in parse() local 80 return new IconInfo(width, height, language, iconType, fileName); in parse()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 250 final String fileName = uid + "_" + destination + ".txt"; in prepareData() local 254 Environment.DIRECTORY_DOWNLOADS), fileName); in prepareData() 264 Environment.DIRECTORY_DOCUMENTS), fileName); in prepareData() 272 fileName); in prepareData() 282 Environment.DIRECTORY_DOCUMENTS), fileName); in prepareData() 290 fileName); in prepareData() 299 final File file = new File(getContext().getCacheDir(), fileName); in prepareData()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 108 const char *const fileName) { in getFilePathBufSize() argument 109 return strlen(dirPath) + 1 /* '/' */ + strlen(fileName) + 1 /* terminator */; in getFilePathBufSize() 112 /* static */ void FileUtils::getFilePath(const char *const dirPath, const char *const fileName, in getFilePath() argument 114 snprintf(outFilePath, filePathBufSize, "%s/%s", dirPath, fileName); in getFilePath()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 452 private void backupAll(FullBackupDataOutput data, Cursor cursor, String fileName) in backupAll() argument 461 try (JsonWriter jsonWriter = getJsonWriter(fileName)) { in backupAll() 462 if (fileName.endsWith(SMS_BACKUP_FILE_SUFFIX)) { in backupAll() 468 backupFile(chunk, fileName, data); in backupAll() 499 private void backupFile(BackupChunkInformation chunkInformation, String fileName, in backupFile() argument 502 final File file = new File(getFilesDir().getPath() + "/" + fileName); in backupFile() 575 final String fileName = file.getName(); in onHandleIntent() local 576 Log.d(TAG, "onHandleIntent restoring file " + fileName); in onHandleIntent() 578 mTelephonyBackupAgent.doRestoreFile(fileName, fileInputStream.getFD()); in onHandleIntent() 660 private void doRestoreFile(String fileName, FileDescriptor fd) throws IOException { [all …]
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | pdf_render.c | 48 static int openDocument(pdf_render_ifc_t *obj, const char *fileName) { in openDocument() argument 49 LOGD("getPageCount %p %s", obj, fileName); in openDocument() 53 jstring fileNameString = (*self->env)->NewStringUTF(self->env, fileName); in openDocument() 56 LOGD("getPageCount %p %s returning %d", obj, fileName, count); in openDocument()
|
/packages/apps/Car/tests/TestMediaApp/assets/media_items/ |
D | GenerateSongsJson.java | 25 String fileName = "hundres_songs.json"; in main() local 31 fileName = args[2]; in main() 39 FileOutputStream outputStream = new FileOutputStream(fileName); in main()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | BatteryStatsValidationTests.java | 121 final String fileName = "BATTERYSTATS_SERVICE_START_COUNT.pbtxt"; in testServiceStartCount() local 122 StatsdConfig config = createValidationUtil().getConfig(fileName); in testServiceStartCount() 166 final String fileName = "BATTERYSTATS_SERVICE_LAUNCH_COUNT.pbtxt"; in testServiceLaunchCount() local 167 StatsdConfig config = createValidationUtil().getConfig(fileName); in testServiceLaunchCount()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | PMCStatusLogger.java | 46 public PMCStatusLogger(String fileName, String tag) { in PMCStatusLogger() argument 50 mFile = new File(LOG_DIR + "/" + fileName); in PMCStatusLogger() 54 Log.e(TAG, "Exception creating log file: " + fileName + " " + e); in PMCStatusLogger()
|