Pawin Vongmasa
212335cbc6
Fix the UAF bug caused by a dead stack variable
...
The original code attempts to copy data from a location pointed to by a
local variable that has gone out of scope. This CL moves the copy
operation into the scope.
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice
Bug: 63773604
Change-Id: I980630b6ac30875c2df65664668d4d6b7414f3a7
7 years ago
Pawin Vongmasa
ecb60a6fa1
Merge "Merge "Allow getrandom() in media.codec process" into oc-dr1-dev am: dfcfad27da
am: 94c68c62f0" into oc-mr1-dev-plus-aosp
...
am: 749424079c
Change-Id: I33eea5cb94a2e5034436b6f8b0fb912eab67bf2c
7 years ago
Pawin Vongmasa
930fac6340
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev am: dfcfad27da
am: 264a6e84e7
...
am: 928da113b6
Change-Id: If3822508185a937b0bacb6e02fb54a4c5ba38c9d
7 years ago
Wei Jia
28e6c5fc56
Merge "GenericSource: still feed audio decoder when paused."
7 years ago
Ian Elliott
0fbeb4d09d
Merge "Revert "Have the Surface class track the buffer age.""
7 years ago
Ian Elliott
cd5a09d650
Revert "Have the Surface class track the buffer age."
...
This reverts commit e0ecc35b14
.
Change-Id: I5c42683f9eadec78138eca0f5541d9d161e5bec9
7 years ago
Eric Laurent
e6e9a4811d
AudioFlinger: fix set parameters on mmap streams
...
Bug: 63935167
Test: Verify capture from USB mic on mmap input stream
Change-Id: I416eb90ef0e9d51d54f6450c374c086ab078d288
7 years ago
Ian Elliott
0892aeaa49
Merge "Have the Surface class track the buffer age."
7 years ago
Android Build Merger (Role)
749424079c
Merge "Merge "Allow getrandom() in media.codec process" into oc-dr1-dev am: dfcfad27da
am: 94c68c62f0" into oc-mr1-dev-plus-aosp
7 years ago
Pawin Vongmasa
bacf2f12df
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev am: dfcfad27da
...
am: 94c68c62f0
Change-Id: I8cf26dd4b3dafb204d30f70e03ab6131dac0981c
7 years ago
Pawin Vongmasa
928da113b6
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev am: dfcfad27da
...
am: 264a6e84e7
Change-Id: I65d398925867bb04d6bd660d0fdde7fbf22099ad
7 years ago
Pawin Vongmasa
94c68c62f0
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev
...
am: dfcfad27da
Change-Id: I3bb353d97ba7e82127b9786080c1fe3f120edfec
7 years ago
Pawin Vongmasa
264a6e84e7
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev
...
am: dfcfad27da
Change-Id: I50e264eef7d9f2bc01873060206a48a36e84d914
7 years ago
TreeHugger Robot
dfcfad27da
Merge "Allow getrandom() in media.codec process" into oc-dr1-dev
7 years ago
TreeHugger Robot
820d516c80
Merge "codec2: switch to Android.bp"
7 years ago
Ram Mohan
31c15235fb
Merge "fix output nFilledLen when prepareForAdaptivePlayback is true" into oc-mr1-dev am: a63b4da5e4
...
am: 973a48d17f
Change-Id: I5534c61b398e94fef16e11b20ddc9e91151b54b6
7 years ago
David Lin
eab0d1399b
audiopolicy: do not check for mode_in_communication for voip flags am: 72ad4b91d6
am: 438b538210
...
am: 8d9d5327d8
Change-Id: I21b01cd284884bade0233c7f60b4ef2b7ecc948a
7 years ago
Ram Mohan
973a48d17f
Merge "fix output nFilledLen when prepareForAdaptivePlayback is true" into oc-mr1-dev
...
am: a63b4da5e4
Change-Id: I2a711561f5d3b3504a84edb455f61c3ec28a64f7
7 years ago
David Lin
8d9d5327d8
audiopolicy: do not check for mode_in_communication for voip flags am: 72ad4b91d6
...
am: 438b538210
Change-Id: I24eb07a4afd92349fc3f54f24d57a38e81967beb
7 years ago
David Lin
b1d3a13267
audiopolicy: do not check for mode_in_communication for voip flags am: 72ad4b91d6
am: 58091c2e6c
...
am: c65382a1b7
Change-Id: Ifede6d81193080ec8f64b380065b820fa67f7d66
7 years ago
TreeHugger Robot
a63b4da5e4
Merge "fix output nFilledLen when prepareForAdaptivePlayback is true" into oc-mr1-dev
7 years ago
David Lin
438b538210
audiopolicy: do not check for mode_in_communication for voip flags
...
am: 72ad4b91d6
Change-Id: Id44c8b7ef6b969dd99d1203618074037360d47c5
7 years ago
David Lin
c65382a1b7
audiopolicy: do not check for mode_in_communication for voip flags am: 72ad4b91d6
...
am: 58091c2e6c
Change-Id: I813ae54695bd618f2b790101dd690c15a6499892
7 years ago
David Lin
58091c2e6c
audiopolicy: do not check for mode_in_communication for voip flags
...
am: 72ad4b91d6
Change-Id: I742803dd00cdd5bcbdf23b99bb6b415f3f118def
7 years ago
Sanna Catherine de Treville Wager
ee67de173a
Merge changes I776e35e7,Ie696cd90
...
* changes:
Organize PerformanceAnalysis members in structs
Write peaks to file. Minor cleanup
7 years ago
Sanna Catherine de Treville Wager
66d2ea48c4
Merge changes I4bbea8b5,Ib60758e1
...
* changes:
Write thread and data to separate files
Separate analysis for each source file location
7 years ago
Pawin Vongmasa
d371ee54c0
Allow getrandom() in media.codec process
...
Test: Run camera-fast-front-back-switch.sh in the bug
Bug: 63907147
Change-Id: I65d3fe66d9cd9663e431db4a56bc66f6c06a0548
7 years ago
David Lin
72ad4b91d6
audiopolicy: do not check for mode_in_communication for voip flags
...
Some VoIP clients may choose to open the streams as soon as the phone
state is set to MODE_RINGTONE to allow lower start latency when the call
is connected. This patch removes the unnecessary check conditions for
MODE_IN_COMMUNICATION since the stream type is sufficient indicator for
setting the flags for VoIP calls.
Bug: 62782025
Test: manual voip mo and mt calls tests
Change-Id: Idc7e1b6f33921580c0937dee71b2b2105cbd31eb
Signed-off-by: David Lin <dtwlin@google.com>
7 years ago
Sanna Catherine de Treville Wager
716d2c6660
Organize PerformanceAnalysis members in structs
...
Stores related variables in structs instead of
directly in the class definition
Test: dumpsys media.log
Change-Id: I776e35e74ac69b428170b379a9bcf4d18b3fa041
7 years ago
Sanna Catherine de Treville Wager
f8c34284fc
Write peaks to file. Minor cleanup
...
Test: dumpsys media.log
Change-Id: Ie696cd904306997142f050cf842290aeacfb6636
7 years ago
Wonsik Kim
6b5b6fdd33
codec2: switch to Android.bp
...
Test: builds
Change-Id: Id9cde46377182ea297962ef8cef89799548e6a77
7 years ago
Phil Burk
ec15950cd7
aaudio: remove AAUDIO_ from clock ids for autodocs
...
Use CLOCK_MONOTONIC instead of AAUDIO_CLOCK_MONOTONIC
Bug: 63915257
Test: Look at the generated autodocs.
Change-Id: I856da9ba4139833bcaef6873e87a3ef58e6ace69
7 years ago
rago
43be904825
Revert float capability for downmixer am: b636c4fd77
...
am: a37656ce89
Change-Id: Iac04324d02bc38ae65d07155ba4a9e57e45495c5
7 years ago
rago
a37656ce89
Revert float capability for downmixer
...
am: b636c4fd77
Change-Id: Id59a6c0ce73045a6c81b6e0b97f96773c0a9bf4d
7 years ago
Sanna Catherine de Treville Wager
23f89d3469
Write thread and data to separate files
...
Each file name starts with either "histogram" or
"outlier" and contains thread and hash (source
file location) information.
Test: dumpsys media.log
Change-Id: I4bbea8b5265ac539e6fb2ce16207e4f5c89d21d4
7 years ago
rago
b636c4fd77
Revert float capability for downmixer
...
Revert floating point processing on downmixer.
This commits partially reverts d7d013446a
Bug: 63760315
Test: Play multichannel movie
Change-Id: I16edf8767e02ef5d8ff63f52e8d1222ce0d09e22
7 years ago
Ian Elliott
e0ecc35b14
Have the Surface class track the buffer age.
...
This change corresponds to a change between the Surface and
BufferQueueProducer classes.
Have the Surface class track the buffer age, so that Surface::query()
can return the buffer age without having to use a binder call to
BufferQueueProducer::query(). The idea is for
BufferQueueProducer::dequeueBuffer() to return the value, which the
Surface class will cache for later use by Surface::query().
Bug: b/27903668
Test: Use systrace to no ensure query binder call after dequeueBuffer.
Change-Id: Iee7e7a3f92dcc88db70f460186a63450a6f18e31
7 years ago
Sanna Catherine de Treville Wager
d096517201
Separate analysis for each source file location
...
Use a map of maps of PerformanceAnalysis. The
first key is the thread, the second key the
source file location.
Test: dumpsys media.log
Change-Id: Ib60758e10ce1ddbf65337419db2ff3aa070763fb
7 years ago
Pawin Vongmasa
255735a38b
Organize header dependencies
...
Header files that are exported are moved to a specific place for
exporting.
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice
Bug: 63821829
Change-Id: Ia578e3c0dd1ff157335b3a49af896acb922586e8
7 years ago
Andy Hung
ade1ab814e
Merge "Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev am: db5beef4cf
am: 8e3c14dfdc" into oc-mr1-dev-plus-aosp
...
am: 234dd37741
Change-Id: I3803d9d5114474373d27d01e602c87e4d77e2f34
7 years ago
Andy Hung
a756d3e86a
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev am: db5beef4cf
am: 91b5eb2ffc
...
am: 538fb4ca2e
Change-Id: I6f5b0364c5a7a3d77b012b7346d10886e8b319db
7 years ago
Android Build Merger (Role)
234dd37741
Merge "Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev am: db5beef4cf
am: 8e3c14dfdc" into oc-mr1-dev-plus-aosp
7 years ago
Andy Hung
fbb0d41573
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev am: db5beef4cf
...
am: 8e3c14dfdc
Change-Id: I03aace9b4b0b6ceed6035ac674091d5d2de3a49b
7 years ago
Andy Hung
538fb4ca2e
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev am: db5beef4cf
...
am: 91b5eb2ffc
Change-Id: I98ad4283de514eea74585e0a604344e4bea42cae
7 years ago
Andy Hung
8e3c14dfdc
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev
...
am: db5beef4cf
Change-Id: I421260233901525a17c4f3aa0ea1b10485f09852
7 years ago
Andy Hung
91b5eb2ffc
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev
...
am: db5beef4cf
Change-Id: Ifeac95fa06d0160abf2215b84321be4a8823e31b
7 years ago
Andy Hung
db5beef4cf
Merge "MediaPlayer: Permit VolumeShaper operations on gapless playback" into oc-dr1-dev
7 years ago
Ram Mohan
ed31e32afc
fix output nFilledLen when prepareForAdaptivePlayback is true
...
Bug:63560919
Bug:62894603
Change-Id: If1fbd17ebc63743f88c3cbaf2b47a6ee726e06e8
7 years ago
Yin-Chia Yeh
c90d1eec82
Merge "Merge "Camera: fix emulator deadlock" into oc-dr1-dev am: 84201fee0b
am: 78611d7da9" into oc-mr1-dev-plus-aosp
...
am: 96fca845de
Change-Id: I9eef223932f6993e9fc90e6e61695a05d6c7f45d
7 years ago
Yin-Chia Yeh
54d7f4682f
Merge "Camera: fix emulator deadlock" into oc-dr1-dev am: 84201fee0b
am: 5c2bdf6a70
...
am: da87ca84e9
Change-Id: I8e2ce47b19db3689f0ddc5329fc1607403dd489e
7 years ago