Commit Graph

8014 Commits

Author SHA1 Message Date
TreeHugger Robot
a25da2ea30 Merge "Add missing return statement" 2019-10-15 16:56:12 +00:00
Hyundo Moon
eb50d8cb55 Add missing return statement
Test: Builds successfully
Change-Id: Ic785fe69dd085f5a1920a068672073c2e21e00a2
2019-10-15 17:15:50 +09:00
Marco Nelissen
7b8bf4a841 Merge "Adding Dolby Vision AV1 profile to frameworks/base" 2019-10-15 04:03:33 +00:00
TreeHugger Robot
7eb3aae828 Merge "MediaRouter: add volume control functionality into MR2" 2019-10-15 02:26:28 +00:00
Vikas Balapal Maheswarappa
8550ce26e9 Adding Dolby Vision AV1 profile to frameworks/base
Bug: 129367182
Test: build
Change-Id: If273ffeaa14f2698b7f8d143a2a504bee5058dbe
2019-10-14 17:43:44 -07:00
Jin Seok Park
83255dc98d Merge "Fix minor bugs" 2019-10-14 02:51:06 +00:00
Jeff Sharkey
295e970001 Merge "Finish deprecating legacy MediaScanner." 2019-10-12 17:56:45 +00:00
Jeff Sharkey
f8e15d9019 Finish deprecating legacy MediaScanner.
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
2019-10-11 15:57:23 -06:00
Jeff Sharkey
1a4223e543 Merge "Reveal color standard, transfer, and range." 2019-10-11 17:21:01 +00:00
Kyunglyul Hyun
5a8dedcf8a MediaRouter: add volume control functionality into MR2
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
2019-10-11 16:43:36 +09:00
Jeff Sharkey
588c15e56e Reveal color standard, transfer, and range.
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
2019-10-10 17:44:57 -06:00
Wei Jia
46d352505d Merge "CodecCapabilities: add low latency decoding feature" 2019-10-10 21:47:05 +00:00
TreeHugger Robot
8f2ea54546 Merge "Fix MediaCodec javadoc typo" 2019-10-10 18:13:06 +00:00
Wei Jia
3ff88e38e4 CodecCapabilities: add low latency decoding feature
Test: cts
Bug: 134971304
Change-Id: I73bec6db8b22c03edcb3aa415c6124cfa2b461cf
2019-10-10 09:41:54 -07:00
Jin Seok Park
252c1a2f55 Fix minor bugs
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
2019-10-10 20:31:15 +09:00
TreeHugger Robot
7bdf98eb6b Merge "MediaRouter2: Add volume-related info to MediaRoute2Info" 2019-10-10 06:42:05 +00:00
Kyunglyul Hyun
9b10a64b27 MediaRouter2: Add volume-related info to MediaRoute2Info
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
2019-10-10 14:09:57 +09:00
TreeHugger Robot
683149c478 Merge "Add BitmapParams option to getFrameAtTime/getScaledFrameAtTime" 2019-10-09 18:17:26 +00:00
Chong Zhang
435e59d934 Add BitmapParams option to getFrameAtTime/getScaledFrameAtTime
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
2019-10-08 19:50:17 +00:00
Andrew Lewis
320cfbb6bc Fix MediaCodec javadoc typo
Test: javadoc only fix

Change-Id: I531c6a433fefcd880d3233a59bfb249c7968a8e5
2019-10-08 09:52:29 +01:00
Jin Seok Park
25e071c74e Merge "Add constructor for standalone exif data" 2019-10-07 08:26:15 +00:00
Jin Seok Park
e7e18a449d Add constructor for standalone exif data
Bug: 140250800
Test: Run cts ExifInterfaceTest
Change-Id: Ic2d31e5c5e6e9ca91c384cf87fc56e5940364509
2019-10-07 15:44:07 +09:00
Tobias Thierer
0cfa891678 Merge "Track MimeMap moving to libcore.content.type." am: 0801b7c222 am: 093c1e4eaa am: b43f746cdc
am: 0935b64e5b

Change-Id: I13997bf4f330d2ceb2d871b291729b4d78569ba2
2019-10-04 06:46:14 -07:00
Tobias Thierer
0935b64e5b Merge "Track MimeMap moving to libcore.content.type." am: 0801b7c222 am: 093c1e4eaa
am: b43f746cdc

Change-Id: Ib18214d3bd9a295a792025cae58102ebf187b0bf
2019-10-04 06:33:10 -07:00
Tobias Thierer
8edd837b79 Track MimeMap moving to libcore.content.type.
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
2019-10-04 12:52:38 +00:00
Kyunglyul Hyun
f4cc8979e0 Merge "MediaRouter: Add setControlCategories to MediaRouter" 2019-10-04 06:23:05 +00:00
Dmitry Shmidt
8896515721 Merge changes If9068025,I728e5bf9,I9d41169d am: 3b6a00ec3c am: 225b9d90c2 am: 3aadf0a4d9
am: 567cb2b5cc

Change-Id: I41e0cf8b361563f011be5456a1c57c80bbc62be3
2019-10-02 16:00:17 -07:00
Dmitry Shmidt
567cb2b5cc Merge changes If9068025,I728e5bf9,I9d41169d am: 3b6a00ec3c am: 225b9d90c2
am: 3aadf0a4d9

Change-Id: I739f574365d36af6b37d47f5593b9ca14f26ef47
2019-10-02 15:21:10 -07:00
Kyunglyul Hyun
2f43fd6c57 MediaRouter: Add setControlCategories to MediaRouter
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
2019-10-01 17:04:21 +09:00
Dmitry Shmidt
3d23393159 AudioService: Add reporting of Mic Mute on start
Bug: 141192769
Test: Manual

Change-Id: I728e5bf9594622b7b80b640abd0f4938972d77ef
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2019-09-27 13:33:08 -07:00
Jin Seok Park
12812746ce Merge "Add support for parsing Exif chunk in PNG" 2019-09-26 08:17:54 +00:00
Jin Seok Park
740558e422 Add support for parsing Exif chunk in PNG
Bug: 138376314
Test: Cannot find PNG file with Exif chunk but manually checked that
      the chunks were being read correctly

Change-Id: Ifa54a4bb9bfde7ea02d82821a5a3b2b4cb5a8f71
2019-09-26 10:34:18 +09:00
Jin Seok Park
0a2366d805 Merge "Add API to check if specified mime type is supported" 2019-09-18 02:34:40 +00:00
Jin Seok Park
f0851b2704 Add API to check if specified mime type is supported
Bug: 138845596
Test: N/A
Change-Id: I082f1d63b85a786214316fa00fa14522fc822b20
2019-09-16 08:19:55 +09:00
Eric Laurent
bf904a2fab Merge "AudioTrack: fix default low power mode selection" into qt-qpr1-dev am: 38dceceaf2
am: e07f956e87

Change-Id: I8dad80b2ce0584a0d30765f4355a1704ba38051a
2019-09-13 13:09:00 -07:00
Eric Laurent
e07f956e87 Merge "AudioTrack: fix default low power mode selection" into qt-qpr1-dev
am: 38dceceaf2

Change-Id: Iff06ef6996eb8f410432272ea44c6aa118fd2aa0
2019-09-13 12:54:50 -07:00
Eric Laurent
40f7e04f74 AudioTrack: fix default low power mode selection
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
2019-09-13 09:23:54 -07:00
TreeHugger Robot
d8c549a0e9 Merge "Add ability to get soundtrigger props from dsp" 2019-09-04 23:59:05 +00:00
Nicholas Ambur
1aa4b4b779 Add ability to get soundtrigger props from dsp
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
2019-08-30 10:10:18 -07:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
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
2019-08-29 17:15:44 -07:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
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
2019-08-30 00:14:44 +00:00
Kyeongkab.Nam
9fc219671c TIF: Add content ratings
Put comments for the newly added DTMB, New Zealand
and Thailand rating strings.

Test: manual
Bug: 112835405
Change-Id: Idab6549b8acc4b9eb2904d5b531e28bc01046857
2019-08-26 22:42:06 +00:00
TreeHugger Robot
3f97f28037 Merge "Add OWNERS for media TV" 2019-08-26 19:20:27 +00:00
shubang
fb5cb3c815 Add OWNERS for media TV
Nick is the TLM of media TV.
Adding OWNERS to avoid bugging people from other media teams

Test: n/a
Change-Id: I2c99a7a1ab78c634fc94dfe96b6617b0bde4efdf
2019-08-22 18:54:15 -07:00
Kyunglyul Hyun
23b3aaa464 Media: add MediaRouter2.getRoutes()
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
2019-08-22 17:25:07 +09:00
TreeHugger Robot
69c1135405 Merge "Revert "Metadata: recycle Parcel"" 2019-08-21 19:45:27 +00:00
Wei Jia
79ca007329 Revert "Metadata: recycle Parcel"
This reverts commit e5a12e0ddb.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I24a4c274a3bc0d68d3c63ff701967ff3e4057983
2019-08-21 17:00:01 +00:00
Jeff Sharkey
570926daef Merge "Migrate MediaScannerConnection to using call()." 2019-08-20 00:29:26 +00:00
Jeff Sharkey
aac9878b43 Migrate MediaScannerConnection to using call().
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
2019-08-19 14:14:28 -06:00
Jin Seok Park
de41450fae Merge "Fix ExifInterface#saveAttributes behavior" 2019-08-19 14:46:03 +00:00