/frameworks/base/media/tests/LoudnessCodecApiTest/src/com/android/loudnesscodecapitest/ |
D | LoudnessCodecControllerTest.java | 110 final MediaCodec mediaCodec = createAndConfigureMediaCodec(); in getLoudnessCodecParams_callsAudioServiceGetLoudness() local 113 mLcc.addMediaCodec(mediaCodec); in getLoudnessCodecParams_callsAudioServiceGetLoudness() 114 mLcc.getLoudnessCodecParams(mediaCodec); in getLoudnessCodecParams_callsAudioServiceGetLoudness() 118 mediaCodec.release(); in getLoudnessCodecParams_callsAudioServiceGetLoudness() 125 final MediaCodec mediaCodec = createAndConfigureMediaCodec(); in release_stopCodecUpdates() local 128 mLcc.addMediaCodec(mediaCodec); in release_stopCodecUpdates() 133 mediaCodec.release(); in release_stopCodecUpdates() 140 final MediaCodec mediaCodec = createAndConfigureMediaCodec(); in addMediaCodecTwice_triggersIAE() local 143 mLcc.addMediaCodec(mediaCodec); in addMediaCodecTwice_triggersIAE() 145 assertThrows(IllegalArgumentException.class, () -> mLcc.addMediaCodec(mediaCodec)); in addMediaCodecTwice_triggersIAE() [all …]
|
/frameworks/base/media/java/android/media/ |
D | LoudnessCodecController.java | 82 default Bundle onLoudnessCodecUpdate(@NonNull MediaCodec mediaCodec, in onLoudnessCodecUpdate() argument 206 public boolean addMediaCodec(@NonNull MediaCodec mediaCodec) { in addMediaCodec() argument 207 final MediaCodec mc = Objects.requireNonNull(mediaCodec, in addMediaCodec() 228 "Loudness controller already added " + mediaCodec); in addMediaCodec() 232 mLcDispatcher.addLoudnessCodecInfo(mSessionId, mediaCodec.hashCode(), in addMediaCodec() 251 public void removeMediaCodec(@NonNull MediaCodec mediaCodec) { in removeMediaCodec() argument 256 mcInfo = getCodecInfo(Objects.requireNonNull(mediaCodec, in removeMediaCodec() 264 removedMc.set(mcs.remove(mediaCodec)); in removeMediaCodec() 274 "Loudness controller does not contain " + mediaCodec); in removeMediaCodec() 301 public Bundle getLoudnessCodecParams(@NonNull MediaCodec mediaCodec) { in getLoudnessCodecParams() argument [all …]
|
D | LoudnessCodecDispatcher.java | 95 for (MediaCodec mediaCodec : mediaCodecs) { in dispatchLoudnessCodecParameterChange() 97 mediaCodec.hashCode()); in dispatchLoudnessCodecParameterChange() 110 l.onLoudnessCodecUpdate(mediaCodec, in dispatchLoudnessCodecParameterChange() 115 mediaCodec.setParameters(bundle); in dispatchLoudnessCodecParameterChange() 118 + mediaCodec); in dispatchLoudnessCodecParameterChange()
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | Decoder.cpp | 44 void Decoder::onInputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx) { in onInputAvailable() argument 46 if (mediaCodec == mCodec && mediaCodec) { in onInputAvailable() 92 void Decoder::onOutputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx, in onOutputAvailable() argument 95 if (mediaCodec == mCodec && mediaCodec) { in onOutputAvailable() 125 void Decoder::onFormatChanged(AMediaCodec *mediaCodec, AMediaFormat *format) { in onFormatChanged() argument 127 if (mediaCodec == mCodec && mediaCodec) { in onFormatChanged() 133 void Decoder::onError(AMediaCodec *mediaCodec, media_status_t err) { in onError() argument 135 if (mediaCodec == mCodec && mediaCodec) { in onError()
|
D | Decoder.h | 67 void onError(AMediaCodec *mediaCodec, media_status_t err) override;
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.cpp | 24 void Encoder::onInputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx) { in onInputAvailable() argument 26 if (mediaCodec == mCodec && mediaCodec) { in onInputAvailable() 117 void Encoder::onOutputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx, in onOutputAvailable() argument 120 if (mediaCodec == mCodec && mediaCodec) { in onOutputAvailable() 141 void Encoder::onFormatChanged(AMediaCodec *mediaCodec, AMediaFormat *format) { in onFormatChanged() argument 143 if (mediaCodec == mCodec && mediaCodec) { in onFormatChanged() 149 void Encoder::onError(AMediaCodec *mediaCodec, media_status_t err) { in onError() argument 151 if (mediaCodec == mCodec && mediaCodec) { in onError()
|
D | Encoder.h | 74 void onError(AMediaCodec *mediaCodec, media_status_t err) override;
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Decoder.java | 177 @NonNull MediaCodec mediaCodec, int inputBufferId) { in decode() 180 onInputAvailable(inputBufferId, mediaCodec); in decode() 188 public void onOutputBufferAvailable(@NonNull MediaCodec mediaCodec, in decode() 191 onOutputAvailable(mediaCodec, outputBufferId, bufferInfo); in decode() 199 @NonNull MediaCodec mediaCodec, @NonNull MediaFormat format) { in decode() 205 @NonNull MediaCodec mediaCodec, @NonNull MediaCodec.CodecException e) { in decode() 322 private void onInputAvailable(int inputBufferId, MediaCodec mediaCodec) { in onInputAvailable() argument 324 ByteBuffer inputCodecBuffer = mediaCodec.getInputBuffer(inputBufferId); in onInputAvailable() 343 mediaCodec.queueInputBuffer(inputBufferId, bufInfo.offset, bufInfo.size, in onInputAvailable() 355 MediaCodec mediaCodec, int outputBufferId, BufferInfo outputBufferInfo) { in onOutputAvailable() argument [all …]
|
D | Encoder.java | 234 public void onInputBufferAvailable(@NonNull MediaCodec mediaCodec, in encode() 238 onInputAvailable(mediaCodec, inputBufferId); in encode() 246 public void onOutputBufferAvailable(@NonNull MediaCodec mediaCodec, in encode() 250 onOutputAvailable(mediaCodec, outputBufferId, bufferInfo); in encode() 258 public void onError(@NonNull MediaCodec mediaCodec, @NonNull CodecException e) { in encode() 266 public void onOutputFormatChanged(@NonNull MediaCodec mediaCodec, in encode() 323 private void onOutputAvailable(MediaCodec mediaCodec, int outputBufferId, in onOutputAvailable() argument 331 ByteBuffer outputBuffer = mediaCodec.getOutputBuffer(outputBufferId); in onOutputAvailable() 354 mediaCodec.releaseOutputBuffer(outputBufferId, false); in onOutputAvailable() 361 private void onInputAvailable(MediaCodec mediaCodec, int inputBufferId) throws IOException { in onInputAvailable() argument [all …]
|
D | FrameReleaseQueue.java | 147 public void setMediaCodec(MediaCodec mediaCodec) { in setMediaCodec() argument 148 this.mCodec = mediaCodec; in setMediaCodec()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | AudioTrackDecoder.java | 62 MediaCodec mediaCodec; in initMediaCodec() local 64 mediaCodec = MediaCodec.createDecoderByType( in initMediaCodec() 71 mediaCodec.configure(format, null, null, 0); in initMediaCodec() 72 return mediaCodec; in initMediaCodec()
|
D | GpuVideoTrackDecoder.java | 90 MediaCodec mediaCodec; in initMediaCodec() local 92 mediaCodec = MediaCodec.createDecoderByType( in initMediaCodec() 100 mediaCodec.configure(format, surface, null, 0); in initMediaCodec() 102 return mediaCodec; in initMediaCodec()
|
D | CpuVideoTrackDecoder.java | 68 MediaCodec mediaCodec = findDecoderCodec(format, new int[] { in initMediaCodec() local 71 if (mediaCodec == null) { in initMediaCodec() 75 mediaCodec.configure(format, null, null, 0); in initMediaCodec() 76 return mediaCodec; in initMediaCodec()
|
/frameworks/proto_logging/stats/ |
D | atoms.proto | 2697 // RESET indicates all mediaCodec stopped. Used when it (re)starts (e.g. after it crashes).
|