/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/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 | 28 * playback control actions such as play/pause, fast forward/rewind at progressive speed levels, 40 * inform the glue what speed levels are supported for fast forward/rewind. Providing a 114 * Invalid playback speed. 129 * The initial (level 0) fast forward playback speed. 130 * The negative of this value is for rewind at the same speed. 135 * The level 1 fast forward playback speed. 136 * The negative of this value is for rewind at the same speed. 141 * The level 2 fast forward playback speed. 142 * The negative of this value is for rewind at the same speed. 147 * The level 3 fast forward playback speed 708 getSpeedString(int speed) argument 792 startPlayback(int speed) argument [all...] |
/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/support/v4/jellybean-mr2/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi18.java | 43 public static void setState(Object rccObj, int state, long position, float speed, argument 50 if (speed > 0 && speed != 1f) { 51 diff *= speed; 57 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
|
/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/support/v4/api22/android/support/v4/media/session/ |
H A D | PlaybackStateCompatApi22.java | 31 float speed, long actions, CharSequence errorMessage, long updateTime, 35 stateObj.setState(state, position, speed, updateTime); 30 newInstance(int state, long position, long bufferedPosition, float speed, long actions, CharSequence errorMessage, long updateTime, List<Object> customActions, long activeItemId, Bundle extras) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ZoomControls.java | 68 public void setZoomSpeed(long speed) { argument 69 mZoomIn.setZoomSpeed(speed); 70 mZoomOut.setZoomSpeed(speed);
|
H A D | ZoomButton.java | 69 public void setZoomSpeed(long speed) { argument 70 mZoomSpeed = speed;
|
/frameworks/base/media/java/android/media/ |
H A D | IRemoteControlDisplay.aidl | 50 * Sets the playback information (state, position and speed) of a client. 72 * @param speed a value expressed as a ratio of 1x playback: 1.0f is normal playback, 73 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 77 float speed);
|
H A D | PlaybackParams.java | 45 * <p> <strong>speed:</strong> increases or decreases the time to 47 * It is expressed as a multiplicative factor, where normal speed is 1.0f. 48 * <p> Different combinations of speed and pitch may be used for audio playback; 53 * <li> <em>Pitch equals speed.</em> Speed change will be done by <em>resampling</em>, 201 * Sets the speed factor. 202 * @param speed 205 public PlaybackParams setSpeed(float speed) { argument 206 mSpeed = speed; 212 * Retrieves the speed factor. 213 * @return speed [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...] |
H A D | RemoteControlClient.java | 184 * The default playback speed, 1x. 641 false /* legacy API, converting to method with position and speed */); 646 * speed. 664 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 718 if (DEBUG) { Log.d(TAG, " no valid position or 0 speed, no check needed"); } 910 * Last playback speed reported by the user 1086 * actual playback position. Is a funciton of playback speed. 1087 * @param speed 1.0f is normal playback speed 1090 getCheckPeriodFromSpeed(float speed) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_PlaybackParams.h | 36 jfieldID speed; member in struct:android::PlaybackParams::fields_t 59 speed = env->GetFieldID(clazz, "mSpeed", "F"); 84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); 103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed);
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | InputManager.java | 133 * Pointer Speed: The minimum (slowest) pointer speed (-7). 139 * Pointer Speed: The maximum (fastest) pointer speed (7). 145 * Pointer Speed: The default pointer speed (0). 541 * Gets the mouse pointer speed. 543 * Only returns the permanent mouse pointer speed. Ignores any temporary pointer 544 * speed set by {@link #tryPointerSpeed}. 548 * @return The pointer speed as a value between {@link #MIN_POINTER_SPEED} and 554 int speed = DEFAULT_POINTER_SPEED; 556 speed = Settings.System.getInt(context.getContentResolver(), 560 return speed; 575 setPointerSpeed(Context context, int speed) argument 595 tryPointerSpeed(int speed) argument [all...] |
H A D | IInputManager.aidl | 36 // Temporarily changes the pointer speed. 37 void tryPointerSpeed(int speed);
|
/frameworks/av/include/media/ |
H A D | AudioResamplerPublic.h | 45 // AUDIO_TIMESTRETCH_SPEED_MIN_DELTA is the minimum absolute speed difference that might trigger a 78 // FALLBACK_CUT_REPEAT: (internal only) for speed <1.0 will truncate frames 79 // for speed > 1.0 will repeat frames 156 float speed) { 160 return required * (double)speed + 1 + 1; // accounting for rounding dependencies 154 sourceFramesNeededWithTimestretch( uint32_t srcSampleRate, size_t dstFramesRequired, uint32_t dstSampleRate, float speed) argument
|
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | PlaybackStateCompatApi21.java | 64 float speed, long actions, CharSequence errorMessage, long updateTime, 68 stateObj.setState(state, position, speed, updateTime); 63 newInstance(int state, long position, long bufferedPosition, float speed, long actions, CharSequence errorMessage, long updateTime, List<Object> customActions, long activeItemId) argument
|
/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/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerEntry.java | 233 Float speed = getNullableFloat(cursor, SPEED); 234 if (speed != null) { 235 location.setSpeed(speed);
|
/frameworks/av/media/libmedia/ |
H A D | AudioTrack.cpp | 53 static inline nsecs_t framesToNanoseconds(ssize_t frames, uint32_t sampleRate, float speed) argument 55 return ((double)frames * 1000000000) / ((double)sampleRate * speed); 79 static inline float adjustSpeed(float speed, float pitch) argument 81 return kFixPitch ? speed / max(pitch, AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) : speed; 93 uint32_t sampleRate, float speed) 101 "sampleRate %u speed %f minBufCount: %u", 102 afLatencyMs, afFrameCount, afSampleRate, sampleRate, speed, minBufCount); 104 sampleRate, afFrameCount, afSampleRate, speed); 145 // When called from createTrack, speed i 91 calculateMinFrameCount( uint32_t afLatencyMs, uint32_t afFrameCount, uint32_t afSampleRate, uint32_t sampleRate, float speed) argument 1790 float speed = mPlaybackRate.mSpeed; local [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | PlayerRecord.java | 94 public RccPlaybackState(int state, long positionMs, float speed) { argument 97 mSpeed = speed;
|
/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/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | MainActivity.java | 33 * It presents a ui for setting ISO, Shutter speed, and focus
49 mSpeedButton = (Button) findViewById(R.id.speed);
|