Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 44) 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/Launcher3/quickstep/src/com/android/quickstep/util/
DMotionPauseDetector.java129 float speed = Math.abs(velocity); in checkMotionPaused() local
134 isPaused = speed < mSpeedFast || previousSpeed < mSpeedFast; in checkMotionPaused()
140 isPaused = speed < mSpeedVerySlow && previousSpeed < mSpeedVerySlow; in checkMotionPaused()
145 boolean isRapidDeceleration = speed < previousSpeed * RAPID_DECELERATION_FACTOR; in checkMotionPaused()
146 isPaused = isRapidDeceleration && speed < mSpeedSomewhatFast; in checkMotionPaused()
149 if (speed < mSpeedSlow) { in checkMotionPaused()
/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/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/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/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/services/Car/tests/carservice_test/src/com/android/car/
DCarHvacManagerTest.java109 int speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, in testHvacFanSpeed() local
111 assertEquals(15, speed); in testHvacFanSpeed()
115 speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, in testHvacFanSpeed()
117 assertEquals(23, speed); in testHvacFanSpeed()
DCarUxRestrictionsManagerServiceTest.java239 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockParkedState() local
242 .thenReturn(speed); in setUpMockParkedState()
249 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockDrivingState() local
252 .thenReturn(speed); in setUpMockDrivingState()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java266 private static String formatShutterSpeed(double speed) { in formatShutterSpeed() argument
267 if (speed <= 0) { in formatShutterSpeed()
268 double shutterSpeed = Math.pow(2, -1 * speed); in formatShutterSpeed()
272 int approximateSpeedDenom = (int) Math.pow(2, speed) + 1; in formatShutterSpeed()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DProgressLiveDataTest.java128 float speed = 2F; in testMovesForwardAtCustomSpeed() local
129 when(mPlaybackState.getPlaybackSpeed()).thenReturn(speed); in testMovesForwardAtCustomSpeed()
136 (long) (START_PROGRESS + ProgressLiveData.UPDATE_INTERVAL_MS * speed)); in testMovesForwardAtCustomSpeed()
/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/service/src/com/android/car/
DCarUxRestrictionsManagerService.java641 Float speed = getCurrentSpeed(); in handleDrivingStateEvent() local
643 if (speed != SPEED_NOT_AVAILABLE) { in handleDrivingStateEvent()
644 mCurrentMovingSpeed = speed; in handleDrivingStateEvent()
701 float speed) { in handleDispatchUxRestrictions() argument
715 currentDrivingState, speed, mRestrictionMode); in handleDispatchUxRestrictions()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java291 long speed = 0; in updateWithLocked() local
303 speed += mDownloadSpeed.get(id); in updateWithLocked()
312 if (speed > 0) { in updateWithLocked()
313 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java1333 public void timeShiftRewind(int speed) { in timeShiftRewind() argument
1337 if (speed <= 0) { in timeShiftRewind()
1342 params.setSpeed(speed * -1); in timeShiftRewind()
1353 public void timeShiftFastForward(int speed) { in timeShiftFastForward() argument
1357 if (speed <= 0) { in timeShiftFastForward()
1362 params.setSpeed(speed); in timeShiftFastForward()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DPointerSpeedPreference.java91 int speed = mIm.getPointerSpeed(getContext()); in onSpeedChanged() local
92 mSeekBar.setProgress(speed - InputManager.MIN_POINTER_SPEED); in onSpeedChanged()
/packages/apps/Settings/src/com/android/settings/
DPointerSpeedPreference.java91 int speed = mIm.getPointerSpeed(getContext()); in onSpeedChanged() local
92 mSeekBar.setProgress(speed - InputManager.MIN_POINTER_SPEED); in onSpeedChanged()
/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()
/packages/apps/Dialer/java/com/android/dialer/callintent/
Dspeed_dial_contact_type.proto12 // The type of speed call contact (favorites). Applies to initiation type
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java918 public boolean includes(float speed) { in includes() argument
919 return mMinSpeed <= speed && speed < mMaxSpeed; in includes()

12