We switched completely over to using ModernMediaScanner in Android Q,
and this legacy code is no longer being used. Clean it up, but leave
enough remnants behind to begrudgingly keep reflecting apps working.
Bug: 128243527
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ib2bc341fafcd4c2e049c864a35fbe651d013f6fd
Add requestSetVolume and requestUpdateVolume into
MediaRouter2 and MediaRouter2Manager to enable users to control volume
of routes.
This CL also includes test cleanup for readability.
Bug: 142298160
Test: atest mediaroutertest
Change-Id: Iebb396c921517ec1a7677f90baa119ab647b5689
We've already been parsing them for many years, and they're well
defined by other public APIs, so let's reveal them in MediaStore.
Also get some storage-related documentation updated to guide
developers towards replacements in a post-scoped-storage world.
Bug: 140247264, 139185855, 141523097, 139185322
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Id39a74a9972a330b3f83913b2eef5100ec59627d
Save offset values to the Exif chunk in PNG so that the correct
offset values for thumbnail data can be retrieved.
Bug: 138376314
Test: Run cts ExifInterfaceTest
Change-Id: I0fd8b0eb7d5fdb1a60f292c8fe41e9b7cb830fe6
Prior to adding volume control functionaly to MediaRouter2,
this CL adds volume-related info to MediaRoute2Info.
From this, MediaRouter2 clients can show the current volume of the remote device.
Volume control logic will be followed by this CL.
Bug: 142298160
Test: atest mediaroutertest
Change-Id: I64a96db9c194e5a5d9aa3ce9b8792c0eb7f2eb4f
Add versions of these two methods that accepts BitmapParams.
Does not change spec or behavior of existing getFrameAtTime/
getScaledFrameAtTime.
bug: 135718180
bug: 138114267
test: CTS MediaMetadataRetrieverTest; manual testing with
thumbnails saved to storage and examine the outputs.
Change-Id: I75e96dde072c94ac950f0be637cdd096e7543f10
Another CL in this topic moves libcore.net.MimeMap to package
libcore.content.type. This CL updates associated references.
Bug: 136256059
Bug: 124232146
Test: Treehugger
Test: CtsMimeMapTestCases
Exempt-From-Owner-Approval: move affecting imports only
Change-Id: I30aac8b28a1740180ea01834a2bb66b61cb255d4
This CL allows users to set control categores in MediaRouter.
With this, media apps can seamless transfer feature w/o using
Mediarouter2.
This Cl also adds test to ensure that control categories are sent to
media router manager properly.
MediaRouter2ServiceImpl maintains a list of MediaRouter clients to save
their control categories and send: them to media router manager.
Test: atest mediaroutertest
Change-Id: I80dad04053200119ceb54f63d2cef0b06bac8e3d
Bug: 138376314
Test: Cannot find PNG file with Exif chunk but manually checked that
the chunks were being read correctly
Change-Id: Ifa54a4bb9bfde7ea02d82821a5a3b2b4cb5a8f71
Fix AudioAttributes flags checking logic in
shouldEnablePowerSaving() to take into account
flags that are compatible with deep buffer.
Bug: 140899988
Test: check that playback with Spotify goes to deep buffer
Change-Id: I492410b7837b15e248d61ec50dbb468e78e04524
exposes sound trigger module properties to privileged
system apps with MANAGE_SOUND_TRIGGER permission
Bug: 139071862
Test: GTS test confirmed API accessible and providing valid data
Change-Id: Iec7ba6fc59912f44341fbe8d7f99193b9ead52f0
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.
This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi
Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.
This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi
Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
Put comments for the newly added DTMB, New Zealand
and Thailand rating strings.
Test: manual
Bug: 112835405
Change-Id: Idab6549b8acc4b9eb2904d5b531e28bc01046857
Nick is the TLM of media TV.
Adding OWNERS to avoid bugging people from other media teams
Test: n/a
Change-Id: I2c99a7a1ab78c634fc94dfe96b6617b0bde4efdf
As with this CL, media apps can get the list of available routes using
MediaRouter2.getRoutes() or MediaRouter2.Callback.onRouteListChanged().
For that MediaRouterService notifies MediaRouter2 of providerinfos.
This CL also clarifies provider info notification logic.
1) When a new client or a new manager is registered, it will be
notified.
2) When a provider info is updated, it will be notified.
onRouteListChanged will be called for a newly registerd callback.
Fixed a bug that MediaRoute2ProviderProxy didn't report state update
when the provider is disonnected.
Test: atest mediaroutertest
Change-Id: I50f5c3cabce80e7fb0a1b5596883c35911d6f122
As part of getting MediaProvider to compile against supported APIs,
we're moving to the call() method instead of IMediaScannerService.
Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Change-Id: Ie959daa7576214024150faf84b44cdba00119257