Commit Graph

654799 Commits

Author SHA1 Message Date
Sudheer Shanka
0ca63ddebd Fix an issue in NPMS blockedReasons computation logic.
If an app does not have the permission to access network
in Restricted mode, we should be removing
ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS from the uid's
allowedReasons but right now, we end up removing all the
allowedReasons except ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS
and this could result in sending wrong network state to apps.

Bug: 202213533
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ibcae147bf4ba84ff91ef7038ffef8c33082b82ca
Merged-In: Ibcae147bf4ba84ff91ef7038ffef8c33082b82ca
(cherry picked from commit 259414efbc)
2021-10-15 14:03:06 -07:00
Hui Wang
1465700c00 Merge "Update the BroadcastQueue logic for runtime permissions" 2021-10-15 16:48:15 +00:00
Kai Shi
fb799763d1 Merge "Bug fix: LCE list initialization" 2021-10-15 16:17:03 +00:00
Jakub Pawlowski
ba8a56e93d Merge "settingslib/bluetooth: Add LeAudio support" 2021-10-15 09:55:05 +00:00
Alan Stokes
31a3297733 Merge "Update OWNERS" 2021-10-15 09:38:00 +00:00
Treehugger Robot
41e10b86d8 Merge "Move set member pair handle from settingLib to setting" 2021-10-15 07:56:18 +00:00
Łukasz Rymanowski
c0aa3b3276 settingslib/bluetooth: Add LeAudio support
Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: Manual
Merged-In: I45402a6d315d8ccc2bc756bdc9937e81eea3c58a
Change-Id: I45402a6d315d8ccc2bc756bdc9937e81eea3c58a
2021-10-15 07:07:10 +00:00
Alice Kuo
423e648a82 Move set member pair handle from settingLib to setting
Remove createBond from settingLib. SystemUI and Setting have the
individual settingLib instance. If we trigger pairing inside settingLib,
the action would be called twice.

Bug: 201758444
Bug: 150670922
Test: Pair the coordinated set devices, and check the set member pairing
would be done automatically without the pairing dialog

Change-Id: I289b8af857530f0fb207b777d09d94549cfdf553
2021-10-15 13:15:08 +08:00
Ashwini Oruganti
88d4dea9a0 Update the BroadcastQueue logic for runtime permissions
Previously, we were skipping a broadcast when either the permission or
the app op was granted. However, for runtime permissions to be
considered "granted" both the permission and the app op need to be
granted. This change updates taking this into account.

Test: manual
Bug: 202436287
Bug: 183537857
Change-Id: I9f12f9e17e61246d723d18ead93c6115bbf6d5cf
2021-10-15 01:22:06 +00:00
Elliott Hughes
f2ab01c09e Merge "Fix NPE in BootReceiver.addTombstoneToDropBox." 2021-10-14 22:40:00 +00:00
Christian Wailes
59e9a53f60 Merge "Updated OWNERS file" 2021-10-14 18:57:32 +00:00
Kai Shi
7180cca70d Bug fix: LCE list initialization
Initialize LCE list so that its size is at least 1. This is important for 1st call back after registration especially when there is no LCE report yet.

Bug: 198682652
Test: atest -c TelephonyCallbackTest in airplane mode.
Change-Id: I54b4ce0c51e6c10c6ef67776cf3083a04b7d5da3
Merged-In: I54b4ce0c51e6c10c6ef67776cf3083a04b7d5da3
2021-10-14 18:34:27 +00:00
Steven Moreland
b146c8bedb Merge "getBlobAshmemSize -> getOpenAshmemSize" 2021-10-14 17:43:16 +00:00
Hao Ke
d6f306117a Merge "Add “@throws BadParcelableException” to the JavaDoc of new API methods that throw the exception." 2021-10-14 17:30:43 +00:00
Treehugger Robot
214a74b728 Merge "Partial revert "Wait for unlock to start jobs."" 2021-10-14 16:43:16 +00:00
Hao Ke
f98489f1c0 Add “@throws BadParcelableException” to the JavaDoc of new API methods that throw the exception.
Test: atest -d android.os.cts.ParcelTest
Bug: b/203004511
Change-Id: I24bf7314e63015d46ab478ec8c44ecf22857bac2
2021-10-14 15:31:37 +00:00
Alan Stokes
66749427da Update OWNERS
As discussed.

Test: N/A
Change-Id: I56beaeff1e492fb1a2a674647f310552df346744
2021-10-14 14:20:50 +01:00
Neil Fuller
c3c74384e2 Merge "Attempt 2 for adding OWNERS for SNTP code" 2021-10-14 12:37:09 +00:00
Neil Fuller
3725e9c638 Attempt 2 for adding OWNERS for SNTP code
Commit e5ad129716 combined with pending
reviews demonstrated the OWNERS syntax has quirks and it is not working
as intended.

Documentation used:
https://android-review.googlesource.com/plugins/code-owners/Documentation/backend-find-owners.html#syntax

The syntax guide recommends that patterns like sub-dir/* aren't used as
they can cause problems when renaming directories; better to have OWNERS
in the sub-dir. The pattern sntp/* didn't appear to be working (perhaps
because of spaces).

Test: None
Bug: 199481251
Change-Id: I193744eaaad529b9680d3ccf905b86d68f62f7ff
2021-10-14 13:28:57 +01:00
Treehugger Robot
530fbd2d14 Merge "Pass Binder token to ISuspendControlServiceInternal#enableAutosuspend" 2021-10-14 11:48:30 +00:00
Anton Hansson
e71f30f079 Merge "Add build rule to merge annotation zips" 2021-10-14 11:10:37 +00:00
Neil Fuller
ba2cccd507 Merge "Add additional OWNERS for SNTP client code" 2021-10-14 09:53:59 +00:00
Neil Fuller
e5ad129716 Add additional OWNERS for SNTP client code
Add additional OWNERS for SNTP client code.  This may be enough to cover
test code that will match the same patterns in
core/tests/coretests/src/android/net (which imports/includes
core/java/android/net/OWNERS). If not, there will be a follow-up for
test code.

Test: None
Bug: 199481251
Change-Id: I1dd6ce6afa0cb441279f3fad3e82483ce6dcaf1b
2021-10-14 09:35:58 +01:00
Tsung-Mao Fang
11e5ef318f Merge "Remove the owner for settings_enums.proto" 2021-10-14 07:06:59 +00:00
Jakub Pawlowski
488d8f2060 Merge changes If0e5861e,Ib385b24d
* changes:
  leaudio: Add missing context types
  leaudio: Add API to add/remove group node
2021-10-14 07:03:31 +00:00
Jakub Pawlowski
2f8032fd8b Merge "bluetooth: Fix common typo" 2021-10-14 06:59:51 +00:00
Tyler Gunn
5563f3ad03 Merge "Update call log provider docs to clarify how to use LIMIT." 2021-10-14 01:11:27 +00:00
Chris Wailes
96cd2deb84 Updated OWNERS file
Removed owners who are no longer on the team and added a new owner.

Test: none
Change-Id: Id826909d11a069082855bf6d0da7cc54c5cea664
2021-10-13 15:39:02 -07:00
Jakub Pawlowski
948f5cc547 Merge "bluetoothUuid: Add placeholder for CAP uuid" 2021-10-13 22:08:07 +00:00
Grzegorz Kołodziejczyk
b92392dff9 leaudio: Add missing context types
BYPASS_INCLUSIVE_LANGUAGE_REASON=exact wording for constant from BT specification
Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: compile
Change-Id: If0e5861e882636afba6a29c0ae34362d179035ea
2021-10-13 21:59:29 +00:00
Anton Hansson
1bf568ed3e Add build rule to merge annotation zips
This target produces nearly identical contents to the build target
framework-doc-stubs (the only diffs are in whitespace). Using this
module in the SDK zip will allow changing the inputs of
framework-doc-stubs to java sources that don't have all the annotations
(the jar stubs).

Bug: 187397779
Test: m sdk-annotations.zip and diff with framework-doc-stubs zip
Change-Id: Id163473c455f25c5f31c965d907c0c3b0e7755fc
2021-10-13 19:46:31 +01:00
Sarah Chin
626939d412 Merge "Move HAL constructors to RILUtils" 2021-10-13 18:09:04 +00:00
Steven Moreland
4760ca91de getBlobAshmemSize -> getOpenAshmemSize
This API returns the total size of all ashmem memory that is in FDs that
is owned by a Parcel object. It was renamed a while ago, but the name
was never updated in Java.

Bug: 202029388
Test: atest android.app.NotificationTest
Change-Id: Icc428063083110952cf3951721d69cbb919429b1
2021-10-13 11:01:35 -07:00
Neil Fuller
ead9d53764 Merge "Adjust OWNERS to reflect new ownership" 2021-10-13 16:48:33 +00:00
Pavel Grafov
f1d0976115 Merge "Delay instantiation of PacProcessor until unlocked" 2021-10-13 16:05:55 +00:00
Bernardo Rufino
ef5365a7f6 Merge "Add range-based Parcel.hasFileDescriptors(offset, length)" 2021-10-13 15:34:32 +00:00
Łukasz Rymanowski
ef061e6a00 bluetoothUuid: Add placeholder for CAP uuid
Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: Manual

Change-Id: I69a9cb6a341d42eff3e5ae92d9c99ab5fa3bf9a3
2021-10-13 14:11:52 +00:00
Pavel Grafov
3f0400e221 Delay instantiation of PacProcessor until unlocked
Webkit PAC processor cannot be created before the user is unlocked,
this is currently causing crashes during boot.
With this CL PacProcessor instantiation is delayed and will happen
only when the user is unlocked either when handling a request or
when PAC script is set.

Instantiation of PacProcessor can take substantial time, on order
of a second.

Bug: 200241231
Test: manual, set PAC proxy and reboot
Change-Id: Id42d857289a0b0f7df5b1c48f94d1b363d94235e
2021-10-13 15:10:55 +01:00
Neil Fuller
e26bbeb94a Adjust OWNERS to reflect new ownership
This changes owners files based on latest org changes and changes
links to improve maintainability.

Changes:
+ It removes a specific owner from most to reduce future maintenance.
+ It adds indirection so android/app references the associated service
code, tests reference the OWNERS of the code under test.
+ services/core/java/com/android/server/timezonedetector/OWNERS is the
single list of time / time zone detector maintainers.
+ Code associated with time zone rules moved to libcore/ ownership
+ It adds one new file for an upcoming commit.
+ Added documentation around API purpose to API OWNERS files, since
there are multiple similar-looking package names with different purposes
/ clients.

Test: None
Bug: 189810551
Change-Id: I948d4b8eff59f3cd5ff63018949e49679795a5c0
2021-10-13 13:57:42 +01:00
Łukasz Rymanowski
6c3fc79d87 leaudio: Add API to add/remove group node
Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: Manual

Change-Id: Ib385b24d6b10754d9cadea2363e81c78b4382a44
2021-10-13 11:39:29 +00:00
Tsung-Mao Fang
481cdf67fd Remove the owner for settings_enums.proto
Because settings_enums.proto migrated to the frameworks/proto_logging/ now.

Change-Id: I0297792b6aa960ccd4afced8bac5e7085b7444a6
Test: N/A
Bug: 176987254
2021-10-13 08:46:48 +00:00
Łukasz Rymanowski
27064f0bcf bluetooth: Fix common typo
sponsor: jpawlowski@
test: NA

Change-Id: I0e93b87371f434c229f211c480727cc26434a5e0
2021-10-13 07:55:26 +00:00
Tyler Gunn
be88f1fa54 Merge "Update API docs for "is_ims_conference_size_enforced_bool" key." 2021-10-12 23:31:16 +00:00
Michael Wright
0c3e42ebd3 Merge "Update haptics OWNERS" 2021-10-12 22:08:50 +00:00
Steven Moreland
8cb9efdb74 Merge "Parcel: remove use of getOpenAshmemSize" 2021-10-12 20:49:37 +00:00
Kweku Adams
14841f18ff Partial revert "Wait for unlock to start jobs."
This reverts commit e61cf5125e
but changes onUserUnlocking to onUserUnlocked.

Reason for revert: Direct-boot-aware jobs should be allowed to run when the user is locked

Bug: 200174299
Bug: 201307089
Test: N/A
Change-Id: Ic5a67a42590e171f0bfed8da0c138096031469d5
(cherry picked from commit 171bf04113)
2021-10-12 13:07:14 -07:00
Tyler Gunn
86d27b262b Update call log provider docs to clarify how to use LIMIT.
Clarifying that you CANNOT use LIMIT in the where clause and provide
instructions on the right way to limit results.

Test: Docs only change
Bug: 175599057
Change-Id: Ib4e828fc33ae9b75e7a240e9f456907049fcc35e
2021-10-12 12:00:31 -07:00
wyau
b46475496f Merge "Add start_time and end_time for PreviewPrograms" 2021-10-12 16:37:17 +00:00
Tyler Gunn
64c43a3369 Update API docs for "is_ims_conference_size_enforced_bool" key.
Update API docs to reflect the fact that enforcing the IMS conference size
requires conference event package.

Test: Docs only change.
Fixes: 202842203
Change-Id: Ia89a123b30e57cfe0a7e1bf4a43136812a553975
2021-10-12 09:27:19 -07:00
Michael Wright
313839a2d9 Update haptics OWNERS
Change-Id: I265d27cdb721616bf56c3b34c9d239b3e962e98c
2021-10-12 14:29:03 +00:00