Home
last modified time | relevance | path

Searched refs:getFile (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DSilentModeHandlerUnitTest.java68 mFileHwStateMonitoring.getFile().getPath(), in testSilentModeHwStateMonitoring()
69 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testSilentModeHwStateMonitoring()
72 writeStringToFile(mFileHwStateMonitoring.getFile(), VALUE_SILENT_MODE); in testSilentModeHwStateMonitoring()
76 writeStringToFile(mFileHwStateMonitoring.getFile(), VALUE_NON_SILENT_MODE); in testSilentModeHwStateMonitoring()
84 mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedSilentMode()
85 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_SILENT); in testRebootForForcedSilentMode()
90 writeStringToFile(mFileHwStateMonitoring.getFile(), VALUE_SILENT_MODE); in testRebootForForcedSilentMode()
98 mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedNonSilentMode()
99 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_NON_SILENT); in testRebootForForcedNonSilentMode()
104 writeStringToFile(mFileHwStateMonitoring.getFile(), VALUE_SILENT_MODE); in testRebootForForcedNonSilentMode()
[all …]
DCarPowerManagementServiceUnitTest.java152 mVoiceInteractionManagerService, new AtomicFile(mComponentStateFile.getFile())); in setUp()
182 mVoiceInteractionManagerService, new AtomicFile(mComponentStateFile.getFile())); in setService()
185 mFileHwStateMonitoring.getFile().getPath(), in setService()
186 mFileKernelSilentMode.getFile().getPath(), NORMAL_BOOT); in setService()
DPowerComponentHandlerUnitTest.java72 mVoiceInteractionManagerService, new AtomicFile(mComponentStateFile.getFile())); in setUp()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMmsFileProvider.java47 final File file = getFile(uri.getPath()); in buildRawMmsUri()
55 File getFile(final String path, final String extension) { in getFile() method in MmsFileProvider
56 return getFile(path); in getFile()
59 public static File getFile(final Uri uri) { in getFile() method in MmsFileProvider
60 return getFile(uri.getPath()); in getFile()
63 private static File getFile(final String path) { in getFile() method in MmsFileProvider
DFileProvider.java39 abstract File getFile(final String path, final String extension); in getFile() method in FileProvider
102 final File file = getFile(fileId, getExtensionFromUri(uri)); in delete()
113 final File file = getFile(fileId, getExtensionFromUri(uri)); in openFile()
DMediaScratchFileProvider.java87 File getFile(final String path, final String extension) { in getFile() method in MediaScratchFileProvider
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DUptimeTrackerTest.java68 UptimeTracker uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerFromCleanSlate()
91 UptimeTracker uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerWithHistoricalState()
108 UptimeTracker uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerAcrossHistoricalState()
120 uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerAcrossHistoricalState()
131 UptimeTracker uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerShutdown()
138 uptimeTracker = new UptimeTracker(uptimeFile.getFile(), in testUptimeTrackerShutdown()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DClipStorageTest.java94 File copy = mStorage.getFile(mSlot); in testRead()
107 mStorage.getFile(firstSlot); in testClaimStorageSlot_NoAvailableSlot()
111 mStorage.getFile(slot); in testClaimStorageSlot_NoAvailableSlot()
123 File copy = mStorage.getFile(mSlot); in testReadConcurrently()
124 File copy2 = mStorage.getFile(mSlot); in testReadConcurrently()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsFilePreference.java50 public File getFile() { in getFile() method in DownloadsFilePreference
61 File otherFile = ((DownloadsFilePreference) other).getFile(); in compareTo()
62 File file = getFile(); in compareTo()
DDownloadsDeletionPreferenceGroup.java108 mDeletionType.setFileChecked(p.getFile(), checked); in onPreferenceChange()
122 mDeletionType.setFileChecked(p.getFile(), checked); in onPreferenceChange()
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistenceImpl.java69 File file = getFile(user); in readForUser()
150 File file = getFile(user); in writeForUser()
209 getFile(user).delete(); in deleteForUser()
213 private static File getFile(@NonNull UserHandle user) { in getFile() method in RolesPersistenceImpl
/packages/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceImpl.java71 File file = getFile(user); in readForUser()
177 File file = getFile(user); in writeForUser()
256 getFile(user).delete(); in deleteForUser()
260 private static File getFile(@NonNull UserHandle user) { in getFile() method in RuntimePermissionsPersistenceImpl
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java83 lifetimeFile.getFile(), eolFile.getFile()); in testEMmcWearInformationProvider()
108 lifetimeFile.getFile()); in testUfsWearInformationProvider()
230 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testWearEstimateRecordJson()
269 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testWearHistoryJson()
474 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testUidIoStatEntryJson()
688 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testUidIoStatsDeltaJson()
774 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testLifetimeWriteInfoJson()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPersistedItemArray.java71 AtomicFile file = getFile(context); in write()
126 try (FileInputStream fis = getFile(context).openRead()) { in read()
169 public AtomicFile getFile(Context context) { in getFile() method in PersistedItemArray
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java254 File prodConfig = getFile(CONFIG_FILENAME_PRODUCTION); in loadConfig()
282 private File getFile(String filename) { in getFile() method in CarUxRestrictionsManagerService
303 Path stagedConfig = getFile(CONFIG_FILENAME_STAGED).toPath(); in promoteStagedConfig()
312 Path prod = getFile(CONFIG_FILENAME_PRODUCTION).toPath(); in promoteStagedConfig()
460 File stagedConfig = getFile(CONFIG_FILENAME_STAGED); in getStagedConfigs()
518 File file = getFile(filename); in persistConfig()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java123 mFile = storage.getFile(tag); in JumboUrisSupplier()
137 mFile = clipStore.getFile(tag); in JumboUrisSupplier()
DClipStore.java36 File getFile(int tag) throws IOException; in getFile() method
DClipStorage.java156 public synchronized File getFile(int slot) throws IOException { in getFile() method in ClipStorage
/packages/apps/Camera2/src/com/android/camera/session/
DTemporarySessionFile.java81 public synchronized File getFile() { in getFile() method in TemporarySessionFile
DCaptureSessionImpl.java361 jpegDataTemp = FileUtil.readFileToByteArray(mTempOutputFile.getFile()); in finish()
404 path = mTempOutputFile.getFile(); in updatePreview()
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/
DTemporaryFile.java68 public File getFile() { in getFile() method in TemporaryFile
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DFileUtils.java125 static File getFile(Context context, String timestamp, String name) { in getFile() method in FileUtils
DBugReportService.java390 File outputFile = FileUtils.getFile(this, mMetaBugReport.getTimestamp(), OUTPUT_ZIP_FILE); in saveBugReport()
391 File extraOutputFile = FileUtils.getFile(this, mMetaBugReport.getTimestamp(), in saveBugReport()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java1023 FileOutputStream outputStream = new FileOutputStream(dumpsysFile.getFile()); in testDumpMetrics_VendorProperty()
1027 FileInputStream inputStream = new FileInputStream(dumpsysFile.getFile()); in testDumpMetrics_VendorProperty()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java176 final File tempFile = MmsFileProvider.getFile(contentUri); in writePduToTempFile()

12