Commit Graph

24648 Commits

Author SHA1 Message Date
Xiang Wang
90e2444569 Merge "Include public GameManager unit tests in presubmit" 2022-11-29 23:03:35 +00:00
TreeHugger Robot
45ce9ddfab Merge "Enable telephony fallback triggered by providers" 2022-11-29 23:01:17 +00:00
Chris Poultney
86f95b1179 Merge "Refactor private bitmap methods to handle which correctly" 2022-11-29 21:12:36 +00:00
Neil Fuller
7fbcae6efd Enable telephony fallback triggered by providers
Now that providers can report their status, we can use this to trigger
telephony fallback mode. This opens the door to more sophisticated
mechanisms for things like flight or tunnel detection. After all,
providers know how they work and what they can / cannot do, and may have
access to sensors and providers that the platform has not.

The new "provider reported" flight mode entry cannot replace the
"time_zone_detector"-level behavior entered via calls to
TimeZoneDetectorStrategy as provider status is new and optional;
providers are not required to report their status so it can be omitted.

Bug: 236624675
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/
Change-Id: I89fb889ba98b3ddedd271670db09f1bb9df95644
2022-11-29 19:45:45 +00:00
Jing Ji
813816a4cc Merge "Add health connect permissions to FGS type "health"" 2022-11-29 17:14:44 +00:00
Zimuzo Ezeozue
e02d3f033b Merge "Add trimMemory level to traces" 2022-11-29 14:34:22 +00:00
Xiang Wang
20605110c4 Include public GameManager unit tests in presubmit
Switch to use non system uid and grant necessary permission as
otherwise it will crash the test mapping (b/260071873), this was
explained in b/140028487 and a similar fix was done in ag/9523307.

Bug: b/243448953
Test: atest --test-mapping \
      services/core/java/com/android/server/app:presubmit
Change-Id: I93bcc3c9d462fb4a2f90acc5c80ae1bcbc255927
2022-11-28 19:18:50 -08:00
Chris Poultney
848dce85dc Refactor private bitmap methods to handle which correctly
Changes the private peek methods in WallpaperManager.Globals to accept
and/or properly handle a `which` parameter. Also adds an override with
`which` to the hidden public method peekBitmapDimensions().

Bug: 253481667
Test: TreeHugger
Change-Id: I49e7b816272dc079bf82030d81cb7a0870defa62
2022-11-28 22:50:16 +00:00
Neil Fuller
2e2f95fdb2 Merge "Improve info about location algorithm status" 2022-11-28 19:57:58 +00:00
Ruslan Tkhakokhov
920b00febc Merge "Pass operation type to BackupAgent" 2022-11-28 18:58:27 +00:00
Ruslan Tkhakokhov
d48cd70ef7 Merge "Create BackupAnnotations for B&R-related annotations and constants" 2022-11-28 18:57:43 +00:00
Chris Poultney
a972969bc6 Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev am: aebffa1f2a am: 5392d935b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20552100

Change-Id: I8902c9960038c3148fc5b89c6756386045ab4bf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 18:00:08 +00:00
Chris Poultney
5392d935b5 Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev am: aebffa1f2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20552100

Change-Id: I7ea060b3bb8bf48327448999aead4db2a0330a70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 17:30:07 +00:00
Chris Poultney
aebffa1f2a Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev 2022-11-28 17:11:06 +00:00
Nikita Ioffe
952b771899 Merge "Register managers provided by the com.android.virt APEX" am: a8d89abdad am: aab7551889
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2304136

Change-Id: I1666cb79ba28e8ccdbb5ece1eff34cd30f9bc1c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-25 18:45:20 +00:00
Nikita Ioffe
aab7551889 Merge "Register managers provided by the com.android.virt APEX" am: a8d89abdad
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2304136

Change-Id: Ieeeed9d0e6332c4e22da4c6fec6ec1ddbd9c5f29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-25 18:20:32 +00:00
Nikita Ioffe
ea76ae6fee Register managers provided by the com.android.virt APEX
This allows apps to retrieve an instance of VirtualMachineManager via
Context.getSystemService() API.

Bug: 249093790
Test: builds
Test: atest --test-mapping packages/modules/Virtualization:avf-presubmit
Change-Id: I488c275343753f2a3af6270cbad2ab02f33f203f
Merged-In: I488c275343753f2a3af6270cbad2ab02f33f203f
(cherry picked from commit 167b913ad4)
2022-11-25 16:02:52 +00:00
Zim
5e5e215cb5 Add trimMemory level to traces
Test: Manual
Change-Id: I5cadea92f80f7ff8fa549a5917146a405d0808a3
2022-11-25 15:14:16 +00:00
Nikita Ioffe
d063f91638 Merge "Register managers provided by the com.android.virt APEX" 2022-11-25 14:51:56 +00:00
Nikita Ioffe
167b913ad4 Register managers provided by the com.android.virt APEX
This allows apps to retrieve an instance of VirtualMachineManager via
Context.getSystemService() API.

Bug: 249093790
Test: builds
Test: atest --test-mapping packages/modules/Virtualization:avf-presubmit
Change-Id: I488c275343753f2a3af6270cbad2ab02f33f203f
2022-11-24 16:39:13 +00:00
TreeHugger Robot
2f89ab3ae1 Merge "Rename android.app.ForegroundServiceTypeNotAllowedException to" 2022-11-24 15:56:15 +00:00
Neil Fuller
21891c40f1 Improve info about location algorithm status
Be more informative about location algorithm status than "unknown": It's
possible for the time zone detector to tell when the location algorithm
is supported, not running, or running (but not yet reported an event).

Bug: 236624675
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/
Change-Id: I1cf569efe1f00cfa2faee02f76b84a71a68fb8ad
2022-11-24 15:50:18 +00:00
TreeHugger Robot
17619995d6 Merge "Consolidate mTaskBounds logic to mConfiguration" into tm-qpr-dev am: 85a7c3a90b am: a2fdd4f93f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20071569

Change-Id: Id993e4cd236e5dfd3dcc515765f1e2b0af244962
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 13:47:51 +00:00
TreeHugger Robot
a2fdd4f93f Merge "Consolidate mTaskBounds logic to mConfiguration" into tm-qpr-dev am: 85a7c3a90b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20071569

Change-Id: I73108304ecc1e97784e03e105dc2fddee8d13c40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 13:10:54 +00:00
Charles Chen
e9d7d941ee Consolidate mTaskBounds logic to mConfiguration
After the horizontal layout feature, the split layout is not just
determined by task bounds, but the whole task Configuration should
be take account.

This CL removes the mTaskBounds logic and consolidate to use
TaskContainer#mConfiguration instead. This CL also introduces
ActivityClient#getTaskConfiguration to obtain task config at
TaskContainer initialization.

Bug: 240219484
Test: atest WMJetpackUnitTests

Change-Id: I5725ac92d841c53675c78b9e50e0d3fee3973f37
2022-11-24 15:46:47 +08:00
Jing Ji
3d3659bc1d Rename android.app.ForegroundServiceTypeNotAllowedException to
..android.app.InvalidForegroundServiceTypeException.

And also add MissingForegroundServiceTypeException.

Bug: 254662240
Bug: 246792057
Test: atest CtsAppFgsTestCases
Change-Id: I9d39cb7fa75a14eb1b8cc97af13b612491803b61
2022-11-23 21:31:12 -08:00
TreeHugger Robot
2064ae92ad Merge "AudioDeviceVolumeManager and VolumeInfo API changes" 2022-11-24 03:07:56 +00:00
Charlie Wang
bf720fc448 Merge "WearableSensing framework API for wearables." 2022-11-24 02:18:37 +00:00
Jing Ji
9eff0bd199 Merge "Update OWNERs for the android.app.*ForegroundService*" am: 02cec105d3 am: d5b532c652 am: e1fd1f8e8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2314278

Change-Id: I264275a04e831008f07c45af65b2324d8d819586
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 01:06:35 +00:00
Jing Ji
e1fd1f8e8a Merge "Update OWNERs for the android.app.*ForegroundService*" am: 02cec105d3 am: d5b532c652
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2314278

Change-Id: Ieef63990cba66aa375131df1e2c3ad4303ac7dd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 00:29:26 +00:00
Jing Ji
d5b532c652 Merge "Update OWNERs for the android.app.*ForegroundService*" am: 02cec105d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2314278

Change-Id: I22e8b4d2005861b53b96cae33301c858ffb2449f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 00:01:42 +00:00
Ruslan Tkhakokhov
9c44a14afe Pass operation type to BackupAgent
Pass @OperationType in BackupAgent#onCreate and use it to instantiate
BackupRestoreEventLogger.

Bug: 255376040
Test: Manual: 1. Log operationType to logcat in BackupAgent#onCreate
              2. adb shell bmgr backupnow android; verify
		 operationType=0 via logcat
	      3. adb shell bmgr restore 1 android; verify
		 operationType=1 via logcat
Change-Id: I4b2e337209f31aade91baa6900abced35591a0af
2022-11-23 23:52:08 +00:00
Ruslan Tkhakokhov
0828847a7e Create BackupAnnotations for B&R-related annotations and constants
The class will serve as a container for B&R-specific logical types that
are used throughout the code base (i.e. including non-BR components).

Replace BackupManager#OperationType with the new
BackupAnnotations#BackupDestination.

Bug: 255376040
Test: m -j
Change-Id: Ica9fc4670575dab01dbf18864cd8e5ec1132738f
2022-11-23 23:44:29 +00:00
Chris Poultney
79fac3a45a Add override to WallpaperManager.peekBitmapDimensions with which param
This creates the method stub; implementation will be in master.
Bug: 253481667
Test: TreeHugger

Change-Id: I99fcf70717e5e0bacd303e9d7caee466d218a98a
2022-11-23 22:00:26 +00:00
Jing Ji
02cec105d3 Merge "Update OWNERs for the android.app.*ForegroundService*" 2022-11-23 21:43:05 +00:00
Almaz Mingaleev
b799b6cf59 Merge "Clean-up after TZUvA feature removal." am: 06b9abf013 am: ac0cf4e9ae am: fe16fe6f8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: Ifd1e49c1611ed2d55337609e5d07d43761f3e44d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 18:37:04 +00:00
Jean-Michel Trivi
283a4c7153 AudioDeviceVolumeManager and VolumeInfo API changes
Context service name for accessing AudioDeviceVolume manager.
Address API comments on VolumeInfo and AudioDeviceVolumeManager.
Add support in VolumeInfo to know whether it carries an explicit
  mute/unmute information (vs just default value of isMuted()).

Bug: 244326361
Test: atest android.media.audio.cts.AudioDeviceVolumeManagerTest
Test: atest android.media.audio.cts.VolumeInfoTest
Change-Id: Id718fbd7e0d5795ac480d9188faad4a70fba9808
2022-11-23 18:14:47 +00:00
Almaz Mingaleev
fe16fe6f8c Merge "Clean-up after TZUvA feature removal." am: 06b9abf013 am: ac0cf4e9ae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: Id8a86a06c500d6e58571ec903a4238613597eae8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 11:28:16 +00:00
Almaz Mingaleev
ac0cf4e9ae Merge "Clean-up after TZUvA feature removal." am: 06b9abf013
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: I1d9b114c135f7e3c80613ae1f7b32346cd0b258f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 11:02:13 +00:00
Almaz Mingaleev
06b9abf013 Merge "Clean-up after TZUvA feature removal." 2022-11-23 10:16:21 +00:00
Jing Ji
eb1f3aed23 Update OWNERs for the android.app.*ForegroundService*
Change-Id: Ic07b70c79e6ab3d8f96178c92eebae3408b9ef74
Test: m
2022-11-23 06:13:58 +00:00
Jing Ji
2d49689f32 Add health connect permissions to FGS type "health"
Bug: 246792057
Bug: 254662338
Test: atest CtsAppFgsTestCases
Change-Id: I95be5f3f69c35299bb0edc998b40b103f3963d17
2022-11-22 20:13:58 -08:00
Xiang Wang
4fa4a0982e Merge "Revert "Include public GameManager unit tests in presubmit"" 2022-11-23 01:34:51 +00:00
Li Li
678ce49f2d Merge "Stop using CannotDeliverBroadcastException" into tm-qpr-dev am: 8ee0c7192f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20523348

Change-Id: I1f526ab882d0a30f952a1e033c09a9ae670d38cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 01:34:33 +00:00
Xiang Wang
1842b786ec Revert "Include public GameManager unit tests in presubmit"
This reverts commit 62fbe39ad6.

Reason for revert: this module will fail in presubmit b/260071873
BUG: 260071873

Change-Id: Ic2d5637ddd451755c0f5bc1cfdd5dd5be67baa31
2022-11-23 01:33:27 +00:00
Chris Poultney
b7134cd71d Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." 2022-11-22 14:48:47 +00:00
Sudheer Shanka
6fe293bbae Merge "Allow senders to specify the delivery group via matching filters." 2022-11-22 12:01:06 +00:00
Xiang Wang
f0a11f4563 Merge changes from topics "game-mode-custom", "no-game-mode-supported"
* changes:
  Add IGameModeListener and methods to add/remove in GameManagerService
  Disallow setting UNSUPPORTED mode to avoid ambiguity
  Always return STANDARD & CUSTOM game modes as available modes
2022-11-22 04:13:35 +00:00
Xiang Wang
8fe347b0ac Merge changes I0317cf08,Ie1db1889,I0909bc7c
* changes:
  Add updateCustomGameModeConfiguration system API
  Add GameModeConfiguration
  Add opt-in game modes and intervention flags to GameModeInfo
2022-11-22 02:11:13 +00:00
Sudheer Shanka
7645452cd1 Allow senders to specify the delivery group via matching filters.
Senders can specify an IntentFilter object that should match
against another broadcast intent to be considered in the same
delivery group.

Bug: 249160234
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastRecordTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueModernImplTest.java
Test: atest tests/app/src/android/app/cts/BroadcastOptionsTest.java
Test: atest tests/tests/content/src/android/content/cts/IntentFilterTest.java

Change-Id: I36f1e3ffab8e30371a9968cb23c7b345c3301682
2022-11-22 01:04:29 +00:00