/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | LinkProbeManagerTest.java | 63 @Mock private Clock mClock; field in LinkProbeManagerTest 86 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in setUp() 100 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in initLinkProbeManager() 113 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked() 130 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked() 157 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed() 173 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed() 200 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredTooFrequently() 215 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded() 223 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded() [all …]
|
D | WifiDataStallTest.java | 53 @Mock Clock mClock; field in WifiDataStallTest 93 mClientModeImplLooper, mClock); in setUp() 128 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallTxFailure() 133 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallTxFailure() 145 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallWhenTxFailureIsNotConsecutive() 150 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallWhenTxFailureIsNotConsecutive() 166 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallRxFailure() 171 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallRxFailure() 185 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallBothTxRxFailure() 190 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallBothTxRxFailure() [all …]
|
D | WifiNetworkSelectorTest.java | 87 mWifiConfigManager, mClock, in setUp() 93 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 202 @Mock private Clock mClock; field in WifiNetworkSelectorTest 280 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults() 310 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold() 341 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected() 347 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime() in verifyMinimumTimeGapWhenConnected() 380 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected() 388 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime() in verifyNoMinimumTimeGapWhenDisconnected() 422 freqs, caps, levels, securities, mWifiConfigManager, mClock); in openNetworkIsNotSufficient() [all …]
|
D | VelocityBasedConnectedScoreTest.java | 55 FakeClock mClock; field in VelocityBasedConnectedScoreTest 91 mClock = new FakeClock(); in setUp() 93 new ScoringParams(mContext), mClock); in setUp() 122 mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving() 128 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving() 148 mClock.getWallClockMillis());
|
D | SavedNetworkEvaluatorTest.java | 63 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 80 mClock, mLocalLog, mWifiConnectivityHelper, mSubscriptionManager); in setUp() 96 @Mock private Clock mClock; field in SavedNetworkEvaluatorTest 169 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreNetworksIfUseExternalScores() 196 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreEphemeralNetworks() 225 freqs, caps, levels, securities, mWifiConfigManager, mClock); in setCandidateScanResultsForAllSavedNetworks() 264 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi2GNetwork() 292 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi5GNetwork() 319 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseSecureNetworkOverOpenNetwork() 346 freqs, caps, levels, securities, mWifiConfigManager, mClock); in choose5GNetworkOver2GNetwork() [all …]
|
D | SelfRecoveryTest.java | 35 @Mock Clock mClock; field in SelfRecoveryTest 40 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in setUp() 53 when(mClock.getElapsedSinceBootMillis()) in testValidTriggerReasonsSendMessageToWifiController() 89 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_typicalUse() 135 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse() 141 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
|
D | ScoredNetworkEvaluatorTest.java | 71 @Mock private Clock mClock; field in ScoredNetworkEvaluatorTest 110 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 129 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled() 153 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList() 171 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored() 196 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored() 243 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults() 266 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException() 290 ssids, bssids, freqs, caps, levels, mClock); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 335 ssids, bssids, freqs, caps, levels, mClock); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TimedQuotaManagerTest.java | 42 @Mock private Clock mClock; field in TimedQuotaManagerTest 47 when(mClock.getElapsedSinceBootMillis()).thenReturn(100000000L); in setUp() 57 TimedQuotaManager qm = new TimedQuotaManager(mClock, 10, DAY_MILLIS); in exhaustQuota_newDay_exhaustQuotaAgain() 66 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_newDay_exhaustQuotaAgain() 67 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS + 1000); in exhaustQuota_newDay_exhaustQuotaAgain() 84 TimedQuotaManager qm = new TimedQuotaManager(mClock, 10, DAY_MILLIS); in exhaustQuota_sameDay_stillExhausted() 93 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_sameDay_stillExhausted() 94 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS - 1000); in exhaustQuota_sameDay_stillExhausted()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 90 @Mock Clock mClock; field in ANQPRequestManagerTest 99 mManager = new ANQPRequestManager(mHandler, mClock); in setUp() 165 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsWithPendingRequest() 171 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsWithPendingRequest() 178 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsWithPendingRequest() 194 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure() 200 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure() 215 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSucceeded() 224 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestSucceeded() 240 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestFailed() [all …]
|
D | AnqpCacheTest.java | 45 @Mock Clock mClock; field in AnqpCacheTest 55 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp() 56 mCache = new AnqpCache(mClock); in setUp() 92 when(mClock.getElapsedSinceBootMillis()) in sweepRemoveExpiredEntry() 98 when(mClock.getElapsedSinceBootMillis()).thenReturn(ANQPData.DATA_LIFETIME_MILLISECONDS); in sweepRemoveExpiredEntry()
|
D | ANQPDataTest.java | 44 @Mock Clock mClock; field in ANQPDataTest 53 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp() 63 ANQPData data = new ANQPData(mClock, null); in createWithNullElements() 75 ANQPData data = new ANQPData(mClock, null); in verifyExpiration()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | LinkProbeManager.java | 69 private final Clock mClock; field in LinkProbeManager 109 mClock = clock; in LinkProbeManager() 168 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() 182 mLastScreenOnTimestampMs = mClock.getElapsedSinceBootMillis(); in resetOnScreenTurnedOn() 197 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats() 272 mLastLinkProbeTimestampMs = mClock.getElapsedSinceBootMillis(); in updateConnectionStats() 279 Experiment experiment = new Experiment(mClock, mWifiMetrics, in initExperiments() 290 private final Clock mClock; field in LinkProbeManager.Experiment 307 mClock = clock; in Experiment() 330 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() [all …]
|
D | WifiInjector.java | 112 private final Clock mClock = new Clock(); field in WifiInjector 179 mWifiScoreCard = new WifiScoreCard(mClock, in WifiInjector() 203 WifiAwareMetrics awareMetrics = new WifiAwareMetrics(mClock); in WifiInjector() 204 RttMetrics rttMetrics = new RttMetrics(mClock); in WifiInjector() 205 mWifiP2pMetrics = new WifiP2pMetrics(mClock); in WifiInjector() 208 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, clientModeImplLooper, in WifiInjector() 213 mHalDeviceManager = new HalDeviceManager(mClock, clientModeImplLooper); in WifiInjector() 222 clientModeImplLooper, mClock); in WifiInjector() 249 mContext, clientModeImplLooper, mClock, mWifiMetrics, in WifiInjector() 254 mWifiConfigManager = new WifiConfigManager(mContext, mClock, in WifiInjector() [all …]
|
D | SelfRecovery.java | 51 private final Clock mClock; field in SelfRecovery 56 mClock = clock; in SelfRecovery() 94 mPastRestartTimes.add(mClock.getElapsedSinceBootMillis()); in trigger() 104 long now = mClock.getElapsedSinceBootMillis(); in trimPastRestartTimes()
|
D | ConnectedScore.java | 34 final Clock mClock; field in ConnectedScore 44 mClock = clock; in ConnectedScore() 61 return mClock.getWallClockMillis(); in getMillis()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpCache.java | 39 private Clock mClock; field in AnqpCache 44 mClock = clock; in AnqpCache() 46 mLastSweep = mClock.getElapsedSinceBootMillis(); in AnqpCache() 57 ANQPData data = new ANQPData(mClock, anqpElements); in addEntry() 75 long now = mClock.getElapsedSinceBootMillis(); in sweep() 97 out.println("Last sweep " + Utils.toHMS(mClock.getElapsedSinceBootMillis() - mLastSweep) in dump()
|
D | ANQPData.java | 38 private final Clock mClock; field in ANQPData 43 mClock = clock; in ANQPData() 48 mExpiryTime = mClock.getElapsedSinceBootMillis() + DATA_LIFETIME_MILLISECONDS; in ANQPData() 74 long now = mClock.getElapsedSinceBootMillis(); in toString()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMetrics.java | 48 private Clock mClock; field in WifiP2pMetrics 105 mClock = clock; in WifiP2pMetrics() 332 mCurrentConnectionEventStartTime = mClock.getElapsedSinceBootMillis(); in startConnectionEvent() 335 mCurrentConnectionEvent.startTimeMillis = mClock.getWallClockMillis(); in startConnectionEvent() 362 (mClock.getElapsedSinceBootMillis() in endConnectionEvent() 390 mCurrentGroupEventStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent() 392 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent() 399 mCurrentGroupEvent.startTimeMillis = mClock.getWallClockMillis(); in startGroupEvent() 441 (mClock.getElapsedSinceBootMillis() in updateGroupEvent() 447 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in updateGroupEvent() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PendingRemoteAnimationRegistryTest.java | 48 private final OffsettableClock mClock = new OffsettableClock.Stopped(); field in PendingRemoteAnimationRegistryTest 55 mHandler = new TestHandler(null, mClock); in setUp() 80 mClock.fastForward(5000); in testTimeout() 88 mClock.fastForward(2500); in testTimeout_overridenEntry() 91 mClock.fastForward(1000); in testTimeout_overridenEntry()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 33 private final String mClock; field in ClockPreference 43 mClock = context.getString(com.android.internal.R.string.status_bar_clock); in ClockPreference() 65 mClockEnabled = !mBlacklist.contains(mClock); in onTuningChanged() 90 mBlacklist.add(mClock); in persistString() 92 mBlacklist.remove(mClock); in persistString()
|
/frameworks/base/location/java/android/location/ |
D | GpsMeasurementsEvent.java | 55 private final GpsClock mClock; field in GpsMeasurementsEvent 88 mClock = clock; in GpsMeasurementsEvent() 95 return mClock; in getClock() 134 parcel.writeParcelable(mClock, flags); in writeToParcel() 148 builder.append(mClock.toString()); in toString()
|
D | GnssMeasurementsEvent.java | 37 private final GnssClock mClock; field in GnssMeasurementsEvent 113 mClock = clock; in GnssMeasurementsEvent() 122 return mClock; in getClock() 161 parcel.writeParcelable(mClock, flags); in writeToParcel() 174 builder.append(mClock.toString()); in toString()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 57 private final LongSupplier mClock; field in TestHandler 65 mClock = clock; in TestHandler() 75 if (mClock != DEFAULT_CLOCK) { in sendMessageAtTime() 76 uptimeMillis = uptimeMillis - SystemClock.uptimeMillis() + mClock.getAsLong(); in sendMessageAtTime() 86 long now = mClock.getAsLong(); in timeAdvance()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 244 private View mClock; field in KeyguardDisplayManager.KeyguardPresentation 252 int x = mMarginLeft + (int) (Math.random() * (mUsableWidth - mClock.getWidth())); 253 int y = mMarginTop + (int) (Math.random() * (mUsableHeight - mClock.getHeight())); 254 mClock.setTranslationX(x); 255 mClock.setTranslationY(y); 256 mClock.postDelayed(mMoveTextRunnable, MOVE_CLOCK_TIMEOUT); 270 mClock.removeCallbacks(mMoveTextRunnable); in onDetachedFromWindow() 296 mClock = findViewById(R.id.clock); in onCreate() 299 mClock.post(mMoveTextRunnable); in onCreate()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TimedQuotaManager.java | 25 private final Clock mClock; field in TimedQuotaManager 46 mClock = clock; in TimedQuotaManager() 72 return (mClock.getElapsedSinceBootMillis() - mStartTimeMillis) / mPeriodMillis; in getCurrentPeriod()
|