Searched refs:mWifiWakeMetrics (Results 1 – 6 of 6) sorted by relevance
35 private WifiWakeMetrics mWifiWakeMetrics; field in WifiWakeMetricsTest39 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 …]
96 @Mock private WifiWakeMetrics mWifiWakeMetrics; field in WakeupControllerTest195 mWifiWakeMetrics, in initializeWakeupController()317 verify(mWifiWakeMetrics).recordStartEvent(anyInt()); in startSetsWakeupLock()327 verify(mWifiWakeMetrics, never()).recordIgnoredStart(); in startDoesNotRecordIgnoredStart()338 verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startDoesNotSetWakeupLockWhenDisabled()351 verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startDoesNotSetWakeupLockWhenNoSavedNetworksOrSuggestions()361 InOrder metricsInOrder = Mockito.inOrder(mWifiWakeMetrics); in startIsIgnoredIfAlreadyActive()365 metricsInOrder.verify(mWifiWakeMetrics).recordStartEvent(anyInt()); in startIsIgnoredIfAlreadyActive()369 metricsInOrder.verify(mWifiWakeMetrics).recordIgnoredStart(); in startIsIgnoredIfAlreadyActive()370 metricsInOrder.verify(mWifiWakeMetrics, never()).recordStartEvent(anyInt()); in startIsIgnoredIfAlreadyActive()[all …]
50 @Mock private WifiWakeMetrics mWifiWakeMetrics; field in WakeupLockTest78 mWakeupLock = new WakeupLock(mWifiConfigManager, mWifiWakeMetrics, mClock); in setUp()294 verify(mWifiWakeMetrics).recordUnlockEvent( in unlockingShouldRecordEventInMetrics()
48 private final WifiWakeMetrics mWifiWakeMetrics; field in WakeupLock59 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()
71 private final WifiWakeMetrics mWifiWakeMetrics; field in WakeupController162 mWifiWakeMetrics = wifiWakeMetrics; in WakeupController()290 mWifiWakeMetrics.recordIgnoredStart(); in start()328 mWifiWakeMetrics.recordStartEvent(matchInfos.size()); in start()354 mWifiWakeMetrics.recordResetEvent(mNumScansHandled); in onWifiEnabled()480 mWifiWakeMetrics.recordWakeupEvent(mNumScansHandled); in enableWifi()
473 private final WifiWakeMetrics mWifiWakeMetrics = new WifiWakeMetrics(); field in WifiMetrics4899 mWifiWakeMetrics.dump(pw); in dump()5604 mWifiLogProto.wifiWakeStats = mWifiWakeMetrics.buildProto(); in consolidateProto()5969 mWifiWakeMetrics.clear(); in clear()6312 return mWifiWakeMetrics; in getWakeupMetrics()