Home
last modified time | relevance | path

Searched refs:toFile (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DFileUtils.java57 public static boolean renameTo(final File fromFile, final File toFile) { in renameTo() argument
58 toFile.delete(); in renameTo()
59 return fromFile.renameTo(toFile); in renameTo()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/
DCanonicalizeTzS2PolygonsTest.java89 TzS2Polygons.listFiles(outputDirPath.toFile(), DEFAULT_PROTO_STORAGE_FORMAT); in regressionTest()
109 TzS2Polygons.load(expectedPolyFile.toFile(), DEFAULT_PROTO_STORAGE_FORMAT); in checkOutputPolyFile()
110 File actualTzS2PolygonsFile = new File(outputDirPath.toFile(), expectedTzS2PolygonResource); in checkOutputPolyFile()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveFileTestRule.java84 path.toFile().delete(); in finished()
88 mTemporaryPath.toFile().delete(); in finished()
143 .open(destinationPath.toFile(), MODE_READ_ONLY); in openAssetFile()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/
DTzS2CellUnionsToTzS2RangesTest.java85 File actualOutputFile = new File(outputDirPath.toFile(), expectedFileName); in regressionTest()
89 TzS2Ranges expected = TzS2Ranges.load(expectedOuputFilePath.toFile(), storageFormat); in regressionTest()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/
DTzS2PolygonsToTzS2CellUnionsTest.java85 File actualOutputFile = new File(outputDirPath.toFile(), expectedFileName); in regressionTest()
89 TzS2CellUnion expected = TzS2CellUnion.load(expectedOutputFilePath.toFile(), storageFormat); in regressionTest()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/
DCreateTzS2ProtoDataFileTest.java72 File actualOutputFile = outputFilePath.toFile(); in regressionTest()
80 GeotzProtos.TimeZones expected = loadTzS2ProtoDataFile(expectedFilePath.toFile()); in regressionTest()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/
DGeoJsonTzToTzS2PolygonsTest.java84 File actualOutputFile = new File(outputDirPath.toFile(), expectedFileName); in regressionTest()
88 TzS2Polygons expected = TzS2Polygons.load(expectedOutputFilePath.toFile(), storageFormat); in regressionTest()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/
DMergeTzS2RangesTest.java90 File actualFile = actualFilePath.toFile(); in regressionTest()
98 TzS2Ranges expected = TzS2Ranges.load(expectedOutputFilePath.toFile(), storageFormat); in regressionTest()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java662 if (!shouldScanDirectory(dir.toFile())) { in preVisitDirectory()
669 } else if (FileUtils.isDirectoryDirty(FileUtils.getTopLevelNoMedia(dir.toFile()))) { in preVisitDirectory()
674 mPendingCleanDirectories.add(dir.toFile().getPath()); in preVisitDirectory()
676 Log.d(TAG, "Skipping preVisitDirectory " + dir.toFile()); in preVisitDirectory()
678 mExcludeDirs.add(dir.toFile().getPath()); in preVisitDirectory()
682 + dir.toFile()); in preVisitDirectory()
691 if (FileUtils.isDirectoryHidden(dir.toFile())) { in preVisitDirectory()
708 final File realFile = file.toFile(); in visitFile()
882 if (FileUtils.isDirectoryHidden(dir.toFile())) { in postVisitDirectory()
892 if (mPendingCleanDirectories.remove(dir.toFile().getPath())) { in postVisitDirectory()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLogging.java126 persistentDir = sPersistentDir.toFile(); in trimPersistent()
174 if (sPersistentFile != null && sPersistentFile.toFile().length() < PERSISTENT_SIZE) { in resolveCurrentPersistentFileLocked()
DFileUtils.java482 path.toFile().delete(); in deleteContents()
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/
DTemporaryDirectory.java82 return mDirectory.toFile(); in getDirectory()
/packages/modules/GeoTZ/geotz_lookup/src/test/java/com/android/timezone/location/lookup/
DGeoTimeZonesFinderTest.java46 mGeoDataFile = geoDataPath.toFile(); in setUp()
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java67 public static void toFile(String title, CameraMetadata<?> metadata, File file) { in toFile() method in CaptureDataSerializer
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/
DCarWatchdogTestFragment.java111 Files.createTempDirectory(mActivity.getFilesDir().toPath(), "testDir").toFile(); in onCreateView()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java134 mTempSystemCarDir = Files.createTempDirectory("uxr_test").toFile(); in setUp()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java413 CaptureDataSerializer.toFile("Normal Capture", request, new File(debugDataDir, in takePictureNow()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java654 return ParcelFileDescriptor.open(pictureFile.toFile(), modeInt); in openFile()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java6795 playlist.read(playlistPath.toFile());
6845 final String data = path.toFile().getCanonicalPath();
6858 new String[] { path.toFile().getName() }, null)) {
7638 deleteAndInvalidate(path.toFile());