Home
last modified time | relevance | path

Searched refs:mWifiWakeMetrics (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiWakeMetricsTest.java35 private WifiWakeMetrics mWifiWakeMetrics; field in WifiWakeMetricsTest
39 mWifiWakeMetrics = new WifiWakeMetrics(); in setUp()
44 WifiWakeStats wifiWakeStats = mWifiWakeMetrics.buildProto(); in buildsEmptyProto()
54 mWifiWakeMetrics.recordStartEvent(0 /* numNetworks */); in buildsMultiSessionProto_fewerThanMax()
55 mWifiWakeMetrics.recordResetEvent(0 /* numScans */); in buildsMultiSessionProto_fewerThanMax()
57 mWifiWakeMetrics.recordStartEvent(1 /* numNetworks */); in buildsMultiSessionProto_fewerThanMax()
58 mWifiWakeMetrics.recordResetEvent(0 /* numScans */); in buildsMultiSessionProto_fewerThanMax()
60 mWifiWakeMetrics.recordStartEvent(2 /* numNetworks */); in buildsMultiSessionProto_fewerThanMax()
61 mWifiWakeMetrics.recordResetEvent(0 /* numScans */); in buildsMultiSessionProto_fewerThanMax()
63 WifiWakeStats wifiWakeStats = mWifiWakeMetrics.buildProto(); in buildsMultiSessionProto_fewerThanMax()
[all …]
DWakeupControllerTest.java93 @Mock private WifiWakeMetrics mWifiWakeMetrics; field in WakeupControllerTest
182 mWifiWakeMetrics, in initializeWakeupController()
279 verify(mWifiWakeMetrics).recordStartEvent(anyInt()); in startSetsWakeupLock()
289 verify(mWifiWakeMetrics, never()).recordIgnoredStart(); in startDoesNotRecordIgnoredStart()
300 verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startDoesNotSetWakeupLockWhenDisabled()
313 verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startDoesNotSetWakeupLockWhenNoSavedNetworksOrSuggestions()
323 InOrder metricsInOrder = Mockito.inOrder(mWifiWakeMetrics); in startIsIgnoredIfAlreadyActive()
327 metricsInOrder.verify(mWifiWakeMetrics).recordStartEvent(anyInt()); in startIsIgnoredIfAlreadyActive()
331 metricsInOrder.verify(mWifiWakeMetrics).recordIgnoredStart(); in startIsIgnoredIfAlreadyActive()
332 metricsInOrder.verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startIsIgnoredIfAlreadyActive()
[all …]
DWakeupLockTest.java49 @Mock private WifiWakeMetrics mWifiWakeMetrics; field in WakeupLockTest
77 mWakeupLock = new WakeupLock(mWifiConfigManager, mWifiWakeMetrics, mClock); in setUp()
293 verify(mWifiWakeMetrics).recordUnlockEvent( in unlockingShouldRecordEventInMetrics()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWakeupLock.java48 private final WifiWakeMetrics mWifiWakeMetrics; field in WakeupLock
59 mWifiWakeMetrics = wifiWakeMetrics; in WakeupLock()
104 mWifiWakeMetrics.recordInitializeEvent(mNumScans, mLockedNetworks.size()); in maybeSetInitializedByScans()
132 mWifiWakeMetrics.recordInitializeEvent(mNumScans, mLockedNetworks.size()); in maybeSetInitializedByTimeout()
214 mWifiWakeMetrics.recordUnlockEvent(mNumScans); in removeFromLock()
DWakeupController.java67 private final WifiWakeMetrics mWifiWakeMetrics; field in WakeupController
152 mWifiWakeMetrics = wifiWakeMetrics; in WakeupController()
268 mWifiWakeMetrics.recordIgnoredStart(); in start()
299 mWifiWakeMetrics.recordStartEvent(matchInfos.size()); in start()
325 mWifiWakeMetrics.recordResetEvent(mNumScansHandled); in onWifiEnabled()
451 mWifiWakeMetrics.recordWakeupEvent(mNumScansHandled); in enableWifi()
DWifiMetrics.java451 private final WifiWakeMetrics mWifiWakeMetrics = new WifiWakeMetrics(); field in WifiMetrics
4146 mWifiWakeMetrics.dump(pw); in dump()
4854 mWifiLogProto.wifiWakeStats = mWifiWakeMetrics.buildProto(); in consolidateProto()
5221 mWifiWakeMetrics.clear(); in clear()
5549 return mWifiWakeMetrics; in getWakeupMetrics()