Home
last modified time | relevance | path

Searched refs:amplitude (Results 1 – 12 of 12) 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/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt32 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/base/samples/demo/haptic-assessment/
DREADME.txt9 2) One shot vibration with 20ms duration at max amplitude.
11 3) Waveform vibration with 500ms duration at half amplitude, then 500ms duration
12 at max amplitude. This will pass if the device supports vibration amplitude
/frameworks/av/cmds/stagefright/
DSineSource.cpp82 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read() local
84 *ptr++ = amplitude; in read()
86 *ptr++ = amplitude; in read()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp92 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/
DCommandSetAmplitude.cpp39 if (auto amplitude = args.pop<decltype(mAmplitude)>()) { in doArgs() local
40 mAmplitude = *amplitude; in doArgs()
/frameworks/av/media/libaaudio/examples/utils/
DSineGenerator.h61 void setAmplitude(double amplitude) { in setAmplitude() argument
62 mAmplitude = amplitude; in setAmplitude()
/frameworks/base/core/java/android/os/
DVibrationEffect.java180 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot() argument
181 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot()
410 protected static int scale(int amplitude, float gamma, int maxAmplitude) { in scale() argument
411 float val = MathUtils.pow(amplitude / (float) MAX_AMPLITUDE, gamma); in scale()
426 public OneShot(long milliseconds, int amplitude) { in OneShot() argument
428 mAmplitude = amplitude; in OneShot()
650 for (int amplitude : mAmplitudes) { in validate()
651 if (amplitude < -1 || amplitude > 255) { in validate()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java184 static native void vibratorSetAmplitude(int amplitude); in vibratorSetAmplitude() argument
1272 private void doVibratorOn(long millis, int amplitude, int uid, VibrationAttributes attrs) { in doVibratorOn() argument
1276 if (amplitude == VibrationEffect.DEFAULT_AMPLITUDE) { in doVibratorOn()
1277 amplitude = mDefaultVibrationAmplitude; in doVibratorOn()
1281 " with amplitude " + amplitude + "."); in doVibratorOn()
1294 doVibratorSetAmplitude(amplitude); in doVibratorOn()
1302 private void doVibratorSetAmplitude(int amplitude) { in doVibratorSetAmplitude() argument
1304 vibratorSetAmplitude(amplitude); in doVibratorSetAmplitude()
1647 final int amplitude = amplitudes[index]; in playWaveform() local
1652 if (amplitude != 0) { in playWaveform()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp298 static void vibratorSetAmplitude(JNIEnv*, jclass, jint amplitude) { in vibratorSetAmplitude() argument
300 … = hal->call(&aidl::IVibrator::IVibrator::setAmplitude, static_cast<float>(amplitude) / UINT8_MAX); in vibratorSetAmplitude()
305 Status status = halCall(&V1_0::IVibrator::setAmplitude, static_cast<uint32_t>(amplitude)) in vibratorSetAmplitude()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...