/frameworks/base/core/java/android/hardware/ |
H A D | SerialManager.java | 60 * The speed of the serial port must be one of: 66 * @param speed at which to open the serial port 69 public SerialPort openSerialPort(String name, int speed) throws IOException { argument 74 port.open(pfd, speed);
|
H A D | SerialPort.java | 54 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { argument 55 native_open(pfd.getFileDescriptor(), speed); 122 private native void native_open(FileDescriptor pfd, int speed) throws IOException; argument
|
/frameworks/native/libs/input/ |
H A D | VelocityControl.cpp | 74 float speed = hypotf(vx, vy) * scale; local 75 if (speed >= mParameters.highThreshold) { 76 // Apply full acceleration above the high speed threshold. 78 } else if (speed > mParameters.lowThreshold) { 80 // speed thresholds. 81 scale *= 1 + (speed - mParameters.lowThreshold) 88 "vx=%0.3f, vy=%0.3f, speed=%0.3f, accel=%0.3f", 91 vx, vy, speed, scale / mParameters.scale);
|
/frameworks/wilhelm/src/itf/ |
H A D | I3DDoppler.c | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter speed) 51 thiz->mVelocitySpherical.mSpeed = speed; 42 I3DDoppler_SetVelocitySpherical(SL3DDopplerItf self, SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter speed) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ZoomButton.java | 71 public void setZoomSpeed(long speed) { argument 72 mZoomSpeed = speed;
|
H A D | ZoomControls.java | 70 public void setZoomSpeed(long speed) { argument 71 mZoomIn.setZoomSpeed(speed); 72 mZoomOut.setZoomSpeed(speed);
|
H A D | ZoomButtonsController.java | 235 * @param speed The delay in milliseconds between zoom callbacks. 237 public void setZoomSpeed(long speed) { argument 238 mControls.setZoomSpeed(speed);
|
/frameworks/base/core/jni/ |
H A D | android_hardware_SerialPort.cpp | 36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) argument 38 switch (speed) { 40 speed = B50; 43 speed = B75; 46 speed = B110; 49 speed = B134; 52 speed = B150; 55 speed = B200; 58 speed = B300; 61 speed [all...] |
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | PlaybackStateCompatApi21.java | 52 float speed, long actions, CharSequence errorMessage, long updateTime) { 54 stateObj.setState(state, position, speed, updateTime); 51 newInstance(int state, long position, long bufferedPosition, float speed, long actions, CharSequence errorMessage, long updateTime) argument
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi18.java | 41 public static void setState(Object rccObj, int state, long position, float speed, argument 48 if (speed > 0 && speed != 1f) { 49 diff *= speed; 55 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
|
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
H A D | VariableSpeedNative.java | 68 /*package*/ static native void setVariableSpeed(float speed); argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | MediaControllerGlue.java | 132 int speed = (int) mMediaController.getPlaybackState().getPlaybackSpeed(); 133 if (speed == 0) { 135 } else if (speed == 1) { 137 } else if (speed > 0) { 140 if (speed == seekSpeeds[index]) { 147 if (-speed == seekSpeeds[index]) { 152 Log.w(TAG, "Couldn't find index for speed " + speed); 206 protected void startPlayback(int speed) { argument 207 if (DEBUG) Log.v(TAG, "startPlayback speed " [all...] |
H A D | PlaybackControlGlue.java | 26 * playback control actions such as play/pause, fast forward/rewind at progressive speed levels, 38 * inform the glue what speed levels are supported for fast forward/rewind. If you have your own 101 * Invalid playback speed. 116 * The initial (level 0) fast forward playback speed. 117 * The negative of this value is for rewind at the same speed. 122 * The level 1 fast forward playback speed. 123 * The negative of this value is for rewind at the same speed. 128 * The level 2 fast forward playback speed. 129 * The negative of this value is for rewind at the same speed. 134 * The level 3 fast forward playback speed 655 getSpeedString(int speed) argument 739 startPlayback(int speed) argument [all...] |
/frameworks/ex/variablespeed/jni/ |
H A D | sola_time_scaler.cc | 99 void SolaTimeScaler::set_speed(double speed) { argument 102 speed_ = speed; 109 LOGE("Requested speed %fx limited to 0.1x", speed_); 112 LOGE("Requested speed %fx limited to 8.0x", speed_); 128 // For compression (speed up), adjacent input windows overlap in the output.
|
H A D | variablespeed.cc | 335 void AudioEngine::SetVariableSpeed(float speed) { argument 338 GetTimeScaler()->set_speed(speed); 343 LOGD("set varaible speed called, sample rate and channels not ready yet");
|
/frameworks/base/media/java/android/media/ |
H A D | PlayerRecord.java | 91 public RccPlaybackState(int state, long positionMs, float speed) { argument 94 mSpeed = speed;
|
H A D | RemoteControlClient.java | 185 * The default playback speed, 1x. 642 false /* legacy API, converting to method with position and speed */); 647 * speed. 665 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 719 if (DEBUG) { Log.d(TAG, " no valid position or 0 speed, no check needed"); } 911 * Last playback speed reported by the user 1087 * actual playback position. Is a funciton of playback speed. 1088 * @param speed 1.0f is normal playback speed 1091 getCheckPeriodFromSpeed(float speed) argument [all...] |
H A D | RemoteController.java | 172 * the playback speed. 179 * and speed are known. 186 * @param speed a value expressed as a ratio of 1x playback: 1.0f is normal playback, 187 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 191 long currentPosMs, float speed); 232 * on the current play position at that time and the last known playback speed. 587 long stateChangeTimeMs, long currentPosMs, float speed) { 597 + "ms speed=" + speed); 190 onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, long currentPosMs, float speed) argument 586 setPlaybackState(int genId, int state, long stateChangeTimeMs, long currentPosMs, float speed) argument 1062 PlaybackInfo(int state, long stateChangeTimeMs, long currentPosMs, float speed) argument [all...] |
/frameworks/base/core/java/android/hardware/input/ |
H A D | InputManager.java | 135 * Pointer Speed: The minimum (slowest) pointer speed (-7). 141 * Pointer Speed: The maximum (fastest) pointer speed (7). 147 * Pointer Speed: The default pointer speed (0). 543 * Gets the mouse pointer speed. 545 * Only returns the permanent mouse pointer speed. Ignores any temporary pointer 546 * speed set by {@link #tryPointerSpeed}. 550 * @return The pointer speed as a value between {@link #MIN_POINTER_SPEED} and 556 int speed = DEFAULT_POINTER_SPEED; 558 speed = Settings.System.getInt(context.getContentResolver(), 562 return speed; 577 setPointerSpeed(Context context, int speed) argument 597 tryPointerSpeed(int speed) argument [all...] |
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 112 * has no bearing, altitude, speed, accuracy or extras. 618 * True if this location has a speed. 625 * Get the speed if it is available, in meters/second over ground. 627 * <p>If this location does not have a speed then 0.0 is returned. 634 * Set the speed, in meters/second over ground. 638 public void setSpeed(float speed) { argument 639 mSpeed = speed; 644 * Remove the speed from this location.
|
/frameworks/base/media/java/android/media/session/ |
H A D | PlaybackState.java | 238 private PlaybackState(int state, long position, long updateTime, float speed, argument 244 mSpeed = speed; 273 bob.append(", speed=").append(mSpeed); 335 * Get the current playback speed as a multiple of normal playback. This 339 * @return The current speed of playback. 796 * The speed is a multiple of normal playback and should be 0 when 797 * paused and negative when rewinding. Normal playback speed is 1.0. 813 * @param playbackSpeed The current speed of playback as a multiple of 835 * The speed is a multiple of normal playback and should be 0 when 836 * paused and negative when rewinding. Normal playback speed i [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 61 // The exponent used to calculate the pointer speed scaling factor. 62 // The scaling factor is calculated as 2 ^ (speed * exponent), 63 // where the speed ranges from -7 to + 7 and is supplied by the user. 190 void setPointerSpeed(int32_t speed); 249 // Pointer speed. 717 void NativeInputManager::setPointerSpeed(int32_t speed) { argument 721 if (mLocked.pointerSpeed == speed) { 725 ALOGI("Setting pointer speed to %d.", speed); 726 mLocked.pointerSpeed = speed; 1255 nativeSetPointerSpeed(JNIEnv* env, jclass clazz, jlong ptr, jint speed) argument [all...] |
H A D | com_android_server_location_GpsLocationProvider.cpp | 93 (jfloat)location->speed, (jfloat)location->bearing, 359 (jfloat)location->speed, (jfloat)location->bearing, 372 jfloat speed = 0; local 381 speed = location->speed; 388 flags, latitude, longitude, altitude, speed, bearing, accuracy, timestamp);
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 187 private static native void nativeSetPointerSpeed(long ptr, int speed); argument 1212 public void tryPointerSpeed(int speed) { argument 1218 if (speed < InputManager.MIN_POINTER_SPEED || speed > InputManager.MAX_POINTER_SPEED) { 1219 throw new IllegalArgumentException("speed out of range"); 1222 setPointerSpeedUnchecked(speed); 1226 int speed = getPointerSpeedSetting(); 1227 setPointerSpeedUnchecked(speed); 1230 private void setPointerSpeedUnchecked(int speed) { argument 1231 speed [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GpsLocationProvider.java | 1377 float speed, float bearing, float accuracy, long timestamp) { 1397 mLocation.setSpeed(speed); 1658 float speed, 1673 location.setSpeed(speed); 1711 double longitude, double altitude, float speed, float bearing, float accuracy, 1721 speed, 1738 double longitude, double altitude, float speed, float bearing, float accuracy, 1748 speed, 1376 reportLocation(int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp) argument 1653 buildLocation( int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp) argument 1710 reportGeofenceTransition(int geofenceId, int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp, int transition, long transitionTimestamp) argument 1737 reportGeofenceStatus(int status, int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp) argument
|