/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 41 int encode(void *payload, int16_t *samples); 42 int decode(int16_t *samples, int count, void *payload, int length); 47 int UlawCodec::encode(void *payload, int16_t *samples) in encode() argument 51 int sample = samples[i]; in encode() 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 78 samples[i] = (ulaw < 0 ? -sample : sample); in decode() 92 int encode(void *payload, int16_t *samples); 93 int decode(int16_t *samples, int count, void *payload, int length); 98 int AlawCodec::encode(void *payload, int16_t *samples) in encode() argument 102 int sample = samples[i]; in encode() [all …]
|
D | AmrCodec.cpp | 54 int encode(void *payload, int16_t *samples); 55 int decode(int16_t *samples, int count, void *payload, int length); 100 int AmrCodec::encode(void *payload, int16_t *samples) in encode() argument 106 samples, bytes + 1, &type, AMR_TX_WMF); in encode() 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() argument 169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) { in decode() 215 int encode(void *payload, int16_t *samples); 216 int decode(int16_t *samples, int count, void *payload, int length); 224 int GsmEfrCodec::encode(void *payload, int16_t *samples) in encode() argument 230 samples, bytes, &type, AMR_TX_WMF); in encode() [all …]
|
D | GsmCodec.cpp | 46 int encode(void *payload, int16_t *samples); 47 int decode(int16_t *samples, int count, void *payload, int length); 54 int GsmCodec::encode(void *payload, int16_t *samples) in encode() argument 56 gsm_encode(mEncode, samples, (unsigned char *)payload); in encode() 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) { in decode()
|
D | AudioCodec.h | 31 virtual int encode(void *payload, int16_t *samples) = 0; 33 virtual int decode(int16_t *samples, int count, void *payload, int length) = 0;
|
D | AudioGroup.cpp | 316 int16_t samples[mSampleCount]; in encode() local 327 samples[i] = sample; in encode() 334 memset(samples, 0, sizeof(samples)); in encode() 343 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT); in encode() 351 int length = mCodec->encode(&buffer[3], samples); in encode() 403 int16_t samples[count]; in decode() local 406 count = recv(mSocket, samples, sizeof(samples), in decode() 441 length = mCodec->decode(samples, count, &buffer[offset], length); in decode() 472 mBuffer[tail & mBufferMask] = samples[i]; in decode()
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 118 static int initGraphics(EGLint samples, const WindowSurface& windowSurface) in initGraphics() argument 122 EGL_SAMPLE_BUFFERS, samples ? 1 : 0, in initGraphics() 123 EGL_SAMPLES, samples, in initGraphics() 165 if (samples == 0) { in initGraphics() 185 unsigned samples = 0; in main() local 188 samples = atoi( argv[1] ); in main() 189 printf("Multisample enabled: GL_SAMPLES = %u\n", samples); in main() 193 if (!initGraphics(samples, windowSurface)) in main()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirProcess.h | 27 void mac(int32_t& l, int32_t& r, TC coef, const int16_t* samples) in mac() argument 29 uint32_t rl = *reinterpret_cast<const uint32_t*>(samples); in mac() 36 void mac(int32_t& l, TC coef, const int16_t* samples) in mac() argument 38 l = mulAdd(samples[0], coef, l); in mac() 44 void mac(float& l, float& r, TC coef, const float* samples) in mac() argument 46 l += *samples++ * coef; in mac() 47 r += *samples * coef; in mac() 52 void mac(float& l, TC coef, const float* samples) in mac() argument 54 l += *samples * coef; in mac() 379 const TI* const samples, const TO* const volumeLR) in fir() argument [all …]
|
D | AudioResamplerSinc.h | 55 int32_t* out, uint32_t phase, const int16_t *samples, uint32_t vRL); 61 int32_t lerp, const int16_t* samples);
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ProcessState.java | 116 long samples = 0; field in ProcessState.PssAggr 119 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add() 120 / (samples+newSamples); in add() 121 samples += newSamples; in add() 740 long samples = getPssSampleCount(type); in aggregatePss() local 741 if (samples > 0) { in aggregatePss() 745 fgPss.add(avg, samples); in aggregatePss() 747 bgPss.add(avg, samples); in aggregatePss() 749 cachedPss.add(avg, samples); in aggregatePss() 759 if (fgPss.samples < 3 && bgPss.samples > 0) { in aggregatePss() [all …]
|
/frameworks/ml/nn/common/random/ |
D | guarded_philox_random.h | 56 random::PhiloxRandom ReserveSamples128(int64 samples); 59 random::PhiloxRandom ReserveSamples32(int64 samples) { in ReserveSamples32() argument 60 return ReserveSamples128((samples + 3) / 4); in ReserveSamples32()
|
D | guarded_philox_random.cc | 41 random::PhiloxRandom GuardedPhiloxRandom::ReserveSamples128(int64 samples) { in ReserveSamples128() argument 45 generator_.Skip(samples); in ReserveSamples128()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 413 long[] samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL0); in testDisplayedContentSampling() local 414 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 416 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL1); in testDisplayedContentSampling() 417 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 419 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL2); in testDisplayedContentSampling() 420 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 422 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL3); in testDisplayedContentSampling() 423 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 46 public int findDominantColorByHue(Bitmap bitmap, int samples) { in findDominantColorByHue() argument 49 int sampleStride = (int) Math.sqrt((height * width) / samples); in findDominantColorByHue() 86 if (pixelCount < samples) { in findDominantColorByHue()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FloatArrayToSizeFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 19 import androidx.media.filterfw.samples.simplecamera.FloatArrayToSizeFilter;
|
D | FloatArrayToStrFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 24 import androidx.media.filterfw.samples.simplecamera.FloatArrayToStrFilter;
|
D | ContrastRatioFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 24 import androidx.media.filterfw.samples.simplecamera.ContrastRatioFilter;
|
/frameworks/wilhelm/src/desktop/ |
D | SDL.cpp | 52 fmt.samples = SndFile_BUFSIZE; in SDL_open() 54 fmt.samples = SndFile_BUFSIZE / sizeof(short); in SDL_open()
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 328 const FLAC__byte buffer[], size_t bytes, unsigned samples, in onEncodedFlacAvailable() argument 331 ALOGV("%s (bytes=%zu, samples=%u, curr_frame=%u)", __func__, bytes, samples, in onEncodedFlacAvailable() 334 if (samples == 0) { in onEncodedFlacAvailable() 341 if ((samples == 0) || !mEncoderWriteData) { in onEncodedFlacAvailable() 344 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, samples); in onEncodedFlacAvailable() 354 mProcessedSamples += samples; in onEncodedFlacAvailable() 411 unsigned samples, in flacEncoderWriteCallback() argument 415 buffer, bytes, samples, current_frame); in flacEncoderWriteCallback()
|
D | C2SoftFlacEnc.h | 58 size_t bytes, unsigned samples, unsigned current_frame, 61 const FLAC__byte buffer[], size_t bytes, unsigned samples,
|
/frameworks/native/cmds/flatland/ |
D | Main.cpp | 593 Vector<double> samples; in runTest() local 639 size_t newSamples = samples.size(); in runTest() 661 samples.add(sample); in runTest() 664 samples.sort(cmpDouble); in runTest() 667 size_t elem = (samples.size() * (outlierFraction-1) / outlierFraction); in runTest() 668 result = (samples[elem-1] + samples[elem]) * 0.5; in runTest()
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.h | 80 size_t bytes, unsigned samples, unsigned current_frame, void *client_data); 84 size_t bytes, unsigned samples, unsigned current_frame);
|
D | SoftFlacEncoder.cpp | 468 size_t bytes, unsigned samples, in onEncodedFlacAvailable() argument 472 bytes, samples, current_frame); in onEncodedFlacAvailable() 474 if (samples == 0) { in onEncodedFlacAvailable() 490 if ((samples == 0) || !mEncoderWriteData) { in onEncodedFlacAvailable() 493 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, samples); in onEncodedFlacAvailable() 585 unsigned samples, in flacEncoderWriteCallback() argument 589 buffer, bytes, samples, current_frame); in flacEncoderWriteCallback()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ThermalManagerService.java | 1137 ArrayList<Sample> samples = mSamples.computeIfAbsent(temperature.getName(), in updateTemperature() local 1139 if (samples.size() == RING_BUFFER_SIZE) { in updateTemperature() 1140 samples.remove(0); in updateTemperature() 1142 samples.add(new Sample(now, temperature.getValue())); in updateTemperature() 1152 float getSlopeOf(List<Sample> samples) { in getSlopeOf() argument 1155 for (int s = 0; s < samples.size(); ++s) { in getSlopeOf() 1156 Sample sample = samples.get(s); in getSlopeOf() 1160 long meanTime = sumTimes / samples.size(); in getSlopeOf() 1161 float meanTemperature = sumTemperatures / samples.size(); in getSlopeOf() 1165 for (int s = 0; s < samples.size(); ++s) { in getSlopeOf() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.h | 88 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples); 89 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | LongStatsCollector.java | 74 private Stats(int samples, long min, long max, double median) { in Stats() argument 75 mSamples = samples; in Stats()
|