/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConnectivityManagerTest.java | 78 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 99 private Clock mClock = mock(Clock.class); field in WifiConnectivityManagerTest 239 when(wifiInjector.getClock()).thenReturn(mClock); in mockWifiInjector() 343 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff() 351 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff() 382 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff() 390 when(mClock.elapsedRealtime()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff() 422 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection() 433 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection() 537 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected() [all …]
|
D | AnqpCacheTest.java | 116 when(mClock.currentTimeMillis()).thenReturn(mCurrentTimeMillis); in advanceTimeAndTrimCache() 125 @Mock Clock mClock; field in AnqpCacheTest 134 AnqpCache cache = mCache = new AnqpCache(mClock); in basicAddQueryAndExpiry()
|
D | WifiMetricsTest.java | 47 @Mock Clock mClock; field in WifiMetricsTest 53 when(mClock.elapsedRealtime()).thenReturn((long) 0); in setUp() 54 mWifiMetrics = new WifiMetrics(mClock); in setUp() 92 when(mClock.elapsedRealtime()).thenReturn(TEST_RECORD_DURATION_MILLIS); in dumpProtoAndDeserialize()
|
D | WifiQualifiedNetworkSelectorTest.java | 77 mContext, mWifiInfo, mClock); in setUp() 81 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 97 private Clock mClock = mock(Clock.class); field in WifiQualifiedNetworkSelectorTest 105 long timeStamp = mClock.elapsedRealtime(); in getScanDetails() 887 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() in networkChooseWithOneBssidDisableExpire() 1149 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSCurrentNetworkQualified() 1192 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSLinkBouncing() 1232 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToBandMismatch() 1276 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToOpenNetwork() 1327 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToEphemeral() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ANQPData.java | 41 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()
|
D | AnqpCache.java | 21 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/ |
D | KeyguardDisplayManager.java | 129 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/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 30 private final String mClock; field in ClockPreference 38 mClock = context.getString(com.android.internal.R.string.status_bar_clock); in ClockPreference() 59 mClockEnabled = !mBlacklist.contains(mClock); in onTuningChanged() 82 mBlacklist.add(mClock); in persistString() 84 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() 147 builder.append(mClock.toString()); in toString()
|
D | GnssMeasurementsEvent.java | 44 private final GnssClock mClock; field in GnssMeasurementsEvent 105 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/ |
D | WifiInjector.java | 35 private final Clock mClock = new Clock(); field in WifiInjector 36 private final WifiMetrics mWifiMetrics = new WifiMetrics(mClock); 52 return mClock; in getClock()
|
D | WifiMetrics.java | 47 private Clock mClock; field in WifiMetrics 306 mClock = clock; in WifiMetrics() 314 mRecordStartTimeSec = mClock.elapsedRealtime() / 1000; in WifiMetrics() 357 mClock.currentTimeMillis(); in startConnectionEvent() 362 mCurrentConnectionEvent.mRealStartTime = mClock.elapsedRealtime(); in startConnectionEvent() 415 mCurrentConnectionEvent.mRealEndTime = mClock.elapsedRealtime(); in endConnectionEvent() 909 + ((mClock.elapsedRealtime() / 1000) - mRecordStartTimeSec)); in dump() 965 mWifiLogProto.recordDurationSec = (int) ((mClock.elapsedRealtime() / 1000) in consolidateProto() 981 mRecordStartTimeSec = mClock.elapsedRealtime() / 1000; in clear()
|
D | WifiConnectivityManager.java | 133 private final Clock mClock; field in WifiConnectivityManager 488 mClock = wifiInjector.getClock(); in WifiConnectivityManager() 580 Long elapsedTimeMillis = mClock.elapsedRealtime(); in connectToNetwork() 670 long currentTimeStamp = mClock.elapsedRealtime(); in startPeriodicSingleScan() 871 mClock.elapsedRealtime() + WATCHDOG_INTERVAL_MS, in scheduleWatchdogTimer() 879 mClock.elapsedRealtime() + intervalMs, in schedulePeriodicScanTimer() 891 mClock.elapsedRealtime() + RESTART_SCAN_DELAY_MS, in scheduleDelayedSingleScan() 901 mClock.elapsedRealtime() + msFromNow, in scheduleDelayedConnectivityScan()
|
D | WifiQualifiedNetworkSelector.java | 55 private Clock mClock; field in WifiQualifiedNetworkSelector 168 mClock = clock; in WifiQualifiedNetworkSelector() 300 long gap = mClock.elapsedRealtime() - mLastQualifiedNetworkSelectionTimeStamp; in needQualifiedNetworkSelection() 358 long timeDifference = mClock.elapsedRealtime() in calculateBssidScore() 484 long currentTime = mClock.currentTimeMillis(); in userSelectNetwork() 547 status.mBlacklistedTimeStamp = mClock.elapsedRealtime(); in enableBssidForQualityNetworkSelection() 567 if (mClock.elapsedRealtime() - status.mBlacklistedTimeStamp in updateBssidBlacklist() 643 + ((mClock.elapsedRealtime() - mWifiConfigManager.getLastSelectedTimeStamp()) in selectQualifiedNetwork() 881 mLastQualifiedNetworkSelectionTimeStamp = mClock.elapsedRealtime(); in selectQualifiedNetwork()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarTransitions.java | 35 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()
|
D | StatusBarIconController.java | 80 private TextView mClock; field in StatusBarIconController 136 mClock = (TextView) statusBar.findViewById(R.id.clock); in StatusBarIconController() 336 mClock.setVisibility(visible ? View.VISIBLE : View.GONE); in setClockVisibility() 532 mClock.setTextColor(getTint(mTintArea, mClock, mIconTint)); in applyIconTint() 602 FontSizeUtils.updateFontSize(mClock, R.dimen.status_bar_clock_size); in updateClock() 603 mClock.setPaddingRelative( in updateClock()
|
D | StatusBarHeaderView.java | 71 private View mClock; field in StatusBarHeaderView 145 mClock = findViewById(R.id.clock); in onFinishInflate() 589 target.clockY = mClock.getBottom(); in captureLayoutValues() 634 mClock.setY(values.clockY - mClock.getHeight()); in applyLayoutValues() 789 transition(mClock, !showingDetail);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | SupplicantWifiScannerImpl.java | 69 private final Clock mClock; field in SupplicantWifiScannerImpl 141 mClock = clock; in SupplicantWifiScannerImpl() 142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in SupplicantWifiScannerImpl() 344 new LastScanSettings(mClock.elapsedRealtime()); in processPendingScans() 400 mClock.elapsedRealtime() + mBackgroundScanSettings.base_period_ms, in processPendingScans() 446 mClock.elapsedRealtime() + SCAN_TIMEOUT_MS, in processPendingScans() 1010 private final Clock mClock; field in SupplicantWifiScannerImpl.HwPnoDebouncer 1032 mClock = clock; in HwPnoDebouncer() 1045 mLastPnoChangeTimeStamp = mClock.elapsedRealtime(); in updatePnoState() 1077 long timeDifference = mClock.elapsedRealtime() - mLastPnoChangeTimeStamp; in setPnoState() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManager.java | 95 private Clock mClock; field in HeadsUpManager 117 mClock = new Clock(); in HeadsUpManager() 377 if (entry != null && mClock.currentTimeMillis() < entry.postTime) { in shouldSwallowClick() 621 postTime = mClock.currentTimeMillis() + mTouchAcceptanceDelay; in setEntry() 640 long currentTime = mClock.currentTimeMillis(); in updateEntry() 694 return earliestRemovaltime < mClock.currentTimeMillis(); in wasShownLongEnough() 700 earliestRemovaltime - mClock.currentTimeMillis()); in removeAsSoonAsPossible()
|
/frameworks/base/libs/hwui/ |
D | AnimationContext.cpp | 26 : mClock(clock) in AnimationContext() 66 mFrameTimeMs = ns2ms(mClock.latestVsync()); in startFrame()
|
D | AnimationContext.h | 107 renderthread::TimeLord& mClock; variable
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | SupplicantPnoScannerTest.java | 64 @Mock Clock mClock; field in SupplicantPnoScannerTest 80 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setup() 237 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithHwPnoScanSupport() 243 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithSwPnoScanSupport()
|
D | HalWifiScannerTest.java | 37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in setUp()
|
D | BaseWifiScannerImplTest.java | 67 @Mock Clock mClock; field in BaseWifiScannerImplTest 89 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUpBase() 392 long approxScanStartUs = mClock.elapsedRealtime() * 1000; in singleScanWhereSupplicantReturnsSomeOldResults()
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.h | 107 Texture mClock; variable
|