Commit Graph

1656 Commits

Author SHA1 Message Date
Will Brockman
828427ef5d Add notification category information to notification logging.
Capturing the app-declared notification category:
https://developer.android.com/training/notify-user/build-notification#system-category

Adding to StatusBarNotification.getLogMaker() means that it will be
put on many categories of notification logging automatically.  No
extra data usage for notifications where the category was not
declared.

Bug: 123071368
Test: atest SystemUITests and manual test
Change-Id: I8f59fea1a8e7c98366fe888cf5a28cf252859fdf
2019-01-28 10:32:18 -05:00
Tony Mak
a471699a97 Rename smart replies and actions adjustment keys
Test: Build

BUG: 123342833
Change-Id: Ib600fcc851ae693221ec6c605b9a8176fd65587d
2019-01-24 15:41:59 +00:00
Fabian Kozynski
e56b55182c Merge "Remove @SystemAPI from NotificationAssistantService" 2019-01-24 13:55:30 +00:00
TreeHugger Robot
6136239d9d Merge "Voice state + transcription in VoiceInteractionSvc" 2019-01-24 10:04:18 +00:00
TreeHugger Robot
f879268e09 Merge "Implement onUserDataRemovalRequest" 2019-01-24 04:07:02 +00:00
TreeHugger Robot
a68b803912 Merge "New APIs for Augmented Autofill whitelisting, plus some spring cleaning..." 2019-01-23 21:22:12 +00:00
Fabian Kozynski
b0da4bcb3a Remove @SystemAPI from NotificationAssistantService
Test: CTS tests
Bug: 120852766
Change-Id: I7b755dda96091dba50e12771804aa2ade07e3141
2019-01-23 16:15:54 -05:00
Matt Casey
4cff16fda9 Voice state + transcription in VoiceInteractionSvc
Voice state as well as voice transcription can be provided by the
VoiceInteractionService. These get proxied to the AssistManager which
can update the system UI to reflect the state & transcription.

Test: TBD
Bug: 122740752
Bug: 123080754
Change-Id: I79cac1d89fe0123bf25a05d551cb4ef40ae1368e
2019-01-23 20:03:05 +00:00
TreeHugger Robot
844ff30bfb Merge "Add euicc privileged actions and extras." 2019-01-23 06:41:45 +00:00
Felipe Leme
559e21d7c6 New APIs for Augmented Autofill whitelisting, plus some spring cleaning...
Test: m update-api # they're not implemented yet
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.AugmentedLoginActivityTest # for sanity checking

Bug: 123100824
Bug: 111330312
Bug: 123233342

Change-Id: I9f6b9067f743b7590cc8b32b42b8fff230f9a3d8
2019-01-22 21:32:57 -08:00
Yohei Yukawa
2988d2db5c Unimplement VrManager#setVrInputMethod()
A system API VrManager#setVrInputMethod(), which was originally
introduced in Android P [1], has hever been used actually.  To avoid
unnecessary maintenance burden in the Android Framework, this CL makes
VrManager#setVrInputMethod() no-op.

For those who want to develop VR Keyboard, they should be able to use
Android P build to see if it actually works and it's actually what
they want.  In the future, if we can have a working prototype, we can
revisit here to see if we want to restore the framework implementation
or not.

Note that with this CL IMEs that have android:isVrOnly="true" will
always be ignored.

There should be no user/developer visible behavior change because this
is about an unused system API.

 [1]: I1db7981b5198e7e203d4578cae7e5b6d20037d0d
      89a6c48a8b

Bug: 72522822
Fix: 122058241
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:InputMethodInfoTest
Test: atest FrameworksServicesTests:InputMethodManagerServiceTests
Change-Id: I5464ff74b92ff4a0d30002d643bd3c89925f0f0c
2019-01-22 21:29:09 -08:00
TreeHugger Robot
1655f9896f Merge "Fix image wallpaper distortion after rotate." 2019-01-23 02:01:16 +00:00
Patrick Huang
f43a0ccf9a Add euicc privileged actions and extras.
Bug: 122769846
Test: Test on phone
Change-Id: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170
2019-01-22 14:08:08 -08:00
Adam He
3d0409b00f Implement onUserDataRemovalRequest
Change-Id: I7c818d42000b6155f9dcaad85b7f9f761741a484
Fixes: 121289354
Test: atest CtsContentCaptureServiceTestCases # still passing
Test: manual verification
2019-01-22 12:02:48 -08:00
wilsonshih
3b2683a668 Fix image wallpaper distortion after rotate.
Keep surface size large enough to draw the image.
When we shrink for small image, we still maintain its aspect ratio.

Fix: 123108383
Test: atest ImageWallpaperTest
Test: manual verify aspect ratio not changed after rotate.
Test: manual put a small image as wallpaper and see surface size won't
grow too much.

Change-Id: Icf3bc4a3129d9aecba2b57c620f378b9d9d7374b
2019-01-22 12:03:25 +08:00
Tony Mak
202f25d62a onNotificationExpansionChanged is called only when the expansion change...
is visible to users.

For example, if the notification is expanded in the background,
onNotificationExpansionChanged will be called only when the expanded
notification is visible to users.

Reason: we should only care about expansion change that is visible
to users, and at the moment that it is shown to user.
This also allows us to determine "has been visually expanded"
easily. With this change, our NotificationAssistantService can know
whether a notification has been visually expanded and calculate the CTR
of smart actions accordingly.

This should not break existing stuff in NMS.onNotificationExpansionChanged
because codes there checked isUserAction == True anyway,
which means the change must be also visible to users.

BUG: 120803809

Test: atest ExtServicesUnitTest
Test: atest ExpansionStateLoggerTest
Test: Manual test, try to expand and collapse notification.

Change-Id: Ibc6f939b2560b845de6a8a35b4557423b8a074f7
2019-01-20 09:39:01 +00:00
Jiuyu Sun
2b9f09ba7e Merge "Populate cardId in resolution intent." 2019-01-18 23:10:15 +00:00
Alex Salo
61ae7ed2c6 Merge "Add skeleton implementation for Attention API" 2019-01-18 20:01:54 +00:00
Holly Jiuyu Sun
da56f08b94 Populate cardId in resolution intent.
When LPA resolves a resolvable error, it needs to get an instance of
EuiccManager. Since we add cardId in EuiccManager from Q, we also need
to populate the cardId in the resolution intent so that when LPA solves
the resolvable errors, it uses the EuiccManage with the same cardId as
before.

Bug: 68941776
Test: test on phone
Change-Id: I780c39856c36516dbf1546eff28348a83d0a4fc9
2019-01-17 17:09:09 -08:00
Alex Salo
b81472f7e2 Add skeleton implementation for Attention API
This service will let the system know whether the user is paying attention to
the device. This may be useful in certain scenarios - like keeping the screen
on, even when there has been no touch related user activity.

New permission BIND_ATTENTION_SERVICE is added to ensure that only the system
can bind to the attention service.

Test: manually tested the lifecycle is as expected
Bug: 111939367
Change-Id: I2dab9c69f3d0c6efb0db572f797f517dc6efcc72
2019-01-16 21:21:51 -08:00
TreeHugger Robot
7e59dcb44f Merge "Create a new constant for system app to start a voice service." 2019-01-17 05:16:24 +00:00
jiayuzhou
2c80b59010 Create a new constant for system app to start a voice service.
Test: build and update the api.
Bug: 122048642

Change-Id: I4d5b94cd94090553ad4b2355b47391ee29a2beb8
2019-01-16 17:01:07 -08:00
TreeHugger Robot
a8b50584c6 Merge "Added IContentCaptureServiceCallback." 2019-01-16 16:30:57 +00:00
TreeHugger Robot
64883457cf Merge "Improved ContentCaptureManagerSession state." 2019-01-16 03:26:37 +00:00
TreeHugger Robot
d9043b830e Merge "Implement setContentCaptureEnabled for manually enabling content capture" 2019-01-16 03:23:30 +00:00
Feng Cao
158b65635e Use the same UI classes for augmented autofill as the standard android autofill.
Bug: 122479403
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.AugmentedLoginActivityTest
Test: atest CtsAutoFillServiceTestCases # sanity check, 3 are consistently failing due to timeout.
Change-Id: Ida44a5714e1abcfc308a2a8d747b7766202fcb45
2019-01-15 15:53:20 -08:00
Felipe Leme
01b8749b40 Improved ContentCaptureManagerSession state.
Test: atest CtsContentCaptureServiceTestCases
Bug: 111276913

Change-Id: I8b1f36174582d89913d5d170abb65789a16818ec
2019-01-15 14:52:35 -08:00
Adam He
6079d151e4 Implement setContentCaptureEnabled for manually enabling content capture
Change-Id: Id660aebac0b35a33b39a7c74da0f11c0958549ee
Fixes: 121047183
Test: atest CtsContentCaptureServiceTestCases
Test: atest android.contentcapture.cts.ChildlessActivityTest#testDisabledByApp
2019-01-15 12:13:21 -08:00
Felipe Leme
af4e4fd020 Added IContentCaptureServiceCallback.
This binder object will be used to implement the ContentCaptureService methods that require calls to
system server.

Bug: 122595322
Test: atest CtsContentCaptureServiceTestCases

Change-Id: If918af540f78777d00970e0fc75df458aad168b7
2019-01-15 09:26:43 -08:00
TreeHugger Robot
3bd034f341 Merge "Made Augmented Autofill APIs accessible to tests." 2019-01-14 19:30:36 +00:00
TreeHugger Robot
2baff48b21 Merge "API review correction: rename NAS.onActionClicked -> onActionInvoked." 2019-01-14 12:05:20 +00:00
Eyal Posener
a9cf9c723f Add blocking helper logging
The added logging events are: blocking helper view displayed or
dismissed, any button click within the view, undo clicks and
system suggests of blocking helper.

* Move some of the getLogMaker logic of server's NotificationRecord
  class to the common StatusBarNotification class.
* Use the StatusBarNotification.getLogMaker to produce blocking helper
  logging.
* Add logging in the NotificationInfo for interaction and display of
  the blocking helper view.
* Add logging in the NotificationBlockingHelperManager for system
  suggests of blocking helper.

Bug: 112482290
Test: unittests and manual - viewed produced logs.
Change-Id: I3a5267d55faba21f6668d35ff8aa12deb0dc5921
2019-01-14 10:58:29 +02:00
Winson Chung
fb922e9bac Merge changes from topic "prediction_suggestion_services"
* changes:
  Initial commit of Content Suggestions (overview long press) Manager.
  Adding initial implementation of Prediction client/service API
2019-01-11 20:21:19 +00:00
Felipe Leme
2cab38cab2 Made Augmented Autofill APIs accessible to tests.
Bug: 119638958

Test: atest CtsAutoFillServiceTestCases
Test: m update-api && m

Change-Id: I4863885be6121889e4a53db4eb9afad3565c51aa
2019-01-11 11:57:22 -08:00
Gustav Sennton
ced1d00d82 API review correction: rename NAS.onActionClicked -> onActionInvoked.
Bug: 120842160
Test: build Android
Change-Id: I0d673871a6d673eaca60aedf452fa68fd9855954
2019-01-11 17:57:50 +00:00
TreeHugger Robot
c6536e4de6 Merge changes from topic "cc_virtual_id"
* changes:
  New, minor ContentCapture APIs for virtual views management.
  Implemented missing methods on android.view.contentcapture.ViewNode
2019-01-11 02:09:45 +00:00
Felipe Leme
2057c38a17 New, minor ContentCapture APIs for virtual views management.
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.CustomViewActivityTest
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureSessionTest
Test: m update-api
Bug: 117944706

Change-Id: I08bed441c6cc15673296f392e333c78018b14f65
2019-01-11 02:09:37 +00:00
Felipe Leme
6aae482ca4 Merge "Defined a new ContentCapture API: ContentCaptureService.onUserDataRemovalRequest" 2019-01-11 02:09:20 +00:00
Winson Chung
3fb0f258d3 Initial commit of Content Suggestions (overview long press) Manager.
Test: compile
Bug: 120865921
Change-Id: I9f8310112bedc883406f0f50a99041f542036fd9
2019-01-10 16:35:13 -08:00
Sunny Goyal
54e91344e2 Adding initial implementation of Prediction client/service API
Test: Build sample app, ensure that app prediction service gets client
      requests
Bug: 111701043
Change-Id: I33aceb2de31552b2d740dc333559d68728753e40
Signed-off-by: Winson Chung <winsonc@google.com>
2019-01-10 15:53:25 -08:00
Adam He
328c0e3841 Integrate content capture with FLAG_SECURE
Change-Id: I4e2c7d8063ca224d2037c01b7ddb24f8a7d85cbf
Fixes: 119254124
Test: atest CtsContentCaptureServiceTestCases
Test: atest android.contentcaptureservice.cts.LoginActivityTest#testStateDisabledByFlagSecure
2019-01-10 11:48:54 -08:00
Felipe Leme
62e45b0c4b Defined a new ContentCapture API: ContentCaptureService.onUserDataRemovalRequest
Test: m update-api

Bug: 121289354
Bug: 117944706

Change-Id: Ie317c170b49cdf6671dd0c4eadf02380cd737bf0
2019-01-10 10:34:02 -08:00
TreeHugger Robot
d3827b910b Merge "Rename onNotificationDirectReply to onNotificationDirectReplied as per ... the API council feedback." 2019-01-09 21:46:51 +00:00
Tony Mak
836147ecb2 Rename onNotificationDirectReply to onNotificationDirectReplied as per ...
the API council feedback.

BUG: 120841922
Test: Build

Change-Id: I630134955bb86b36e8d186e92302ae141629f4f6
2019-01-09 19:44:06 +00:00
Jorim Jaggi
64e9cd30b3 Merge changes from topic "inset_dispatch"
* changes:
  A brave new world for window insets (10/n)
  A brave new world for window insets (9/n)
  A brave new world for window insets (8/n)
2019-01-09 14:17:35 +00:00
Peter Li
d8d847cbae Merge "Still trigger DozeService when screen off." 2019-01-09 12:36:56 +00:00
lpeter
1a90065044 Still trigger DozeService when screen off.
Provide a mechanism to let DozeService be able to be triggered when
screen off even though Ambient display settings are turned off.

Bug: 121305224
Test: Manual test
Change-Id: I0bb18142b27b74a8a193f05268716fa046e7f1e2
2019-01-09 12:15:02 +00:00
TreeHugger Robot
738441d3fa Merge "Made AugmentedAutofillService.dump() final so subclass cannot hide it." 2019-01-09 00:19:53 +00:00
Felipe Leme
61a17f3383 Made AugmentedAutofillService.dump() final so subclass cannot hide it.
Test: m update-api
Bug: 122076014

Change-Id: Id171d3208fb12cca429af913e98233efb69f1eb7
2019-01-08 13:55:33 -08:00
Adam He
435736d3c5 Merge changes from topics "nested_sessions", "fix_flush_sessions"
* changes:
  Implemented nested Content Capture sessions.
  Fixed how session created / removed events are generated.
2019-01-08 20:57:58 +00:00