Home
last modified time | relevance | path

Searched refs:mConfigFile (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java140 private File mConfigFile; field in UpdatableFontDirTest
163 mConfigFile = new File(mCacheDir, "config.xml"); in setUp()
178 writeConfig(config, mConfigFile); in construct()
181 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct()
204 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct()
226 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_empty()
236 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_missingFsverity()
254 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_missingFsverity()
266 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_fontNameMismatch()
285 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_fontNameMismatch()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryUsageStatsStore.java75 private final AtomicFile mConfigFile; field in BatteryUsageStatsStore
92 mConfigFile = new AtomicFile(new File(mStoreDir, CONFIG_FILENAME)); in BatteryUsageStatsStore()
195 try (InputStream in = mConfigFile.openRead()) { in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
198 Slog.e(TAG, "Cannot load config file " + mConfigFile, e); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
204 out = mConfigFile.startWrite(); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
206 mConfigFile.finishWrite(out); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
208 mConfigFile.failWrite(out); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
209 Slog.e(TAG, "Cannot save config file " + mConfigFile, e); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
223 try (InputStream in = mConfigFile.openRead()) { in getLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
226 Slog.e(TAG, "Cannot load config file " + mConfigFile, e); in getLastBatteryUsageStatsBeforeResetAtomPullTimestamp()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWarnings.java61 private final AtomicFile mConfigFile; field in AppWarnings
93 mConfigFile = new AtomicFile(new File(systemDir, CONFIG_FILE_NAME), "warnings-config"); in AppWarnings()
476 fos = mConfigFile.startWrite(); in writeConfigToFileAmsThread()
498 mConfigFile.finishWrite(fos); in writeConfigToFileAmsThread()
502 mConfigFile.failWrite(fos); in writeConfigToFileAmsThread()
517 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DUpdatableFontDir.java126 private final AtomicFile mConfigFile; field in UpdatableFontDir
155 mConfigFile = new AtomicFile(configFile); in UpdatableFontDir()
566 try (FileInputStream fis = mConfigFile.openRead()) { in readPersistentConfig()
578 fos = mConfigFile.startWrite(); in writePersistentConfig()
580 mConfigFile.finishWrite(fos); in writePersistentConfig()
583 mConfigFile.failWrite(fos); in writePersistentConfig()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java479 public final AtomicFile mConfigFile; field in DeviceIdleController
2262 mConfigFile = new AtomicFile(new File(getSystemDir(), "deviceidle.xml")); in DeviceIdleController()
4120 if (DEBUG) Slog.d(TAG, "Reading config from " + mConfigFile.getBaseFile()); in readConfigFileLocked()
4124 stream = mConfigFile.openRead(); in readConfigFileLocked()
4223 synchronized (mConfigFile) { in handleWriteConfigFile()
4226 stream = mConfigFile.startWrite(); in handleWriteConfigFile()
4228 mConfigFile.finishWrite(stream); in handleWriteConfigFile()
4231 mConfigFile.failWrite(stream); in handleWriteConfigFile()