Searched refs:amplitude (Results 1 – 8 of 8) sorted by relevance
/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/core/java/android/os/ |
D | VibrationEffect.java | 69 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot() argument 70 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot() 174 public OneShot(long milliseconds, int amplitude) { in OneShot() argument 176 mAmplitude = amplitude; in OneShot() 292 for (int amplitude : mAmplitudes) { in validate() 293 if (amplitude < -1 || amplitude > 255) { in validate()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 81 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read() local 83 *ptr++ = amplitude; in read() 85 *ptr++ = amplitude; in read()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 109 native static void vibratorSetAmplitude(int amplitude); in vibratorSetAmplitude() argument 667 private void doVibratorOn(long millis, int amplitude, int uid, int usageHint) { in doVibratorOn() argument 669 if (amplitude == VibrationEffect.DEFAULT_AMPLITUDE) { in doVibratorOn() 670 amplitude = mDefaultVibrationAmplitude; in doVibratorOn() 674 " with amplitude " + amplitude + "."); in doVibratorOn() 688 doVibratorSetAmplitude(amplitude); in doVibratorOn() 693 private void doVibratorSetAmplitude(int amplitude) { in doVibratorSetAmplitude() argument 695 vibratorSetAmplitude(amplitude); in doVibratorSetAmplitude() 821 final int amplitude = amplitudes[index]; in playWaveform() local 826 if (amplitude != 0) { in playWaveform() [all …]
|
/frameworks/av/media/libaaudio/src/utility/ |
D | AAudioUtilities.h | 49 float amplitude); 91 float amplitude);
|
D | AAudioUtilities.cpp | 106 float amplitude) { in AAudioConvert_floatToPcm16() argument 107 float scaler = amplitude; in AAudioConvert_floatToPcm16() 137 float amplitude) { in AAudioConvert_pcm16ToFloat() argument 138 float scaler = amplitude / SHORT_SCALE; in AAudioConvert_pcm16ToFloat()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_VibratorService.cpp | 95 static void vibratorSetAmplitude(JNIEnv*, jobject, jint amplitude) { in vibratorSetAmplitude() argument 97 Status status = mHal->setAmplitude(static_cast<uint32_t>(amplitude)); in vibratorSetAmplitude()
|