Home
last modified time | relevance | path

Searched refs:mClock (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPData.java41 private final Clock mClock; field in ANQPData
46 mClock = clock; in ANQPData()
49 mCtime = mClock.currentTimeMillis(); in ANQPData()
63 mClock = clock; in ANQPData()
66 mCtime = mClock.currentTimeMillis(); in ANQPData()
103 return expired(mClock.currentTimeMillis()); in expired()
123 mExpiry > mClock.currentTimeMillis(); in isValid()
139 long now = mClock.currentTimeMillis(); in toString()
DAnqpCache.java21 private Clock mClock; field in AnqpCache
26 mClock = clock; in AnqpCache()
28 mLastSweep = mClock.currentTimeMillis(); in AnqpCache()
130 mANQPCache.put(key, new ANQPData(mClock, network, data)); in initiate()
156 data = new ANQPData(mClock, network, anqpElements); in update()
175 long now = mClock.currentTimeMillis(); in clear()
200 out.println("Last sweep " + Utils.toHMS(mClock.currentTimeMillis() - mLastSweep) + " ago."); in dump()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardDisplayManager.java129 private View mClock; field in KeyguardDisplayManager.KeyguardPresentation
137 int x = mMarginLeft + (int) (Math.random() * (mUsableWidth - mClock.getWidth()));
138 int y = mMarginTop + (int) (Math.random() * (mUsableHeight - mClock.getHeight()));
139 mClock.setTranslationX(x);
140 mClock.setTranslationY(y);
141 mClock.postDelayed(mMoveTextRunnable, MOVE_CLOCK_TIMEOUT);
152 mClock.removeCallbacks(mMoveTextRunnable); in onDetachedFromWindow()
167 mClock = findViewById(R.id.clock); in onCreate()
170 mClock.post(mMoveTextRunnable); in onCreate()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java82 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
104 private Clock mClock = mock(Clock.class); field in WifiConnectivityManagerTest
257 when(wifiInjector.getClock()).thenReturn(mClock); in mockWifiInjector()
385 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
393 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
424 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff()
432 when(mClock.elapsedRealtime()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff()
464 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
475 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
579 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
[all …]
DAnqpCacheTest.java116 when(mClock.currentTimeMillis()).thenReturn(mCurrentTimeMillis); in advanceTimeAndTrimCache()
125 @Mock Clock mClock; field in AnqpCacheTest
134 AnqpCache cache = mCache = new AnqpCache(mClock); in basicAddQueryAndExpiry()
DWifiQualifiedNetworkSelectorTest.java83 mContext, mWifiInfo, mClock); in setUp()
87 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
128 private Clock mClock = mock(Clock.class); field in WifiQualifiedNetworkSelectorTest
137 long timeStamp = mClock.elapsedRealtime(); in getScanDetails()
919 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() in networkChooseWithOneBssidDisableExpire()
1185 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSCurrentNetworkQualified()
1228 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSLinkBouncing()
1268 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToBandMismatch()
1312 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToOpenNetwork()
1363 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToEphemeral()
[all …]
DWifiMetricsTest.java50 @Mock Clock mClock; field in WifiMetricsTest
56 when(mClock.elapsedRealtime()).thenReturn((long) 0); in setUp()
57 mWifiMetrics = new WifiMetrics(mClock); in setUp()
95 when(mClock.elapsedRealtime()).thenReturn(TEST_RECORD_DURATION_MILLIS); in dumpProtoAndDeserialize()
119 when(mClock.elapsedRealtime()).thenReturn(TEST_RECORD_DURATION_MILLIS); in cleanDumpProtoAndDeserialize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java30 private final String mClock; field in ClockPreference
40 mClock = context.getString(com.android.internal.R.string.status_bar_clock); in ClockPreference()
62 mClockEnabled = !mBlacklist.contains(mClock); in onTuningChanged()
86 mBlacklist.add(mClock); in persistString()
88 mBlacklist.remove(mClock); in persistString()
/frameworks/base/location/java/android/location/
DGpsMeasurementsEvent.java55 private final GpsClock mClock; field in GpsMeasurementsEvent
88 mClock = clock; in GpsMeasurementsEvent()
95 return mClock; in getClock()
134 parcel.writeParcelable(mClock, flags); in writeToParcel()
147 builder.append(mClock.toString()); in toString()
DGnssMeasurementsEvent.java44 private final GnssClock mClock; field in GnssMeasurementsEvent
107 mClock = clock; in GnssMeasurementsEvent()
116 return mClock; in getClock()
155 parcel.writeParcelable(mClock, flags); in writeToParcel()
168 builder.append(mClock.toString()); in toString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java35 private final Clock mClock = new Clock(); field in WifiInjector
36 private final WifiMetrics mWifiMetrics = new WifiMetrics(mClock);
52 return mClock; in getClock()
DWifiConnectivityManager.java134 private final Clock mClock; field in WifiConnectivityManager
537 mClock = wifiInjector.getClock(); in WifiConnectivityManager()
635 Long elapsedTimeMillis = mClock.elapsedRealtime(); in connectToNetwork()
725 long currentTimeStamp = mClock.elapsedRealtime(); in startPeriodicSingleScan()
943 mClock.elapsedRealtime() + WATCHDOG_INTERVAL_MS, in scheduleWatchdogTimer()
951 mClock.elapsedRealtime() + intervalMs, in schedulePeriodicScanTimer()
972 mClock.elapsedRealtime() + RESTART_SCAN_DELAY_MS, in scheduleDelayedSingleScan()
982 mClock.elapsedRealtime() + msFromNow, in scheduleDelayedConnectivityScan()
DWifiMetrics.java55 private Clock mClock; field in WifiMetrics
321 mClock = clock; in WifiMetrics()
325 mRecordStartTimeSec = mClock.elapsedRealtime() / 1000; in WifiMetrics()
368 mClock.currentTimeMillis(); in startConnectionEvent()
373 mCurrentConnectionEvent.mRealStartTime = mClock.elapsedRealtime(); in startConnectionEvent()
426 mCurrentConnectionEvent.mRealEndTime = mClock.elapsedRealtime(); in endConnectionEvent()
1053 + ((mClock.elapsedRealtime() / 1000) - mRecordStartTimeSec)); in dump()
1155 mWifiLogProto.recordDurationSec = (int) ((mClock.elapsedRealtime() / 1000) in consolidateProto()
1206 mRecordStartTimeSec = mClock.elapsedRealtime() / 1000; in clear()
DWifiQualifiedNetworkSelector.java65 private Clock mClock; field in WifiQualifiedNetworkSelector
188 mClock = clock; in WifiQualifiedNetworkSelector()
386 long gap = mClock.elapsedRealtime() - mLastQualifiedNetworkSelectionTimeStamp; in needQualifiedNetworkSelection()
444 long timeDifference = mClock.elapsedRealtime() in calculateBssidScore()
570 long currentTime = mClock.currentTimeMillis(); in userSelectNetwork()
633 status.mBlacklistedTimeStamp = mClock.elapsedRealtime(); in enableBssidForQualityNetworkSelection()
653 if (mClock.elapsedRealtime() - status.mBlacklistedTimeStamp in updateBssidBlacklist()
737 + ((mClock.elapsedRealtime() - mWifiConfigManager.getLastSelectedTimeStamp()) in selectQualifiedNetwork()
1021 mLastQualifiedNetworkSelectionTimeStamp = mClock.elapsedRealtime(); in selectQualifiedNetwork()
DWifiConfigManager.java283 private Clock mClock; field in WifiConfigManager
345 mClock = clock; in WifiConfigManager()
400 mAnqpCache = new AnqpCache(mClock); in WifiConfigManager()
837 config.lastRoamingFailure = mClock.currentTimeMillis(); in noteRoamingFailure()
1447 (mClock.elapsedRealtime() - networkStatus.getDisableTime()) / 1000 / 60; in tryEnableQualifiedNetwork()
1532 networkStatus.setDisableTime(mClock.elapsedRealtime()); in updateNetworkStatus()
1891 mLastSelectedTimeStamp = mClock.elapsedRealtime(); in setAndEnableLastSelectedConfiguration()
1904 mLastSelectedTimeStamp = mClock.elapsedRealtime(); in setLatestUserSelectedConfiguration()
2086 c.setTimeInMillis(mClock.currentTimeMillis()); in addOrUpdateNetworkNative()
2429 long now_ms = mClock.currentTimeMillis(); in makeChannelList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarTransitions.java35 private View mLeftSide, mStatusIcons, mSignalCluster, mBattery, mClock; field in PhoneStatusBarTransitions
50 mClock = mView.findViewById(R.id.clock); in init()
95 animateTransitionTo(mClock, newAlphaBC) in applyMode()
107 mClock.setAlpha(newAlphaBC); in applyMode()
DStatusBarIconController.java80 private TextView mClock; field in StatusBarIconController
138 mClock = (TextView) statusBar.findViewById(R.id.clock); in StatusBarIconController()
332 mClock.setVisibility(visible ? View.VISIBLE : View.GONE); in setClockVisibility()
529 mClock.setTextColor(getTint(mTintArea, mClock, mIconTint)); in applyIconTint()
599 FontSizeUtils.updateFontSize(mClock, R.dimen.status_bar_clock_size); in updateClock()
600 mClock.setPaddingRelative( in updateClock()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DSupplicantWifiScannerImpl.java69 private final Clock mClock; field in SupplicantWifiScannerImpl
141 mClock = clock; in SupplicantWifiScannerImpl()
142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in SupplicantWifiScannerImpl()
349 new LastScanSettings(mClock.elapsedRealtime()); in processPendingScans()
405 mClock.elapsedRealtime() + mBackgroundScanSettings.base_period_ms, in processPendingScans()
451 mClock.elapsedRealtime() + SCAN_TIMEOUT_MS, in processPendingScans()
1033 private final Clock mClock; field in SupplicantWifiScannerImpl.HwPnoDebouncer
1055 mClock = clock; in HwPnoDebouncer()
1067 mLastPnoChangeTimeStamp = mClock.elapsedRealtime(); in updatePnoState()
1100 long timeDifference = mClock.elapsedRealtime() - mLastPnoChangeTimeStamp; in setPnoState()
[all …]
DWifiScanningServiceImpl.java270 private final Clock mClock; field in WifiScanningServiceImpl
282 mClock = wifiInjector.getClock(); in WifiScanningServiceImpl()
955 mScannerImpl = mScannerImplFactory.create(mContext, mLooper, mClock); in processMessage()
2289 mClock.elapsedRealtime() + unchangedDelay, in processMessage()
2300 mClock.elapsedRealtime() + MOVING_STATE_TIMEOUT_MS, in processMessage()
/frameworks/base/libs/hwui/
DAnimationContext.cpp26 : mClock(clock) in AnimationContext()
66 mFrameTimeMs = ns2ms(mClock.latestVsync()); in startFrame()
DAnimationContext.h109 renderthread::TimeLord& mClock; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHeadsUpManager.java99 private Clock mClock; field in HeadsUpManager
125 mClock = new Clock(); in HeadsUpManager()
386 if (entry != null && mClock.currentTimeMillis() < entry.postTime) { in shouldSwallowClick()
649 postTime = mClock.currentTimeMillis() + mTouchAcceptanceDelay; in setEntry()
671 long currentTime = mClock.currentTimeMillis(); in updateEntry()
728 return earliestRemovaltime < mClock.currentTimeMillis(); in wasShownLongEnough()
734 earliestRemovaltime - mClock.currentTimeMillis()); in removeAsSoonAsPossible()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DHalWifiScannerTest.java37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in setUp()
DSupplicantPnoScannerTest.java65 @Mock Clock mClock; field in SupplicantPnoScannerTest
81 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setup()
352 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithHwPnoScanSupport()
358 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithSwPnoScanSupport()
DBaseWifiScannerImplTest.java67 @Mock Clock mClock; field in BaseWifiScannerImplTest
89 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUpBase()
402 long approxScanStartUs = mClock.elapsedRealtime() * 1000; in singleScanWhereSupplicantReturnsSomeOldResults()

12