Searched refs:mExternalStatsSync (Results 1 – 2 of 2) sorted by relevance
55 private DummyExternalStatsSync mExternalStatsSync = new DummyExternalStatsSync(); field in MockBatteryStatsImpl91 setExternalStatsSyncLocked(mExternalStatsSync); in MockBatteryStatsImpl()269 final int flags = mExternalStatsSync.flags; in getAndClearExternalStatsSyncFlags()270 mExternalStatsSync.flags = 0; in getAndClearExternalStatsSyncFlags()275 mExternalStatsSync = externalStatsSync; in setDummyExternalStatsSync()276 setExternalStatsSyncLocked(mExternalStatsSync); in setDummyExternalStatsSync()
57 private final MockExternalStatsSync mExternalStatsSync = new MockExternalStatsSync(); field in BatteryStatsHistoryIteratorTest64 mBatteryStats.setDummyExternalStatsSync(mExternalStatsSync); in setup()237 mExternalStatsSync.updateCpuStats(100, 1_100_000, 1_100_000); in cpuSuspendHistoryEvents()244 mExternalStatsSync.updateCpuStats(200, 5_100_000, 2_100_000); in cpuSuspendHistoryEvents()249 assertThat(mExternalStatsSync.isSyncScheduled()).isFalse(); in cpuSuspendHistoryEvents()256 mExternalStatsSync.updateCpuStats(300, 7_100_000, 4_100_000); in cpuSuspendHistoryEvents()337 assertThat(mExternalStatsSync.mSyncScheduled).isTrue(); in updateCpuStats()342 mExternalStatsSync.mSyncScheduled = false; in updateCpuStats()