Commit Graph

3298 Commits

Author SHA1 Message Date
TreeHugger Robot
856cc8c570 Merge "Add pendingIntent to FillRequest to enable retriggering" 2022-01-29 07:00:55 +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
Calvin Pan
9e38ebf366 Clean <plurals> in ZenModeConfig
Bug: 199230228
Test: make
Change-Id: I712f984b440043360b8f5fc6c6613c752bb2a2dd
2022-01-24 14:46:19 +08:00
Tyler Lacey
d320bc3adb Merge "Add GameSession game task focus lifecycle methods." 2022-01-23 18:49:48 +00:00
Tiger Huang
697660ac69 Merge "Let the client set transform hint on its own" 2022-01-23 18:02:11 +00:00
Kathy Chen
50460ddd32 Merge "AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events." 2022-01-23 01:54:29 +00:00
Kathy Xiaoming Chen
5d568eda62 AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events.
Client apps need the ACCESS_AMBIENT_CONTEXT_EVENT permission to use the service. The permission protection level is internal|role.

API overview: http://go/ambient-framework-api
PRD: http://go/ambient-attribution-prd
Design doc: http://go/ambient-service-api

Test: CTS test
Bug: 192476579
Change-Id: I9daede83af34f215c278cb0530238faba1be5c70
Ignore-AOSP-First: to prevent new feature leak.
2022-01-22 22:07:22 +00:00
Tiger Huang
5242af609e Let the client set transform hint on its own
This is a step to move the layout logic to the client side. We won't
invoke IWindowSession#relayout then.

Bug: 161810301
Test: atest WmTests
Change-Id: Ib5ac048a573907af0a81f3e228575d9458862cfd
2022-01-22 19:22:23 +08:00
Sharon Su
55485dd15b Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" am: 3166def10f am: 58e37e59d1 am: 9075544cd1 am: 2fff06e2cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955206

Change-Id: I1dc6aa909d1179c52b26750ba9dccd0f781eb6f1
2022-01-22 01:13:38 +00:00
Sharon Su
2fff06e2cf Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" am: 3166def10f am: 58e37e59d1 am: 9075544cd1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955206

Change-Id: Ie939bcf302fc7f6939e2ac84352490ba9a324fc4
2022-01-22 00:48:06 +00:00
Sharon Su
3166def10f Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" 2022-01-22 00:05:24 +00:00
Jay Aliomer
290ec62f3b Merge "check surface valid before screenshotting wallapper" 2022-01-21 23:48:07 +00:00
Tyler Lacey
bf590fe7c9 Add GameSession game task focus lifecycle methods.
Introduce GameSession#onGameTaskFocusChanged method that is called to
inform GameSession implementations abouts when their game task goes into
our out of focus.

Also introduce a new LifecycleState to the abstract GameSession class
to ensure that transitions follow the following rules:

- All GameSessions start in the INITIALIZED state
- All GameSessions will then transition to the CREATED state [onCreate()
  is called]. If a GameSession transitions from INITIALIZED directly to
  DESTOYED, onCreate() and onDestroy() will both be called.
- A GameSession in the CREATED state may transition to either the
  TASK_FOCUSED state [onGameTaskFocusChanged(true) is called] or the
  DESTROYED state [onDestroy() is called]. If a game task starts in a
  non-focused state and never comes into focus, the GameSession will
  never transition to the TASK_FOCUSED or TASK_UNFOCUSED states.
- A GameSession in the TASK_FOCUSED state may only transition
  to the TASK_UNFOCUSED state [onGameTaskFocusChanged(false) is called].
  If a GameSession transitions from TASK_FOCUSED to DESTROYED, it will
  call onGameTaskFocusChanged(false) to complete that part of the
  lifecycle before transitioning to the DESTROYED state.
- A GameSession in the TASK_UNFOCUSED state may transition back to the
  TASK_FOCUSED state [onGameTaskFocusChanged(false) is called again] or
  the DESTROYED state [onDestroy() is called].

In this way, all GameSessions are guaranteed to have
onGameTaskFocusChanged(true) be called if they are ever in focus before
being destroyed (generally as soon as the GameSession is created) and to
have onGameTaskFocusChanged(false) be called before they are destroyed.
GameSessions are also guarnateed to have onCreate() be called before
onDestroy().

Test: Manual e2e testing
Bug: 214104366
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: Id4e1eec50eb891ffb6df74650c27ea3a27a8b9c3
2022-01-21 22:02:49 +00:00
Jay Aliomer
ad09fa8bab check surface valid before screenshotting wallapper
Fixes: 214410335
Test: manual`
Change-Id: Ief56edec17a3540d8747694bc77764e2ab55c24f
2022-01-21 20:54:06 +00:00
Tyler Lacey
1dd597d89c Merge "Add GameSession#takeScreenshot API" 2022-01-21 20:35:14 +00:00
Darrell Shi
b344d76fc7 Clean up DreamService.
- Rename TAG to mTag, for it is a private non-static variable
- A few variables can be final
- Unnecessary "final" for private method
- Unnecessary return at the end of method
- Double white spaces
- Misspellings

Test: manual
Change-Id: Id8523a0857e2a8333a2756cdc778b7d468463f40
2022-01-21 10:02:42 -08:00
Tyler Lacey
197ecb2557 Add GameSession#takeScreenshot API
The screenshot is taken using a new method added to the
WindowManagerService: captureTaskSnapshot. The existing
WindowManagerService methods for getting a TaskSnapshot
are not suitable because they rely on previously cached
snapshots (e.g., taken when the task is put into the background).

To access the WindowManagerService functionality from
the GameSessionService, an IBinder is passed from the
GameServiceProviderInstanceImpl, which is running on the system server
side (and thus can call the new method) to the GameSessionService when
it is created. The GameSessionService then makes this reference
available to each GameSession when the GameSession is created via the
new GameSession#attach method. The GameSession can then use the IBinder
reference to make an IPC back to the GameServiceProviderInstanceImpl
instance which hosts the GameSessionService. This reference is then used
by the GameSession to request a screenshot.

By using the IBinder in this way, only GameSessions which are created
via the system GameService can access the sensitive screenshot
functionality implemented by GameServiceProviderInstanceImpl via the
new captureTaskSnapshot method.

Test: Manual e2e testing
Bug: 210119689
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: If42dc9a5a5b6068db8670666a371117cf5865f20
2022-01-21 16:54:39 +00:00
Jared Duke
7bfc101b05 Remove additional logspam from SmartspaceService
Test: CTS tests
Bug: 189885848
Change-Id: I2fe1994e986e55f9a7ae063abf78ebfe8aaeb47d
2022-01-21 16:51:04 +00:00
Antoan Angelov
034f3b9f43 Merge "Add system API to PersistentDataBlockManager to return config_persistentDataPackageName" 2022-01-21 16:42:07 +00:00
Justin McClain
9a7c1ab439 Merge "Add OWNERS files for AttestationVerification in frameworks/base/core/java/android/service/." am: 4939f35ba3 am: aca729636f am: 47b398bccf am: 3411e81261
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1954517

Change-Id: Ia15c4bcdf2c5dac99efbbcc5208fe6ecb81a5c6d
2022-01-21 15:45:29 +00:00
Justin McClain
3411e81261 Merge "Add OWNERS files for AttestationVerification in frameworks/base/core/java/android/service/." am: 4939f35ba3 am: aca729636f am: 47b398bccf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1954517

Change-Id: I487ac5a79ddef6cc925e0141e29dbcfca64fab29
2022-01-21 15:27:54 +00:00
Dave McCloskey
5e0e3a3da8 Merge "Add call to TrustManager for SystemUI to propagate unlock requests to a trust agent." 2022-01-21 00:56:37 +00:00