Commit Graph

560902 Commits

Author SHA1 Message Date
Andrei-Valentin Onea
f91d4e499c Merge "Add genrules for merged system server stubs" 2021-02-24 18:29:21 +00:00
Abhijeet Kaur
789ff12ec1 Merge "Disable resetting WRITE_MEDIA_IMAGES and WRITE_MEDIA_VIDEO appops" 2021-02-24 17:27:31 +00:00
Treehugger Robot
840727524d Merge "Add new API for unattended reboot." 2021-02-24 17:00:06 +00:00
Eric Laurent
d2717d9e9d Merge "audio:Suppress device volume to safe volume" 2021-02-24 15:19:02 +00:00
James Mattis
8b3ccda6bb Merge "Unit test automation for Multi-Default Tracking" 2021-02-24 14:57:24 +00:00
Treehugger Robot
33b19a2507 Merge "Move CtsScopedStorageHostTest to group presubmit-large" 2021-02-24 08:59:20 +00:00
liuxiaoyu7
834b5336d6 audio:Suppress device volume to safe volume
If the device supports safe volume,
should lower the volume to a safe volume

Signed-off-by: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: Ib27aa56e5ecc9875f7515494a32571c30e178ef6
2021-02-24 11:26:15 +08:00
James Mattis
0b82004d34 Unit test automation for Multi-Default Tracking
Unit test automation validating how multiple default networks are
tracked within ConnectivityService when set by network preferences
used with setOemNetworkPreference() API functionality.

Bug: 178632672
Bug: 172347841
Bug: 170068946
Test: atest FrameworksNetTests
Change-Id: Iae1935944214efaa8a21636c55e6d8be816275f7
2021-02-23 19:03:34 -08:00
Treehugger Robot
6faddabeb7 Merge "Revert "Do not propogate test api access flags to Zygote."" 2021-02-24 02:20:37 +00:00
Treehugger Robot
ce2d40870e Merge "Defer UID data removal until after reading is finished" 2021-02-23 23:08:31 +00:00
Cody Kesting
7f60b13ff5 Merge changes I34ef76ec,Icf686c3d
* changes:
  Notify VcnStatusCallback#onVcnStatusChanged for Safe Mode.
  Define VcnStatusCallback#onVcnStatusChanged.
2021-02-23 21:23:17 +00:00
Abhijeet Kaur
953d180af7 Disable resetting WRITE_MEDIA_IMAGES and WRITE_MEDIA_VIDEO appops
App holding System Gallery role is allowed WRITE_MEDIA_* appops by
virtue of the role. This allows the System Gallery app write-access for
images and videos.

When app preferences are reset AppOpsService toggles the appops for
all apps. Only the appops mentioned in sOpDisableReset are not toggled.

Disable WRITE_MEDIA_* appops to reset, as the system gallery app loses
write access on images/videos.

Bug: 179133883
Test: Manual
Change-Id: I168221c641566a9f691ed7956c038206b114d802
Merged-In: I168221c641566a9f691ed7956c038206b114d802
2021-02-23 19:07:26 +00:00
Roshan Pius
f8ab9c895b Merge "Add getTargetSdkVersion without AppInfo" 2021-02-23 18:27:04 +00:00
Winson
3eb5bd0a11 Add getTargetSdkVersion without AppInfo
For quickly checking an app's targetSdkVersion without building and
returning an entire ApplicationInfo object.

Bug: 164459559

Test: atest android.content.pm.cts.PackageManagerTest#testGetInfo

Merged-In: Ibe1a3e977cd71b23e26395eb6cc73f61c1a85a0e
Change-Id: Ibe1a3e977cd71b23e26395eb6cc73f61c1a85a0e
2021-02-23 09:25:58 -08:00
Marcus Hagerott
57a0af04c5 Merge "Add more detail to javadocs for SimPhonebookContract" 2021-02-23 16:09:54 +00:00
Andrei Onea
b2cf181a01 Add genrules for merged system server stubs
This is a change analogous to https://r.android.com/1432681 for system
server stubs; it feeds into metalava the stubs for the non-updatable
system server api stubs and the individual mainline module system server
stubs to generate a merged .txt file that will eventually replace the
monolithic one in frameworks/base/services/api/current.txt .

Bug: 177640454
Test: diff frameworks/base/services/api/current.txt \
out/soong/.intermediates/frameworks/base/api/services-system-server-current.txt/gen/system-server-current.txt

Change-Id: I021f59bb91572d28798a97ab8aa687b684599d6c
2021-02-23 14:15:11 +00:00
Andrei-Valentin Onea
359eca32b3 Merge "Create non updatable system server stubs" 2021-02-23 14:13:42 +00:00
Paul Duffin
d9373ecdaf Merge "Add explicit dependency from android.test.base to hiddenapi annotations" 2021-02-23 12:48:24 +00:00
Chiachang Wang
9c92c37f56 Merge "Remove UidRange.createForUser() with userId integers" 2021-02-23 07:17:07 +00:00
satayev
ff8c375e95 Revert "Do not propogate test api access flags to Zygote."
This reverts commit bff33b8c31.

Reason for revert: cts tests on -user builds is broken

Change-Id: I2edf200561f839e49e067403714ea6fa65bdc978
Merged-In: I2edf200561f839e49e067403714ea6fa65bdc978
2021-02-23 04:06:39 +00:00
More Kuo
ae6583b34f Merge "Update BluetoothA2dp API" 2021-02-23 02:37:41 +00:00
Kevin Han
44183743e0 Merge "Register AppHibernationManager in service registry" 2021-02-23 02:02:49 +00:00
Paul Hu
584e907d7a Merge "Use PermissionUtils" 2021-02-23 01:48:58 +00:00
Kevin Han
486816e35f Merge "Check user states exist before package add/removal" 2021-02-23 01:36:29 +00:00
Kevin Han
201737c781 Merge "Support dynamic feature flag config" 2021-02-23 01:36:29 +00:00
Cody Kesting
7458bf88a0 Notify VcnStatusCallback#onVcnStatusChanged for Safe Mode.
This CL updates VcnManagementService to notify callbacks when VCNs enter
Safe Mode via #onVcnStatusChanged. Callbacks were previously notified
via #onEnteredSafeMode - however, VcnStatusCallbacks were changed to
provide more status information by defining onVcnStatusChanged(int) per
API Council feedback.

Bug: 1597023
Test: atest FrameworksVcnTests
Change-Id: I34ef76ec29f4369390449b70b37bc3cf99c09c77
2021-02-22 17:35:29 -08:00
Cody Kesting
fb657c523b Define VcnStatusCallback#onVcnStatusChanged.
This CL defines VcnStatusCallback#onVcnStatusChanged for notifying
VcnStatusCallbacks when the status of their specified subscription group
changes. Specifically, status codes will be provided to notify callbacks
when a VCN is started, stopped, enters Safe Mode, and when there are no
matching VCNs.

Bug: 180659281
Test: atest FrameworksVcnTests
Change-Id: Icf686c3da6c5bdeeab88f60495d2ad438fa15692
2021-02-22 17:28:48 -08:00
Chiachang Wang
14da611403 Merge "Move shared methods to net shared lib" 2021-02-23 00:58:59 +00:00
Marcus Hagerott
42a163c89e Add more detail to javadocs for SimPhonebookContract
This provides more details about the operations supported by the provider.

Test: none
Bug: 154363919
Change-Id: I90147f5dd2b55be52089c854464ca4c52f4ba5a7
2021-02-22 16:39:27 -08:00
Calin Juravle
c627177587 Merge "Always use the latest CLC for system server" 2021-02-23 00:29:40 +00:00
Michael Wright
471c70287e Merge "Consolidate OWNERS for input" 2021-02-23 00:11:44 +00:00
Josh Gao
35a5c1501f Merge "NativeTombstoneManager: fix tombstone parsing." 2021-02-22 23:46:25 +00:00
Treehugger Robot
75025c5b62 Merge "Keystore 2.0: Fix correct handling of Uid/Namespace" 2021-02-22 23:35:21 +00:00
Michael Wright
bea28e9f39 Consolidate OWNERS for input
Bug: N/A
Test: N/A
Change-Id: Ib1b3172575b50fbd3869e173d3a751864600173a
2021-02-22 23:30:08 +00:00
Treehugger Robot
2bd3073819 Merge "Release virtual display before stopping projection" 2021-02-22 23:09:02 +00:00
Jeff Sharkey
c31e4a1e00 Merge "Add michaelwr@ to Shell OWNERS" 2021-02-22 22:29:05 +00:00
Treehugger Robot
e0db8b998f Merge "BugreportManager API review updates." 2021-02-22 21:46:41 +00:00
Chih-hung Hsieh
af4f8b9510 Merge "Do not add quotes around flags argument" 2021-02-22 21:04:34 +00:00
Janis Danisevskis
fa1a21957c Keystore 2.0: Fix correct handling of Uid/Namespace
AndroidKeyStoreKeyPairGeneratorSpi used the Uid as namespace which is
wrong, and ParcelableKeyGenParameterSpec inadvertently used the Uid as
namespace specifier during conversion.

Bug: 160623310
Test: com.android.keychain.tests.BasicKeyChainServiceTest#testGenerateKeyPairErrorsOnBadUid
Change-Id: I84b4c69c639e42922449e00a3708cef89b82f63e
2021-02-22 12:55:35 -08:00
Tianjie Xu
7444774737 Merge "Throw an exception in RoR api on no-pin case" 2021-02-22 20:42:35 +00:00
Treehugger Robot
e22fe5dd7d Merge "Clean up T&C implementation" 2021-02-22 19:58:43 +00:00
Michele Berionne
ae77970ae1 Add new API for unattended reboot.
CTS-Coverage-Bug: 179310594
Bug: 160784387
Test: manual
Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
Merged-In: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
(cherry picked from commit 726fa0a5f4)
2021-02-22 19:43:09 +00:00
Andrew Cheng
1c276e7591 Merge changes from topic "hci-disconnect-reason"
* changes:
  Update Companion to new BluetoothConnectionCallback
  Add BluetoothConnectionCallback to Companion App
  Surface ACL disconnect reasons from native to Java
  Make BluetoothConnectionCallback static
2021-02-22 19:25:13 +00:00
Treehugger Robot
7c5f3fe057 Merge "Support cuttlefish with an emulated 2GB SD" 2021-02-22 19:10:37 +00:00
Phil Weaver
2dcd402cdc Merge "Fix concurrent modify exception for A11y" 2021-02-22 18:37:05 +00:00
Julien Desprez
d46665bdd7 Merge "Clean up cc_test TEST_MAPPING after default update" 2021-02-22 18:31:07 +00:00
Daniel Bright
6fccdbb8d3 Merge "Added javadoc to apn retry \ throttling related methods" 2021-02-22 18:13:28 +00:00
Treehugger Robot
782fa90be7 Merge "Fix NPE in AutofillManager when feature autofill is disabled" 2021-02-22 17:37:55 +00:00
Cody Kesting
32a2e39563 Merge "Expose VCN Network policy APIs." 2021-02-22 17:24:02 +00:00
Cody Kesting
f74c6031f1 Expose VCN Network policy APIs.
This CL exposes APIs used for a) receiving VCN Network policy updates
and b) applying VCN Network policies to a given Network. Specifically,
these APIs should be used to receive notifications from VcnManager
whenever a VCN Network policy may have changed - generally, following a
VCN starting up, tearing down, or entering Safe Mode.

When a VcnNetworkPolicyListener is notified of a policy change, the
listener should query VcnManager#applyVcnNetworkPolicy to receive the
updated VcnNetworkPolicyResult. This policy result informs the listener
of their resulting NetworkCapabilities and also whether a Network
teardown is required as a consequence of the policy change.

Bug: 177020190
Test: atest FrameworksVcnTests
Change-Id: Ied78a57973a4ceaa7ef4cd9feee64478137497b8
2021-02-22 17:23:40 +00:00