Give TimeZoneProviderService implementations the ability to supply
(optional) status information. This status information can be used for
two purposes:
1) To help report status to users in the SettingsUI (once plumbed
through).
2) To influence higher-level time zone detection behavior, i.e. so that
the time zone detection can understand that a TZP is unable to
perform its duties, perhaps something the platform cannot detect for
itself.
Test: atest core/tests/coretests/src/android/service/timezone/
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Bug: 236624675
Change-Id: Ifa66b8c968c0bdf31b6bdf55ead34b3fa1d9e6fa
Bug: 244595867
Test: TODO - Manual E2E test for now, CTS tests later
Change-Id: I02050cc39146e93e9dca1f3db6e0b5b894e85dd6
Merged-In: I02050cc39146e93e9dca1f3db6e0b5b894e85dd6
- Create the new data class HotwordAudioStream
- Add HowordAudioStream list into HotwordDetectedResult
- Add @UnsupportedAppUsage and remove some codegen data
Test: atest CtsVoiceInteractionTestCases
Bug: 243766281
Bug: 243597982
Change-Id: I0953a93195699b17d4a69bba6c4140bc91eecb79
Merged-In: I0953a93195699b17d4a69bba6c4140bc91eecb79
The overlay should blur and animate the complications when the dream is waking up. This adds a new API to DreamOverlayService to get notified of dreams waking, so that it can run the animation. When the animation is done, we communicate back to the DreamService so that it may finish itself.
A delay was added to the touch handler which hides the overlay when a
touch happens, in order to ensure the exit animation has a chance to
complete first.
Bug: 220311554
Test: atest DreamOverlayAnimationsControllerTest
Test: atest HideComplicationTouchHandlerTest
Test: atest DreamOverlayContainerViewControllerTest
Test: atest DreamOverlayServiceTest
Test: flashed device and verified animation looks correct when tapping
dream to exit
Change-Id: Ibccd45aefbf9b8aeb462d843794c3434c49a6bf2
The original proximity feature which returned the distance in meters was
determined to be too privacy-invasive. AttentionManagerService continue
to receive proximity in distance from Attention Service, but
HotwordDetectedResult will map it
to different proximity levels, near and far. These proximity levels will be used in HotwordDetectionConnection. Use a RequiredServiceRule to make sure we only run the test if the device has the attention service
Bug: 253326426
Test: atest CtsVoiceInteractionTestCases
Change-Id: I4d55564c39d48dd1869d747beb37f81170c102f6
These trace logs are needed to analyse the performance impact of
switching wallpapers while switching between Android users.
Bug: 256604395
Test: N/A
Change-Id: Ie1ed4100a675f4a5ca00c084ebd299212590d427
New CTS will enforce that the callback methods from WallpaperService are
called by the main thread. Add the corresponding annotations to these
methods.
Test: atest CtsWallpaperTestCases
Bug: 240112941
Change-Id: Ia63a401197f5dd8b2d32234357ffc2863150be31
Extract non-API changes to make the API change commit smaller / more
focused. These changes are mostly naming, comment and some improved
validation. There's some toString() / parsing toString() changes and
associated tests for manual testing support used in later commits.
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Test: atest core/tests/coretests/src/android/service/timezone/
Bug: 236624675
Change-Id: I8f74e4bd0ad1a34b593afdf89b3e4840420a5d10
Instead of pulling the active dream component, we push the component
when a dream is started. This ensures that the active component remains
in sync with the currently active dream.
Bug: 246091760
Test: flashed device and verified dreams are working correctly
Change-Id: Ifece2dc62486b74794f0d333d19bec2ab3bc9229
This change implements a power button behavior that prioritizes entering
a dream on press, rather than turning off the screen.
Bug: 245961904
Test: Manually as follows:
Make sure config_shortPressOnPowerBehavior is set to
SHORT_PRESS_POWER_DREAM_OR_SLEEP.
1. Set screensaver to dock then dock device. Make sure tapping power
button when screen on goes to dream. Make sure tapping power button
when screen off goes to dream. Make sure tapping power button while
dreaming turns display off.
2. Set screensaver to charge then plug in device. Make sure tapping
power button when screen on goes to dream. Make sure tapping power
button when screen off goes to dream. Make sure tapping power button
while dreaming turns display off.
3. Set screensaver to charge or dock and perform the same tests as
above.
4. Set screensaver to dock and then undock device. Make sure tapping
power button does not start dreaming.
Note that the device may charge while docked, so setting screensaver to
charge may act the same when docked or charging.
Merged-In: I9b6859b4933839841b76b832f275dcc14313f192
Change-Id: Id0c37612b866111ed265ac282963611429bfb36b
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().
We change the logic to make sure that the stage of visible
activity that we reported to the Assistant is after onStart().
Bug: 235296082
Test: atest VoiceInteractionSessionVisibleActivityTest
Test: atest android.app.activity.ActivityThreadClientTest
Test: atest android.view.DisplayTest
Test: atest android.window.ConfigurationHelperTest
Test: atest android.window.SizeConfigurationBucketsTest
Change-Id: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
(cherry picked from commit 29bb3a3428)
Merged-In: Ie439ff3706dab35e875c1eb995a67fa73aec4d76