Commit Graph

3345 Commits

Author SHA1 Message Date
Eric Zhang
d08beccfa1 Merge "Change ownership of resumeonreboot module." am: 5a700f759d am: 1288c03ad5 am: a14c588df0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1985526

Change-Id: Iaadb9e2a88116ae21c6b98d6471116ee2334bf56
2022-02-15 07:43:29 +00:00
Eric Zhang
1288c03ad5 Merge "Change ownership of resumeonreboot module." am: 5a700f759d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1985526

Change-Id: I97bb619d188e3dbc0bac5478cfd921c73b5c1d9d
2022-02-15 07:00:53 +00:00
Eric Zhang
3e56fc6c5e Change ownership of resumeonreboot module.
Bug: N/A
Test: N/A
Change-Id: I014452eebfd73767549bb233ccace0655adc57dd
2022-02-14 20:20:50 +00:00
TreeHugger Robot
16a227c1a4 Merge "Add getPackageName to VoiceInteractor" 2022-02-12 02:29:50 +00:00
Lee Campbell
99589ebc0f Add getPackageName to VoiceInteractor
Adds a new API to VoiceInteractor to allow apps to query
the package name of the Voice Interactor associated with
this the current voice interaction

BUG: 192061561
CTS-Coverage-Bug: 218687104
Test: Manual validation from personal and work profiles

Change-Id: If381c38498535bf94d13c0b5ad5f6c4fa5495117
2022-02-11 16:42:38 +00:00
Vania Desmonda
c60397744c Merge "Fixing color hints adjustment on live wallpapers and lock screen when wallpaper is dimmed" 2022-02-11 11:13:46 +00:00
Ahaan Ugale
ad7dd8fecb Merge changes from topics "aohd-invalidate", "eventpayload-data"
* changes:
  API to destroy active detectors
  expose HAL keyphrase trigger extras to EventPayload
  expose HAL keyphrase trigger data to EventPayload
2022-02-11 10:05:03 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Darrell Shi
dba24dedf4 Merge changes from topic "revert-16781464-YCPFURVHZR"
* changes:
  (Resubmit) Read "showClockAndComplications" metadata.
  (Resubmit) Move dream metadata parsing to framework.
2022-02-10 23:25:13 +00:00
Nicholas Ambur
935e33f416 API to destroy active detectors
The active AlwaysOnHotwordDetector and SoftwareHotwordDetector is always
maintained  in memory regardless if the client is using it or not.
This added API allows an active VoiceInteractionService to indicate that
they will no longer use the detector, and it can be cleaned up.

Test: atest HotwordDetectionServiceBasicTest
Bug: 193232191
Change-Id: I47c6c64c5c85c01e75ddc6bc504664883a57730b
2022-02-10 13:37:41 -08:00
Nicholas Ambur
2f7b2d5f94 expose HAL keyphrase trigger extras to EventPayload
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.

Data exposed:
- Keyphrase extras providing details on what phrase was interpreted by
the voice engine

Extra keyphrase information provided by the SoundTrigger HAL which was
previously suppressed is also exposed.

Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: I3b20fd3692c3f9c86181f87d66622c77778b9ab2
2022-02-10 13:37:41 -08:00
Nicholas Ambur
6b6d178bd6 expose HAL keyphrase trigger data to EventPayload
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.

Data exposed:
- Raw data field

Previously raw data was only exposed when the data was of a specific
audio format. This change allows the raw data to be retrieved regardless
of format.

Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: Ie75773853d3b338e092dfbf3bd6ccef61a1420c9
2022-02-10 13:37:40 -08:00
Darrell Shi
6550a92810 (Resubmit) Read "showClockAndComplications" metadata.
Read "showClockAndComplications" from dream metadata when binding to
DreamOverlayService, and pass in the value in intent extra.

Test: atest DreamServiceTest
Test: manually on device
Bug: 211519550

Change-Id: Ie8780834eb438897191c3545acff49f82f1350a9
2022-02-10 18:09:15 +00:00
Darrell Shi
91f91d7ae3 (Resubmit) Move dream metadata parsing to framework.
Bug: 214117287
Test: atest com.android.server.dreams.DreamServiceTest
Test: manually on device by opening Screensaver settings because it
calls into the metadata parsing from DreamBackend

Change-Id: I252f634dd10297ba7dcd91fae6289a85a2904e3d
2022-02-10 18:09:00 +00:00
Vania Desmonda
df5e4b2e40 Fixing color hints adjustment on live wallpapers and lock screen when
wallpaper is dimmed

When dimming is applied on live wallpapers, remove
HINT_SUPPORTS_DARK_TEXT/_THEME hints from the color hints to disable
dark text by default.

Test: manual, atest WallpaperManagerServiceTest
Bug: 217367978
Change-Id: Ia614c0b36f84c707a7eb3dabdc7a1eb90992bf3c
2022-02-10 11:42:23 +00:00
Kathy Chen
4ff2a4e611 Merge "Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity." 2022-02-09 19:05:21 +00:00
Yuri Lin
1a314e9ef3 Merge "Log assistant notification cancels accordingly." 2022-02-09 16:10:35 +00:00
Kathy Xiaoming Chen
f8f605c44e Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity.
It implements Option 5 in this proposal doc: http://go/ambient-consent-api

Test: atest CtsAmbientContextDetectionServiceDeviceTest
Bug: 192476579
Change-Id: I923911fa8f73d973fd22587af74ed27c5045da34
2022-02-08 16:25:39 -08:00
Yuri Lin
ef3f660d72 Log assistant notification cancels accordingly.
This change adds the NOTIFICATION_CANCEL_ASSISTANT uievent and reports any cancellations due to assistants as REASON_ASSISTANT_CANCEL. Listeners below T (when this reason is added) are notified with the same reason that was previously used in all cases, REASON_LISTENER_CANCEL.

Bug: 201417230
Test: NotificationManagerServiceTest, manually by statsd_testdrive

Change-Id: Iae50053d325b62b479b3c31aea97d35d8847f381
2022-02-08 15:34:11 -05:00
Scottie Biddle
21d16aecd7 Add new config and API for QuickAccessWallet features.
Adds a new configuration attribute for use in
QuickAccessWalletService:
* useTargetActivityForQuickAccess - this is a boolean, false by default.
When true, the system will use the component specified by the
android:targetActivity attribute instead of the SysUi's WalletActivity.

Adds a new API method to QuickAccessWalletService: the method returns a
PendingIntent that can be used in place of the targetActivity specified
in the service's manifest entry. The method is not abstract; by default
it returns null so that existing services will not have to make any
changes to target android T.

To make use of this feature, define a new method in
QuickAccessWalletClient: useTargetActivityForQuickAccess() which
provides the configuration for use by QuickAccessWalletController.

Updates QuickAccessWalletController to define a new method: startQuickAccessUiIntent(),
which reads the configuration as well as whether the service is
providing any cards, and provides a centralized place to launch
the correct Quick Access intent.
The logic there is:
1. If a PendingIntent is provided from the service, use that.
2. If not, check for an active activity from the metadata in XML.
3. If that isn't available OR useTargetActivityForQuickAccess is false and the system is displaying cards, use WalletActivity provided by SystemUi.

Addes tests for QuickAccessWalletController. CTS Test for
QuickAccessWalletClient has new tests in a separate change in the same
topic. In the course of development, discovered that unit tests for
QuickAccessWalletController has been failing for as long as a year. Will
fix that and update in a follow-up.

Test: atest QuickAccessWalletControllerTest
Test: atest QuickAccessWalletClientTest
Bug: 215725263

Change-Id: Ifa3427d5e6f6b02e4afffa40453d1cb0f4f8ed67
2022-02-07 12:56:39 -08:00
Shannon Chen
fe88079504 Fix IGameSessionController permission passthrough annotation.
This should be updated to MANAGE_GAME_ACTIVITY after ag/16728687.

Bug: 216344350
Change-Id: I754b39b242f2cc2bfed822f8b8b75438dd70343d
Test: n/a
2022-02-04 20:58:53 +00:00
TreeHugger Robot
8581bc3e77 Merge "Add GameSession APIs for starting activities." 2022-02-04 09:25:47 +00:00
shannonchen
ed33816c43 Add GameSession APIs for starting activities.
This API allows the game service provider to start an
activity in the existing game task and receive a result
through the GameSessionActivityCallback instead of the
result being sent to the game.

For an example use case, in the Android S dashboard, the
dashboard starts the YouTube-hosted live stream activity to
handle YouTube live streaming and the Play Games-hosted
dashboard activity to handle showing Play Games services
data.

The API allows the GameSession provider to respond to
different activity results returned from the target
activity.

Test: manual e2e testing
Bug: 208242220
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I1eb017ade1ae60a713d85a70df23845498206df7
2022-02-03 22:42:11 +00:00
Tyler Lacey
e1f8fec3f9 Add warning to GameSession#setTaskOverlayView's Javadoc.
Bug: 202414447
Bug: 202417255
Test: Documentation only
Change-Id: I595bebb9ffef3970929ebc0468f7864d15bd6873
2022-02-03 19:36:49 +00:00
Pat Manning
982f4e4c9d Merge changes I3fc1e667,I1647577a
* changes:
  Revert "Move dream metadata parsing to framework."
  Revert "Read "showClockAndComplications" metadata."
2022-02-03 12:55:20 +00:00
YoonKyung Kim
09992b0553 Revert "Move dream metadata parsing to framework."
This reverts commit b0a0bfdf10.

Reason for revert: Broken Build 8144432 on git_master on errorprone - b/217651561

Change-Id: I3fc1e66747d456a2ffb9a3ab5e6ab10e3bdaef67
2022-02-03 06:34:19 +00:00
YoonKyung Kim
d5b3cb2adb Revert "Read "showClockAndComplications" metadata."
This reverts commit 30711f8561.

Reason for revert: b/217651561

Change-Id: I1647577ae5a7415ac336a5814fb0a73902c56aa7
2022-02-03 06:25:48 +00:00
Darrell Shi
395ff008a7 Merge "Read "showClockAndComplications" metadata." 2022-02-03 02:29:41 +00:00
Darrell Shi
d965b9f5bd Merge "Move dream metadata parsing to framework." 2022-02-03 02:28:35 +00:00
TreeHugger Robot
4994547596 Merge "Updating active-unlock APIs" 2022-02-02 09:24:59 +00:00
TreeHugger Robot
0d07a8fabb Merge changes from topic "active-unlock"
* changes:
  Implementing lockUser
  Adding logic for active unlock to grant trust
2022-02-02 09:24:59 +00:00
Sharon Su
79d91e3efa Merge changes from topic "susharon-wallpapereffectsgeneration"
* changes:
  Server implementation of WallpaperEffectsService API.
  Data class and interface for wallpaper effects generation api.
2022-02-02 07:42:16 +00:00
David Samuelson
8dfa0b9fa0 Merge "Introduce GameSession.onTransientSystemBarsVisibilityFromRevealGestureChanged(...)" 2022-02-02 04:26:31 +00:00
Your Name
ff7c7a4f67 Updating active-unlock APIs
Exposing active unlock APIs, not much more. Simplifies approval and
tracking process later.
go/android-active-unlock-t-api

Test: None
Bug: 213631677
Bug: 213631675
CTS-Coverage-Bug: 213944235
Change-Id: I613a400991b0ea1895dcebb6fb01a4c13beb9c0a
2022-02-02 03:11:07 +00:00
Your Name
40436e5572 Implementing lockUser
Allow TrustAgents to request that TrustManagerService lock the user and
revoke trust and trustable status. This can be used to provide user
facing controls to lock the phone from a connected wearable.

Bug: 213631677
Test: prototype

Change-Id: I719584cce5d5c57d2c41de9f7c26ce9609a981f9
2022-02-02 02:04:35 +00:00
Darrell Shi
30711f8561 Read "showClockAndComplications" metadata.
Read "showClockAndComplications" from dream metadata when binding to
DreamOverlayService, and pass in the value in intent extra.

Test: atest DreamServiceTest
Test: manually on device
Bug: 211519550

Change-Id: Id80899468ad76c77aec2057bbf2348eee47a8ac2
2022-02-02 01:58:31 +00:00
Your Name
e61faf3bf5 Adding logic for active unlock to grant trust
Contains the logic that will take a phone from trustable to trusted,
from trusted back to trustable, and from trustable to untrusted for the
new active unlock feature.

Test: prototyping
Bug: 213631675
Change-Id: Ia9345718b1e5e7f5cc71a668c22751c2cf969677
2022-02-02 01:39:09 +00:00
Daniel Kim
fde9ae34a1 Merge "Adding proximity endpoints to Attention Service Test: atest AttentionManagerServiceTest Bug: 214395649" 2022-02-02 00:50:07 +00:00
Darrell Shi
b0a0bfdf10 Move dream metadata parsing to framework.
Bug: 214117287
Test: atest com.android.server.dreams.DreamServiceTest
Test: manually on device by opening Screensaver settings because it
calls into the metadata parsing from DreamBackend

Change-Id: Iecb2f48e1f8cbfc2e3d45fd847947fab740577a4
2022-02-02 00:45:39 +00:00
Sharon Su
0b1dea8145 Data class and interface for wallpaper effects generation api.
Test: manual build and run cts on devices
Bug: 213238425
CTS-Coverage-Bug: 213238425
Change-Id: I8c3d579a5123aaa99999f9d0df92998cec9dec34
2022-02-01 22:08:49 +00:00
David Samuelson
36764e4895 Introduce GameSession.onTransientSystemBarsVisibilityFromRevealGestureChanged(...)
Adds support for a GameSession to detect when the transient system bars
are revealed and hidden using the GameSession reveal gesture.

Test: Manual e2e testing
Bug: 210119966
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I614f9aeae65d6be6e3262ef58011612062036b35
2022-02-01 20:38:07 +00:00
Daniel
654abc5005 Adding proximity endpoints to Attention Service
Test: atest AttentionManagerServiceTest
Bug: 214395649

Change-Id: I821fa883a2a23da664913e7a831b59701393903f
2022-02-01 19:10:11 +00:00
TreeHugger Robot
84e5767fdf Merge "Revert "Changes to support adding CTS Test TrustTestCases."" 2022-02-01 18:50:23 +00:00
Xiang Wang
4d62e371b1 Add permission requirement to createGameSession API
Bug: 216344350
Test: atest GameServiceProviderInstanceImplTest
Change-Id: Ia42da14d9d4ab4da03181c795b5335147b8818a7
2022-02-01 06:04:19 +00:00
Dave McCloskey
f10dcdbb3b Revert "Changes to support adding CTS Test TrustTestCases."
Revert "Add TrustTestCases CTS test with first test for onUserRe..."

Revert submission 16640606-au-cts1

Reason for revert: Test case does not work on CTS. b/217203979
Reverted Changes:
I43bffe76c:Changes to support adding CTS Test TrustTestCases....
Ia0008dd81:Add TrustTestCases CTS test with first test for on...

Change-Id: I9161003d217e624f22d2d212197a365d92aba3c3
2022-02-01 00:33:39 +00:00
TreeHugger Robot
1825f77243 Merge "Add MANAGE_GAME_ACTIVITY permission" 2022-01-31 17:47:07 +00:00
TreeHugger Robot
856cc8c570 Merge "Add pendingIntent to FillRequest to enable retriggering" 2022-01-29 07:00:55 +00:00
Xiang Wang
e7b9879b4b Add MANAGE_GAME_ACTIVITY permission
Add permission enforcement to GameSessionController#takeScreenshot

Bug: 216344350
Test: atest GameServiceProviderInstanceImplTest
Change-Id: Ibf0a267f96b02a98d77887766d8bd0867c25eb53
2022-01-29 02:50:52 +00:00
Dave McCloskey
3fc735da92 Merge "Changes to support adding CTS Test TrustTestCases." 2022-01-28 19:55:11 +00:00
Vania Desmonda
9675c26e12 Merge "Fix null pointer exception crashes caused by a mutable variable." 2022-01-28 18:15:41 +00:00