/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
H A D | AvrcpPlayer.java | 77 float speed = 1; 81 speed = 0; 84 speed = 0; 87 speed = 3; 90 speed = -3; 93 return new PlaybackState.Builder().setState(mPlayStatus, position, speed).build();
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/ |
H A D | FanSpeedBarController.java | 23 * Controller for the fan speed bar to adjust fan speed. 49 private void handleFanSpeedUpdate(int speed, boolean animateUpdate) { argument 51 Log.d(TAG, "Fan speed bar being set to value: " + speed); 54 mCurrentFanSpeed = speed; 62 // actually represents the second fan speed setting. 87 // actually represents the second fan speed setting. 94 public void onFanSpeedChange(int speed) { 95 handleFanSpeedUpdate(speed, tru [all...] |
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/audio/ |
H A D | AudioClock.java | 95 * Sets playback speed. {@code speed} should be positive. 97 public void setPlaybackSpeed(float speed) { argument 98 SoftPreconditions.checkState(speed > 0); 101 mPlaybackSpeed = speed;
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
H A D | HvacPolicy.java | 83 public int userToHardwareFanSpeed(int speed) { argument 84 return getMaxHardwareFanSpeed() * speed / 100; 87 public int hardwareToUserFanSpeed(int speed) { argument 88 return speed * 100 / getMaxHardwareFanSpeed();
|
H A D | DataStore.java | 127 public void setFanSpeed(int speed) { argument 129 mFanSpeed = speed; 134 public boolean shouldPropagateFanSpeedUpdate(int zone, int speed) { argument 135 // TODO: We ignore fan speed zones for now because we dont have a multi zone car. 140 mFanSpeed = speed;
|
H A D | HvacController.java | 340 private void handleFanSpeedUpdate(int zone, int speed) { argument 341 boolean shouldPropagate = mDataStore.shouldPropagateFanSpeedUpdate(zone, speed); 343 Log.d(TAG, "Fan Speed Update, zone: " + zone + " speed: " + speed + 349 mCallbacks.get(i).onFanSpeedChange(speed);
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
H A D | AccelerationClassifier.java | 24 * A classifier which looks at the speed and distance between successive points of a Stroke. It 26 * final result is the maximum of these values. It does the same for distances. If some speed or 29 * the speed of a part. 83 float speed = distance / duration; 92 maxSpeedRatio = Math.max(maxSpeedRatio, speed / previousSpeed); 95 previousSpeed = speed;
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
H A D | DvrPlayer.java | 39 * The max rewinding speed supported by DVR player. 43 * The max fast-forwarding speed supported by DVR player. 80 * Called when the playback state or the playback speed is changed. 190 * Fast-forwards playback with the given speed. If the given speed is larger than 193 public void fastForward(int speed) throws IllegalStateException { argument 198 if (speed <= 0) { 204 speed = Math.min(speed, MAX_FAST_FORWARD_SPEED); 205 if (DEBUG) Log.d(TAG, "Let's play with speed 215 rewind(int speed) argument 442 setPlaybackSpeed(int speed) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureStrokeRecognitionPoints.java | 243 final float speed = (float)pixelsPerSec / msecs / mKeyWidth; 244 Log.d(TAG, String.format("[%d] detectFastMove: speed=%5.2f", mPointerId, speed)); 249 final float speed = (float)pixelsPerSec / msecs / mKeyWidth; 251 "[%d] detectFastMove: speed=%5.2f T=%3d points=%3d fastMove", 252 mPointerId, speed, time, size));
|
/packages/apps/Music/src/com/android/music/ |
H A D | TouchInterceptor.java | 336 int speed = 0; 341 speed = y > (mHeight + mLowerBound) / 2 ? 16 : 4; 343 speed = 1; 347 speed = y < mUpperBound / 2 ? -16 : -4; 353 speed = 0; 356 if (speed != 0) { 357 smoothScrollBy(speed, 30);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | PointerSpeedPreference.java | 91 int speed = mIm.getPointerSpeed(getContext()); 92 mSeekBar.setProgress(speed - InputManager.MIN_POINTER_SPEED);
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
H A D | CarHvacManagerTest.java | 97 int speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, 99 assertEquals(15, speed); 103 speed = mCarHvacManager.getIntProperty(CarHvacManager.ID_ZONED_FAN_SPEED_SETPOINT, 105 assertEquals(23, speed);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadNotifier.java | 82 * Current speed of active downloads, mapped from download ID to speed in 89 * Last time speed was reproted, mapped from download ID to 124 * Notify the current speed of an active download, used for calculating 291 long speed = 0; 303 speed += mDownloadSpeed.get(id); 312 if (speed > 0) { 313 final long remainingMillis = ((total - current) * 1000) / speed; 421 Log.d(TAG, "Download " + id + " speed " + mDownloadSpeed.valueAt(i) + "bps, "
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
H A D | SensorsTestFragment.java | 384 String speed = mNaString; 392 speed = location.hasSpeed() ? String.valueOf(location.getSpeed()) : speed; 396 getTimestamp(event), lat, lon, accuracy, alt, speed, bearing);
|
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/ |
H A D | SpeedMeasurementController.java | 33 /** Controller that measures USB AOAP transfer speed. */ 258 protected synchronized void setSpeed(long speed) { argument 260 mSpeed = speed * 1000;
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | TunableTvView.java | 1277 * Rewinds the media with the given speed, if the current input supports time-shifting. 1279 * @param speed The speed to rewind the media. e.g. 2 for 2x, 3 for 3x and 4 for 4x. 1281 public void timeshiftRewind(int speed) { argument 1285 if (speed <= 0) { 1286 throw new IllegalArgumentException("The speed should be a positive integer."); 1290 params.setSpeed(speed * -1); 1296 * Fast-forwards the media with the given speed, if the current input supports time-shifting. 1298 * @param speed The speed t 1300 timeshiftFastForward(int speed) argument [all...] |
/packages/experimental/procstatlog/ |
H A D | procstatreport.py | 87 <nobr>average CPU speed</nobr> 215 # Output CPU speed statistics 230 speed = int(key[len(speed_key):]) 232 total_cycles += (next - last) * speed
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | TunerSessionWorker.java | 158 // Actual interval would be divided by the speed. 1599 float speed = mPlaybackParams.getSpeed(); 1600 if (speed == 1.0f) { 1604 } else if (mPlayer.supportSmoothTrickPlay(speed)) { 1618 + speed * getTrickPlaySeekIntervalMs()), 0));
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | proximity_info_state_utils.cpp | 226 // Relative speed calculation. 261 // Cannot calculate speed; thus, it gives an average value (1.0); 264 const float speed = static_cast<float>(length) / static_cast<float>(duration); local 265 (*sampledSpeedRates)[i] = speed / averageSpeed; 284 AKLOGI("--- refresh beeline speed rates"); 552 " speed = %f, ave = %f, val = %f, start time = %d, end time = %d", 659 // If the current speed is relatively slower than adjacent keys, we promote this point. 1000 AKLOGI("%d: x = %d, y = %d, time = %d, relative speed = %.4f, beeline speed = %d",
|