Commit Graph

2612 Commits

Author SHA1 Message Date
Treehugger Robot
835ed973ec Merge "Update language to comply with Android's inclusive language guidance" am: 4983d13ccc am: 28a65b8942 am: 92876acc20 am: fdeef2b1ed am: 1a3ff01217
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1403549

Change-Id: I61d6b7591059e1c91d878d3c55d9a84d3bf3c800
2020-08-20 13:29:15 +00:00
Treehugger Robot
1a3ff01217 Merge "Update language to comply with Android's inclusive language guidance" am: 4983d13ccc am: 28a65b8942 am: 92876acc20 am: fdeef2b1ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1403549

Change-Id: I80116dde66a0aef45add805eb2e7ba5eeef04c4c
2020-08-20 13:13:48 +00:00
Treehugger Robot
fdeef2b1ed Merge "Update language to comply with Android's inclusive language guidance" am: 4983d13ccc am: 28a65b8942 am: 92876acc20
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1403549

Change-Id: I99915dd0ff99245aad2c31e2d0c0a7daa79f0b92
2020-08-20 13:02:46 +00:00
Treehugger Robot
92876acc20 Merge "Update language to comply with Android's inclusive language guidance" am: 4983d13ccc am: 28a65b8942
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1403549

Change-Id: I7c40c508a60dd793d0ffc3cd01ab0cc17345e759
2020-08-20 12:34:19 +00:00
lpeter
2736db57ff Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 162536543
Test: Build pass and boot
Change-Id: I0a46d4366948addad629142157c361c7133179af
2020-08-20 18:00:49 +08:00
TreeHugger Robot
c4e8f0ef16 Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d am: 6128b1ba0f am: ea8b670196 am: 74698fc87a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: Ibc7ef4273ee0462090cec713daae5fe0316b4589
2020-08-18 01:00:38 +00:00
TreeHugger Robot
74698fc87a Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d am: 6128b1ba0f am: ea8b670196
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: I38ea717accd07eae665e625eb6f12c0a6be811a3
2020-08-18 00:46:05 +00:00
TreeHugger Robot
6128b1ba0f Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: Ib0e9657c1d796cfcf9f5aa89709b9ad357d81f23
2020-08-18 00:24:55 +00:00
Adam He
5277e0781d Update docs to clarify how providers can create style bundles and Slices
for inline suggestions.

Fixes: 162437790
Test: atest android.autofillservice.cts.inline
Change-Id: If02b34ec7978897545c0b7eabfebb8db0b9417c0
2020-08-03 13:06:38 -07:00
Beverly
189d4af721 Add dismissUserStats to NEM#performRemoveNotif
Now both notification pipelines require DismissedByUserStats when
removing a notification.

Also, refactored the DismissRunnable that gets called whenever a
notification is manually swiped away and dismissed from the
NotificationShade. Now, ExpandableNotificationRowController injects a
OnDismissCallback with a #onDismiss method that will get called whenever
a notification is manually swiped by the user OR is clicked with the
AUTO_CANCEL flag. Since it's injected it's easier to switch between the
new and old pipeline's OnDismissCallback (one which interacts with the
old pipeline's NotificationEntryManager, and another with the new
NotifCollection). Now this dismiss runnable doesn't need to be passed
around starting from inflation.

Test: atest SystemUITests
Change-Id: Iec985ce2c502462ee35cf86c1e0332168e578823
2020-07-29 08:41:04 -04:00
TreeHugger Robot
9da727f119 Merge "Prevent bell icon from disappearing on immediate followup notification." into rvc-qpr-dev am: a568597191 am: e35f399130
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12099423

Change-Id: Ief08af5a5d4f46c4cbefc84713b0bf2498e687b0
2020-07-08 13:58:00 +00:00
Jeff DeCew
206e7d747e Prevent bell icon from disappearing on immediate followup notification.
The Ranking object of a notification update has lastAudiblylertedMs of
-1 if the notification did not buzz because a buzz happened within the
last 5s.  This causes the bell icon to disappear on a conversation
where a person posted twice within 5s. This is resolved by copying the
lastAudiblyAlertedMs from the NotificationEntry's existing Ranking when
setting a new one, if the new Ranking's value is -1.

Bug: 156887617
Test: Update an alerting notification within 5s of update which caused an alert; bell should stay even though buzz is skipped.
Change-Id: Ibb72ab27c88cfa57add781e2746fff0eee5de6be
2020-07-07 16:19:03 -04:00
Ahaan Ugale
e76b0ebe27 Merge "Do not replace the authenticated dataset for pinned inline suggestion" into rvc-dev am: 913b610e53 am: 5085f4bbf1 am: cc08dc7716 am: c494c839b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12001033

Change-Id: Iea6413ea13d288981e0e6c067424fa0b2d856ded
2020-06-30 00:36:37 +00:00
Ahaan Ugale
5085f4bbf1 Merge "Do not replace the authenticated dataset for pinned inline suggestion" into rvc-dev am: 913b610e53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12001033

Change-Id: Ia62ed8b1f9a1d3af9973588005192bd642a69c99
2020-06-29 23:59:02 +00:00
Feng Cao
32cfac9ed7 Do not replace the authenticated dataset for pinned inline suggestion
* For the case where the pinned inline suggestion triggers an
  pending intent through the auth flow, and it returns a dataset
  to be autofilled, previously we would replace the existing
  dataset with the returned dataset. However, this is causing
  several potential issues:
  1. if the returned dataset doesn't contain inline presentation
     the the pinned icon will not show again
  2. if the returned dataset contains inline presentation but not
     the pending intent, then the pinned icon will show up again
     but tapping on it will not launch the pending intent
  3. if the returned dataset contains the inline presentaion and
     the pending intent, then when we "autofill" it, it'll fire
     the pending intent directly as opposed to filling in the
     value
* We fix the issue by not replacing the old dataset if the dataset
  is a pinned inline suggestion.
* One caveat of the approach is that: a dataset can potentially
  have multiple fields, and it's possible that some of the fields'
  has inline presentation and some don't. It's also possible that
  some of the fields' inline presentation is pinned and some isn't.
  So the concept of whether a Dataset is pinned or not is
  ill-defined. Here we say a dataset is pinned if any of the field
  has a pinned inline presentation in the dataset. It's not ideal
  but hopefully it is sufficient for most of the cases.
* An alternative approach is to have the autofill provider telling
  whether they want to replace the old dataset or not, through
  a new field in the returned Bundle. But that requres an API change
  so is infeasible at this time.

Test: atest android.autofillservice.cts.inline
Test: atest android.autofillservice.cts.augmented
Test: atest android.autofillservice.cts.LoginActivityTest
Test: atest android.autofillservice.cts.AuthenticationTest
Bug: 159367101

Change-Id: I6d162aeb88a4655989c1aa315df8304c0980ac60
2020-06-25 17:39:13 -07:00
TreeHugger Robot
cb5cd90157 Merge "Release remove inline suggestion views when session destroyed" into rvc-dev am: 6e3a4d7625 am: 29c7295caf am: 5918ea65fa am: 57a355a2da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11972118

Change-Id: Ie186652c28b405696365b8fe2d1a3739e2df2bbe
2020-06-24 06:16:08 +00:00
TreeHugger Robot
29c7295caf Merge "Release remove inline suggestion views when session destroyed" into rvc-dev am: 6e3a4d7625
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11972118

Change-Id: Iea1d860438282cc334f179f57eb9a8302500080e
2020-06-24 05:37:58 +00:00
TreeHugger Robot
6e3a4d7625 Merge "Release remove inline suggestion views when session destroyed" into rvc-dev 2020-06-24 05:31:34 +00:00
Feng Cao
17ca1ee84e Release remove inline suggestion views when session destroyed
* Attach to each inline suggestion remote view the user id
  and session id, which together identify a session. Then when
  the session is destroyed, we release all the remote views
  associated with the it.
* Worst scenario is that the IME is still showing the UI when
  the remote view is released due to session destroy, in which
  case the suggestion will disappear from the IME window. But
  we also make sure we send an empty response to IME before
  releasing the views, so it should be bad. Plus when a session
  is destroyed, interacting with the suggestion UI doesn't do
  anything, so it's not very helpful to show them.
* Also add a dump method to the InlineSuggestionRenderService
  to help with debugging

Test: atest android.autofillservice.cts.inline
Bug: 154683107

Change-Id: I488fd9d9af08d0df3ffd3c851f96c567d07eed5a
2020-06-23 19:17:42 -07:00
TreeHugger Robot
ae1f88b8a2 Merge "Add information about requestAddControl" into rvc-dev am: c139a0071a am: 7bbfde8105 am: ab3b16142c am: 6a6eed0efb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11973250

Change-Id: I29a5c1a3d0a6ec9cf77c499d585b839d8874a319
2020-06-23 23:04:28 +00:00
TreeHugger Robot
7bbfde8105 Merge "Add information about requestAddControl" into rvc-dev am: c139a0071a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11973250

Change-Id: I7233d74250ce5c8ddf3d0abc95329d09578d1d52
2020-06-23 22:36:25 +00:00
Fabian Kozynski
e134edc497 Add information about requestAddControl
Add possible conditions under which SystemUI may not prompt the user to
add a control.

Test: no test
Fixes: 159728016
Change-Id: I143e50cc15397d85b4212d9fb29d64df7c2de80c
2020-06-23 15:48:10 -04:00
TreeHugger Robot
8ce96872d2 Merge "Add try-catch for the augmented autofill UI to avoid crashing" into rvc-dev am: c5c35fc376 am: 19ccb788ca am: 57d3e7d12f am: b12fb095e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863064

Change-Id: Ie0c98c6ae7e9a1c5442e177c6421e11051f1abe4
2020-06-18 18:04:04 +00:00
TreeHugger Robot
0eff204baa Merge "Controls API - Update template docs" into rvc-dev am: e1ed6dcf57 am: c388d4e56b am: cb44a25e03 am: 0eaa148ebb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11898402

Change-Id: I6988c490a882dd546626b1ae266e5823cb8c1773
2020-06-18 16:58:54 +00:00
TreeHugger Robot
19ccb788ca Merge "Add try-catch for the augmented autofill UI to avoid crashing" into rvc-dev am: c5c35fc376
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863064

Change-Id: I4645c45fdc687e6918c9c4cd9ab5a90be4d1959a
2020-06-18 16:36:34 +00:00
TreeHugger Robot
c5c35fc376 Merge "Add try-catch for the augmented autofill UI to avoid crashing" into rvc-dev 2020-06-18 16:36:10 +00:00
TreeHugger Robot
a54af2ac7d Merge "Controls API - Update template docs" into rvc-dev am: e1ed6dcf57
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11898402

Change-Id: I5e2fb272c013e69438f9e6e1368de51fc41125fe
2020-06-18 15:10:31 +00:00
TreeHugger Robot
0f8c23b4f2 Merge "Callback the surface package after the views are drawn locally" into rvc-dev am: cf5f65cbe3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11607123

Change-Id: Iebda003f603bcfc10184c106cccab39c0c490baf
2020-06-18 14:59:29 +00:00
TreeHugger Robot
cb44a25e03 Merge "Controls API - Update template docs" into rvc-dev am: e1ed6dcf57 am: c388d4e56b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11898402

Change-Id: I2923efd2fdb3cfaa6dcd9ffb3b0c5a4cc04304ce
2020-06-18 14:59:21 +00:00
Wei Sheng Shih
8577b21235 Merge "Force relayout when wallpaper engine become visible." into rvc-dev am: ec30716a6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863063

Change-Id: I6f2857712f9700be6d00699110bcb7dfae6a65d0
2020-06-18 14:52:54 +00:00
TreeHugger Robot
9d098aaaf1 Merge "Fix a bug to not complete the augmented autofill request when fill window is shown" into rvc-dev am: 79f38179de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11876607

Change-Id: If65cba02b7d6c42d0764de05b7ab293de6fcf78e
2020-06-18 14:39:19 +00:00
TreeHugger Robot
e1ed6dcf57 Merge "Controls API - Update template docs" into rvc-dev 2020-06-18 14:33:24 +00:00
Matt Pietal
68943be01d Controls API - Update template docs
Add more clarity around which control template to select.

Fixes: 150630500
Test: manual
Change-Id: I215e485e1cf81aae7e2c6c8b469945069136aad8
2020-06-18 08:03:44 -04:00
TreeHugger Robot
3b50a5fdbe Merge "Callback the surface package after the views are drawn locally" into rvc-dev am: cf5f65cbe3 am: cf50e80097 am: ce4d0339d7 am: d422be6209
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11607123

Change-Id: Iee2c179f6c06a04b45e39fa1fc5e2305114ae322
2020-06-18 12:03:37 +00:00
TreeHugger Robot
ce4d0339d7 Merge "Callback the surface package after the views are drawn locally" into rvc-dev am: cf5f65cbe3 am: cf50e80097
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11607123

Change-Id: I72c56291b73d611b6674924193438a104dc51b90
2020-06-18 11:36:12 +00:00
TreeHugger Robot
cf5f65cbe3 Merge "Callback the surface package after the views are drawn locally" into rvc-dev 2020-06-18 11:03:17 +00:00
Wei Sheng Shih
ec75dc8912 Merge "Force relayout when wallpaper engine become visible." into rvc-dev am: ec30716a6b am: 8b3f702c83 am: 19f6e5e758 am: 6eae028002
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863063

Change-Id: I8f9b98bdb1b204291d0fbb732fc6ab9d441f70a9
2020-06-18 09:20:02 +00:00
Wei Sheng Shih
19f6e5e758 Merge "Force relayout when wallpaper engine become visible." into rvc-dev am: ec30716a6b am: 8b3f702c83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863063

Change-Id: I28b6ee756fb6d02f723bcf15f9fa4e21985783b0
2020-06-18 08:45:36 +00:00
Wei Sheng Shih
ec30716a6b Merge "Force relayout when wallpaper engine become visible." into rvc-dev 2020-06-18 08:21:58 +00:00
Feng Cao
ffd9affb74 Callback the surface package after the views are drawn locally
* SurfaceControlViewHost#setView() method will post a task to the
  main thread to draw the view. We want to callback the surface
  package to the remote process after the view is drawn and ready
  to be shown, to avoid the flicker when the remote process attaches
  it to their window when it's not drawn.

Test: atest android.autofillservice.cts.inline
Bug: 157515522

Change-Id: Ia75baaf9d6a4770a783dfc75ebb01b4b6e62e180
2020-06-17 23:57:11 -07:00
TreeHugger Robot
3c90d80fb9 Merge "Fix a bug to not complete the augmented autofill request when fill window is shown" into rvc-dev am: 79f38179de am: 4ee1f73d42 am: 2a8162342d am: 49eb475c2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11876607

Change-Id: Id33755e519cdad652f568c1d66e07bf0ed327d2e
2020-06-17 21:03:17 +00:00
TreeHugger Robot
2a8162342d Merge "Fix a bug to not complete the augmented autofill request when fill window is shown" into rvc-dev am: 79f38179de am: 4ee1f73d42
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11876607

Change-Id: I69de9359f9fd7ced67b2f55dcea15285811b51e5
2020-06-17 20:03:40 +00:00
lpeter
d0bd08b4b9 Add try-catch for the augmented autofill UI to avoid crashing
It is hard to reproduce this issue, it would better add try-catch
for the augmented autofill UI as regular autofill UI did.

Bug: 149744098
Test: atest CtsAutoFillServiceTestCases
Change-Id: I808ac48476ef96b8944e762dd5c41413da3a2c2e
2020-06-17 14:06:08 +08:00
wilsonshih
5cac2a0279 Force relayout when wallpaper engine become visible.
After 9118c9b the surface can be destroy after the window state become
invisible, since WallpaperService copy the surface from WMS and it is
not implement with ViewRootImpl, WallpaperService#Engine should call
relayout to get new surface when client need to redraw it.

Bug: 158955956
Test: verify the wallpaper can show by launch LiveWallpaperChange with
live wallpaper and push/pull it from recents several times.
Test: atest WallpaperServiceTest ImageWallpaperTest

Change-Id: I79f97df61696eea325183e9b9057cbb10ce8cc66
2020-06-16 12:00:24 +08:00
Feng Cao
5d6243e47a Fix a bug to not complete the augmented autofill request when fill window is shown
* The bug was introduced in ag/11784240 causing the existing CTS test to
  fail: android.autofillservice.cts.augmented.AugmentedLoginActivityTest
  #testCancellationSignalCalled_retriggerAugmentedAutofill
* Basically when the dropdown fill window is displayed, we should not mark
  the augmented autofill request as complete

Test: atest android.autofillservice.cts.augmented
Test: atest android.autofillservice.cts.inline
Bug: 158864213
Bug: 158038231

Change-Id: Ifb75189c1ba3183c99516bfb9a7053524f4bbddc
2020-06-15 20:23:17 -07:00
TreeHugger Robot
a750baf8eb Merge "Controls UI - Tap for NO_TEMPLATE" into rvc-dev am: d6fb5e2151 am: df58dcf081 am: c3d1ff26ef am: 2a0a156fe7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11850954

Change-Id: Ifba560b04ad451622ffe831fdc7259db6330e6bb
2020-06-12 18:08:28 +00:00
TreeHugger Robot
df58dcf081 Merge "Controls UI - Tap for NO_TEMPLATE" into rvc-dev am: d6fb5e2151
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11850954

Change-Id: I13e5ed74ac82b79a7b72511b55c02cb6ad4c6573
2020-06-12 17:22:24 +00:00
Matt Pietal
733d637879 Controls UI - Tap for NO_TEMPLATE
Allow single taps as well as long press to launch the detail panel
when no template is specified.

Fixes: 158773087
Test: ControlsMockApp, any default type
Change-Id: I4d5451f6a5968d8dd223eb5b10d931ad60aad951
2020-06-12 11:59:57 -04:00
Automerger Merge Worker
c43c57ac2b Merge "Merge "Send empty inline response to IME if augmented autofill returns no suggestion" into rvc-dev am: b9aeb6ca22 am: b205b806f1" into rvc-d1-dev-plus-aosp am: b6d6e164dd am: 438b33bfbf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11784240

Change-Id: I77c57452d790974aac7f52a74f63f924ec9de2bb
2020-06-10 22:38:24 +00:00
TreeHugger Robot
b205b806f1 Merge "Send empty inline response to IME if augmented autofill returns no suggestion" into rvc-dev am: b9aeb6ca22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11784240

Change-Id: I9f4359377b1ab3866e8fc530a5dc67020e5363a2
2020-06-10 21:59:48 +00:00