Home
last modified time | relevance | path

Searched refs:amplitude (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp80 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()
Dshared_mem_test.h16 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/
DVibrationEffect.java69 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/
DSineSource.cpp81 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/
DVibratorService.java109 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/
DAAudioUtilities.h49 float amplitude);
91 float amplitude);
DAAudioUtilities.cpp106 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/
Dcom_android_server_VibratorService.cpp95 static void vibratorSetAmplitude(JNIEnv*, jobject, jint amplitude) { in vibratorSetAmplitude() argument
97 Status status = mHal->setAmplitude(static_cast<uint32_t>(amplitude)); in vibratorSetAmplitude()