Getting the content provider could
return null in some cases where the user
is locked, so check for that when closing.
Bug: 73656609
Test: no crash
Change-Id: I607cd2da5348520616a1c171d0d8a1afacabe592
This CL includes following changes
- Remove outdated TODOs
- Added buganizer issue if the remaining work take more than 5m
Test: Run MediaComponents tests
Change-Id: I8968e12aabcbc67f69dbf14485b3716d0e95779b
This is to follow MediaPlayer2 and MediaPlayerBase's API style.
Bug: 64098437
Test: make update-api
Change-Id: I7fe17852d16237fac801c716eab1007cd0337867
This would be used in response to
- MediaController2#play()
- KEYCODE_MEDIA_STOP
Bug: 64098437
Test: passed MediaComponentTest
Change-Id: I7cd4d855d5e1bf8e4260a9b920f30dfe2eea44e1
This CL makes the Javadoc of METADATA_KEY_* to be consistent.
Bug: 73877547
Test: Builds successfully
Change-Id: Icb68d62230bb4e523da2015db76d5aeaa098c69a
System API for a registered AudioPolicy to attach or detach
AudioMix without having to unregister, and then registering
the new mix configuration.
Bug: 63906162
Test: AudioPolicyTest
Change-Id: Ib2fea8aa034d3f7b498e76dc1fc51c1ea508d3a2
API review suggested that default security level
be mentioned in the older openSession method as
well as in the new one.
bug:73750379
Change-Id: I0c740fe4c9579cb8cd7ab623e940193ad34dfd16
This mirror the corresponding NDK API. For some
reason this was missing from the java version
of Image.
Bug: 73784759
Test: manual
Change-Id: Iafa6dedda809fe38ea4453d9873d1ba886f88481
Remove cas header from media jni headers, and define flags
for PES header extraction.
bug: 73898003
test: CTS MediaCasTest, MediaDrmClearkeyTest
Change-Id: I2a512e2dbeb8be53a64bfa0b89254032c7341fa2
This CL also removes the public constructor of MediaItem2, which was
suggested by API reviewers.
Bug: 73971203
Test: Passed MediaBrowser2Test (CTS)
Change-Id: If82c2795a4f205b9dfd4db11a173433359d1b352
The Javadoc of the METADATA_KEY_* does not contain type information.
This CL adds '@see' in each key so that the developer can easily notice
what method should be used.
Bug: 73877547
Test: Builds successfully
Change-Id: I04f1b0badc1b6e7af6cb04923ef4f59328248b74
Define as an abstract class the high level interface for
media players. Consumers are MediaSession2, providers
are MediaPlayer2, which will extend this class.
Bug: 64098437
Test: to be in MediaPlayer2 tests once it extends MPB
Change-Id: Id0d0fcb6d1b377a0e05a4a8e3d659e12a58fc45e
This is request from the Android Auto Embeded, where the Android is
running on the car kit and needs support radio application
Test: Run all MediaComponents tests once
Change-Id: I09780878ac3a1075c79f51879ffb76913a8215a2