summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2018-02-28 18:46:26 -0800
committerChong Zhang <chz@google.com>2018-03-15 18:17:53 +0000
commita0b72a6cdd6e575e2ea0ec2bffc9a361c4041665 (patch)
tree7985ee84659bc987d2e19c564af4c3c725c68800 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdbeb6bc3f14d51cfee7b16214c348e2824a9d5ef (diff)
fix slow get caps -- DO NOT MERGE
When get caps is called on an MediaCodec object, try to use the codec info for that MediaCodec first as it should be available during codec construction. Only when that somehow failed go and initialize the full MediaCodecList, as building the entire list could be very slow. And when cloning the CodecCapabilities from MediaCodecInfo, copy the fields directly and the fields (other than the ones modifiable by client) are immutable after construction. bug: 74073607 Test: CTS media post submit: cts-tradefed run cts-dev --module CtsMediaTestCases --compatibility:module-arg CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice Change-Id: I4ae5f2431da8528e1eca093c5cfb98abcb4a5bbf (cherry picked from commit 90d7304a83ea1758ac2f7a9293d4790a1a28eb4e)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions