Searched refs:expectedStats (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | AmbientBrightnessStatsTrackerTest.java | 60 float[] expectedStats; in testBrightnessStatsTrackerOverSingleDay() local 72 expectedStats = getEmptyStatsArray(); in testBrightnessStatsTrackerOverSingleDay() 73 expectedStats[0] = 1; in testBrightnessStatsTrackerOverSingleDay() 74 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverSingleDay() 87 expectedStats = getEmptyStatsArray(); in testBrightnessStatsTrackerOverSingleDay() 88 expectedStats[0] = 2; in testBrightnessStatsTrackerOverSingleDay() 89 expectedStats[1] = 1.5f; in testBrightnessStatsTrackerOverSingleDay() 90 expectedStats[11] = 2.5f; in testBrightnessStatsTrackerOverSingleDay() 91 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverSingleDay() 98 float[] expectedStats; in testBrightnessStatsTrackerOverMultipleDays() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/ |
D | CountQuotaTrackerTest.java | 319 ExecutionStats expectedStats = new ExecutionStats(); in testUpdateExecutionStatsLocked_NoTimer() local 322 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer() 323 inputStats.countLimit = expectedStats.countLimit = 3; in testUpdateExecutionStatsLocked_NoTimer() 325 expectedStats.expirationTimeElapsed = now + 24 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer() 328 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer() 332 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer() 334 expectedStats.expirationTimeElapsed = now; in testUpdateExecutionStatsLocked_NoTimer() 335 expectedStats.countInWindow = 1; in testUpdateExecutionStatsLocked_NoTimer() 337 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer() 339 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 556 ExecutionStats expectedStats = new ExecutionStats(); in testOnAppRemovedLocked() local 557 expectedStats.expirationTimeElapsed = now + 24 * HOUR_IN_MILLIS; in testOnAppRemovedLocked() 558 expectedStats.allowedTimePerPeriodMs = 10 * MINUTE_IN_MILLIS; in testOnAppRemovedLocked() 559 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnAppRemovedLocked() 560 expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_RARE; in testOnAppRemovedLocked() 561 expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_RARE; in testOnAppRemovedLocked() 571 assertEquals(expectedStats, in testOnAppRemovedLocked() 574 assertNotEquals(expectedStats, in testOnAppRemovedLocked() 617 ExecutionStats expectedStats = new ExecutionStats(); in testOnUserRemovedLocked() local 618 expectedStats.allowedTimePerPeriodMs = 10 * MINUTE_IN_MILLIS; in testOnUserRemovedLocked() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorageTest.java | 5714 @Nullable ImsRegistrationFeatureTagStats expectedStats, in assertHasStatsCountTime() argument 5720 if (stats != null && expectedStats != null) { in assertHasStatsCountTime() 5721 if (stats.carrierId == expectedStats.carrierId in assertHasStatsCountTime() 5722 && stats.slotId == expectedStats.slotId in assertHasStatsCountTime() 5723 && stats.featureTagName == expectedStats.featureTagName in assertHasStatsCountTime() 5724 && stats.registrationTech == expectedStats.registrationTech) { in assertHasStatsCountTime() 5736 @Nullable RcsClientProvisioningStats expectedStats, int expectedCount) { in assertHasStatsAndCount() argument 5740 if (stats.carrierId == expectedStats.carrierId in assertHasStatsAndCount() 5741 && stats.slotId == expectedStats.slotId in assertHasStatsAndCount() 5742 && stats.event == expectedStats.event) { in assertHasStatsAndCount() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTrackerTest.java | 2765 NetworkStats expectedStats = new NetworkStats(0L, 0); in assertVtDataUsageUpdated() local 2768 expectedStats = expectedStats.addEntry( in assertVtDataUsageUpdated() 2773 assertNetworkStatsEquals(expectedStats, ifaceStatsCaptor.getValue()); in assertVtDataUsageUpdated() 2774 assertNetworkStatsEquals(expectedStats, uidStatsCaptor.getValue()); in assertVtDataUsageUpdated()
|