Searched refs:mConfigFile (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
D | UpdatableFontDirTest.java | 150 private File mConfigFile; field in UpdatableFontDirTest 173 mConfigFile = new File(mCacheDir, "config.xml"); in setUp() 188 writeConfig(config, mConfigFile); in construct() 191 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct() 214 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct() 237 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_empty() 247 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_missingFsverity() 265 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_missingFsverity() 277 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_fontNameMismatch() 296 mConfigFile, mCurrentTimeSupplier, mConfigSupplier); in construct_fontNameMismatch() [all …]
|
/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | UpdatableFontDir.java | 130 private final AtomicFile mConfigFile; field in UpdatableFontDir 159 mConfigFile = new AtomicFile(configFile); in UpdatableFontDir() 277 mConfigFile.delete(); in loadFontFileMap() 671 try (FileInputStream fis = mConfigFile.openRead()) { in readPersistentConfig() 683 fos = mConfigFile.startWrite(); in writePersistentConfig() 685 mConfigFile.finishWrite(fos); in writePersistentConfig() 688 mConfigFile.failWrite(fos); in writePersistentConfig()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppWarnings.java | 91 private final AtomicFile mConfigFile; field in AppWarnings 120 mConfigFile = new AtomicFile(new File(systemDir, CONFIG_FILE_NAME), "warnings-config"); in AppWarnings() 789 fos = mConfigFile.startWrite(); in writeConfigToFile() 814 mConfigFile.finishWrite(fos); in writeConfigToFile() 818 mConfigFile.failWrite(fos); in writeConfigToFile() 833 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 198 private final AtomicFile mConfigFile; field in BatteryStatsService 451 mConfigFile = new AtomicFile(new File(systemDir, "battery_usage_stats_config")); in BatteryStatsService() 3645 synchronized (mConfigFile) { in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3647 try (InputStream in = mConfigFile.openRead()) { in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3650 Slog.e(TAG, "Cannot load config file " + mConfigFile, e); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3656 out = mConfigFile.startWrite(); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3658 mConfigFile.finishWrite(out); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3660 mConfigFile.failWrite(out); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3661 Slog.e(TAG, "Cannot save config file " + mConfigFile, e); in setLastBatteryUsageStatsBeforeResetAtomPullTimestamp() 3671 synchronized (mConfigFile) { in getLastBatteryUsageStatsBeforeResetAtomPullTimestamp() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 547 public final AtomicFile mConfigFile; field in DeviceIdleController 2591 mConfigFile = new AtomicFile(new File(getSystemDir(), "deviceidle.xml")); in DeviceIdleController() 4464 if (DEBUG) Slog.d(TAG, "Reading config from " + mConfigFile.getBaseFile()); in readConfigFileLocked() 4468 stream = mConfigFile.openRead(); in readConfigFileLocked() 4568 synchronized (mConfigFile) { in handleWriteConfigFile() 4571 stream = mConfigFile.startWrite(); in handleWriteConfigFile() 4573 mConfigFile.finishWrite(stream); in handleWriteConfigFile() 4576 mConfigFile.failWrite(stream); in handleWriteConfigFile()
|