Commit Graph

3191 Commits

Author SHA1 Message Date
Lucas Dupin
7504868579 Merge "Use a process queue pattern to eliminate concurrency bugs" into sc-v2-dev am: 59e7135889 am: 552e8eacd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16249201

Change-Id: If3654d6d67d4ebef06da32374b9353128ec7644c
2021-11-18 19:43:45 +00:00
Lucas Dupin
552e8eacd7 Merge "Use a process queue pattern to eliminate concurrency bugs" into sc-v2-dev am: 59e7135889
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16249201

Change-Id: Ia7de18c10cba2cdafb7779ee5b6932d5cb5bca98
2021-11-18 19:31:24 +00:00
Jay Aliomer
b5567531cf Use a process queue pattern to eliminate concurrency bugs
Fixes: 202940545
Test: manual
Change-Id: Ie043d8cf8c8e31dee341726990fb58e10e2d53fb
2021-11-15 15:16:42 -05:00
Jay Aliomer
a9fcb6f788 Merge "Update local wallpaper colors when areas added and fix stale clock" into sc-v2-dev am: b9902adf15 am: f580a5d442
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15983695

Change-Id: I6209cfaf12a46ab8f294d8ce3f4a628bb693acdb
2021-11-11 21:13:59 +00:00
Jay Aliomer
f580a5d442 Merge "Update local wallpaper colors when areas added and fix stale clock" into sc-v2-dev am: b9902adf15
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15983695

Change-Id: I7fe2ebb469ae36a6fa6be37b83629029418bd80e
2021-11-11 20:53:12 +00:00
Jay Aliomer
d5d115a29c Update local wallpaper colors when areas added and fix stale clock
Test: manual
Fixes: 200252681
Change-Id: I5e46f5513eebe8ef1d1b01338e323bca6ea401b8
2021-11-11 18:26:32 +00:00
Bryce Lee
4219dcc2c5 Add Stub implementation for DreamOverlayService.
This changelist introduces a stub implementation for
DreamOverlayService for test purposes. It also allows
DreamManager to set the DreamOverlay.

Bug: 204890435
Test: atest DreamOverlayTest
Change-Id: Ia59e70d08f76d5928e72e815c990195934292ad5
2021-11-04 20:47:07 -07:00
Bryce Lee
16b5913cb4 Consolidate dream overlay binding logic.
This changelist moves the binding logic to the
dream overlay service into the OverlayConnection
class within DreamService. This helps better
track the binding lifecycle.

Test: manual
Test: atest DreamOverlayTest
Bug: 205077932
Change-Id: I92959a9ecb53533d998abd711f960ef4fe0628d0
2021-11-04 20:07:08 -07:00
Bryce Lee
bfc555ea4a Pass Window to DreamOverlayService when attached.
Previously, the DreamService would send the window
attributes to the DreamOverlayService. However, it is
possible that the Window isn't fully associated with
a token at this stage.

This change ensures the Window is only passed when
the token is ready, tracked by when the DecorView
is attached.

Bug: 204605351
Test: atest DreamOverlayTest
Change-Id: Ib1d25ba55edb648739aca22d861e9522102d0668
2021-11-04 17:48:19 -07:00
Matt Pietal
d689c6ad2d Controls API - Support action while device is locked
By default, all user interactions with a device control while the
device is locked will require authorization. Add a new field to the
Control class that allows the application that builds the control to
determine if the device requires authorization or not.

Fixes: 202978576
Test: atest ControlActionCoordinatorImplTest
ControlProviderServiceTest
Test: atest CtsControlsDeviceTestCases CtsControlBuilderTest CtsControlTemplateTest

Change-Id: I294662b88637e18bf620aff2eed4749ae304ebd4
2021-11-01 13:55:52 -04:00
Bryce Lee
87a5024ef5 IDreamOverlay Introduction.
This changelist introduces IDreamOverlay, an interface
for rendering an overlay on top of a Dream. IDreamOverlay
implementations can register with DreamManagerService to
be bound to by DreamService when dream commences. The
overlay will be passed the Dream Window information so
that it may render within this window space.

Bug: 201676854
Test: atest DreamOverlayTest
Change-Id: I382ba2acb4a6922f19250753f8f0afc4181a6454
2021-10-27 08:39:20 -07:00
Julia Reynolds
d5e1a8da5a Merge "Check permission when posting notification" 2021-10-21 17:43:00 +00:00
Julia Reynolds
4e968666fd Check permission when posting notification
Test: atest FrameworksUiServicesTests, core tests
Bug: 194833441
Change-Id: I77816addeec483f645ac4bb8d8552e8853aaf633
2021-10-21 12:02:34 -04:00
TreeHugger Robot
570f3b1834 Merge "Add java doc for registerVisibleActivityCallback method." into sc-v2-dev am: 786af488fb am: ddfc23c733
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16036450

Change-Id: I24ceeb05c8a47563e208fa0d46c4e60a6ee1c258
2021-10-21 07:09:57 +00:00
TreeHugger Robot
ddfc23c733 Merge "Add java doc for registerVisibleActivityCallback method." into sc-v2-dev am: 786af488fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16036450

Change-Id: I6fd828deb86274ec8308546cd0d16626865d60fd
2021-10-21 06:54:00 +00:00
TreeHugger Robot
786af488fb Merge "Add java doc for registerVisibleActivityCallback method." into sc-v2-dev 2021-10-21 06:40:19 +00:00
lpeter
0ff358f0a8 Add java doc for registerVisibleActivityCallback method.
Bug: 202102333
Test: manual test
Change-Id: I01d709be9f79552370aa9bcde47c65a36a956a19
2021-10-21 12:25:03 +08:00
Chloris Kuo
28967d42e7 Merge "Notification text change should not be interruptive during post time" into sc-v2-dev am: 36a15a906c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16076774

Change-Id: I23e725cb556cd6869de23fbce0eadc0db477c5df
2021-10-19 01:30:09 +00:00
Chloris Kuo
c2d00c9c2e Merge "Notification text change should not be interruptive during post time" 2021-10-18 23:28:50 +00:00
Chloris Kuo
fbe9702f6e Notification text change should not be interruptive during post time
Rename NLS#Ranking.visuallyInterruptive and source from isTextChanged

Bug: 201087764

Test: atest NotificationManagerServiceTest, NotificationRecordTest,
NotificationListenerServiceTest, BubblesTest, BubbleDataTest,
NewNotiPipelineBubblesTest

Change-Id: I5949183704c3747084c83af7737a5212ede48fc0
2021-10-18 20:13:00 +00:00
Chloris Kuo
3f3e96e4d3 Notification text change should not be interruptive during post time
Rename NLS#Ranking.visuallyInterruptive and source from isTextChanged

Bug: 201087764

Test: atest NotificationManagerServiceTest, NotificationRecordTest,
NotificationListenerServiceTest, BubblesTest, BubbleDataTest,
NewNotiPipelineBubblesTest

Change-Id: I5949183704c3747084c83af7737a5212ede48fc0
2021-10-18 12:52:24 -07:00
Neil Fuller
87b26046df Merge "Adding selective filtering to LTZP events" 2021-10-15 08:41:06 +00:00
Neil Fuller
135703feac Adding selective filtering to LTZP events
This commit introduces a time threshold for passing on "equivalent"
events for location time zone providers. When TimeZoneProviderEvent
instances are created, they are assigned a time from the elapsed
realtime clock, which will enable comparison with other types of events
generated by other flows. Events that have a sufficiently different time
will be passed to the system server. The time will be in the order of a
few minutes, the intention being to filter out high frequency events
that would cause the system server to do work unnecessarily, while
keeping a coarse idea of how recently the LTZP reported the state.

This commit adds the time to the TimeZoneProviderEvent and plumbs
through the configuration for the filter threshold from the system
server to the client code. The threshold can be set with server flags,
which are mostly intended to support the test logic.

Changes made at the same time:
1) Fix an issue in TimeZoneProviderRequest.equals() with an incorrect
reference equality check.
2) Rename some long-winded constant names - LOCATION_TIME_ZONE_PROVIDER_
-> LTZP_
3) Change some server flag strings so that "ltzp_" is spelt correctly
(which I do not anticipate using, but does mean that S and >S devices
respond to different flag strings).

Bug: 197624972
Bug: 200710190
Test: atest core/tests/coretests/src/android/service/timezone/
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Test: See associated cts/ change
Change-Id: Id682d420be21b9215b92f54bad599517c322fb6a
2021-10-14 09:48:50 +01:00
Neil Fuller
a172c7fbcb Merge "Prepare for rate limiting TimeZoneProviderService" 2021-10-14 08:43:04 +00:00
Julia Reynolds
f01bf6d8bf Merge "Fix incorrect documentation" into sc-v2-dev am: 64ef6abce8 am: 89dac6d111
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15949163

Change-Id: I11c6dc3bbf60341e6d886c19adbaf7298eea2a4c
2021-10-13 21:02:03 +00:00
Julia Reynolds
89dac6d111 Merge "Fix incorrect documentation" into sc-v2-dev am: 64ef6abce8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15949163

Change-Id: I72c5b935b609b11c3b1ac3e1051537c9c6ae0876
2021-10-13 20:51:59 +00:00
Neil Fuller
7c1fa4c4f1 Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa am: 55f3beebb2 am: 8d70e9f514 am: 849414933b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: Ia6e5465da1d4e48123492c480cde82459f68a3c7
2021-10-13 18:51:18 +00:00
Neil Fuller
849414933b Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa am: 55f3beebb2 am: 8d70e9f514
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: I87f740271fbf072238509ca84ed599b7f43e7c6a
2021-10-13 17:51:00 +00:00
Neil Fuller
8d70e9f514 Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa am: 55f3beebb2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: I715015f2defdf26f0dd1f3e25084cd6bfd28a33b
2021-10-13 17:36:45 +00:00
Neil Fuller
55f3beebb2 Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: Ifba51b22f47f52aa1716dfbc621fb311a3865bba
2021-10-13 17:21:44 +00:00
Neil Fuller
e26bbeb94a Adjust OWNERS to reflect new ownership
This changes owners files based on latest org changes and changes
links to improve maintainability.

Changes:
+ It removes a specific owner from most to reduce future maintenance.
+ It adds indirection so android/app references the associated service
code, tests reference the OWNERS of the code under test.
+ services/core/java/com/android/server/timezonedetector/OWNERS is the
single list of time / time zone detector maintainers.
+ Code associated with time zone rules moved to libcore/ ownership
+ It adds one new file for an upcoming commit.
+ Added documentation around API purpose to API OWNERS files, since
there are multiple similar-looking package names with different purposes
/ clients.

Test: None
Bug: 189810551
Change-Id: I948d4b8eff59f3cd5ff63018949e49679795a5c0
2021-10-13 13:57:42 +01:00
Neil Fuller
a395ffdd2c Prepare for rate limiting TimeZoneProviderService
Prepare for rate limiting TimeZoneProviderService.  The first step is to
add duplicate event detection. Later, this will be extended to add a
time component.

i.e. the android.service.timezone.TimeZoneProviderService
will pass on suggestions that are semantically different from a previous
event, but will not if they are semantically the same.

In a later commit it will be made to pass on changes that are the same but
newer than some threshold.

Most of the changes in this commit are to track a change to the binder
API and the move of TimeZoneProviderEvent so that it can be used in code
outside of the system server.

Also:
+ TimeZoneProviderService is now stateful, so add dump() implementation.
Because dump() is called on the main thread, add locks needed for safe
threading (previously, all logic took place on a known handler thread).

Test: atest hostsidetests/time/host/src/android/time/cts/host/LocationTimeZoneManagerHostTest.java
Test: atest core/tests/coretests/src/android/service/timezone/TimeZoneProviderEventTest.java
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/ZoneInfoDbTimeZoneProviderEventPreProcessorTest.java
Test: treehugger
Bug: 197624972
Bug: 200710190
Change-Id: Ia3246e969fda61836c8e1eee3007a8177d119994
2021-10-12 12:25:28 +01:00
Julia Reynolds
de26725e3f Fix incorrect documentation
Test: manual
Fixes: 200704292
Change-Id: I6d72f1134b225a6aa1537bd703444e3b33d2f6a5
2021-09-30 13:42:25 +00:00
TreeHugger Robot
dddbf380e5 Merge "[NGA v2] Reliable Visible Activity Lookup" into sc-v2-dev am: 80fcbc8fe0 am: 347557e905
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15810445

Change-Id: I4a5b0c551343984de6124a497f7b24dd750c5aca
2021-09-28 18:16:17 +00:00
lpeter
918ea9940f [NGA v2] Reliable Visible Activity Lookup
To enable more voice-oriented in-app user journeys, Google Assistant
needs to access more information regarding the visible activities
via the Voice Interaction Session. Thus, we provide the APIs to receive
the changed visible activities in Voice Interaction Session.

Bug: 178244510
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I019d09fee8105ae1eadbc76803f46fd8b1948f6b
2021-09-28 17:06:49 +08:00
TreeHugger Robot
78bd25397a Merge "Use longer timeout for reportShown call" into sc-qpr1-dev am: 6ef0aae53b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15834211

Change-Id: Ia14b9965db1ab345edcb8ce54e3ef60176908b1e
2021-09-27 15:53:28 +00:00
Galia Peycheva
9165a3eec4 Merge "Make DreamActivity translucent when waking up dream" 2021-09-27 09:13:42 +00:00
TreeHugger Robot
6ad5e36426 Merge "Use longer timeout for reportShown call" into sc-qpr1-dev am: 6ef0aae53b am: a793d7a0e3 am: cf9a295882
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15834211

Change-Id: I4a294e4b13138397febc8d680bf336c98f510349
2021-09-24 03:10:22 +00:00
TreeHugger Robot
cf9a295882 Merge "Use longer timeout for reportShown call" into sc-qpr1-dev am: 6ef0aae53b am: a793d7a0e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15834211

Change-Id: I14b2896020bb214a70077b040d29de28e85cc3cc
2021-09-24 02:56:42 +00:00
Fabian Kozynski
83b1f4eda5 Merge "Better TEST_MAPPING for TileService tests" 2021-09-23 19:46:45 +00:00
Ahan Wu
a381ebd205 Use longer timeout for reportShown call
If the system is under somewhat pressure, the one second timeout might
not be enough, let's use a longer timeout to mitigate it.

Bug: 194080642
Test: see b/199700573#comment10
Change-Id: I8b9f40b332138b771d0892917b3f737caa2311a0
2021-09-23 12:51:32 +00:00
Galia Peycheva
782ba89e4a Make DreamActivity translucent when waking up dream
The DreamService calls onWakeUp, which allows the dream application to
finish the dream itself and apply an exit animation for up to 5 seconds
(after that, the system force removes the dream window). During the time
when the dream application is performing an exit animation, the dream
activity window is opaque. This causes problems when the dream
application applies a long exit animation - turnScreenOn+noHistory
activities are put under the dream (because dream has highest z-order)
and get destroyed before they get a chance to be drawn (because they
never become visible).

This CL makes the dream activity translucent before onWakeUp is called.
This allows turnScreenOn+noHistory activities to be resumed underneath
the dream, while the dream is transitioning out.

Bug: 162880999
Bug: 198359939
Test: manual
Change-Id: I536c871dab934273b79466426d861778661156dc
2021-09-23 14:01:30 +02:00
TreeHugger Robot
b1acc90fc8 Merge "Revert "Make DreamActivity translucent when waking up dream"" 2021-09-22 19:59:46 +00:00
Daniel Chapin
aecd865d06 Revert "Make DreamActivity translucent when waking up dream"
This reverts commit 7b024ebd9d.

Reason for revert: Bug: 200760427

Change-Id: I37a68c0abab584f214ebd625a77b21b8eba8caf0
2021-09-22 17:58:34 +00:00
Fabian Kozynski
e40cfde135 Better TEST_MAPPING for TileService tests
Test: atest
Fixes: 20023466
Change-Id: I5ba08c77aec8b93f0c7b9268e22d5c3aa0b4f7e9
2021-09-21 11:40:00 -04:00
Galia Peycheva
c2d5100789 Merge "Make DreamActivity translucent when waking up dream" 2021-09-21 10:00:21 +00:00
Galia Peycheva
7b024ebd9d Make DreamActivity translucent when waking up dream
The DreamService calls onWakeUp, which allows the dream application to
finish the dream itself and apply an exit animation for up to 5 seconds
(after that, the system force removes the dream window). During the time
when the dream application is performing an exit animation, the dream
activity window is opaque. This causes problems when the dream
application applies a long exit animation - turnScreenOn+noHistory
activities are put under the dream (because dream has highest z-order)
and get destroyed before they get a chance to be drawn (because they
never become visible).

This CL makes the dream activity translucent before onWakeUp is called.
This allows turnScreenOn+noHistory activities to be resumed underneath
the dream, while the dream is transitioning out.

Bug: 162880999
Bug: 198359939
Test: manual
Change-Id: I5045ba8765dd1918cf85ec0fa433617843e727bd
2021-09-20 10:28:17 +02:00
TreeHugger Robot
2aab14b6dc Merge "Ensure package context used by System UI has a valid userId." into sc-qpr1-dev am: e7f5a37501 am: 75891d4d17 am: 289bccaeca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15584842

Change-Id: I252d30da735dd5d7d48d3284c5e8614bb4bbde52
2021-09-15 15:14:19 +00:00
TreeHugger Robot
289bccaeca Merge "Ensure package context used by System UI has a valid userId." into sc-qpr1-dev am: e7f5a37501 am: 75891d4d17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15584842

Change-Id: I8b8da358d8599bd03db27fb33281552ae51cadac
2021-09-15 15:06:16 +00:00
TreeHugger Robot
668495d752 Merge "Ensure package context used by System UI has a valid userId." into sc-qpr1-dev am: e7f5a37501
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15584842

Change-Id: Ief73f955c719d82ca6c5bbe446f6da71af639551
2021-09-15 11:45:14 +00:00