/cts/suite/audio_quality/lib/src/task/ |
TaskSound.cpp | 79 int amplitude = atoi(tokens->at(1).string()); local 83 buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, amplitude, 90 int amplitude = atoi(tokens->at(1).string()); local 93 buffer = AudioSignalFactory::generateWhiteNoise(AudioHardware::E2BPS, amplitude,
|
/device/google/marlin/vibrator/ |
Vibrator.cpp | 43 Vibrator::Vibrator(std::ofstream&& enable, std::ofstream&& amplitude) : 45 mAmplitude(std::move(amplitude)) {} 70 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { 71 if (amplitude == 0) { 74 // Scale the voltage such that an amplitude of 1 is MIN_VOLTAGE, an amplitude of 255 is 77 std::lround((amplitude - 1) / 254.0 * (MAX_VOLTAGE - MIN_VOLTAGE) + MIN_VOLTAGE); 78 ALOGE("Setting amplitude to: %ld", voltage); 81 ALOGE("Failed to set amplitude (%d): %s", errno, strerror(errno)); 89 uint8_t amplitude; local [all...] |
/external/webrtc/webrtc/modules/audio_processing/ |
splitting_filter_unittest.cc | 56 float amplitude = is_present[j] ? kAmplitude : 0.f; local 59 amplitude * sin(2.f * M_PI * kFrequenciesHz[j] *
|
/frameworks/av/cmds/stagefright/ |
SineSource.cpp | 82 int16_t amplitude = (int16_t)(32767.0 * sin(x)); local 84 *ptr++ = amplitude; 86 *ptr++ = amplitude;
|
/frameworks/av/media/libaaudio/examples/write_sine/src/ |
write_sine_callback.cpp | 85 double amplitude; local 89 amplitude = 0.2; 93 amplitude = 0.0; 97 myData.sineOscillators[i].setAmplitude(amplitude);
|
/system/media/audio_utils/ |
power.cpp | 126 const float amplitude = convertToFloatAndIncrement<FORMAT>(&litudes); local 127 accum += amplitude * amplitude;
|
/frameworks/base/media/tests/audiotests/ |
shared_mem_test.cpp | 80 long amplitude; local 86 amplitude = 1000; 88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer 134 void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi) 138 buffer[i0] = ComputeSine( amplitude, phi); 149 short AudioTrackTest::ComputeSine(long amplitude, long phi) 155 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15; 158 l1 = (amplitude*sin1024[((phi>>22) + 256) & 0x3ff]) >> 15; // 2^15*cosine
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
SoundLevelCalibration.java | 28 private static final double CRITICAL_RATIO = 0.41; // Ratio of input over output amplitude at 78 double amplitude = runAudioThread(mNativeAudioThread); local 80 Log.d(TAG, "calibrate: at sound level " + level + " volume was " + amplitude); 82 if (amplitude < Constant.SINE_WAVE_AMPLITUDE * CRITICAL_RATIO) { 95 // runs the native audio thread and returns the average amplitude 115 return Math.sqrt(2.0 * sumSquare / data.length); // amplitude of the sine wave
|
/external/drrickorang/LoopbackApp/app/src/main/jni/ |
sles.cpp | 300 float amplitude = 0.8; local 305 value = (short) (sin(pSles->bufferTestPhase1) * maxShort * amplitude); [all...] |
/tools/tradefederation/contrib/src/com/android/media/tests/ |
AudioLoopbackImageAnalyzer.java | 31 * wave amplitude, duration and form and make a decision if it's a legitimate wave form or not. 57 // Amplitude 60 // The difference between two amplitude columns should not be more than this 64 // Minimum space between two amplitude columns 74 private static class Amplitude { 123 // Amplitude 157 final float amplitude = (amplitudeBottom - amplitudeTop) * 100.0f / height; local 160 CLog.i("AudioLoopbackImageAnalyzer: Amplitude=" + amplitude + ", Duration=" + duration); 165 amplitude, [all...] |
/bionic/libc/kernel/uapi/sound/ |
sfnt_info.h | 98 unsigned char amplitude; member in struct:soundfont_voice_info
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioTrackLatencyTest.java | 132 public double amplitude = 0.5; field in class:AudioTrackLatencyTest.TestSetup 140 samplesPerFrame, 1, amplitude);
|
AudioTrackSurroundTest.java | 459 int amplitude = 8000; local 462 mData[i] = (short)(random.nextInt(amplitude) - (amplitude / 2));
|
/external/ImageMagick/MagickCore/ |
statistic.c | 924 amplitude, 930 Sinusoid: frequency, phase, amplitude, bias. 934 amplitude=(number_parameters >= 3) ? parameters[2] : 0.5; 936 result=(double) (QuantumRange*(amplitude*sin((double) (2.0* 921 amplitude, local [all...] |
/external/kernel-headers/original/uapi/sound/ |
sfnt_info.h | 136 unsigned char amplitude; /* sample volume (127 max) */ member in struct:soundfont_voice_info
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/sound/ |
sfnt_info.h | 135 unsigned char amplitude; /* sample volume (127 max) */ member in struct:soundfont_voice_info
|
/frameworks/base/services/core/java/com/android/server/ |
VibratorService.java | 94 // Max amplitudes for scale levels. If one is not listed, then the max amplitude is the default 95 // max amplitude. 147 native static void vibratorSetAmplitude(int amplitude); 432 // Input device vibrators don't support amplitude controls yet, but are still used over 502 // If our current vibration is longer than the new vibration and is the same amplitude, 1126 final int amplitude = amplitudes[index]; local [all...] |
/prebuilts/sdk/28/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |