Home
last modified time | relevance | path

Searched refs:APP_UID1 (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBluetoothPowerStatsProcessorTest.java71 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in BluetoothPowerStatsProcessorTest
177 mockUidTraffic(APP_UID1, 100, 200), in powerProfileModel_mostlyDataTransfer()
180 mUidScanTimes.put(APP_UID1, 100); in powerProfileModel_mostlyDataTransfer()
187 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_mostlyDataTransfer()
188 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_mostlyDataTransfer()
192 mockUidTraffic(APP_UID1, 1100, 2200), in powerProfileModel_mostlyDataTransfer()
196 mUidScanTimes.put(APP_UID1, 200); in powerProfileModel_mostlyDataTransfer()
233 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_mostlyDataTransfer()
238 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_mostlyDataTransfer()
243 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_mostlyDataTransfer()
[all …]
DCpuPowerCalculatorTest.java66 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in CpuPowerCalculatorTest
137 callback.onUidCpuTime(APP_UID1, 1000L); in testTimerBasedModel()
150 callback.onUidCpuTime(APP_UID1, new long[]{1111000, 2222000}); in testTimerBasedModel()
158 callback.onUidCpuTime(APP_UID1, 2111L); in testTimerBasedModel()
166 callback.onUidCpuTime(APP_UID1, new long[]{1111, 2222}); in testTimerBasedModel()
174 callback.onUidCpuTime(APP_UID1, new long[]{1100, 11, 2200, 22}); in testTimerBasedModel()
181 mStatsRule.getUidStats(APP_UID1).getProcessStatsLocked("foo").addCpuTimeLocked(4321, 1234); in testTimerBasedModel()
182 mStatsRule.getUidStats(APP_UID1).getProcessStatsLocked("bar").addCpuTimeLocked(5432, 2345); in testTimerBasedModel()
190 UidBatteryConsumer uidConsumer1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testTimerBasedModel()
238 callback.onUidCpuTime(APP_UID1, new long[]{1111000, 2222000}); in testMeasuredEnergyBasedModel()
[all …]
DBinaryStatePowerStatsProcessorTest.java54 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in BinaryStatePowerStatsProcessorTest
84 processor.noteStateChange(stats, buildHistoryItem(0, true, APP_UID1)); in powerProfileModel()
88 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel()
89 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, 5000); in powerProfileModel()
91 processor.noteStateChange(stats, buildHistoryItem(6000, false, APP_UID1)); in powerProfileModel()
116 stats.getUidStats(uidStats, APP_UID1, in powerProfileModel()
121 stats.getUidStats(uidStats, APP_UID1, in powerProfileModel()
126 stats.getUidStats(uidStats, APP_UID1, in powerProfileModel()
165 processor.noteStateChange(stats, buildHistoryItem(0, true, APP_UID1)); in energyConsumerModel()
169 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in energyConsumerModel()
[all …]
DWifiPowerStatsProcessorTest.java74 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in WifiPowerStatsProcessorTest
215 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_powerController()
216 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_powerController()
221 mockNetworkStatsEntry("wifi", APP_UID1, 0, 0, in powerProfileModel_powerController()
227 mockWifiScanTimes(APP_UID1, 300, 400); in powerProfileModel_powerController()
270 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_powerController()
275 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_powerController()
280 aggregatedStats.getUidStats(uidStats, APP_UID1, in powerProfileModel_powerController()
331 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in consumedEnergyModel_powerController()
332 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in consumedEnergyModel_powerController()
[all …]
DPowerStatsExporterTest.java57 private static final int APP_UID1 = 42; field in PowerStatsExporterTest
133 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange()
135 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange()
137 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange()
161 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_subRange()
163 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_subRange()
165 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_subRange()
189 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in combinedProcessStates()
194 .filter(us -> us.getUid() == APP_UID1).findFirst().orElse(null); in combinedProcessStates()
209 powerStats.uidStats.put(APP_UID1, uidStats1); in recordBatteryHistory()
[all …]
DSystemServicePowerCalculatorTest.java69 private static final int APP_UID1 = 100; field in SystemServicePowerCalculatorTest
131 assertThat(mStatsRule.getUidBatteryConsumer(APP_UID1) in testPowerProfileBasedModel()
165 assertThat(mStatsRule.getUidBatteryConsumer(APP_UID1) in testMeasuredEnergyBasedModel()
195 callback.onUidCpuTime(APP_UID1, 1000L); in prepareBatteryStats()
208 callback.onUidCpuTime(APP_UID1, new long[]{1_000_000, 2_000_000}); in prepareBatteryStats()
217 callback.onUidCpuTime(APP_UID1, 2111L); in prepareBatteryStats()
226 callback.onUidCpuTime(APP_UID1, new long[]{1111, 2222}); in prepareBatteryStats()
237 callback.onUidCpuTime(APP_UID1, new long[]{1100, 11, 2200, 22}); in prepareBatteryStats()
254 BinderCallsStats.CallStat stat1 = new BinderCallsStats.CallStat(APP_UID1, in prepareBatteryStats()
261 mMockBatteryStats.noteBinderCallStats(APP_UID1, 100, callStats); in prepareBatteryStats()
DUserPowerCalculatorTest.java48 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in UserPowerCalculatorTest
66 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers()
68 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers()
90 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser()
92 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser()
106 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID1))).isNull(); in testSpecificUser()
112 prepareUidBatteryConsumer(USER1, APP_UID1, 1000, 2000, 3000, 4000); in prepareUidBatteryConsumers()
DScreenPowerCalculatorTest.java48 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; field in ScreenPowerCalculatorTest
67 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_TOP, true, in testMeasuredEnergyBasedModel()
73 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_CACHED_EMPTY, false, in testMeasuredEnergyBasedModel()
97 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testMeasuredEnergyBasedModel()
156 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_TOP, true, 0, 0); in testMeasuredEnergyBasedModel_multiDisplay()
162 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_CACHED_EMPTY, false, in testMeasuredEnergyBasedModel_multiDisplay()
205 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testMeasuredEnergyBasedModel_multiDisplay()
245 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_TOP, true, in testPowerProfileBasedModel()
251 setProcState(APP_UID1, ActivityManager.PROCESS_STATE_CACHED_EMPTY, false, in testPowerProfileBasedModel()
268 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testPowerProfileBasedModel()
[all …]
DBluetoothPowerStatsCollectorTest.java54 private static final int APP_UID1 = 42; field in BluetoothPowerStatsCollectorTest
182 mBatteryStats.noteUidProcessStateLocked(APP_UID1, ActivityManager.PROCESS_STATE_TOP, in triggering()
202 long[] actual1 = powerStats.uidStats.get(APP_UID1); in collectStats()
239 mockUidTraffic(APP_UID1, 100, 200), in collectPowerStats()
243 mUidScanTimes.put(APP_UID1, 100); in collectPowerStats()
252 mockUidTraffic(APP_UID1, 1100, 2200), in collectPowerStats()
257 mUidScanTimes.put(APP_UID1, 200); in collectPowerStats()
DWifiPowerStatsCollectorTest.java63 private static final int APP_UID1 = 42; field in WifiPowerStatsCollectorTest
223 mBatteryStats.noteWifiRunningLocked(new WorkSource(APP_UID1), mClock.realtime, in triggering()
230 mBatteryStats.noteWifiStoppedLocked(new WorkSource(APP_UID1), mClock.realtime, in triggering()
281 long[] actual1 = powerStats.uidStats.get(APP_UID1); in verifyUidStats()
337 mockNetworkStatsEntry(APP_UID1, 4321, 321, 1234, 23); in collectPowerStats()
341 mockWifiScanTimes(APP_UID1, 1000, 2000); in collectPowerStats()
356 mockNetworkStatsEntry(APP_UID1, 5321, 421, 3234, 223); in collectPowerStats()
360 mockWifiScanTimes(APP_UID1, 1234, 2345); in collectPowerStats()
DMobileRadioPowerStatsCollectorTest.java70 private static final int APP_UID1 = 42; field in MobileRadioPowerStatsCollectorTest
215 DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH, 0, APP_UID1, mClock.realtime, in triggering()
220 0, APP_UID1, mClock.realtime, mClock.uptime); in triggering()
227 DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH, 0, APP_UID1, mClock.realtime, in triggering()
232 0, APP_UID1, mClock.realtime, mClock.uptime); in triggering()
276 long[] actual1 = powerStats.uidStats.get(APP_UID1); in collectStats()
319 long[] actual1 = powerStats.uidStats.get(APP_UID1); in collectStats_noPerNetworkTypeData()
445 mockNetworkStatsEntry(APP_UID1, rxBytes1, rxPackets1, txBytes1, txPackets1), in mockNetworkStats()
453 .addEntry(new NetworkStats.Entry("mobile", APP_UID1, 0, 0, in mockNetworkStats()
DBatteryUsageStatsTest.java73 private static final int APP_UID1 = 271; field in BatteryUsageStatsTest
201 if (uidBatteryConsumer.getUid() == APP_UID1) { in testAdd()
278 addUidBatteryConsumer(builder, batteryStats, APP_UID1, "foo", in buildBatteryUsageStats1()
321 addUidBatteryConsumer(builder, batteryStats, APP_UID1, null, in buildBatteryUsageStats2()
457 if (uidBatteryConsumer.getUid() == APP_UID1) { in assertBatteryUsageStats1()