Commit Graph

3318 Commits

Author SHA1 Message Date
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
skxu
ac9836b49e Add pendingIntent to FillRequest to enable retriggering
Bug: 190232037
Test: atest DelayFillTest
Change-Id: Ic224958c51d531b1d0de091ab9e2bf12756d8d0e
2022-01-28 16:21:24 +00:00
Antoan Angelov
7cb84c79f3 Merge "Protect getPersistentDataPackageName with ACCESS_PDB_STATE" 2022-01-28 14:32:07 +00:00
Vania Desmonda
4100ca0174 Fix null pointer exception crashes caused by a mutable variable.
Test: atest WallpaperManagerTest
Bug: 216055454
Change-Id: I3ebf6a70a58863d7cde006638c272a3942299112
2022-01-28 13:47:03 +00:00
Lalit Maganti
d145d12784 Merge "base: add support for routing traces to reporters" am: 3a24d6bffb am: 26a716c74e am: a70c08c6f5 am: 8df5573e81
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918624

Change-Id: I3831fc11a7c105177256fe4f3e0fad53f03da319
2022-01-28 13:21:32 +00:00
Lalit Maganti
8df5573e81 Merge "base: add support for routing traces to reporters" am: 3a24d6bffb am: 26a716c74e am: a70c08c6f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918624

Change-Id: I99d8f5456585dceda748857f525a2eee8c73a337
2022-01-28 13:07:19 +00:00
Ahaan Ugale
00e99e742a Merge changes from topic "aff_bottom_sheet"
* changes:
  Add bottom sheet fill UI for Autofill
  Implement actions on client and service for bottom sheet
  Notify Autofill while activity started
  Adds APIs for Autofill bottom sheet UI
2022-01-28 06:01:03 +00:00
TYM Tsai
b482a24935 Notify Autofill while activity started
After activity started, if there is any field that is autofillable,
notify autofill to do a fill request to get ids that require a
special prompt UI.

Bug: 210926084
Test: Manual
Change-Id: Ia1058de63affc98065eeeb4808d4c3f8bae22d03
2022-01-27 14:42:34 -08:00
TYM Tsai
523f1f5f9e Adds APIs for Autofill bottom sheet UI
Adds APIs for set up field presentations for bottom sheet. Also reduce
the APIs overloading for setting the presentations.

Bug: 210926084
Test: Manual
Change-Id: Iacb8d3352303650afbfa2072ce7c382d0baed702
2022-01-27 14:42:33 -08:00
Lalit Maganti
4b7d9b148b base: add support for routing traces to reporters
Change-Id: I4ff55e9c211bfedada85234ee86f7484acf633ee
2022-01-27 20:48:38 +00:00
Joanne Chung
4ccfe1a551 Merge changes I73bdec96,I1f2add3e,I2e704432
* changes:
  Handle touch focus when clicking toolbar window transparent area
  The client implementation for remote selection bar
  The service implementatoin of selection toolbar
2022-01-27 16:19:53 +00:00
Joanne Chung
b0040b03c2 Handle touch focus when clicking toolbar window transparent area
We use a fix size window to hold the toolbar no matter if we show it
horizontally or vertically. We should transder the touch focus to the
application behid the toolbar when clicking toolbar window
transparent area.

Bug: 190030331
Bug: 214158202
Test: manual. The toolbar can dismiss when clicking the transparent
area in this fix size window.

Merged-In: I3915e8165b4d371700cb5fb9e7eb23d46f39bd5c
Change-Id: I73bdec96303edab77acc55af3d7871d504614be7
2022-01-27 21:27:09 +08:00
Joanne Chung
db78cc2cd8 The service implementatoin of selection toolbar
We clone most the render logic from LocalFloatingToolbarPopup to the
DefaultSelectionToolbarRenderService to render the menu items in the
system process. When the rendering is done, the system will notify
the application process events to let the application to position
the rendered content.

The changes also removes unused file SelctionContext. We punt the TC
part to the next release, the file is unnecessary now.

This change is only for the service implementation, the client side
implementation will be done on the next change.

Bug: 190030331
Bug: 205823018
Test: manual.

Merged-In: I3915e8165b4d371700cb5fb9e7eb23d46f39bd5c
Change-Id: I2e704432b1e149ce8dd6853fcad6850cf02b60bb
2022-01-27 21:22:03 +08:00
arangelov
0273969a69 Protect getPersistentDataPackageName with ACCESS_PDB_STATE
Fixes: 216528992
Test: none
Change-Id: I4f326c25b56e0c31746267a269f0b99c87798951
2022-01-27 12:33:14 +00:00
Shashwat Razdan
f3563df9af Merge "CloudSearch API: data class declarations and interface definitions." 2022-01-27 09:09:14 +00:00
TreeHugger Robot
e2c0779ad1 Merge "Indicate which detector triggered the HotwordDetectionService" 2022-01-27 08:36:32 +00:00
Calvin Pan
2801e6de4f Merge changes Ib484fc0c,I2b9ff69c,I0a31b117,I888c65c8,I03723cfe, ...
* changes:
  Clean <plurals> in DateTimeView
  Clean <plurals> in CertificateMonitor
  Clean <plurals> in FillUi
  Clean <plurals> in BugreportProgressService
  Clean <plurals> in keyguard
  Clean <plurals> in ChooserActivity
  Clear <plurals> in TextUtils
  Clean <plurals> in FindActionModeCallback
  Clean <plurals> in ZenModeConfig
  Add util class for plurals
2022-01-27 06:31:58 +00:00
lpeter
84cc4accd1 Indicate which detector triggered the HotwordDetectionService
Currently we are adding the metrics to find why there is a significant
drop in assistant successful queries for using trusted hotword. In the
metrics, we need to know which detector is used. In this patch, we
first provide the way to distinguish which detector triggered the
HotwordDetectionService.

Bug: 215633663
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I2fa904c5a52d714c9ecb545084ffb60e81ed1d8a
2022-01-27 11:53:16 +08:00
Dave McCloskey
a7da0e26a5 Changes to support adding CTS Test TrustTestCases.
Bug: 213631672
Test: atest TrustTestCases

Change-Id: I43bffe76cca38171f19538740a25eb5d3cb09c54
2022-01-26 16:12:00 -08:00
Hui Wu
b0017b593f CloudSearch API: data class declarations and interface definitions.
CTS-Coverage-Bug: 210528288
Bug: 210528288
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: I640be77dbf05633b7a17ada73ea261dbd0027697
2022-01-26 13:40:00 -08:00
shannonchen
614ba13847 Add a GameSession API for restarting the associated game.
Since restarting a process must be done from the system server side,
we accomplish this by passing a IBinder through to the GameSession
allowing the GameSession to make IPCs to its hosting
GameServiceProviderInstanceImpl. As an additional layer of security,
the implementation takes a taskId and only restarts the given
game if the taskId matches an active game session.

Test: atest FrameworksMockingServicesTests and manual e2e testing
Bug: 210127167
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I944da060323ac1779cd2c61d1e411e9868caed91
2022-01-25 17:54:03 +00:00
Joanne Chung
bd4e4f6cf1 Merge "Clone LocalFloatingToolbarPopup to RemoteSelectionToolbar" 2022-01-25 14:41:16 +00:00
Tiger Huang
dc94a72272 Merge "Remove the frame number from WindowManagerService" 2022-01-25 14:11:20 +00:00
Tiger Huang
3932df1165 Merge "Let the client compute the surface size on its own" 2022-01-25 14:09:25 +00:00
Joanne Chung
4559c7a8b6 Merge "Change path for DefaultSelectionToolbarRenderService" 2022-01-25 12:07:12 +00:00
Darrell Shi
a67a0dd0de Merge "Clean up DreamService." 2022-01-24 19:29:04 +00:00
Tiger Huang
96c3e87e9e Remove the frame number from WindowManagerService
The frame number at the server side is not used anymore since BLAST.

Bug: 161810301
Test: presubmit
Change-Id: I01c6fb0750799aa94766f2582ce6ac031c9426cf
2022-01-24 21:43:28 +08:00
Tiger Huang
0456e9d5cb Let the client compute the surface size on its own
This is a step to move the layout logic to the client side. We won't
obtain the surface size from the server then.

This CL also moves the logic about adjusting the LayoutParams of
wallpaper to the client side.

Bug: 161810301
Test: presubmit
Change-Id: I3a81e174035c67a285cab449c0701ee2fe6f6a24
2022-01-24 21:40:45 +08:00