/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 | 318 int16_t samples[mSampleCount]; in encode() local 329 samples[i] = sample; in encode() 336 memset(samples, 0, sizeof(samples)); in encode() 345 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT); in encode() 353 int length = mCodec->encode(&buffer[3], samples); in encode() 405 int16_t samples[count]; in decode() local 408 count = recv(mSocket, samples, sizeof(samples), in decode() 434 length = mCodec->decode(samples, count, &buffer[offset], length); in decode() 465 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 | 114 long samples = 0; field in ProcessState.PssAggr 117 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add() 118 / (samples+newSamples); in add() 119 samples += newSamples; in add() 738 long samples = getPssSampleCount(type); in aggregatePss() local 739 if (samples > 0) { in aggregatePss() 743 fgPss.add(avg, samples); in aggregatePss() 745 bgPss.add(avg, samples); in aggregatePss() 747 cachedPss.add(avg, samples); in aggregatePss() 757 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 | 399 long[] samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL0); in testDisplayedContentSampling() local 400 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 402 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL1); in testDisplayedContentSampling() 403 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 405 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL2); in testDisplayedContentSampling() 406 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling() 408 samples = sample.getSampleComponent(DisplayedContentSample.ColorComponent.CHANNEL3); in testDisplayedContentSampling() 409 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FloatArrayToStrFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 24 import androidx.media.filterfw.samples.simplecamera.FloatArrayToStrFilter;
|
D | FloatArrayToSizeFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 19 import androidx.media.filterfw.samples.simplecamera.FloatArrayToSizeFilter;
|
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 | 475 size_t bytes, unsigned samples, in onEncodedFlacAvailable() argument 479 bytes, samples, current_frame); in onEncodedFlacAvailable() 481 if (samples == 0) { in onEncodedFlacAvailable() 497 if ((samples == 0) || !mEncoderWriteData) { in onEncodedFlacAvailable() 500 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, samples); in onEncodedFlacAvailable() 592 unsigned samples, in flacEncoderWriteCallback() argument 596 buffer, bytes, samples, current_frame); in flacEncoderWriteCallback()
|
/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()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacDec.h | 99 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples); 100 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 638 batch.samples.push(mMsg); in consume() 647 const size_t count = batch.samples.size(); in consume() 649 const InputMessage& msg = batch.samples.itemAt(i); in consume() 652 batch.samples.removeItemsAt(0, count); in consume() 659 batch, batch.samples.size(), outSeq, outEvent); in consume() 678 batch.samples.push(mMsg); in consume() 717 result = consumeSamples(factory, batch, batch.samples.size(), outSeq, outEvent); in consumeBatch() 733 if (batch.samples.isEmpty()) { in consumeBatch() 737 next = &batch.samples.itemAt(0); in consumeBatch() 755 InputMessage& msg = batch.samples.editItemAt(i); in consumeSamples() [all …]
|