Commit Graph

3250 Commits

Author SHA1 Message Date
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
David Samuelson
33abaa26fe Merge "Add support for rendering a View ontop of the GameSession's task." 2022-01-20 23:16:07 +00:00
David Samuelson
19519e58a3 Add support for rendering a View ontop of the GameSession's task.
Test: Manual e2e testing
Bug: 202414447
Bug: 202417255
Bug: 204504596
CTS-Coverage-Bug: 206128693
Change-Id: Ie3d0d74511bede4cffc18fdbfe558491797bc2d2
2022-01-20 19:24:42 +00:00
arangelov
b7542a3b9d Add system API to PersistentDataBlockManager to return config_persistentDataPackageName
Fixes: 215369101
Test: none
Change-Id: Ic10dc8ce41c872d77c8a454f63a783984aab71d8
2022-01-20 12:48:37 +00:00
TreeHugger Robot
ce65b04d56 Merge "Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""" 2022-01-20 11:33:39 +00:00
Vania Desmonda
2ad9fe6296 Merge "Add wallpaper dimming SystemAPI and implementation for handling dimming set by multiple applications." 2022-01-20 08:55:45 +00:00
Justin McClain
abd3ae5d80 Add OWNERS files for AttestationVerification in
frameworks/base/core/java/android/service/.

Test: m
Change-Id: I7e90bfe7dee6937b398304b1269ae399d008ad21
2022-01-19 17:59:22 +00:00
Tyler Lacey
607e78a56f Merge "Allow Game Service to trigger the Game Session creation" 2022-01-19 14:45:33 +00:00
Bernardo Rufino
1a5cb387d6 Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""
This reverts commit 331be9a643.

Reintroducing ag/16366278 since it seems unrelated to b/214053959 (more details on b/214053959#comment55).

Original commit message:

Migrate unsafe parcel APIs in framework-minus-apex

Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Change-Id: I272432e6e082a973f7a50492ec35d79c2b577c93
Test: TH passes
2022-01-19 11:13:18 +00:00
Vania Desmonda
dde365777a Add wallpaper dimming SystemAPI and implementation for handling dimming
set by multiple applications.

Handle lock screen dimming regardless if it shares the same wallpaper
with the system to apply composite keyguard + additional dimming.

Test: manual testing and unit tests
Bug: 202841384
Change-Id: Iabd665e9a8e377185b123494eac2198a4436b0c6
CTS-Coverage-Bug: 213426781
2022-01-19 10:08:21 +00:00
Peiyong Lin
b31166f5bc Merge "Update OWNERS file for related game modules." 2022-01-19 01:35:21 +00:00
Peiyong Lin
0c8efa76f4 Update OWNERS file for related game modules.
Ignore-AOSP-First: New files haven't been released
Bug: b/202414447, b/196880806
Test: N/A
Change-Id: Ic22097704ea2e4d6a3eabad046e6612a40cf6568
2022-01-18 23:10:23 +00:00
Tyler Lacey
3d7dc6d0a0 Allow Game Service to trigger the Game Session creation
With this change, the GameServiceProviderInstanceImpl no longer
automatically creates a game session every time a new game task is
started. Instead, the GameServiceProviderInstanceImpl calls the new
GameService#onGameStarted method with details about the game task that
just started.

The GameService can implement onGameStarted with appropriate logic to
determine whether a game session should be created. If the service
determines that a session should be created, then the GameService can
call GameService#createGameSession.

After calling onGameStarted, the GameServiceProviderInstanceImpl will
maintain a GameSessionRecord in the NO_GAME_SESSION_REQUESTED state.
Only games with a record in this state will have a session created in
response to createGameSession being called. When createGameSession
is called for a record in this state, the record will transition to the
GAME_SESSION_REQUESTED state. Once the game session is finally created
and attached to the record, it will switch to the GAME_SESSION_ATTACHED
state.

Test: Manual e2e testing and unit tests
Bug: 207035150
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I799f8410da6936ab242fa925d77b0276875cc20f

Change-Id: Id6da59fd3a5951ba5f032c825d1f1f28d3320965
2022-01-18 15:07:11 +00:00
Dave McCloskey
997c684ac2 Add call to TrustManager for SystemUI to propagate unlock requests to a
trust agent.

Still TODO: Add CTS test once SystemUI code is in to call this.

Test: manual testing with temporary call from SystemUI & logcat
Bug: 213631672
Change-Id: If76c033a73580e16a25ad0a6775e4e145644d926
2022-01-14 13:54:10 -08:00
Dave McCloskey
8cfa5678d2 Modifies the Trust Agent API to support Active Unlock.
Details for the design are in go/android-active-unlock-t and
go/android-active-unlock-t-api. This change
defines the API without implementing its use.

Test: non-functional API change. Existing regression tests check for regressions.
Test: manually verified smart lock still revokes trust when bluetooth
device disconnected
Bug: 213631675
Bug: 213631677
Bug: 213631672
Bug: 213911325
CTS-Coverage-Bug: 213944235

Change-Id: I206f3e5c5c456a7433be325ea0186b79319d3a66
2022-01-13 13:21:43 -08:00
Ashwini Oruganti
776b439703 Merge "Revert "Migrate unsafe parcel APIs in framework-minus-apex"" 2022-01-12 23:07:08 +00:00
Shannon Chen
b628834dc3 Merge "Make onBind methods final for GameService and GameSessionService." 2022-01-12 19:46:09 +00:00
Bernardo Rufino
331be9a643 Revert "Migrate unsafe parcel APIs in framework-minus-apex"
This reverts commit 90bb3709dc.

Reason for revert: b/214053959

Change-Id: Ic271bab1d3eaf677a5989dda9deb944ee2ad6850
2022-01-12 17:44:44 +00:00
Shannon Chen
dae36267c4 Merge "Add sample XML to GameService javadoc to show how to request BIND_GAME_SERVICE permission." 2022-01-12 15:19:13 +00:00
Darrell Shi
c331af1cc7 Merge "Pipeline "showComplications" to DreamOverlayService." 2022-01-11 17:16:04 +00:00
TreeHugger Robot
c98c502fa8 Merge "Close HardwareBuffer after wrapping it with a bitmap" 2022-01-07 07:07:28 +00:00
Darrell Shi
5f1bef2f8b Pipeline "showComplications" to DreamOverlayService.
Allow a boolean in the intent extra when connecting to
DreamOverlayService to indicate whether complications should be rendered
on the overlay.

Test: atest DreamOverlayServiceTest
Bug: 211519550
Change-Id: I09eb8e55e0f7d494184938c217d1291000259692
2022-01-06 09:39:25 -08:00
shannonchen
517e91e0d8 Make onBind methods final for GameService and GameSessionService.
Test: N/A, no-op code cleanup
Bug: 213174672
CTS-Coverage-Bug: 206128693
Change-Id: I8aa48c9f27cadb04ae10f9d5d1126c97d0f3931e
2022-01-04 23:07:41 +00:00
Amy Gu
18f92bec11 Merge "Fix typo." am: 6b7318e25a am: 06b2898024 am: 99a20795bb am: 73ce8d8165
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931122

Change-Id: I972f78c363a8a38eb8fd3b96afedcf0a24529e47
2021-12-28 19:38:22 +00:00
Amy Gu
73ce8d8165 Merge "Fix typo." am: 6b7318e25a am: 06b2898024 am: 99a20795bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931122

Change-Id: I5686dd196ea35065c6cfd60ede36f08cd6170cc9
2021-12-28 19:25:53 +00:00
Yohei Yukawa
4e09ae6462 Fork SoftInputWindow into VoiceInteractionWindow
Since its beginning [1], VoiceInteractionService has been using
android.inputmethodservice.SoftInputWindow to host its UI, which is
understandable given the successful history of InputMethodService.

Fast forward 7 years, InputMethodService still keeps evolving.
Features like stylus support and in-proc navigation bar buttons are on
its radar.  It's getting more and more likely that SoftInputWindow
needs to be updated to support new IME features.

In order to avoid accidental behavior changes in
VoiceInteractionService, and also to keep SoftInputWindow simple and
maintainable, this CL creates a copy of SoftInputWindow as
VoiceInteractionWindow so that each service can maintain its own
Window class.  Hopefully this is beneficial for both the IME team and
VoiceInteraction team.

This is a mechanical refactoring CL.  Hence there should be no
observable behavior change.

 [1]: Ie2b85b3020ef1206d3f44b335b128d064e8f9935
      e6e6b086d6b641de79246413f6d885e1f7d06386

Bug: 192412909
Test: presubmit
Change-Id: I0054dd1bdcc93af499832de00c76b4578f48e627
2021-12-27 19:29:06 -08:00
Amy Gu
c44f9be43b Fix typo.
Change-Id: I9c22f0810068eb94e7c9768b33045eea3f26e330
2021-12-23 17:48:34 +00:00
Ioannis Ilkos
9d3cef607c Close HardwareBuffer after wrapping it with a bitmap
Change-Id: I9a402d645cb92bf5dbc6d8aa60a0d5f03c79111e
Bug: 211742100
Test: manual
2021-12-22 12:07:04 +00:00
David Samuelson
face3dd479 Add initial support for GameSessions and corresponding unit tests.
- Define GameSession & GameSessionService Game Service provider SPIs.
 - Implement support for binding to GameSessionService, creating
   GameSessions, and destroying GameSessions.
 - Refactor Game Service provider selection into
   GameServiceProviderSelectorImpl. Parse and validate the
   declared GameSessionService associated with the GameService.

Test: atest FramworksMockingServicesTests and manual e2e
Bug: 204504879
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I301579d5c7426a55c442b7ae04aacbedf293a4d6
2021-12-21 16:08:22 +00:00
Bryce Lee
d25904a2ee Merge "Exit dream on MotionEvent.ACTION_UP." 2021-12-20 17:34:54 +00:00
Joanne Chung
51214b3529 Merge "Initial layout of selection toolbar for render service part." 2021-12-17 02:04:22 +00:00
Hui Wu
3a3077209c Merge "Adding owners in cloudsearch packages" am: d628edb425 am: f921b4b76d am: 8c7f2f8695 am: 27399689e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1925161

Change-Id: Iadeef29e50f056d7e87d4050c7307fc39fdc815c
2021-12-16 21:25:44 +00:00
Hui Wu
27399689e6 Merge "Adding owners in cloudsearch packages" am: d628edb425 am: f921b4b76d am: 8c7f2f8695
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1925161

Change-Id: I6727e0357235c69d2c5a75c69081a3699167f1d2
2021-12-16 21:08:01 +00:00
Joanne Chung
25c054d3a0 Initial layout of selection toolbar for render service part.
The initial selection toolbar render service part architecture. The
implementation will be done in the follow up changes.

Bug: 190030331
Bug: 205822301
Test: manual. Call API and can bind service successfully.
Ignore-AOSP-First: new feature for T.

Change-Id: I3a5d3802c2afca432f137742cfd6a1e0045ed975
2021-12-16 22:55:29 +08:00
Bryce Lee
b5b2dfc63d Exit dream on MotionEvent.ACTION_UP.
Previously, DreamService would exit when any
MotionEvent was detected. This led to dreams
ending while the user's finger was still on
the screen.

This change adjusts the exit action to be on
ACTION_UP to correspond with the finger lifting
off the screen, matching user expectation.

Bug: verified non-interactive dream exits on
     lifting finger.
Test: 210919013
Change-Id: I767cdb179f99073c1fffc66fe492bdcbbae599c2
2021-12-15 16:08:58 -08:00
Hui Wu
fa11d35357 Adding owners in cloudsearch packages
Bug: 210528288
Test: not needed as this is a meta file change
Change-Id: I6bbf9f350639ed53edb1643c937c8c55702ff254
2021-12-16 00:03:19 +00:00
Bernardo Rufino
90bb3709dc Migrate unsafe parcel APIs in framework-minus-apex
Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Test: TH passes
Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
2021-12-15 18:21:38 +00:00
Shannon Chen
5704c4dfe8 Add sample XML to GameService javadoc to show how to request BIND_GAME_SERVICE permission.
Bug: 204504879
Bug: 202414447
Bug: 202417255
Bug: 210622264
Change-Id: I0659b13c0cb511a205e3423b5a0b5c14ffedc225
2021-12-14 15:34:17 +00:00
John Reck
20d7333d6d Merge "Reduce SurfaceControl feature gap to NDK API" 2021-12-13 20:00:50 +00:00
TreeHugger Robot
6b2e02d8d8 Merge "Add some java doc in the VoiceInteractionSession" into sc-v2-dev am: 8cb200a217 am: 723f9d22c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16426617

Change-Id: I237cd5db76c0d497374e21b23800b96f70fc405d
2021-12-10 13:36:31 +00:00
TreeHugger Robot
723f9d22c1 Merge "Add some java doc in the VoiceInteractionSession" into sc-v2-dev am: 8cb200a217
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16426617

Change-Id: Ic3acde4b1f2e832bb83ae4e3f91bfb5fd2599479
2021-12-10 13:21:04 +00:00
John Reck
7f55b13182 Reduce SurfaceControl feature gap to NDK API
Bug: 200697201
Test: atest android.view.cts.SurfaceControlTest

Change-Id: I1d0cff355714acb5668952b3d7f6fc0c15952523
2021-12-09 17:15:11 -05:00
lpeter
fa07bb5cdf Add some java doc in the VoiceInteractionSession
Add the new case that we will also set AssistStructure to null.

Bug: 193512972
Test: build and manual
Change-Id: I431ba7d89787ec0b23cf8d1968dd23ac9178a59e
2021-12-09 19:55:11 +08:00
Peter Kalauskas
a56fd24418 Merge "Support single-user ImageWallpaper service" 2021-12-06 16:46:56 +00:00
Shannon Chen
6a623af2fb Merge "Add the GameService skeleton and corresponding unit tests." 2021-12-06 16:45:42 +00:00
shannonchen
13bfe79683 Add the GameService skeleton and corresponding unit tests.
This change defines a basic GameService SPI and hooks into the GameManagerService in order to drive the start/stop APIs.

Test: atest FramworksMockingServicesTests:GameServiceManagerTests and
manaul e2e testing
Bug: 204504879
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: Ibda56cb0c023a307f83eae4091c5f63b02be339f
2021-12-06 15:22:34 +00:00