Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java188 public void fastForward(int speed) throws IllegalStateException { in fastForward() argument
193 if (speed <= 0) { in fastForward()
199 speed = Math.min(speed, MAX_FAST_FORWARD_SPEED); in fastForward()
200 if (DEBUG) Log.d(TAG, "Let's play with speed: " + speed); in fastForward()
201 setPlaybackSpeed(speed); in fastForward()
203 mCallback.onPlaybackStateChanged(mPlaybackState, speed); in fastForward()
210 public void rewind(int speed) throws IllegalStateException { in rewind() argument
215 if (speed <= 0) { in rewind()
221 speed = Math.min(speed, MAX_REWIND_SPEED); in rewind()
222 if (DEBUG) Log.d(TAG, "Let's play with speed: " + speed); in rewind()
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/
DFanSpeedBarController.java49 private void handleFanSpeedUpdate(int speed, boolean animateUpdate) { in handleFanSpeedUpdate() argument
51 Log.d(TAG, "Fan speed bar being set to value: " + speed); in handleFanSpeedUpdate()
54 mCurrentFanSpeed = speed; in handleFanSpeedUpdate()
94 public void onFanSpeedChange(int speed) {
95 handleFanSpeedUpdate(speed, true /* animateUpdate */);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMotionPauseDetector.java132 float speed = Math.abs(velocity); in checkMotionPaused() local
137 isPaused = speed < mSpeedFast || previousSpeed < mSpeedFast; in checkMotionPaused()
143 isPaused = speed < mSpeedVerySlow && previousSpeed < mSpeedVerySlow; in checkMotionPaused()
148 boolean isRapidDeceleration = speed < previousSpeed * RAPID_DECELERATION_FACTOR; in checkMotionPaused()
149 isPaused = isRapidDeceleration && speed < mSpeedSomewhatFast; in checkMotionPaused()
152 if (speed < mSpeedSlow) { in checkMotionPaused()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacPolicy.java104 public int userToHardwareFanSpeed(int speed) { in userToHardwareFanSpeed() argument
105 return getMaxHardwareFanSpeed() * speed / 100; in userToHardwareFanSpeed()
108 public int hardwareToUserFanSpeed(int speed) { in hardwareToUserFanSpeed() argument
109 return speed * 100 / getMaxHardwareFanSpeed(); in hardwareToUserFanSpeed()
DDataStore.java138 public void setFanSpeed(int speed) { in setFanSpeed() argument
140 mFanSpeed = speed; in setFanSpeed()
145 public boolean shouldPropagateFanSpeedUpdate(int zone, int speed) { in shouldPropagateFanSpeedUpdate() argument
151 mFanSpeed = speed; in shouldPropagateFanSpeedUpdate()
DHvacController.java340 private void handleFanSpeedUpdate(int zone, int speed) { in handleFanSpeedUpdate() argument
341 boolean shouldPropagate = mDataStore.shouldPropagateFanSpeedUpdate(zone, speed); in handleFanSpeedUpdate()
343 Log.d(TAG, "Fan Speed Update, zone: " + zone + " speed: " + speed + in handleFanSpeedUpdate()
349 mCallbacks.get(i).onFanSpeedChange(speed); in handleFanSpeedUpdate()
/packages/services/Car/tools/emulator/
Ddriving_info_generator.py46 def speed2Gear(speed): argument
51 if speed < 4.4:
54 elif speed < 11.2:
57 elif speed < 20.1:
60 elif speed < 26.8:
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java93 public void timeShiftRewind(int speed) { in timeShiftRewind() argument
95 params.setSpeed(speed * -1); in timeShiftRewind()
100 public void timeShiftFastForward(int speed) { in timeShiftFastForward() argument
102 params.setSpeed(speed); in timeShiftFastForward()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioClock.java84 public void setPlaybackSpeed(float speed) { in setPlaybackSpeed() argument
85 SoftPreconditions.checkState(speed > 0); in setPlaybackSpeed()
88 mPlaybackSpeed = speed; in setPlaybackSpeed()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAccelerationClassifier.java83 float speed = distance / duration; in addPoint() local
92 maxSpeedRatio = Math.max(maxSpeedRatio, speed / previousSpeed); in addPoint()
95 previousSpeed = speed; in addPoint()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DProgressLiveData.java87 float speed = mPlaybackState.getPlaybackSpeed(); in getProgress() local
89 speed = 0f; in getProgress()
91 long posDiff = (long) (timeDiff * speed); in getProgress()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java243 final float speed = (float)pixelsPerSec / msecs / mKeyWidth; in detectFastMove() local
244 Log.d(TAG, String.format("[%d] detectFastMove: speed=%5.2f", mPointerId, speed)); in detectFastMove()
249 final float speed = (float)pixelsPerSec / msecs / mKeyWidth; in detectFastMove() local
252 mPointerId, speed, time, size)); in detectFastMove()
/packages/apps/TV/src/com/android/tv/ui/api/
DTunableTvViewPlayingApi.java34 void timeShiftRewind(int speed); in timeShiftRewind() argument
36 void timeShiftFastForward(int speed); in timeShiftFastForward() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vehiclectrl/
DVehicleCtrlFragment.java131 private void moveWindow(int windowId, int speed) { in moveWindow() argument
132 Log.i(TAG, "Moving window " + windowId + " with speed " + speed); in moveWindow()
133 mPropMgr.setIntProperty(VehiclePropertyIds.WINDOW_MOVE, windowId, speed); in moveWindow()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DProgressLiveDataTest.java125 float speed = 2F; in testMovesForwardAtCustomSpeed() local
126 when(mPlaybackState.getPlaybackSpeed()).thenReturn(speed); in testMovesForwardAtCustomSpeed()
133 (long) (START_PROGRESS + ProgressLiveData.UPDATE_INTERVAL_MS * speed)); in testMovesForwardAtCustomSpeed()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarHvacManagerTest.java127 int speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, in testHvacFanSpeed() local
129 assertEquals(15, speed); in testHvacFanSpeed()
133 speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, in testHvacFanSpeed()
135 assertEquals(23, speed); in testHvacFanSpeed()
DCarUxRestrictionsManagerServiceTest.java691 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockParkedState() local
694 .thenReturn(speed); in setUpMockParkedState()
701 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockDrivingState() local
704 .thenReturn(speed); in setUpMockDrivingState()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java269 private static String formatShutterSpeed(double speed) { in formatShutterSpeed() argument
270 if (speed <= 0) { in formatShutterSpeed()
271 double shutterSpeed = Math.pow(2, -1 * speed); in formatShutterSpeed()
275 int approximateSpeedDenom = (int) Math.pow(2, speed) + 1; in formatShutterSpeed()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java295 long speed = 0; in updateWithLocked() local
307 speed += mDownloadSpeed.get(id); in updateWithLocked()
316 if (speed > 0) { in updateWithLocked()
317 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked()
/packages/apps/Settings/src/com/android/settings/
DPointerSpeedPreference.java99 int speed = mIm.getPointerSpeed(getContext()); in onSpeedChanged() local
100 mSeekBar.setProgress(speed - InputManager.MIN_POINTER_SPEED); in onSpeedChanged()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java1349 public void timeShiftRewind(int speed) { in timeShiftRewind() argument
1353 if (speed <= 0) { in timeShiftRewind()
1358 params.setSpeed(speed * -1); in timeShiftRewind()
1369 public void timeShiftFastForward(int speed) { in timeShiftFastForward() argument
1373 if (speed <= 0) { in timeShiftFastForward()
1378 params.setSpeed(speed); in timeShiftFastForward()
/packages/apps/TV/tests/robotests/src/com/android/tv/audio/
DAudioManagerHelperTest.java243 public void timeShiftRewind(int speed) { in timeShiftRewind() argument
248 public void timeShiftFastForward(int speed) { in timeShiftFastForward() argument
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java745 Float speed = getCurrentSpeed(); in handleDrivingStateEventLocked() local
747 if (speed != SPEED_NOT_AVAILABLE) { in handleDrivingStateEventLocked()
748 mCurrentMovingSpeed = speed; in handleDrivingStateEventLocked()
810 float speed) { in handleDispatchUxRestrictionsLocked() argument
829 currentDrivingState, speed, mRestrictionMode); in handleDispatchUxRestrictionsLocked()
/packages/modules/Wifi/service/proto/src/
Dscorecard.proto82 optional UnivariateStatistic linkspeed = 4; // Link speed (Mbits/sec)
214 // or at high Tx speed with a recent RSSI poll
217 // or Tx speed with a recent RSSI poll
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java258 protected synchronized void setSpeed(long speed) { in setSpeed() argument
260 mSpeed = speed * 1000; in setSpeed()

12