Home
last modified time | relevance | path

Searched refs:timeDelta (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java105 long timeDelta = timeStamp - link.lastPacketCountUpdateTimeStamp; in updateMloRates() local
106 double lastSampleWeight = Math.exp(-1.0 * timeDelta / FILTER_TIME_CONSTANT); in updateMloRates()
111 + (txbad - link.txBad) * 1000.0 / timeDelta * currentSampleWeight); in updateMloRates()
114 + (txgood - link.txSuccess) * 1000.0 / timeDelta * currentSampleWeight); in updateMloRates()
117 + (rxgood - link.rxSuccess) * 1000.0 / timeDelta * currentSampleWeight); in updateMloRates()
122 / timeDelta in updateMloRates()
147 long timeDelta = timeStamp - mLastPacketCountUpdateTimeStamp; in updateWifiInfoRates() local
148 double lastSampleWeight = Math.exp(-1.0 * timeDelta / FILTER_TIME_CONSTANT); in updateWifiInfoRates()
152 + (txbad - txBad) * 1000.0 / timeDelta in updateWifiInfoRates()
155 + (txgood - txSuccess) * 1000.0 / timeDelta in updateWifiInfoRates()
[all …]
DWifiMetrics.java3338 long timeDelta = mClock.getElapsedSinceBootMillis() - mScanResultRssiTimestampMillis; in maybeIncrementRssiDeltaCount() local
3339 if (timeDelta <= TIMEOUT_RSSI_DELTA_MILLIS) { in maybeIncrementRssiDeltaCount()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/rotaryinput/
DRotary.kt779 val timeDelta = timestamp - previousScrollEventTime in isOppositeValueAfterScroll() constant
780 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isOppositeValueAfterScroll()
846 val timeDelta = timestamp - previousScrollEventTime in isNewScrollEvent() constant
847 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isNewScrollEvent()
992 val timeDelta = timestamp - previousScrollEventTime in isOppositeValueAfterScroll() constant
993 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isOppositeValueAfterScroll()
1071 val timeDelta = timestamp - previousScrollEventTime in isNewScrollEvent() constant
1072 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isNewScrollEvent()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionChangeStorageImpl.kt195 override fun PermissionChange.copyWithTimeDelta(timeDelta: Long): PermissionChange { in copyWithTimeDelta()
196 return this.copy(eventTime = this.eventTime + timeDelta) in copyWithTimeDelta()
DBasePermissionEventStorage.kt177 abstract fun T.copyWithTimeDelta(timeDelta: Long): T
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/
DPermissionDecisionStorageImpl.kt209 override fun PermissionDecision.copyWithTimeDelta(timeDelta: Long): PermissionDecision { in copyWithTimeDelta()
210 return this.copy(eventTime = this.eventTime + timeDelta) in copyWithTimeDelta()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java499 long timeDelta = SystemClock.uptimeMillis() - mRecordingStartTime; in onDraw() local
500 long numberOfFrames = timeDelta / mTimeLapseInterval; in onDraw()
508 sweepAngle = timeDelta % mTimeLapseInterval * 360f / mTimeLapseInterval; in onDraw()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DBasePermissionEventStorageTest.kt252 override fun TestPermissionEvent.copyWithTimeDelta(timeDelta: Long): TestPermissionEvent { in copyWithTimeDelta()
253 return this.copy(eventTime = this.eventTime + timeDelta) in copyWithTimeDelta()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java759 final long timeDelta = now - mLastUpdateTime; in updateProgress() local
760 if (bytesDelta > Constants.MIN_PROGRESS_STEP && timeDelta > Constants.MIN_PROGRESS_TIME) { in updateProgress()