Commit Graph

621 Commits

Author SHA1 Message Date
Riddle Hsu
47fcbd746c Merge "Remove IActivityTaskManager#setTaskWindowingModeSplitScreenPrimary" 2021-01-06 12:46:08 +00:00
Jin Seok Park
ec6e156d07 Merge "Expose XMP offset/size constants as public" 2021-01-06 07:09:51 +00:00
Soonil Nagarkar
ba3c0ce56b Merge "Refactor Java GNSS HAL" 2021-01-06 02:20:24 +00:00
Soonil Nagarkar
a8e676b326 Refactor Java GNSS HAL
Extracts large parts of the GNSS HAL into a central GnssNative class,
which can be faked for testing. This is a large step towards making all
GNSS code unit testable, and allows for more modular HAL configurations.
Begins to break up the GnssLocationProvider god object and pull
functionality out into other classes. Changes include:

-Making GnssCapabilities parcelable so it can be part of the API
-Splitting out the NMEA listener from status listeners, which
substantially reduces the burden of supported NMEA listeners as well as
the amount of GNSS<->AP communication.
-All GNSS listeners now respond properly to HAL restarts.
-Partially extract out emergency call detection.

Bug: 153129152
Test: manual
Change-Id: Idee0d548f38c6adf921cd6c28b5d815bbd366f8a
2021-01-05 17:37:39 -08:00
vichang
397070ce13 Merge "Deprecate Patterns.IP_ADDRESS" am: 4eb4e375f7 am: 442a80ba19 am: 538caa7bf7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I89c8f8865d1ee7cfb0e9d9257c39a2b05894109d
2021-01-06 00:30:49 +00:00
Daniel Bright
89901a6cd9 Merge "Add callSessionIntiating + callSessionInitatingFailed" am: cc7c94c433 am: 54c80ca1f5 am: 1637b855bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520003

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I526dac0395abe35b39f4c696648f82fa490a9dab
2021-01-06 00:30:23 +00:00
TreeHugger Robot
0062ecbe31 Merge "Add attributions to PackageInfo" 2021-01-06 00:18:10 +00:00
TreeHugger Robot
b47991a1da Merge "Revert "Add API to query role privileges"" 2021-01-05 22:52:53 +00:00
vichang
4eb4e375f7 Merge "Deprecate Patterns.IP_ADDRESS" 2021-01-05 22:18:48 +00:00
TreeHugger Robot
1573c52be1 Merge "Replace LocationProvider with ProviderProperties" 2021-01-05 22:09:13 +00:00
Daniel Bright
cc7c94c433 Merge "Add callSessionIntiating + callSessionInitatingFailed" 2021-01-05 21:55:59 +00:00
Jeff DeCew
8c59be26f7 Merge "Correct the resource type annotation on Icon.getResId()" 2021-01-05 21:45:56 +00:00
Neil Fuller
ad4d5d365d Adjust time zone provider permissions
Modify ther permissions system around TimeZoneProviderService discovery.

Bug: 175718639
Test: Confirmed witholding the INSTALL_ permission led to a boot failure
Test: build / boot / treehugger
Change-Id: Id91fa7716e3ccc53cd2801aa4d7a469c01c990b6
2021-01-05 17:20:32 +00:00
Jin Seok Park
bb615929ba Merge "Rename and improve remote volume controller related methods" 2021-01-05 15:51:48 +00:00
Jin Seok Park
2dc180ad73 Rename and improve remote volume controller related methods
1. Renamed "RemoteVolumeController" to "RemoteSession" since it
better encapsulates the callback methods.
2. Added Javadoc for new parameters in
registerRemoteSessionCallback.
3. Renamed onSessionChanged to onDefaultRemoteSessionChanged and
revised documentation,
4. Added documentation for what the flags in
RemoteSessionCallback#onVolumeChanged are for.

Bug: 173657280
Test: N/A
Change-Id: I8f0d58f732df8117888bc66a58f47fc33db2339e
2021-01-05 10:30:04 +09:00
Riddle Hsu
b7132932c8 Remove IActivityTaskManager#setTaskWindowingModeSplitScreenPrimary
It is the same as setTaskWindowingMode(SPLIT_SCREEN_PRIMARY).

Still keep ActivityTaskManager#setTaskWindowingModeSplitScreenPrimary
that redirects to setTaskWindowingMode for simple usages.

Remove SPLIT_SCREEN_CREATE_MODE_TOP_OR_LEFT and
SPLIT_SCREEN_CREATE_MODE_BOTTOM_OR_RIGHT because they are no longer
used since commits bed2d1b, 4067a2d and 51beb14. Now if there needs
the similar functionality, it should be done by organizer in shell.

Remove the usage getNavBarPosition from StatusBar because it was
used to determine the split side.

The history about the removed fields: 59a73ca, f59a413.

Bug: 174040691
Test: SplitScreenTests
Change-Id: Ie5770d72cc5fb2f6ba1beceec418f1ea39f9c604
2020-12-31 20:36:03 +08:00
Hai Zhang
db9c590322 Revert "Add API to query role privileges"
Revert "Add API to query role privileges"

Revert submission 13185780-role_query_perms

Reason for revert: Revert to reduce API surface for moving into module.
Reverted Changes:
Ib69fe2749:Add API to query role privileges
If99619e53:Add API to query role privileges

Bug: 165951651
Test: presubmit
Change-Id: I714377bdb2840a96732e9ab6d1dcdaaf3bfe50eb
2020-12-30 18:32:37 -08:00
Anton Hansson
b5048e482e Merge "Unbundle ART API from android-non-updatable" am: 5a4fc1d6e1 am: a81a5f1bdb am: f31935f2e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533282

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibae612368c7cedd9812925f632bfbbf5e7c844d1
2020-12-29 12:27:11 +00:00
Anton Hansson
5a4fc1d6e1 Merge "Unbundle ART API from android-non-updatable" 2020-12-29 10:31:44 +00:00
Paul Hu
7b848d34b7 Merge "Add DnsResolverServiceManager" am: 6bc7032b85 am: b3ea5a5a71 am: 206c66213e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465502

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia89725249d9d6fca7a56b426a4bcb024ac8b1bb8
2020-12-29 03:45:34 +00:00
Paul Hu
6bc7032b85 Merge "Add DnsResolverServiceManager" 2020-12-29 02:14:59 +00:00
Soonil Nagarkar
b76a3541a1 Replace LocationProvider with ProviderProperties
LocationProvider cannot represent unknown properties, which is currently
causing problems with getProvider() which may return null even when a
particular provider exists. Instead provide isProvider() to query
whether a provider exists, and getProviderProperties() to query a
provider's properties.

Bug: 176232308
Test: atest CtsLocationNoneTestCases
Change-Id: Ic42cc953624be116616b0b997e18356247fdf288
2020-12-28 10:50:50 -08:00
Victor Chang
97006e6b51 Deprecate Patterns.IP_ADDRESS
Bug: 165470548
Test: n/a
Change-Id: Ic1e188ea118c87514815ec9581bb158ab66e22e4
2020-12-24 17:41:19 +00:00
Xiangyu/Malcolm Chen
d8da25546d Merge "Expose ImsCallProfile.EXTRA_CONFERENCE and EXTRA_CONFERENCE_AVAIL." 2020-12-24 01:07:01 +00:00
TreeHugger Robot
1def671a00 Merge "Introduce DPM.isActivePasswordSufficientForDeviceRequirement" 2020-12-24 00:12:03 +00:00
Daniel Bright
f0e8399729 Add callSessionIntiating + callSessionInitatingFailed
* Add callSessionIntiating which occurs in between the session
  starting and the call session progressing.

Bug: 161218980
Test: FrameworksTelephonyTests
Change-Id: I745af44f83915b92e0cfa57b4edf4f11ca575f5d
2020-12-23 15:28:42 -08:00
Ameer Armaly
aac39ed526 Merge "Make AccessibilityGestureEvent.gestureIdToString public." 2020-12-23 21:21:39 +00:00
Anton Hansson
fc948d8675 Unbundle ART API from android-non-updatable
Stop tracking the ART APIs in the non-updatable current.txt, and
instead add in the txt/srcjar/jar files produced by the art module's
java_sdk_library.

Bug: 173606718
Test: manual last_released check of merged api txt (b/174847574 to
      automate)
Change-Id: I446a381f2b364a114ce391b99a13742d6769f14d
2020-12-23 14:51:17 +00:00
Eric Laurent
f39726f262 AudioManager: Add communication device management APIs
Add new APIs to manage the audio device used for communication
use cases (Cellular calls, VoIP and Video calls).
These APIs are meant to replace specific APIs like setSpeakerPhoneOn()
and provide a single generic way of configuring the audio device selected
for calls.
They will be used for newly added device types (e.g. BLE audio) instead
of adding new specific APIs.
They will also offer more options like for instance allowing to select the
earpiece (handset) device when a wired headset is connected.
The new APIs are:
 - boolean setDeviceForCommunication(AudioDeviceInfo)
 - void clearDeviceForCommunication()
 - AudioDeviceInfo getDeviceForCommunication()

A listener is also added for applications to monitor current communication
device selection:
- OnCommunicationDeviceChangedListener
As well as listener registration and unregistration APIs:
- addOnCommunicationDeviceChangedListener()
- removeOnCommunicationDeviceChangedListener()

Bug: 161358428
Test: make && atest AudioCommunicationDeviceTest
Change-Id: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
Merged-In: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
2020-12-23 08:36:12 +00:00
Eric Laurent
617d14954d Merge "Support set/clear/get preferred device for capture preset." 2020-12-23 08:34:27 +00:00
Chiachang Wang
b06e8235db Merge "[IT02] Expose system api to report radio power state" am: b1de9a09bd am: 15cc8f0f71 am: df9fc2853d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517498

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I04944dae4059c790f3f1015068401057d0d81b79
2020-12-23 07:30:43 +00:00
Chiachang Wang
b1de9a09bd Merge "[IT02] Expose system api to report radio power state" 2020-12-23 05:19:51 +00:00
Chong Zhang
366ef60790 Merge "transcoding: move MediaTranscodeManager to apex" 2020-12-23 03:28:03 +00:00
Daniel Bright
cbc22acd5d Merge "Add S-NSSAI" 2020-12-23 00:52:26 +00:00
Malcolm Chen
3f2e081581 Expose ImsCallProfile.EXTRA_CONFERENCE and EXTRA_CONFERENCE_AVAIL.
They are exposed as SystemApis so that OEMs can get the extra values.

Bug: 162775499
Test: build
Change-Id: I9d748a4c8cbb1be5312dbd598e2b290f82985f4d
2020-12-22 15:05:26 -08:00
Greg Kaiser
5a7b24f6a1 Merge "Revert "Fix permission on TM#isDataEnabled"" am: 469e5b3317 am: 3033b15191 am: 9ad1f6565e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1534329

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a1a974bd0456efbf92a1be1fbc5ace38499e636
2020-12-22 21:07:25 +00:00
Ameer Armaly
97270e803d Make AccessibilityGestureEvent.gestureIdToString public.
This allows for better error reporting in tests and services.
Bug: 159651900
Test: atest GestureManifoldTest TouchExplorerTest AccessibilityGestureDetectorTest FrameworksServicesTests:TouchExplorerTest

Change-Id: Ic65ff7100ade77bbf26d538a033e9e000e6b9bcc
2020-12-22 20:15:45 +00:00
Jeff DeCew
09424eadc4 Correct the resource type annotation on Icon.getResId()
Test: n/a
Fixes: 176106341
Change-Id: Id473e728ad6ce43eff8105c6817a5d52137bc5e9
2020-12-22 15:13:59 -05:00
Greg Kaiser
469e5b3317 Merge "Revert "Fix permission on TM#isDataEnabled"" 2020-12-22 19:36:50 +00:00
Chong Zhang
864d0b7220 transcoding: move MediaTranscodeManager to apex
bug: 159172726
test: builds; presubmit; manual testing transcoding locally.
Change-Id: I727912a04cf4f7f03fdf5fa0a74e522f69dca66f
2020-12-22 19:34:46 +00:00
Jiabin Huang
a6421faaac Support set/clear/get preferred device for capture preset.
Support set/clear/get preferrd device for capture preset. The preferred
device will be used for audio routing when it is availabled. The
preferred device doesn't need to be present when setting.

Bug: 160352965
Test: atest AudioServiceTest
Test: atest AudioServiceHostTest
Test: atest CarAudioZonesHelperTest

Change-Id: Ib7aa142ad4c56a8138c7b440e8efbbf7a7ee38a6
Merged-In: Ib7aa142ad4c56a8138c7b440e8efbbf7a7ee38a6
2020-12-22 18:54:15 +00:00
Daniel Chapin
c63a640587 Merge "Revert "Added update device info playback configuration"" 2020-12-22 18:10:43 +00:00
Greg Kaiser
8ce575b256 Revert "Fix permission on TM#isDataEnabled"
This reverts commit f7dc3f6788.

Reason for revert: b/176163590, continual fatal exceptions in telephony on reboot
Bug: 176163590
Test: Local revert and the fatal exceptions go away

Change-Id: If7cbe3e5b8764f0ee72985830880157f64d71101
2020-12-22 17:35:44 +00:00
Eric Laurent
7f73ba815a Merge "Introduce device(s) role for strategy." 2020-12-22 17:11:45 +00:00
Jin Seok Park
4b107b19e6 Expose XMP offset/size constants as public
These constants need to be public in order for AndroidX ExifInterface
to be able to access it.

Bug: 159373092
Test: update-api
Change-Id: Ibfe4bb95287e8f6d432e17e1b96cbb7a3237c540
2020-12-23 01:37:09 +09:00
paulhu
b6fcddfd5d Add DnsResolverServiceManager
Add DnsResolverServiceManager to obtain android.net.IDnsResolver
IBinder for incoming connectivity service mainline.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: Ibd7a678ceaaa550ff3d8eff1d0c4d3a5073b5527
2020-12-22 21:31:39 +08:00
Charles Chen
465c67dfd5 Merge "Introduce #createWindowContext with display" 2020-12-22 09:44:53 +00:00
Allen Su
103627d3bc Merge "[RCS]Add new carrier configs for presence" am: f2fdcff51e am: 992b4ffdf8 am: 2fc4cc29bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1511319

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I704895d43045983426ea3fff2363bfed8e9281b8
2020-12-22 07:16:06 +00:00
Tianjie Xu
c39f269af7 Merge "Deprecate the old rebootAndApply API" am: cabef01cb3 am: 7a81aade1d am: 2aa7d539d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533087

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4f4747808d5087b693d7ba598329f9845bf9769e
2020-12-22 07:03:16 +00:00
Nathan Harold
194d4f00f7 Merge "Fix permission on TM#isDataEnabled" am: 8c3b567c36 am: d1ef54ef73 am: 400f394bc3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533086

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If596eb5feaa64b03967a5fd8da0de8c430dbe9d8
2020-12-22 06:53:44 +00:00