Commit Graph

1198 Commits

Author SHA1 Message Date
Jiuyu Sun
577e400902 Merge "Confirmation code second try." 2017-11-29 23:12:08 +00:00
TreeHugger Robot
0cbfdf8250 Merge "Added Privacy section to AutofillService documentation." 2017-11-29 02:58:47 +00:00
TreeHugger Robot
61121757e1 Merge "Display Cutout: Add Cutout to WindowInsets" 2017-11-28 17:11:21 +00:00
Adrian Roos
d4970af157 Display Cutout: Add Cutout to WindowInsets
Adds a facility for communicating the display cutout to
windows. A follow-up CL will make this a public API.

Bug: 65689439
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/view/DisplayCutoutTest.java
Change-Id: I2290adea0130a7e5764a9412616fd3192800e06a
2017-11-28 16:14:31 +01:00
TreeHugger Robot
62c9860111 Merge "New Autofill API: Validators.not" 2017-11-28 08:04:26 +00:00
Felipe Leme
4bcb01a3b5 New Autofill API: SaveCallback.onSuccess(IntentSender).
This overloaded method is useful for cases where the service needs to launch
an activity (for example, to unlock the user's vault), in which case it's
launched from the context of the activity being filled.

Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testSave_launchIntent
Test: atest CtsAutoFillServiceTestCases
Fixes: 69458616

Change-Id: I41bf5fd4954c38051e3275f2e8500a00dcf24724
2017-11-27 10:52:50 -08:00
Felipe Leme
1cdf5fb4e2 New Autofill API: Validators.not
Test: atest CtsAutoFillServiceTestCases:ValidatorsTest
Test: atest CtsAutoFillServiceTestCases

Fixes: 69482353

Change-Id: Ib6be24f7d8c30915bd139f39b61ad6916b2e42d7
2017-11-27 10:41:58 -08:00
TreeHugger Robot
e8ebb8cd8d Merge "Changed FillResponse so it can have only a client state." 2017-11-23 02:42:07 +00:00
Felipe Leme
f485f89a3b Added Privacy section to AutofillService documentation.
Test: mmm frameworks/base/:doc-comment-check-docs
Bug: 69417986

Change-Id: I526e0a0df21744ac0a90ff932aaa65e07905183d
2017-11-22 12:23:45 -08:00
Felipe Leme
601d220074 Minor improvements on autofill javadocs and logging.
Test: m update-api
Bug: 69456547

Change-Id: I2cab6d7d6ecbe7c1842a5be37af923dd20355b73
2017-11-22 12:17:01 -08:00
Felipe Leme
b57080eb41 Changed FillResponse so it can have only a client state.
Test: atest CtsAutoFillServiceTestCases#FillResponseTest
Fixes: 69568694

Change-Id: I72ebb280c68db82f28d1ecb651d645eb028bafbe
2017-11-20 17:17:53 -08:00
Felipe Leme
f5059c39cb Optimize Autofill Sanitizer to work as a Validator.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 69465320

Change-Id: I0eec8c6373ae3129314eda3f1f531592b85a4118
2017-11-18 11:28:14 -08:00
Holly Jiuyu Sun
26008bef38 Confirmation code second try.
Bug: 69050703
Test: test on phone
Change-Id: I3e3671bf83715ce55a9d0662f518ef837ac8f22f
2017-11-14 17:31:28 -08:00
Julia Reynolds
25771cfa5c Expose method for testing.
Bug: 62584038
Test: cts verifier
Change-Id: Ifd797f96485f0f99132bd93a78346ff7f2049a17
2017-11-14 14:21:04 +00:00
TreeHugger Robot
968dbf4c7f Merge "Update managed service documentation for low ram devices." 2017-11-09 23:25:22 +00:00
Holly Jiuyu Sun
6a2877e5a9 Carrier confirmation code.
If confirmation code is null and required during downloading a profile,
returns a resovable error, and show ConfirmationCodeActivity. After we
get the confirmation code from the user, continue the operation.

Add the confirmationCode as a member in DownloadableSubscription.

Test: unit test, e2e on phone
Bug: 36730837
Change-Id: Ibe1e0fc5ddb736b411faf48ec9bea3c68972bb99
2017-11-08 19:49:04 -08:00
TreeHugger Robot
4a3d844742 Merge "Very initial field detection prototype." 2017-11-08 19:13:39 +00:00
TreeHugger Robot
7fe465a9e7 Merge "SidekickService (base)" 2017-11-07 02:29:16 +00:00
Felipe Leme
24d7173cf1 Very initial field detection prototype.
A.K.A "OMG, It's full of TODOs!"

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.FieldsDetectionTest

Bug: 67867469

Change-Id: I7c8f7c3e35ccbae0134e2a446b7b44e1e57261fc
2017-11-06 18:06:06 -08:00
Steven Thomas
1356ec950f On standalones, stay in vr mode until standby
On standalones, stay in vr mode until the Power Policy Service notifies
us it has switched to standby mode.

We still have a few issues elsewhere in the code, so the "stay in vr
mode" functionality is only enabled if the system property
"persist.vr.use_standby_to_exit_vr_mode" is set to true, which you can
do like this:

$ adb shell setprop persist.vr.use_standby_to_exit_vr_mode true

Bug: 65248224

Test: - Confirmed on a standalone that doffing leaves us in vr mode for
5 minutes, then we get a notification that we've entered standby, and we
exit vr mode. Confirmed we enter vr mode again when we don the device.

- Confirmed no behavioral change on phones, as expected.

Change-Id: I41d62761fe8c2fc7630f0615732453669cb25f06
2017-11-01 17:58:52 -07:00
Chris Phoenix
10a4a64bcc SidekickService (base)
Test: builds; Sidekick watch face animates in Ambient
Change-Id: I5946dbf7194653ac4707b6c186b0a9197d125d5f
2017-10-31 16:02:41 +00:00
Winson Chung
a17d0ac384 Merge "2/ Add API to start overview activity with assist callbacks" 2017-10-30 20:51:06 +00:00
Winson Chung
ec1ef09c23 2/ Add API to start overview activity with assist callbacks
- Only the recents component package can launch the overview activity
  directly, and if an assist data receiver is provided, then assist data
  will be proxied to the caller.

Bug: 67864419
Test: com.android.server.am.RecentTasksTest
Test: com.android.server.am.AssistDataRequesterTest
Test: CtsVoiceInteractionTestCases
Change-Id: Icdd7e6716a84c11e9262ce5453f7d39ae7d8ce77
2017-10-27 13:49:37 -07:00
TreeHugger Robot
599ef4698b Merge "New Autofill API: FillResponse.disableAutofill(duration)" 2017-10-27 19:38:32 +00:00
TreeHugger Robot
7598da83c2 Merge "Removed all (?!?!?) references to 'affordance' on Autofill documents." 2017-10-27 17:39:26 +00:00
Felipe Leme
17292d1a25 New Autofill API: FillResponse.disableAutofill(duration)
This API is useful to improve the autofill performance for the scenarios where
the service knows it cannot autofill an app or activity.

Bug: 67867469

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthWhenAppCallsCancel

Change-Id: I58e3eb5714db840104e699d614e750c03e26e8ca
2017-10-27 09:40:59 -07:00
Felipe Leme
2c888424f8 Removed all (?!?!?) references to 'affordance' on Autofill documents.
Test: nope

Change-Id: I6e38ee76adf9469b058937092c8e1d06800efdea
2017-10-27 09:05:00 -07:00
Felipe Leme
5e0bfe7706 Minor fixes on SaveInfo javadoc.
Test: ran 'mmm -j108 frameworks/base/:doc-comment-check-docs' and checked HTML

Change-Id: I9ba776be77132942d516d23ac69d3ad9f9b3da62
2017-10-26 09:23:43 -07:00
Julia Reynolds
8149961c0a Update managed service documentation for low ram devices.
Bug: 35219985
Test: make offline-sdk-docs
Change-Id: I925c55970288891373c3632225f7435c375da9fd
2017-10-24 12:42:07 -04:00
TreeHugger Robot
6a6fe31867 Merge "Removed .aidl files that are not used on other.aidl files." 2017-10-23 15:22:49 +00:00
TreeHugger Robot
85be5b826d Merge "Minor improvements on Autofill:" 2017-10-21 00:50:28 +00:00
Felipe Leme
25a3a5fb17 Removed .aidl files that are not used on other.aidl files.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 67867469

Change-Id: I7f598d0016d49a3956d4be00ab5acca6a62d56eb
2017-10-20 17:09:36 -07:00
TreeHugger Robot
d2167ba99c Merge "Let SuggestionService receive suggestion-launched signal." 2017-10-20 22:52:57 +00:00
Felipe Leme
6f12e67e17 Minor improvements on Autofill:
- Don't print PII on Dataset.toString()
- Use proper method to get last response

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 67867469

Change-Id: I41579ba30366e07193ab4f7790e5a107c85d6ec2
2017-10-20 13:05:25 -07:00
Fan Zhang
e4b5ac2f97 Let SuggestionService receive suggestion-launched signal.
This is the opposite signal to dismissSuggestion().

Bug: 65065268
Test: runtest --path core/tests/coretests/src/android/service/settings/suggestions/SuggestionServiceTest
Change-Id: Iff708fd1b06e12b6d46aefdcc658e96b44063e67
2017-10-20 10:25:31 -07:00
Felipe Leme
24604a3a62 Merge "New Autofill API: TYPE_CONTEXT_COMMITTED events." 2017-10-20 16:38:21 +00:00
TreeHugger Robot
5e9e79ccec Merge "Allow datasets without presentation to optimize authentication use case." 2017-10-20 03:45:27 +00:00
TreeHugger Robot
63f7227f03 Merge "Improved logging on autofill validators." 2017-10-19 20:34:02 +00:00
Felipe Leme
9856b19f4b Allow datasets without presentation to optimize authentication use case.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testAutoFillDatasetWithoutFieldIsIgnored
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.DatasetTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 36547794

Change-Id: Ibf1d7e45dd2534b6990434db58bc4010f68433ec
2017-10-19 09:25:15 -07:00
TreeHugger Robot
e325356e36 Merge "New Autofill API: CustomDescription.batchUpdates()" 2017-10-19 00:51:32 +00:00
Felipe Leme
3a585a8ef1 Improved logging on autofill validators.
Also minor-fixed a javadoc comment.

Test: manual verification
Bug: 67955334

Change-Id: Ieb2265049b0416b3427f63e14e33fb9fa50a16e7
2017-10-18 15:40:15 -07:00
Felipe Leme
59c446403c New Autofill API: TYPE_CONTEXT_COMMITTED events.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts#FillEventHistoryTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 65130630

Change-Id: I7f0336752be50f6b5f55e01865fe70b6d44dedbe
2017-10-18 14:33:57 -07:00
Beverly
8246f82636 ZenModeConfig XML no longer stores alarms twice.
Test: manual
Change-Id: Ib1824c4a5950e3cffeae0669bfdd17672dfa10a7
Fixes: 67929980
2017-10-18 15:36:43 -04:00
Felipe Leme
63c601a06b New Autofill API: CustomDescription.batchUpdates()
This API allows the service to apply updates in the save UI remote view, when
a given condition applies.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.CustomDescriptionTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.CustomDescriptionUnitTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.BatchUpdatesTest

Fixes: 63933969

Change-Id: I5002f231cd2029463b81a68fb3acd9bf1ae5964a
2017-10-17 13:45:38 -07:00
TreeHugger Robot
fac6655cf5 Merge "New Autofill API: SaveInfo.setTriggerId()" 2017-10-12 22:39:49 +00:00
Felipe Leme
a937238eae Let service set the SaveRequest.getClientState() on dataset auth responses.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthClientStateSetOnIntentOnly
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthClientStateSetOnFillResponseOnly
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthClientStateSetOnIntentAndFillResponse

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testDatasetAuthClientStateSetOnIntentOnly
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testDatasetAuthClientStateSetOnFillResponseOnly
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testDatasetAuthClientStateSetOnIntentAndFillResponse

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 67588471

Change-Id: I05a56bfc02400ce87077c93301abc0e0e1aa59a6
2017-10-12 12:03:42 -07:00
Felipe Leme
2fe3ade813 New Autofill API: SaveInfo.setTriggerId()
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testExplicitySaveButton
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testExplicitySaveButtonWhenAppClearFields
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 65118073
Fixes: 67006548

Change-Id: Id12179086567d014f35fe4177b041745fb19bafd
2017-10-12 09:55:45 -07:00
Beverly Tai
1e26cacc71 Merge "Add alarm + media/other to NotifManager.Policy" 2017-10-12 13:20:51 +00:00
Felipe Leme
b147de882a Merge "Document how to handle save on multi-steps activity." into oc-mr1-dev am: a4dffa032b
am: 705d318485

Change-Id: I75ff776435f53c8aed5731dfe984813af48c760a
2017-10-11 20:20:09 +00:00
Felipe Leme
ed7796f302 Document how to handle save on multi-steps activity.
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML
Fixes: 67650364

Change-Id: Ib9e6c63e537b47a0670fe6bdf5163e8ab80eef0c
2017-10-11 10:13:15 -07:00