Home
last modified time | relevance | path

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

123

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DSpeedFormatter.kt96 getUnitRes(unitPreferences), sample.speed.inMetersPerSecond, unitPreferences), in formatSample()
100 sample.speed.inMetersPerSecond, in formatSample()
112 val averageSpeed = samples.sumOf { it.speed.inMetersPerSecond } / samples.size in formatRecord()
118 speed: Double, in formatSpeedValue()
121 val speedWithUnit = convertToDistancePerHour(unitPreferences.getDistanceUnit(), speed) in formatSpeedValue()
140 speed: Velocity, in formatSpeedValue()
146 getUnitResInMinPerDistance(unitPreferences), speed, unitPreferences) in formatSpeedValue()
149 getUnitResInMinPerOneHundredDistance(unitPreferences), speed, unitPreferences) in formatSpeedValue()
152 getUnitRes(unitPreferences), speed.inMetersPerSecond, unitPreferences) in formatSpeedValue()
156 speed: Velocity, in formatA11ySpeedValue()
[all …]
/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/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DSpeedRecordTest.java703 private static void assertRecord(SpeedRecord record, double speed) { in assertRecord() argument
709 .containsExactly(speed); in assertRecord()
712 private static List<SpeedRecord> insertAndReadRecords(int recordCount, double speed) in insertAndReadRecords() argument
714 return insertAndReadRecords(recordCount, /* version= */ 0L, speed); in insertAndReadRecords()
718 int recordCount, long version, double speed) throws Exception { in insertAndReadRecords() argument
728 speed, millisFromStart, startTime, endTime, clientRecordId, version)); in insertAndReadRecords()
787 private static SpeedRecord buildRecordForSpeed(double speed, long millisFromStart) { in buildRecordForSpeed() argument
789 speed, in buildRecordForSpeed()
797 double speed, in buildRecordForSpeed() argument
803 speed, in buildRecordForSpeed()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMotionPauseDetector.java160 float speed = Math.abs(velocity); in checkMotionPaused() local
166 isPaused = speed < mSpeedFast || previousSpeed < mSpeedFast; in checkMotionPaused()
175 isPaused = speed < mSpeedVerySlow && previousSpeed < mSpeedVerySlow; in checkMotionPaused()
182 boolean isRapidDeceleration = speed < previousSpeed * RAPID_DECELERATION_FACTOR; in checkMotionPaused()
183 isPaused = isRapidDeceleration && speed < mSpeedSomewhatFast; in checkMotionPaused()
189 if (speed < mSpeedSlow) { in checkMotionPaused()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DSpeedRecord.java130 public SpeedRecordSample(@NonNull Velocity speed, @NonNull Instant time) { in SpeedRecordSample() argument
131 this(speed, time, false); in SpeedRecordSample()
143 @NonNull Velocity speed, @NonNull Instant time, boolean skipValidation) { in SpeedRecordSample()
145 Objects.requireNonNull(speed); in SpeedRecordSample()
147 ValidationUtils.requireInRange(speed.getInMetersPerSecond(), 0.0, 1000000, "speed"); in SpeedRecordSample()
150 mSpeed = speed; in SpeedRecordSample()
/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/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java1299 private void handlePlaybackSpeedRequest(int speed) { in handlePlaybackSpeedRequest() argument
1300 float floatingSpeed = (float) Math.pow(2, speed / 64); in handlePlaybackSpeedRequest()
1852 private static int SpeedFloatToCharacteristicIntValue(float speed) { in SpeedFloatToCharacteristicIntValue() argument
1855 if (speed < 0) { in SpeedFloatToCharacteristicIntValue()
1856 speed = -speed; in SpeedFloatToCharacteristicIntValue()
1858 if (speed < PLAY_SPEED_MIN) { in SpeedFloatToCharacteristicIntValue()
1859 speed = PLAY_SPEED_MIN; in SpeedFloatToCharacteristicIntValue()
1860 } else if (speed > PLAY_SPEED_MAX) { in SpeedFloatToCharacteristicIntValue()
1861 speed = PLAY_SPEED_MAX; in SpeedFloatToCharacteristicIntValue()
1864 return (int) (64 * Math.log(speed) / Math.log(2)); in SpeedFloatToCharacteristicIntValue()
[all …]
DMediaControlServiceCallbacks.java37 void onPlaybackSpeedSetRequest(float speed); in onPlaybackSpeedSetRequest() argument
/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/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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vehiclectrl/
DVehicleCtrlFragment.java132 private void moveWindow(int windowId, int speed) { in moveWindow() argument
133 Log.i(TAG, "Moving window " + windowId + " with speed " + speed); in moveWindow()
134 mPropMgr.setIntProperty(VehiclePropertyIds.WINDOW_MOVE, windowId, speed); in moveWindow()
/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/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DSpeedRecordInternal.java106 public SpeedRecordSample(double speed, long epochMillis) { in SpeedRecordSample() argument
107 mSpeed = speed; in SpeedRecordSample()
/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()
/packages/apps/Settings/src/com/android/settings/
DPointerSpeedPreference.java109 int speed = InputSettings.getPointerSpeed(getContext()); in onSpeedChanged() local
110 mSeekBar.setProgress(speed - InputSettings.MIN_POINTER_SPEED); in onSpeedChanged()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java309 long speed = 0; in updateWithLocked() local
321 speed += mDownloadSpeed.get(id); in updateWithLocked()
330 if (speed > 0) { in updateWithLocked()
331 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked()
/packages/modules/Uwb/generic_ranging/proto/src/
Dmulti_sensor_finder_configuration.proto150 // The odometry noise adder adds noise during a motion update based on the speed
153 // The mapping from speed to noise stays flat at min_noise_std_dev until the
154 // speed reaches min_speed_mps, after which it ramps linearly up to
155 // max_speed_mps. For speed greater than max_speed_mps, it stays at
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java600 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockParkedState() local
603 .thenReturn(speed); in setUpMockParkedState()
610 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockDrivingStateWithFakeSpeed() local
613 .thenReturn(speed); in setUpMockDrivingStateWithFakeSpeed()
/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/apps/Dialer/java/com/android/dialer/callintent/
Dspeed_dial_contact_type.proto11 // The type of speed call contact (favorites). Applies to initiation type
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/mockable/
DMediaController.java307 public void setPlaybackSpeed(float speed) { in setPlaybackSpeed() argument
308 mTransportDelegate.setPlaybackSpeed(speed); in setPlaybackSpeed()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java1409 public void timeShiftRewind(int speed) { in timeShiftRewind() argument
1413 if (speed <= 0) { in timeShiftRewind()
1418 params.setSpeed(speed * -1); in timeShiftRewind()
1429 public void timeShiftFastForward(int speed) { in timeShiftFastForward() argument
1433 if (speed <= 0) { in timeShiftFastForward()
1438 params.setSpeed(speed); in timeShiftFastForward()

123