Commit Graph

3221 Commits

Author SHA1 Message Date
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
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
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
Peter Kalauskas
91ebd74d39 Support single-user ImageWallpaper service
Bug: 206118673
Test: Manually check image wallpaper works for multi-user
Change-Id: Ic56fe799b2c6891f52db7a79348fdac4e0ef208b
2021-12-03 18:12:33 -08:00
Jay Aliomer
85a1a02407 Merge "Update wallpaper window pages only at processing" into sc-v2-dev am: 4c79fd908e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16365763

Change-Id: I21c3537239786cd4acba07d4f81b0e07da8f4326
2021-12-01 20:41:46 +00:00
Jay Aliomer
b17eb917dc Merge changes Ica07166f,I8138d42d
* changes:
  Eliminate Null checks for local color pages
  Update wallpaper window pages only at processing
2021-12-01 20:16:41 +00:00
TreeHugger Robot
83608e053c Merge "Update the docstring of requestDirectActions" 2021-12-01 06:10:18 +00:00
Keun Soo YIM
872b07c9bc Update the docstring of requestDirectActions
Test: docs change
Change-Id: Ic1fffc50b171bd945c3a8668d06bfa98dfc4d1ff
2021-11-30 20:09:26 -08:00
Jay Aliomer
53ca29c94f Eliminate Null checks for local color pages
Test: manual
Change-Id: Ica07166ffa9f3966cda57b27ff153eb74d4d232d
2021-11-30 22:59:40 -05:00
Jay Aliomer
815497e1ab Update wallpaper window pages only at processing
Fixes: 207597806
Test: manually create pages
Change-Id: I8138d42d6a2066531ec332e3a510edbd95151699
2021-12-01 03:31:20 +00:00
Jay Aliomer
9ec6c84f20 Update wallpaper window pages only at processing
Fixes: 207597806
Test: manually create pages
Change-Id: I8138d42d6a2066531ec332e3a510edbd95151699
2021-11-30 22:30:25 -05:00
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
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +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