/frameworks/base/media/tests/audiotests/ |
D | shared_mem_test.cpp | 80 long amplitude; in Test01() local 86 amplitude = 1000; in Test01() 88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer in Test01() 134 void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, lon… in Generate() argument 138 buffer[i0] = ComputeSine( amplitude, phi); in Generate() 149 short AudioTrackTest::ComputeSine(long amplitude, long phi) in ComputeSine() argument 155 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15; in ComputeSine() 158 l1 = (amplitude*sin1024[((phi>>22) + 256) & 0x3ff]) >> 15; // 2^15*cosine in ComputeSine()
|
D | shared_mem_test.h | 16 void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi); 18 short ComputeSine(long amplitude, long phi);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/ |
D | BurnInHelper.kt | 32 fun getBurnInOffset(amplitude: Int, xAxis: Boolean): Int { in getBurnInOffset() 34 amplitude.toFloat(), in getBurnInOffset() 47 private fun zigzag(x: Float, amplitude: Float, period: Float): Float { in zigzag() 50 return MathUtils.lerp(0f, amplitude, interpolationAmount) in zigzag()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 82 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read() local 84 *ptr++ = amplitude; in read() 86 *ptr++ = amplitude; in read()
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 171 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot() argument 172 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot() 383 protected static int scale(int amplitude, float gamma, int maxAmplitude) { in scale() argument 384 float val = MathUtils.pow(amplitude / (float) MAX_AMPLITUDE, gamma); in scale() 399 public OneShot(long milliseconds, int amplitude) { in OneShot() argument 401 mAmplitude = amplitude; in OneShot() 623 for (int amplitude : mAmplitudes) { in validate() 624 if (amplitude < -1 || amplitude > 255) { in validate()
|
/frameworks/av/media/libaaudio/examples/write_sine/src/ |
D | write_sine_callback.cpp | 92 double amplitude; in testOpenPlayClose() local 96 amplitude = 0.2; in testOpenPlayClose() 100 amplitude = 0.0; in testOpenPlayClose() 104 myData.sineOscillators[i].setAmplitude(amplitude); in testOpenPlayClose()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandSetAmplitude.cpp | 39 if (auto amplitude = args.pop<decltype(mAmplitude)>()) { in doArgs() local 40 mAmplitude = *amplitude; in doArgs()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | SineGenerator.h | 61 void setAmplitude(double amplitude) { in setAmplitude() argument 62 mAmplitude = amplitude; in setAmplitude()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 171 static native void vibratorSetAmplitude(int amplitude); in vibratorSetAmplitude() argument 1158 private void doVibratorOn(long millis, int amplitude, int uid, AudioAttributes attrs) { in doVibratorOn() argument 1162 if (amplitude == VibrationEffect.DEFAULT_AMPLITUDE) { in doVibratorOn() 1163 amplitude = mDefaultVibrationAmplitude; in doVibratorOn() 1167 " with amplitude " + amplitude + "."); in doVibratorOn() 1180 doVibratorSetAmplitude(amplitude); in doVibratorOn() 1188 private void doVibratorSetAmplitude(int amplitude) { in doVibratorSetAmplitude() argument 1190 vibratorSetAmplitude(amplitude); in doVibratorSetAmplitude() 1409 final int amplitude = amplitudes[index]; in playWaveform() local 1414 if (amplitude != 0) { in playWaveform() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_VibratorService.cpp | 292 static void vibratorSetAmplitude(JNIEnv*, jclass, jint amplitude) { in vibratorSetAmplitude() argument 294 … = hal->call(&aidl::IVibrator::IVibrator::setAmplitude, static_cast<float>(amplitude) / UINT8_MAX); in vibratorSetAmplitude() 299 Status status = halCall(&V1_0::IVibrator::setAmplitude, static_cast<uint32_t>(amplitude)) in vibratorSetAmplitude()
|