Commit Graph

9490 Commits

Author SHA1 Message Date
TreeHugger Robot
2acc16e937 Merge "Add package name when initializing SoundPool." 2020-12-16 16:34:21 +00:00
Antonio Kantek
2be4e6b37a Merge "Exposing AudioAttributes#usageToString as public API" 2020-12-16 00:27:42 +00:00
Amy Zhang
2d1c83c610 Merge "Fix the Tuner Framework javadoc @link format" 2020-12-15 20:46:52 +00:00
Amy Zhang
98af6acd86 Merge "Add an initial TunerClient/FrontendClient interface to interact between Tuner HIDL and Tuner JNI" 2020-12-15 20:43:54 +00:00
jiabin
de9005bab1 Add package name when initializing SoundPool.
The package name is useful for permission validation. Currently, package
name is required when starting external vibration so that the vibrator
service can verify if the app has the permission to start vibration.

Bug: 175595599
Test: SoundPool tests in cts
Test: play audio-coupled-haptic file using SoundPool.
Change-Id: Ibfe414063a303118a5bb393d65ea5dc2323bf722
2020-12-15 10:53:22 -08:00
Antonio Kantek
3935bdf708 Exposing AudioAttributes#usageToString as public API
Bug: 159623196
Test: atest CtsMediaTestCases:android.media.cts.AudioAttributesTest
Change-Id: I111f78e4bb1e7cf193085c172db5520d25100d6e
2020-12-14 11:20:49 -08:00
Kyunglyul Hyun
1e2d5e889f Merge "MediaRouterService binds services when necessary" 2020-12-14 07:31:00 +00:00
Treehugger Robot
8f77cb9bea Merge "MediaCodecInfo: limit resolution to 4K for 32-bit processes" am: 41ac3bae5f am: 8299672bb8 am: 49fc2e5de7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519906

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b5ef6d284bc2ed7ac9f4ebbb7b2aaaa53958700
2020-12-14 07:23:56 +00:00
Treehugger Robot
41ac3bae5f Merge "MediaCodecInfo: limit resolution to 4K for 32-bit processes" 2020-12-14 06:09:09 +00:00
Kyunglyul Hyun
9f889ca4e6 MediaRouterService binds services when necessary
MediaRouterService maintained bindings to provider services
once those are established.

With this CL, it only binds services when there is a non-empty
discovery preference set by a foreground app or an app is casting.

This change may break output switcher, which enables transfer media
of background apps.

To alleviate that MediaRouter2Manager#startScan and #stopScan are added
so that system UI can force the service bind to the services and find
remote devices to cast.

Bug: 169575701
Bug: 172920557

Test: manually and CTS
Change-Id: I4a47fdb1c9fe05a04d26950485833c9cbfb91a69
2020-12-14 02:33:45 +00:00
Amy Zhang
bf68a16af5 Add an initial TunerClient/FrontendClient interface to interact between Tuner HIDL and Tuner JNI
Test: make libmedia_tv_tuner
Bug: 174095851
Change-Id: I8f1b0c79860eb4bf8d4d16595e8b798ad691288a
2020-12-11 17:25:57 -08:00
Wonsik Kim
ef60b5fa00 MediaCodecInfo: limit resolution to 4K for 32-bit processes
Due to the limited virtual memory address space it is not practical
to advertise support for more than 4K for 32-bit processes.

Bug: 173488434
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: Ibcd7f70f4efd8d696d831769bafe932207640830
2020-12-11 16:21:47 -08:00
TreeHugger Robot
42fa75c72b Merge "Don't open frontend device if it's a shared frontend" 2020-12-11 21:58:54 +00:00
Henry Fang
f97fff7cc6 Don't open frontend device if it's a shared frontend
bug: 175255961
Test: manual
Change-Id: Ib8c9704ebd1c518a84b8526172ca2fe3d087db87
2020-12-11 12:14:49 -08:00
Eric Laurent
fde0ff7dbe Merge "AudioManager: add reporting of gapless playback support" 2020-12-11 07:09:29 +00:00
Sam Saccone
bf33f70982 Merge "Revert "Temporarily replace "android.com" accounts."" 2020-12-10 23:05:03 +00:00
TreeHugger Robot
7349aa999b Merge "Introduce AudioProfile to describe the capabilities of audio ports." 2020-12-10 17:17:41 +00:00
Hyundo Moon
161b4441a6 Add PlaybackState.ACTION_SET_PLAYBACK_SPEED
When "04fb2e7: MediaSession/Controller: Add playback speed related APIs"
was merged, the constant was not added.

This CL adds the new constant.

Bug: 174297519
Test: m update-api -j;
Change-Id: I698737bcfe641edd7b5ea07b4b385c81fe899994
2020-12-10 08:33:43 +00:00
Serik Beketayev
c869ab40bf Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7 am: c6218f7977 am: 006d043dfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id0749108e03d88af0b8c50a36f1a4ca28b9a40ce
2020-12-10 01:05:32 +00:00
Serik Beketayev
c6218f7977 Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc0a49e76f87a741f4410b53e9a40012e37fde36
2020-12-10 00:08:03 +00:00
Serik Beketayev
a086c295e7 Merge "[Mainline Migration] Migrate NetworkUtils" 2020-12-09 23:47:05 +00:00
Jean-Michel Trivi
15e3005386 AudioManager: fix implementation of isMusicActive()
Implementation of isMusicActive() should go through AudioService
as AudioSystem.isStreamActive() can only be called from system
service.

Bug: 175084989
Bug: 162423060
Test: atest AudioManagerTest
Change-Id: I15b3f7cd082a7497f857e6bf261f933224da853e
2020-12-09 12:04:22 -08:00
Jeff Sharkey
7444e309f9 Revert "Temporarily replace "android.com" accounts."
This reverts commit 0ace970e19.

Bug: 174932174, 175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I152186408ecf6da1cb7354d14737de7cce55a34b
2020-12-09 11:06:28 -07:00
Amy Zhang
2605889886 Fix the Tuner Framework javadoc @link format
Test: make services
Bug: 175130122
Change-Id: I571f6dfeba1dbd7636273372a527ca2a4943e4e2
2020-12-08 14:56:32 -08:00
Amy Zhang
e0baa92030 Merge "Rename couldHandleDiseqcRxMessage to canHandleDiseqcRxMessage" 2020-12-08 19:24:14 +00:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
0ace970e19 Temporarily replace "android.com" accounts.
We're temporarily blocked on internal Gerrit tooling to support
relaxed OWNERS validation, so this change temporarily replaces all
"android.com" accounts with "google.com" equivalents.

Bug: 174932174,175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I114f2a40cee1b65e21250da7372e11c18cd73e25
2020-12-08 17:54:13 +00:00
Jean-Michel Trivi
4e6dcbd017 Merge "AAudio player type." 2020-12-08 16:27:51 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
c2793cf12b Merge changes from topic "dec5"
* changes:
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
2020-12-08 15:39:59 +00:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
jiabin
44561f0a79 Introduce AudioProfile to describe the capabilities of audio ports.
For an audio port, the capabilities are currently described by flat
arrays of formats, channel masks and sample rates. This doesn't expose
the relationship between supported formats and channel masks/sample
rates.
In that case, AudioProfile is introduced which contains the audio
format and its associated sample rates and channel masks.

Test: atest AudioManagerTest
Bug: 25994457
Bug: 160352965
Change-Id: Ic99713e32a1585875001ee096eb27d6c9c5cb64f
2020-12-07 16:24:26 -08:00
Amy Zhang
abef97b77f Rename couldHandleDiseqcRxMessage to canHandleDiseqcRxMessage
Test: atest TunerFrontendTests
Bug: 171314799
Change-Id: I699613b016ff45fd6b327de2637be1a92b404918
2020-12-07 11:15:20 -08:00
Treehugger Robot
659f09f56f Merge "Adding AudioUsage converters to AudioAttributes" am: 87b5c6a2a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518202

Change-Id: I6e84fcacbc45e667f592ef247ea1e87d9ae8e248
2020-12-07 19:08:24 +00:00
Amy Zhang
799b044d30 Merge "Publish Descrambler.isValidKeyToken as a static system API" 2020-12-07 19:07:38 +00:00
Jean-Michel Trivi
8171de4a43 AAudio player type.
AAudio API as a recognized player type.

Bug: 170588492
Test: atest AudioPlaybackConfigurationTest
Change-Id: I8118829af381573ce65bd56b09628a4114da09fa
2020-12-07 10:41:39 -08:00
Santiago Seifert
1ce2a35deb Merge "Add javadoc for the nullable handler parameter" 2020-12-07 15:48:49 +00:00
Serik Beketayev
9817226d99 [Mainline Migration] Migrate NetworkUtils
Migrating makeStrings(), numericToInetAddress() APIs

Bug: 173089079
Test: atest FrameworksNetTests
Change-Id: Ie914fd41bc3ce16d07f5d2768b89ce805b9245a9
2020-12-06 22:33:04 -08:00
Amy Zhang
8a5c57551c Publish Descrambler.isValidKeyToken as a static system API
Test: atest TunerTests
Bug: 173713008
Change-Id: I92fbd22f0e6a4c82d7ca1a326369fa9aa5ece17e
2020-12-04 16:01:00 -08:00
TreeHugger Robot
bd4b7bd4d5 Merge "Fix Tuner FrontendStatus documentations on getModulation and getSpectralInversion" 2020-12-04 23:04:05 +00:00
Henry Fang
56ab3ba898 Merge "Add thread protection for Filter/Descrambler table Use weak reference in the tables to allow objects released by caller" 2020-12-04 22:02:52 +00:00
Amy Zhang
ef2fb25c04 Fix Tuner FrontendStatus documentations on getModulation and getSpectralInversion
Test: make services
Bug: 171314749
Change-Id: Ia5ceed484ac10c3171b43239b43b09320fc3cfd3
2020-12-04 21:09:48 +00:00
Amy Zhang
801e409784 Merge "Improve the Tuner FrontendStatus javadoc" 2020-12-04 19:45:24 +00:00
Henry Fang
be8431c2ca Add thread protection for Filter/Descrambler table
Use weak reference in the tables to allow objects released by caller

bug: 174685399
bug: 174711353
Test: manual
Change-Id: I760d0a77ad9efe2709a14f0fb8a669f8f16652e1
2020-12-04 09:56:01 -08:00
Hayden Gomes
c164f6a4d1 Adding AudioUsage converters to AudioAttributes
audio_policy_configuration.xsd defines strings used by HAL
to represent audio usages. This adds converters between
those strings and the AudioAttributes#attributeUsage values

Bug: 171572311
Test: atest AudioAttributesTest
Change-Id: I5301276ebd6ea1539182e9925a1e19f515e80597
Merged-In: I5301276ebd6ea1539182e9925a1e19f515e80597
2020-12-04 16:48:35 +00:00
TreeHugger Robot
ca532f20cf Merge "AudioSystem master balance permission annotation" 2020-12-04 09:01:25 +00:00
Jean-Michel Trivi
0377204e94 AudioSystem master balance permission annotation
Add annotations for permissions that were always enforced but
never documented

Bug: 162423060
Test: see poc
Change-Id: I7ac181938fa4c32ceeffd1b64b9769ba2c2112ef
2020-12-03 16:48:13 -08:00
Hyundo Moon
b59ecae139 Merge "Add MediaController.getHandlerForCallback() for testing" 2020-12-03 10:48:19 +00:00
Amy Zhang
50b5e09240 Improve the Tuner FrontendStatus javadoc
Test: make services
Bug: 171314749
Change-Id: I2c60ca70767af623e4c02a8e6e5b5cc4a41d1ae7
2020-12-02 16:59:50 -08:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00