/frameworks/base/core/jni/ |
D | android_hardware_SerialPort.cpp | 36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) in android_hardware_SerialPort_open() argument 38 switch (speed) { in android_hardware_SerialPort_open() 40 speed = B50; in android_hardware_SerialPort_open() 43 speed = B75; in android_hardware_SerialPort_open() 46 speed = B110; in android_hardware_SerialPort_open() 49 speed = B134; in android_hardware_SerialPort_open() 52 speed = B150; in android_hardware_SerialPort_open() 55 speed = B200; in android_hardware_SerialPort_open() 58 speed = B300; in android_hardware_SerialPort_open() 61 speed = B600; in android_hardware_SerialPort_open() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 42 for (int speed = 0; speed < speedsForCluster; speed++) { in calculateApp() 43 totalTime += u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp() 51 for (int speed = 0; speed < speedsForCluster; speed++) { in calculateApp() 52 final double ratio = (double) u.getTimeAtCpuSpeed(cluster, speed, statsType) / in calculateApp() 55 mProfile.getAveragePowerForCpu(cluster, speed); in calculateApp() 58 + speed + " ratio=" + BatteryStatsHelper.makemAh(ratio) + " power=" in calculateApp()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | MediaControllerGlue.java | 132 int speed = (int) mMediaController.getPlaybackState().getPlaybackSpeed(); in getCurrentSpeedId() local 133 if (speed == 0) { in getCurrentSpeedId() 135 } else if (speed == 1) { in getCurrentSpeedId() 137 } else if (speed > 0) { in getCurrentSpeedId() 140 if (speed == seekSpeeds[index]) { in getCurrentSpeedId() 147 if (-speed == seekSpeeds[index]) { in getCurrentSpeedId() 152 Log.w(TAG, "Couldn't find index for speed " + speed); in getCurrentSpeedId() 206 protected void startPlayback(int speed) { in startPlayback() argument 207 if (DEBUG) Log.v(TAG, "startPlayback speed " + speed); in startPlayback() 208 if (speed == PLAYBACK_SPEED_NORMAL) { in startPlayback() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 74 float speed = hypotf(vx, vy) * scale; in move() local 75 if (speed >= mParameters.highThreshold) { in move() 78 } else if (speed > mParameters.lowThreshold) { in move() 81 scale *= 1 + (speed - mParameters.lowThreshold) in move() 91 vx, vy, speed, scale / mParameters.scale); in move()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | PlaybackControlHelper.java | 204 int speed; in getCurrentPosition() local 206 speed = 0; in getCurrentPosition() 208 speed = 1; in getCurrentPosition() 211 speed = getFastForwardSpeeds()[index]; in getCurrentPosition() 214 speed = -getRewindSpeeds()[index]; in getCurrentPosition() 219 (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition() 246 protected void startPlayback(int speed) { in startPlayback() argument 247 if (speed == mSpeed) { in startPlayback() 251 mSpeed = speed; in startPlayback()
|
D | PlaybackControlSupportHelper.java | 206 int speed; in getCurrentPosition() local 208 speed = 0; in getCurrentPosition() 210 speed = 1; in getCurrentPosition() 213 speed = getFastForwardSpeeds()[index]; in getCurrentPosition() 216 speed = -getRewindSpeeds()[index]; in getCurrentPosition() 221 (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition() 248 protected void startPlayback(int speed) { in startPlayback() argument 249 if (speed == mSpeed) { in startPlayback() 253 mSpeed = speed; in startPlayback()
|
/frameworks/support/media-compat/jellybean-mr2/android/support/v4/media/session/ |
D | MediaSessionCompatApi18.java | 70 public static void setState(Object rccObj, int state, long position, float speed, in setState() argument 77 if (speed > 0 && speed != 1f) { in setState() 78 diff *= speed; in setState() 84 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed); in setState()
|
/frameworks/base/core/java/android/hardware/ |
D | SerialPort.java | 54 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { in open() argument 55 native_open(pfd.getFileDescriptor(), speed); in open() local 122 private native void native_open(FileDescriptor pfd, int speed) throws IOException; in native_open() argument
|
D | SerialManager.java | 66 public SerialPort openSerialPort(String name, int speed) throws IOException { in openSerialPort() argument 71 port.open(pfd, speed); in openSerialPort()
|
/frameworks/base/media/jni/ |
D | android_media_PlaybackParams.h | 36 jfieldID speed; member 59 speed = env->GetFieldID(clazz, "mSpeed", "F"); in init() 84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); in fillFromJobject() 103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed); in asJobject()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | AccelerationClassifier.java | 83 float speed = distance / duration; in addPoint() local 92 maxSpeedRatio = Math.max(maxSpeedRatio, speed / previousSpeed); in addPoint() 95 previousSpeed = speed; in addPoint()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 740 int speed = DEFAULT_POINTER_SPEED; in getPointerSpeed() local 742 speed = Settings.System.getInt(context.getContentResolver(), in getPointerSpeed() 746 return speed; in getPointerSpeed() 761 public void setPointerSpeed(Context context, int speed) { in setPointerSpeed() argument 762 if (speed < MIN_POINTER_SPEED || speed > MAX_POINTER_SPEED) { in setPointerSpeed() 767 Settings.System.POINTER_SPEED, speed); in setPointerSpeed() local 781 public void tryPointerSpeed(int speed) { in tryPointerSpeed() argument 782 if (speed < MIN_POINTER_SPEED || speed > MAX_POINTER_SPEED) { in tryPointerSpeed() 787 mIm.tryPointerSpeed(speed); in tryPointerSpeed()
|
/frameworks/base/core/java/android/widget/ |
D | ZoomControls.java | 68 public void setZoomSpeed(long speed) { in setZoomSpeed() argument 69 mZoomIn.setZoomSpeed(speed); in setZoomSpeed() 70 mZoomOut.setZoomSpeed(speed); in setZoomSpeed()
|
D | ZoomButton.java | 66 public void setZoomSpeed(long speed) { in setZoomSpeed() argument 67 mZoomSpeed = speed; in setZoomSpeed()
|
/frameworks/support/media-compat/api22/android/support/v4/media/session/ |
D | PlaybackStateCompatApi22.java | 31 float speed, long actions, CharSequence errorMessage, long updateTime, in newInstance() argument 35 stateObj.setState(state, position, speed, updateTime); in newInstance()
|
/frameworks/base/docs/html/guide/webapps/ |
D | best-practices.jd | 89 <p>Because mobile devices typically have a connection speed far slower than a desktop 90 computer, you should make your web pages load as fast as possible. One way to speed it up is to 94 Alternatively, you should optimize the size and speed of your files by compressing them with tools 108 improving the speed of your web site (for mobile and desktop), see Yahoo!'s guide to <a 110 Google's speed tutorials in <a href="http://code.google.com/speed/articles/">Let's make the web
|
/frameworks/av/include/media/ |
D | AudioResamplerPublic.h | 156 float speed) { in sourceFramesNeededWithTimestretch() argument 160 return required * (double)speed + 1 + 1; // accounting for rounding dependencies in sourceFramesNeededWithTimestretch()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | SurfaceCompositionMeasuringActivity.java | 170 double speed = MIN_NUMBER_OF_SURFACES * 1000.0 / (time2 - time1); in measureAllocationScore() local 171 score.mMedian += speed / MEASURE_ALLOCATION_CYCLES; in measureAllocationScore() 173 score.mMin = speed; in measureAllocationScore() 174 score.mMax = speed; in measureAllocationScore() 176 score.mMin = Math.min(score.mMin, speed); in measureAllocationScore() 177 score.mMax = Math.max(score.mMax, speed); in measureAllocationScore()
|
/frameworks/support/media-compat/api21/android/support/v4/media/session/ |
D | PlaybackStateCompatApi21.java | 64 float speed, long actions, CharSequence errorMessage, long updateTime, in newInstance() argument 68 stateObj.setState(state, position, speed, updateTime); in newInstance()
|
/frameworks/base/media/java/android/media/ |
D | PlaybackParams.java | 205 public PlaybackParams setSpeed(float speed) { in setSpeed() argument 206 mSpeed = speed; in setSpeed()
|
D | RemoteControlClient.java | 1017 private static long getCheckPeriodFromSpeed(float speed) { in getCheckPeriodFromSpeed() argument 1018 if (Math.abs(speed) <= 1.0f) { in getCheckPeriodFromSpeed() 1021 return Math.max((long)(POSITION_REFRESH_PERIOD_PLAYING_MS / Math.abs(speed)), in getCheckPeriodFromSpeed()
|
/frameworks/wilhelm/src/itf/ |
D | I3DDoppler.c | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter speed) in I3DDoppler_SetVelocitySpherical() argument 51 thiz->mVelocitySpherical.mSpeed = speed; in I3DDoppler_SetVelocitySpherical()
|
/frameworks/av/media/libmedia/ |
D | AudioTrack.cpp | 53 static inline nsecs_t framesToNanoseconds(ssize_t frames, uint32_t sampleRate, float speed) in framesToNanoseconds() argument 55 return ((double)frames * 1000000000) / ((double)sampleRate * speed); in framesToNanoseconds() 79 static inline float adjustSpeed(float speed, float pitch) in adjustSpeed() argument 81 return kFixPitch ? speed / max(pitch, AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) : speed; in adjustSpeed() 93 uint32_t sampleRate, float speed /*, uint32_t notificationsPerBufferReq*/) in calculateMinFrameCount() argument 109 afLatencyMs, afFrameCount, afSampleRate, sampleRate, speed, minBufCount in calculateMinFrameCount() 112 sampleRate, afFrameCount, afSampleRate, speed); in calculateMinFrameCount() 1364 const float speed = !isPurePcmData_l() || isOffloadedOrDirect_l() ? 1.0f : in createTrack_l() local 1368 speed /*, 0 mNotificationsPerBufferReq*/); in createTrack_l() 1857 float speed = mPlaybackRate.mSpeed; in processAudioBuffer() local [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerEntry.java | 233 Float speed = getNullableFloat(cursor, SPEED); in createEntry() local 234 if (speed != null) { in createEntry() 235 location.setSpeed(speed); in createEntry()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 220 private static native void nativeSetPointerSpeed(long ptr, int speed); in nativeSetPointerSpeed() argument 1551 public void tryPointerSpeed(int speed) { in tryPointerSpeed() argument 1557 if (speed < InputManager.MIN_POINTER_SPEED || speed > InputManager.MAX_POINTER_SPEED) { in tryPointerSpeed() 1561 setPointerSpeedUnchecked(speed); in tryPointerSpeed() 1565 int speed = getPointerSpeedSetting(); in updatePointerSpeedFromSettings() local 1566 setPointerSpeedUnchecked(speed); in updatePointerSpeedFromSettings() 1569 private void setPointerSpeedUnchecked(int speed) { in setPointerSpeedUnchecked() argument 1570 speed = Math.min(Math.max(speed, InputManager.MIN_POINTER_SPEED), in setPointerSpeedUnchecked() 1572 nativeSetPointerSpeed(mPtr, speed); in setPointerSpeedUnchecked() 1587 int speed = InputManager.DEFAULT_POINTER_SPEED; in getPointerSpeedSetting() local [all …]
|