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
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
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
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)
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
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
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
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
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
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
This reverts commit 62fbe39ad6.
Reason for revert: this module will fail in presubmit b/260071873
BUG: 260071873
Change-Id: Ic2d5637ddd451755c0f5bc1cfdd5dd5be67baa31
* 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
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