/frameworks/base/core/java/android/hardware/ |
H A D | SerialManager.java | 57 * The speed of the serial port must be one of: 63 * @param speed at which to open the serial port 66 public SerialPort openSerialPort(String name, int speed) throws IOException { argument 71 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/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/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 | 66 public void setZoomSpeed(long speed) { argument 67 mZoomSpeed = speed;
|
H A D | ZoomControls.java | 68 public void setZoomSpeed(long speed) { argument 69 mZoomIn.setZoomSpeed(speed); 70 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/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/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/base/media/java/android/media/ |
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 | 156 * the playback speed. 163 * and speed are known. 170 * @param speed a value expressed as a ratio of 1x playback: 1.0f is normal playback, 171 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 175 long currentPosMs, float speed); 200 * on the current play position at that time and the last known playback speed. 679 PlaybackInfo(int state, long stateChangeTimeMs, long currentPosMs, float speed) { argument 683 mSpeed = speed; 174 onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, long currentPosMs, float speed) argument
|
H A D | RemoteControlClient.java | 184 * The default playback speed, 1x. 629 false /* legacy API, converting to method with position and speed */); 634 * speed. 652 * 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is 857 * Last playback speed reported by the user 1013 * actual playback position. Is a funciton of playback speed. 1014 * @param speed 1.0f is normal playback speed 1017 private static long getCheckPeriodFromSpeed(float speed) { argument [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 709 getSpeedString(int speed) argument 793 startPlayback(int speed) argument [all...] |
H A D | PlaybackControlSupportGlue.java | 30 * playback control actions such as play/pause, fast forward/rewind at progressive speed levels, 42 * inform the glue what speed levels are supported for fast forward/rewind. Providing a 116 * Invalid playback speed. 131 * The initial (level 0) fast forward playback speed. 132 * The negative of this value is for rewind at the same speed. 137 * The level 1 fast forward playback speed. 138 * The negative of this value is for rewind at the same speed. 143 * The level 2 fast forward playback speed. 144 * The negative of this value is for rewind at the same speed. 149 * The level 3 fast forward playback speed 711 getSpeedString(int speed) argument 795 startPlayback(int speed) argument [all...] |
/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/support/v4/jellybean-mr2/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi18.java | 70 public static void setState(Object rccObj, int state, long position, float speed, argument 77 if (speed > 0 && speed != 1f) { 78 diff *= speed; 84 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
|
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 131 * has no bearing, altitude, speed, accuracy or extras. 634 * True if this location has a speed. 641 * Get the speed if it is available, in meters/second over ground. 643 * <p>If this location does not have a speed then 0.0 is returned. 650 * Set the speed, in meters/second over ground. 654 public void setSpeed(float speed) { argument 655 mSpeed = speed; 660 * Remove the speed from this location.
|
/frameworks/base/media/java/android/media/session/ |
H A D | PlaybackState.java | 295 private PlaybackState(int state, long position, long updateTime, float speed, argument 301 mSpeed = speed; 330 bob.append(", speed=").append(mSpeed); 398 * Get the current playback speed as a multiple of normal playback. This 402 * @return The current speed of playback. 869 * The speed is a multiple of normal playback and should be 0 when 870 * paused and negative when rewinding. Normal playback speed is 1.0. 890 * @param playbackSpeed The current speed of playback as a multiple of 913 * The speed is a multiple of normal playback and should be 0 when 914 * paused and negative when rewinding. Normal playback speed i [all...] |
/frameworks/base/core/java/android/hardware/input/ |
H A D | InputManager.java | 148 * Pointer Speed: The minimum (slowest) pointer speed (-7). 154 * Pointer Speed: The maximum (fastest) pointer speed (7). 160 * Pointer Speed: The default pointer speed (0). 727 * Gets the mouse pointer speed. 729 * Only returns the permanent mouse pointer speed. Ignores any temporary pointer 730 * speed set by {@link #tryPointerSpeed}. 734 * @return The pointer speed as a value between {@link #MIN_POINTER_SPEED} and 740 int speed = DEFAULT_POINTER_SPEED; 742 speed = Settings.System.getInt(context.getContentResolver(), 746 return speed; 761 setPointerSpeed(Context context, int speed) argument 781 tryPointerSpeed(int speed) argument [all...] |
/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 /*, uint32_t notificationsPerBufferReq*/) 108 "sampleRate %u speed %f minBufCount: %u" /*" notificationsPerBufferReq %u"*/, 109 afLatencyMs, afFrameCount, afSampleRate, sampleRate, speed, minBufCount 112 sampleRate, afFrameCount, afSampleRate, speed); 153 // When called from createTrack, speed i 1364 const float speed = !isPurePcmData_l() || isOffloadedOrDirect_l() ? 1.0f : local 1863 float speed = mPlaybackRate.mSpeed; local [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 65 // The exponent used to calculate the pointer speed scaling factor. 66 // The scaling factor is calculated as 2 ^ (speed * exponent), 67 // where the speed ranges from -7 to + 7 and is supplied by the user. 203 void setPointerSpeed(int32_t speed); 270 // Pointer speed. 738 void NativeInputManager::setPointerSpeed(int32_t speed) { argument 742 if (mLocked.pointerSpeed == speed) { 746 ALOGI("Setting pointer speed to %d.", speed); 747 mLocked.pointerSpeed = speed; 1361 nativeSetPointerSpeed(JNIEnv* , jclass , jlong ptr, jint speed) argument [all...] |
H A D | com_android_server_location_GnssLocationProvider.cpp | 117 (jfloat)location->speed, (jfloat)location->bearing, 476 (jfloat)location->speed, (jfloat)location->bearing, 489 jfloat speed = 0; local 498 speed = location->speed; 505 flags, latitude, longitude, altitude, speed, bearing, accuracy, timestamp);
|