Home
last modified time | relevance | path

Searched refs:SAMPLE_RATE (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/proto/
DProtoParserTest.java28 private static final ErrorCodeSampleInterval SAMPLE_RATE = field in ProtoParserTest
38 String encodedStr = getBase64EncodedString(SAMPLE_RATE, Base64.DEFAULT); in parseBase64EncodedStringToProto_success()
45 expect.that(actual).isEqualTo(SAMPLE_RATE); in parseBase64EncodedStringToProto_success()
50 String encodedStr = getBase64EncodedString(SAMPLE_RATE, Base64.NO_WRAP | Base64.NO_PADDING); in parseBase64EncodedStringToProto_noWrapNoPadding_success()
57 expect.that(actual).isEqualTo(SAMPLE_RATE); in parseBase64EncodedStringToProto_noWrapNoPadding_success()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTrackPlayer.java38 private static final int SAMPLE_RATE = 48_000; field in AudioTrackPlayer
51 .setSampleRate(SAMPLE_RATE)
119 double samplesInCycle = ((double) SAMPLE_RATE) / ((double) mToneFreq); in getBuffer()
122 double kw = 2 * Math.PI / (SAMPLE_RATE / mToneFreq); in getBuffer()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/audio/
DAudioReader.java32 private static final int BUFFER_SIZE = AudioDebug.SAMPLE_RATE * 40;
58 AudioRecord.getMinBufferSize(AudioDebug.SAMPLE_RATE, AudioFormat.CHANNEL_IN_DEFAULT, in AudioReader()
67 .setSampleRate(AudioDebug.SAMPLE_RATE) in AudioReader()
163 return Math.round((double) samples / AudioDebug.SAMPLE_RATE / AudioDebug.CHANNELS * 1000); in samplesToMs()
DWavWriter.java80 stream.write(toLittleEndianBytes(AudioDebug.SAMPLE_RATE), 0, 4); in writeFileHeader()
84 AudioDebug.SAMPLE_RATE * AudioDebug.BITRATE * AudioDebug.CHANNELS / 8), 0, in writeFileHeader()
DAudioDebug.java34 public static final int SAMPLE_RATE = 16000; field in AudioDebug
112 .setSampleRate(SAMPLE_RATE) in onAudioRecorded()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/system/development/audio/
DAudioReader.java33 private static final int BUFFER_SIZE = AudioDebug.SAMPLE_RATE * 40;
59 AudioRecord.getMinBufferSize(AudioDebug.SAMPLE_RATE, AudioFormat.CHANNEL_IN_DEFAULT, in AudioReader()
66 .setSampleRate(AudioDebug.SAMPLE_RATE) in AudioReader()
162 return Math.round((double) samples / AudioDebug.SAMPLE_RATE / AudioDebug.CHANNELS * 1000); in samplesToMs()
DWavWriter.java80 stream.write(toLittleEndianBytes(AudioDebug.SAMPLE_RATE), 0, 4); in writeFileHeader()
84 AudioDebug.SAMPLE_RATE * AudioDebug.BITRATE * AudioDebug.CHANNELS / 8), 0, in writeFileHeader()
DAudioDebug.java34 public static final int SAMPLE_RATE = 16000; field in AudioDebug
112 .setSampleRate(SAMPLE_RATE) in onAudioRecorded()
/packages/modules/Bluetooth/system/tools/scripts/
Ddump_hearingaid_audio.py50 SAMPLE_RATE = "SAMPLE_RATE" variable
157 update_audio_data(CONNECTION_HANDLE, result[CONNECTION_HANDLE], SAMPLE_RATE, sample_rate)
352 file_name_list.append(data[SAMPLE_RATE])
441 audio_data[i].pop(SAMPLE_RATE, "")
574 update_audio_data(PEER_ADDRESS, fake_name, SAMPLE_RATE, "Unknown")
585 update_audio_data(PEER_ADDRESS, fake_name, SAMPLE_RATE, "Unknown")
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java484 proto.write(CarAudioDeviceInfoProto.SAMPLE_RATE, getSampleRate()); in dumpProto()