Commit Graph

1501 Commits

Author SHA1 Message Date
Felipe Leme
fa30852d6f Merge "Clarified FillCallback and SaveCallback behaviors." into pi-dev am: 971ad7aa5e
am: 5529a99f42

Change-Id: Ibdee3ee359415f684b1e30223f89b7a2dfb0ca4b
2018-09-19 19:46:51 -07:00
Felipe Leme
5529a99f42 Merge "Clarified FillCallback and SaveCallback behaviors." into pi-dev
am: 971ad7aa5e

Change-Id: I3dda44262a318c277aa226321b0ed1e1dc34e6a1
2018-09-19 19:33:39 -07:00
TreeHugger Robot
971ad7aa5e Merge "Clarified FillCallback and SaveCallback behaviors." into pi-dev 2018-09-20 02:12:57 +00:00
Yuzhou Jia
35339498ef Merge "Make Changes to VoiceInteraction API for supporting System checking an assistant voice action availability on AAE." 2018-09-20 01:02:44 +00:00
Felipe Leme
deff81b12b Clarified FillCallback and SaveCallback behaviors.
Test: mmm -j frameworks/base/:doc-comment-check-docs

Bug: 116103297

Change-Id: Ib397556007d1f8bf6d5d08c6bf2edf69f88b7f07
2018-09-19 13:41:22 -07:00
Felipe Leme
c8c4fea61f Merge "Log when the autofill service fails a callback." 2018-09-19 17:49:09 +00:00
Felipe Leme
3ebb359229 Log when the autofill service fails a callback.
Bug: 112417431
Bug: 116103297

Test: manual verification
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything

Change-Id: I2af70a3e4685693d32bab2814f60fdeb9c8b5159
2018-09-19 17:48:53 +00:00
jiayuzhou
21a353b701 Make Changes to VoiceInteraction API for supporting System checking
an assistant voice action availability on AAE.

Test: build and test on AAE.
Bug: 110587280

Change-Id: If37036e0dbe021fee9c95caf7e450330ca24ae32
2018-09-19 10:21:59 -07:00
Julia Reynolds
63048fd8c5 Merge "Reduce errors for managed services" 2018-09-19 14:13:50 +00:00
Julia Reynolds
ca8e535c93 Reduce errors for managed services
Seen in on devices with work profiles.

- Only bind the the current started user(s)
- Wrap applyEnqueuedAdjustmentFromAssistant with a try/catch
since assistant services cannot recover from it on their own.

Additionally, while debugging this rebindServices hurt my brain,
so I've split it up a bit and added comments and tests.

Test: runtest systemui-notification, device restart and log queries
Bug: 113296846
Change-Id: I19b9044ff87712f9ef5401457217156ea9fb9f1f
2018-09-18 13:47:37 -04:00
Felipe Leme
d19a7a86a2 Clarified that some autofill interfaces can only be implemented by the system.
am: df0cefab6b

Change-Id: I221bd4abb43e4865630794b103d0aeef29c6ea7f
2018-09-17 13:27:42 -07:00
Felipe Leme
7727bcc692 Minor improvement on new Q API javadocs.
Test: mmm -j frameworks/base/:doc-comment-check-docs
Bug: 112051762

Change-Id: I030c77f7f974274fea93b46390caa8b65ac97761
2018-09-14 12:24:30 -07:00
TreeHugger Robot
bf7d0cb827 Merge "Clarified that some autofill interfaces can only be implemented by the system." 2018-09-14 17:04:16 +00:00
Felipe Leme
df0cefab6b Clarified that some autofill interfaces can only be implemented by the system.
Test:  mmm -j frameworks/base/:doc-comment-check-docs

Fixes: 113323194

Change-Id: Ic0bea0e16fca0ce4c67d36f5611587843d7aad9f
(cherry picked from commit d5225e13d0)
2018-09-14 10:03:30 -07:00
Mathew Inwood
db0657a4f4 Merge "Move some members to the "Q blacklist"." 2018-09-14 13:54:28 +00:00
Beverly Tai
ba779ca7a8 Merge "Added ZenPolicyProto" 2018-09-14 13:33:58 +00:00
Mathew Inwood
8c854f86a4 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
2018-09-14 13:18:34 +01:00
TreeHugger Robot
921f354c6c Merge "Allow listeners to reset their requested hints." 2018-09-13 21:21:32 +00:00
Beverly
ac3159fc2d Added ZenPolicyProto
Change-Id: I776c3e9a7bfaced849475e95ab680b78ec1da358
Fixes: 115370281
Test: builds
2018-09-13 14:52:17 -04:00
Beverly Tai
1f8f03b0b7 Merge "New: ZenPolicy for DND" 2018-09-13 18:39:02 +00:00
Julia Reynolds
4703bacf00 Allow listeners to reset their requested hints.
Test: cts
Bug: 79340461
Change-Id: I55a3f55d69dd47078e9a2226616d2b89434d32d8
2018-09-13 14:04:18 -04:00
Felipe Leme
d5225e13d0 Clarified that some autofill interfaces can only be implemented by the system.
Test:  mmm -j frameworks/base/:doc-comment-check-docs

Fixes: 113323194

Change-Id: Ic0bea0e16fca0ce4c67d36f5611587843d7aad9f
2018-09-13 10:21:17 -07:00
Beverly
174d741944 New: ZenPolicy for DND
Bug: 111474881
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeConfigTest.java
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenPolicyTest.java
Change-Id: I41809b30866ab7172dd80e0504694025f7fa3c50
2018-09-13 10:17:03 -04:00
TreeHugger Robot
4dc4c3ae6f Merge "Improved logging on CharSequenceTransformation." 2018-09-11 22:58:08 +00:00
Julia Reynolds
a7ba45acb1 Allow apps to proxy notifications for other apps
This will allow apps to delegate posting to persistently
running apps, to decrease the numbers of times apps need to wake up
just to post a notification.

Bug: 111452544
Test: runtest systemui-notification
Change-Id: I1ead239747f2871f222d0ce6a971d1448a0766ad
2018-09-10 15:00:59 -04:00
Felipe Leme
e18f51f240 Improved logging on CharSequenceTransformation.
Test: m framework

Bug: 113593220

Change-Id: I6860b158decb34cfa0432122baac2a33c756b4f6
2018-09-07 12:41:43 -07:00
Julia Reynolds
fe992198c1 Add documentation about threading.
Change-Id: I8e0df7398f464cc829a83012f2ab6ee6441d0e4c
Fixes: 112249346
Test: make
2018-09-07 17:39:02 +00:00
Felipe Leme
5429ade944 Fixed findValueLocked() so it fetches values from previous sessions.
Test: atest MultiScreenLoginTest:testSaveBothFieldsCustomDescription_differentIds
Bug: 113593220

Change-Id: I662c526e1d885cc1cdbff113172a0b674dd0849c
2018-09-05 18:20:02 -07:00
Lucas Dupin
6155aa402a Only set FLAG_SCALED for fixed size wallpapers
Change-Id: I98a18a9c115f66d0024a069456f5aaf2c138bbde
Fixes: 113828967
Test: set live wallpaper, set image wallpaper
2018-09-05 11:15:52 -07:00
Valentin Iftime
6239e53794 Resize image wallpaper surface to match bitmap size in order to optimize memory
(on AndroidTV there is no need for wallpaper and RAM is wasted)

Bug: 74517029
Test: Push a low resolution wallpaper to the device (adb push new_wallpaper /data/system/users/0/wallpaper),
reboot and check the buffer size for com.android.systemui.ImageWallpaper (adb shell dumpsys SurfaceFlinger)

Change-Id: I992175997ed09360e8fc9c2cabf354fb4fabd1f9
2018-08-31 14:36:33 +02:00
TreeHugger Robot
3c0fd76725 Merge "Revert "Fixed FieldClassificationStrategy that gets data from the package info."" 2018-08-29 16:00:19 +00:00
Felipe Leme
c7ee7af4ac Fixed new multi-screens autofill API:
- Previous FillContexts should be shown on subsequent FillRequests.
- Client state should be properly propagated.

Test: atest MultiScreenLoginTest
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything

Fixes: 112051762
Bug: 113281366

Change-Id: I17de046385bd923279684d461afd24b49ad6f89a
2018-08-28 09:40:48 -07:00
Ryan Mitchell
2fe035b449 Revert "Fixed FieldClassificationStrategy that gets data from the package info."
This reverts commit cfa0d49be5.

Bug: 112776204
Test: atest FieldsClassificationTest#testGetAlgorithm
2018-08-28 16:28:30 +00:00
Michael Wright
3f4d546525 Revert the DISMISSAL_NOT_DISMISSED to previous value.
This is existing API and can't be changed.

Bug: 113071843
Test: make update-api
Change-Id: Ib6b1002f29ba35d7a2ca8c26cac61344dae9f43f
2018-08-22 23:41:02 +01:00
TreeHugger Robot
3c98e02d43 Merge changes Ied0d0a83,Id649a1ed
* changes:
  Add ability to pass user sentiment to assistant
  Add AndroidTest file for ExtServices
2018-08-21 22:00:50 +00:00
Felipe Leme
5d62f822d8 Fixed javadoc tags.
Bug: 112709898
Bug: 112901746

Test: mmm -j frameworks/base/:doc-comment-check-docs

Change-Id: Ice8eba0623c27ad0e1b84563ce44c1491ed6074a
2018-08-21 11:41:37 -07:00
Julia Reynolds
fd4099d74f Add ability to pass user sentiment to assistant
Test: runtest systemui-notification
Bug: 4798501
Change-Id: Ied0d0a83c4fbbdde59ee8f4e9394161792c42c03
2018-08-21 12:58:30 -04:00
TreeHugger Robot
07ae651adf Merge "New Autofill Save UI API to switch visibility of views." 2018-08-21 16:54:44 +00:00
TreeHugger Robot
40613508cc Merge "Allow multiple categories per value on FieldClassification's UserData." 2018-08-20 23:01:32 +00:00
Felipe Leme
37f837222e New Autofill Save UI API to switch visibility of views.
Test: atest \
      OnClickActionTest VisibilitySetterActionTest CustomDescriptionUnitTest

Fixes: 112709898

Change-Id: I05d59ecbdd21d68e9056adeb361e5a9bdd3d2a43
2018-08-20 14:22:33 -07:00
Julia Reynolds
6a63d1bfb5 The quietening round 3: aging
Move notifications into the min bucket after they've
been seen (plus a variable delay based on type).

Test: ExtServicesUnitTests
Bug: 111475013

Change-Id: Id577162d063dc1b0ad370f66af7a503e294c5b65
2018-08-20 18:59:31 +00:00
Laura Davis
ed3bc12e2a Merge "Docs: Inserted links to relevant guide pages." into pi-dev am: 283f55f7de
am: 6497c5bd21

Change-Id: Ida8426c0ca4f0fd755df2783fb16ea5d9e5e72ad
2018-08-17 16:13:46 -07:00
Laura Davis
6497c5bd21 Merge "Docs: Inserted links to relevant guide pages." into pi-dev
am: 283f55f7de

Change-Id: I1a42ff1b3485e35e152b354039aa5c072e0a1e70
2018-08-17 15:14:38 -07:00
Felipe Leme
725bc91c26 Allow multiple categories per value on FieldClassification's UserData.
This is useful in cases such as using an email address as either email or
username.

Test: atest UserDataTest FieldsClassificationTest

Fixes: 111437231

Change-Id: I04c84cc635497ab89464c2e5795f87b9f5ae1995
2018-08-17 13:00:30 -07:00
Laura Davis
43e75d98d8 Docs: Inserted links to relevant guide pages.
This is the proof of concept for adding relevant
links in API pages to narrative content.
The design doc is hosted at:
https://docs.google.com/document/d/1Y6bFua27Gs7ONZ27gz0nHz3Djv0WND_V_rX-XvbeB3U/edit?usp=sharing

Test: make ds-docs

Bug: 112478848
Change-Id: Ic3842629c802fe89582d4d7b4a153e54d4ba1713
2018-08-16 16:57:18 -07:00
Mathew Inwood
96c9a3cbc8 Merge "Add @UnsupportedAppUsage annotations" am: 9feefd2f5f
am: 3ef2a833ba

Change-Id: Iefd5883914482bdc45b38a77d8016b4552dfcaf0
2018-08-16 03:05:51 -07:00
Mathew Inwood
3ef2a833ba Merge "Add @UnsupportedAppUsage annotations"
am: 9feefd2f5f

Change-Id: Id93bdaf74cf2e9077f3af8367189ae98e8a2f95a
2018-08-15 06:52:39 -07:00
Aaron Heuckroth
485e8a3499 Merge "Refactor RankingMap building methods to reduce code duplication." 2018-08-15 13:40:16 +00:00
Mathew Inwood
217f30b3a4 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 10:03:53 +00:00
TreeHugger Robot
726ab98716 Merge "Override old alarms in zen schedule" 2018-08-14 21:22:49 +00:00