Commit Graph

20094 Commits

Author SHA1 Message Date
Vadim Caen
46d5e4bd17 Merge changes from topics "splash_api_sc_a2", "splash_api_sc_a3", "splash_api_sc_a4", "splash_api_sc_a5", "splash_api_sc_a6", "splash_exit_sc_a1" into sc-dev am: 24764efd19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13482225

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia982bff920c42e48d97dbd628fe13a81cc04e765
2021-02-15 17:36:58 +00:00
Vadim Caen
24764efd19 Merge changes from topics "splash_api_sc_a2", "splash_api_sc_a3", "splash_api_sc_a4", "splash_api_sc_a5", "splash_api_sc_a6", "splash_exit_sc_a1" into sc-dev
* changes:
  Add two more Api for SplashScreenView(7/N)
  Support persist night mode for application(6/N)
  Allow ShortcutInfo to specify a theme for splash screen.(5/N)
  Add API for show branding image on splash screen.(4/N)
  Provide new APIs for customize splash screen window.(3/N)
  Customizable exit splash screen animation.(2/N)
2021-02-15 17:22:01 +00:00
arangelov
8eecd43ca7 Provide clearer explanation for SUPPORTED_MODES_ORGANIZATION_OWNED am: c8f03de4e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554290

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I344bd3caaa81d43e64feb48424d051dc92208313
2021-02-15 17:15:09 +00:00
arangelov
c8f03de4e6 Provide clearer explanation for SUPPORTED_MODES_ORGANIZATION_OWNED
Bug: 179143866
Test: none
Change-Id: I47195f65e5a1039a984475d58fdfb9ad1651a107
2021-02-15 17:00:32 +00:00
wilsonshih
a8e4cd6c6f Support persist night mode for application(6/N)
Developer now can use UiModeManager setApplicationNightMode to set
the night mode and persist in framework. Next time when start a new
process with the same package and userId, the persisted configuration
will be overload to the process and activities.

Introduce PackageConfigPersister, used to presist configuration for
each package.

Reference: go/wm-config-persist

Bug: 73289295
Test: atest SplashscreenTests
Change-Id: I17025a61526492596705ffe58ce450c328ff9470
2021-02-15 15:27:04 +01:00
wilsonshih
cf05d92650 Allow ShortcutInfo to specify a theme for splash screen.(5/N)
Provides new APIs so that shortcuts can preset the theme of the splash
screen window.
- Static way: android:splashScreenTheme
  Preset the splash screen theme from xml.
- Dynamic way: ShortcutInfo.Builder#setStartingTheme
  Preset the splash screen theme when construct the ShortcutInfo
  programmatically.

Bug: 73289295
Test: build/flash
Test: atest AppWindowTokenTests ActivityRecordTests
Change-Id: Ie5e73f9b22fea22659e496c12198c942f4bc93cd
2021-02-15 15:27:03 +01:00
wilsonshih
56f65c3bb7 Customizable exit splash screen animation.(2/N)
Introduce new APIs to customize exit splash screen animation.
- SplashScreen
  This can be used for Activity to handle the exit splash screen
  animation.
- SplashScreen#OnExitAnimationListener
  When receive onSplashScreenExit, the splash screen view will be on
  top of the activity.
- SplashScreenView
  The view object which represents the view of current starting window.
  There are two APIs for developer to control it:
  - getIconView: get the icon view object.
  - remove: remove the view and release resources.

If an Activity create a OnExitAnimationListener and set on
SplashScreen, the core will request a copy of SplashScreenView
from Shell, then send the parcelable information to client to
reconstruct the view on top of the DecorView, then call
onSplashScreenExit to let the listener able to operating this view.

Bug: 73289295
Test: build/flash, check splash screen starting window.
Test: atest StartingSurfaceDrawerTests ActivityRecordTests
WindowOrganizerTests
Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests

Change-Id: I9f77fb4471bcf37a7f74d6c18a345ca56c05b716
2021-02-15 14:49:00 +01:00
Ruslan Tkhakokhov
2c288a0d33 Merge "Make FullBackup::BackupScheme aware of operation type" into sc-dev am: a6aab5c90d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554445

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia8d188eb7fb341a93a7de15322525b22d3fb1667
2021-02-15 12:05:14 +00:00
Ruslan Tkhakokhov
a6aab5c90d Merge "Make FullBackup::BackupScheme aware of operation type" into sc-dev 2021-02-15 11:40:29 +00:00
Lorenzo Colitti
21e93001d6 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63 am: 45ec3191a7 am: 246444fef7 am: ed9730e6f9 am: 202658f0a4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1581293

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3742cbd28f75fedbdfc5ae792ae672493c2cef91
2021-02-15 01:57:46 +00:00
Lorenzo Colitti
202658f0a4 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63 am: 45ec3191a7 am: 246444fef7 am: ed9730e6f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1581293

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I698b6b082b121c004b2c8b05ef423da1bd8b871b
2021-02-15 01:32:50 +00:00
Lorenzo Colitti
ed9730e6f9 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63 am: 45ec3191a7 am: 246444fef7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1581293

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I91816c01a799a89b89098a6e9ff256dae7d31dbf
2021-02-15 01:03:06 +00:00
Lorenzo Colitti
45ec3191a7 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63
* changes:
  Check registering system default callback needs NETWORK_SETTINGS.
  Move VPN code from ConnectivityService to VpnManagerService.
  Add a skeleton VpnManagerService, and start it on boot.
  Convert LockdownVpnTracker to NetworkCallbacks.
  Minor fixes to VpnTransportInfo.
2021-02-15 00:00:47 +00:00
Ruslan Tkhakokhov
4f60c64516 Make FullBackup::BackupScheme aware of operation type
We currently maintain an instance of FullBackup::BackupScheme
(encapsulates full backup policies, including include / exclude rules)
per package. In line with the new include / exclude config format, where
the rules for each operation types are separate, create BackupScheme per
(package; operation type) pair to  make sure we're only dealing with the
policies relevant to the current operation.

Bug: 174216309
Test: atest FullBackupRulesHostSideTest
Change-Id: I627584186a1d1faf3d699e734e45f5e943ec1f84
2021-02-14 20:33:20 +00:00
Rubin Xu
c9a8b2fa8e Merge "add MANAGE_CREDENTIALS appop" 2021-02-13 18:32:16 +00:00
Rubin Xu
fd4c56d4d3 add MANAGE_CREDENTIALS appop
This is part of the work to support
a credential management app on
unmanaged devices.

Bug: 179180345
Test: atest android.appsecurity.cts.AppOpsTest

Merged-In: Ifd87b5e38f341db4b34bf9f61480e29e49148846
Change-Id: Ifd87b5e38f341db4b34bf9f61480e29e49148846
2021-02-12 21:34:53 +00:00
Kapish Goel
8302a00544 Merge "Revert "Get OperationType from transport"" into sc-dev am: 0f0ab4732e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13553580

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3307eeccffe5bf2599b2e49362be191134555ef4
2021-02-12 16:08:28 +00:00
Kapish Goel
0f0ab4732e Merge "Revert "Get OperationType from transport"" into sc-dev 2021-02-12 15:14:04 +00:00
Jeff DeCew
833762c8e4 Merge "Rename public constant to EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED" into sc-dev am: 733d3bdace
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13555120

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie132c6589de55561188897d61d5e92f270fa53ca
2021-02-12 13:33:08 +00:00
Jeff DeCew
733d3bdace Merge "Rename public constant to EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED" into sc-dev 2021-02-12 13:16:53 +00:00
Antoan Angelov
11453c6186 Merge "Deprecate obsolete provisioning extras" into sc-dev am: 34e4526732
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13553575

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4791e77e8d32025c9ff1742a614403b6afa834d7
2021-02-12 13:14:41 +00:00
Antoan Angelov
5f0831934b Merge "Deprecate EXTRA_PROVISIONING_MAIN_COLOR" into sc-dev am: 969a49f846
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13546206

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2a73497291efb9ea2b2bf900318ce80027f97888
2021-02-12 13:14:17 +00:00
Antoan Angelov
34e4526732 Merge "Deprecate obsolete provisioning extras" into sc-dev 2021-02-12 12:26:51 +00:00
Antoan Angelov
969a49f846 Merge "Deprecate EXTRA_PROVISIONING_MAIN_COLOR" into sc-dev 2021-02-12 12:26:22 +00:00
Kapish Goel
47fc6dfc46 Revert "Get OperationType from transport"
This reverts commit f81af9df21.

Reason for revert: DroidMonitor: Potential culprit for Bug 180089773 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I80d3f3233e40ade3bfa89b236ba114966a137c23
2021-02-12 11:41:34 +00:00
TreeHugger Robot
1e3783d96a Merge "New device policy API: DeviceAdminReceiver.onUnsafeOperationStateChanged()" into sc-dev am: d95e8ac64b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13435763

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib6b49ad7290b46707d73638e0da4563c3ca86776
2021-02-12 01:32:47 +00:00
TreeHugger Robot
d95e8ac64b Merge "New device policy API: DeviceAdminReceiver.onUnsafeOperationStateChanged()" into sc-dev 2021-02-12 01:29:17 +00:00
arangelov
4e8eb0d3a3 Deprecate obsolete provisioning extras
EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI and
EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL are no longer used
in the provisioning flows.

Bug: 180010560
Test: compiled
Test: tested with ManagedProvisioning in the other CL
Change-Id: I7cba43d6ca80a12d1d3384b17797b77378edfff5
2021-02-11 19:54:44 +00:00
Jeff DeCew
d1caedc8f8 Rename public constant to EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED
Fixes: 179709635
Test: manual
Change-Id: I1344224a7c87c2327a4ab767fa0920e6865d609c
2021-02-11 13:56:37 -05:00
Lorenzo Colitti
3dc6dbe80f Move VPN code from ConnectivityService to VpnManagerService.
ConnectivityService itself does not depend on mVpns or the Vpn
class any more. Most of this CL is simply moving code from one
class to another:

- Move the AIDL calls from IConnectivityManager to IVpnManager.
- Move the implementation from ConnectivityService to
  the new VpnManagerService.
- Move the APIs from ConnectivityManager to VpnManager, but
  temporarily maintain some shims in ConnectivityManager for the
  moved calls so that existing callers do not have to be modified
  in this CL.
- Update VpnService to call IVpnManager instead of
  IConnectivityManager.
- Move the code that registers the VpnManager service from
  ConnectivityFrameworkInitializer to SystemServiceRegistry.

Bug: 173331190
Test: atest HostsideVpnTests FrameworksNetTests CtsNetTestCases
Change-Id: I4911e2144df721a94fa00da9edf0dc372a7091c2
2021-02-12 01:12:24 +09:00
TreeHugger Robot
bf732c6a2f Merge "Introduce SystemVibratorManager" into sc-dev am: ba4fa60b35
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13417831

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia7a90cc6f795169a1a84907b8374e83c827f565c
2021-02-11 13:58:15 +00:00
Ruslan Tkhakokhov
7b578e20e0 Merge "Get OperationType from transport" into sc-dev am: 163db7b2f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13484966

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ba5694ae5d5f8108ba6bb3e090a8a49358e7c2e
2021-02-11 13:57:53 +00:00
TreeHugger Robot
ba4fa60b35 Merge "Introduce SystemVibratorManager" into sc-dev 2021-02-11 13:12:18 +00:00
arangelov
c09218d1c9 Deprecate EXTRA_PROVISIONING_MAIN_COLOR
Test: tested in the ManagedProvisioning change
Test: compiled
Bug: 178764320
Change-Id: Ib9ca0598de1b9cac9dc9c536f071b9757e703ece
2021-02-11 12:53:13 +00:00
TreeHugger Robot
97f46f6930 Merge "Move ExternalTimeSuggestion to android.app.time" into sc-dev am: e90010e463
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13471265

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If603044928a6c62ff6ba22ddfd957c43081b0f80
2021-02-11 10:17:43 +00:00
Ruslan Tkhakokhov
f81af9df21 Get OperationType from transport
Earlier we introduced versions of BackupManager#requestBackup() and
BackupManager#beginRestoreSession() that take @OperationType as a
parameter (i.e. backup or device-to-device migration). Change the logic
to determine the operation type from the properties of the transport
(BackupTransport#getTransportFlags()). This will help avoid introducing
unnecessary APIs and save us from having to ensure consitency between
@OperationType passed through to BackupManager and properties of the
transport used for  that operation.

Bug: 174216309
Test: atest UserBackupManagerServiceTest
Change-Id: I04a6014087c98efdeb8710fadc620b0856d7554b
2021-02-11 09:57:14 +00:00
Lais Andrade
55a0aebe7f Introduce SystemVibratorManager
Add default system implementation of vibrator manager service that uses
IVibratorManagerService to access the device vibrators.

Change implementation of SystemVibrator to use VibratorManagerService
and delete local service VibratorService.

Introduce missing public APIs for VibratorManager and Vibrator.getId.

Bug: 167946816
Test: VibratorManagerServiceTest, VibratorTest, VibrationEffectTest
Change-Id: I55cdeb72c7ca39ccf0c7b2fda60b16de1031801e
2021-02-11 09:26:21 +00:00
Mustafa Acer
87f56209e6 Move ExternalTimeSuggestion to android.app.time
We plan to make ExternalTimeSuggestion part of a system API. This
CL moves it from android.app.timedetector to android.app.time in
preparation for this change.

Bug: 177079827
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Test: atest android.app.time

Change-Id: I13f059afb10b57b13b0e340aacb924a43dabe172
2021-02-11 08:13:38 +00:00
TreeHugger Robot
ed924f54ab Merge "Add APIs for updating, query 5G slicing status" 2021-02-11 04:58:04 +00:00
Mady Mellor
713fa317c7 Merge "Bubble API: intent extra for bubbled activities" into sc-dev am: b91377962d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13418961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I633dc748615a47855419c9421fd611462afd8e85
2021-02-11 01:56:26 +00:00
Mady Mellor
b91377962d Merge "Bubble API: intent extra for bubbled activities" into sc-dev 2021-02-11 00:35:56 +00:00
Shuo Qian
1f4ea44b5f Add APIs for updating, query 5G slicing status
Test: atest DevicePolicyManagerTest
Bug: 178655595
Change-Id: I6f823be6737f7c7b3dc918230cbb927fac97c6eb
2021-02-10 14:21:42 -08:00
Winson Chung
0a23bb9b28 Merge "Save and pass last snapshot data with recents task info" into sc-dev am: d0c7c20e88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13511382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5a6ab1b94885cec5efbbd5e1d7f104dbddac6bac
2021-02-10 19:26:55 +00:00
Winson Chung
d0c7c20e88 Merge "Save and pass last snapshot data with recents task info" into sc-dev 2021-02-10 18:57:41 +00:00
Benjamin Franz
d383cf33ff Merge "Add OWNERS file to core/java/android/app/compat" am: efea156fe5 am: ebb589a5a2 am: 6d10995b52 am: 85c0b24064
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1582885

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I795de8b5868756635ca48a45ea18474debd6da11
2021-02-10 17:49:06 +00:00
Benjamin Franz
85c0b24064 Merge "Add OWNERS file to core/java/android/app/compat" am: efea156fe5 am: ebb589a5a2 am: 6d10995b52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1582885

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id123f45dd96d35a7c09f11d51ba943b9ad474c57
2021-02-10 16:56:27 +00:00
Kholoud Mohamed
1e1d571c9d Merge "Log PO and DO provisioning params" into sc-dev am: bf03ae3b78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13517171

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If69f793e281aaea3203eac8bbd181ab11f440481
2021-02-10 16:46:09 +00:00
Benjamin Franz
6d10995b52 Merge "Add OWNERS file to core/java/android/app/compat" am: efea156fe5 am: ebb589a5a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1582885

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I10c2ecf0eb054adc8b0973b1937771288c879e86
2021-02-10 16:42:03 +00:00
Benjamin Franz
efea156fe5 Merge "Add OWNERS file to core/java/android/app/compat" 2021-02-10 15:49:10 +00:00
Kholoud Mohamed
bf03ae3b78 Merge "Log PO and DO provisioning params" into sc-dev 2021-02-10 15:48:55 +00:00