Commit Graph

1185 Commits

Author SHA1 Message Date
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
Beverly
0421687f0c Add alarm + media/other to NotifManager.Policy
Alarm and media/system/other policies added to be able to toggle
filtering of alarm and media sounds for ZenMode/DND.

Bug: 63077372
Test: runtest -x frameworks/base/services/tests/notification/src/com/android/server/notification/ZenModeHelperTest.java
Change-Id: I256782af00ad736c1aebdb96f9400d66ebb64a15
2017-10-09 15:10:04 -04:00
TreeHugger Robot
a3c728e1a2 Merge changes from topic "jr-blocker"
* changes:
  Initial notification blocker
  Provide more information to the noti asst
2017-10-09 18:13:50 +00:00
Julia Reynolds
503ed9404e Provide more information to the noti asst
And pass user sentiment from the assistant to listeners.

Not all of the information the assistant might want is provided
by systemui yet, but the hooks to do so have been added in this CL.

Bug: 63095540
Test: runtest systemui-notification, cts
Change-Id: I8194c065b7895d6013a40320e76eb62caab1263f
2017-10-09 12:36:46 -04:00
TreeHugger Robot
463da25b50 Merge "New Autofill API: add (optional) content description on ImageTransformation." 2017-10-06 21:06:37 +00:00
TreeHugger Robot
d8416b7e62 Merge "New Autofill API: SaveInfo.addSanitizer()" 2017-10-06 20:06:13 +00:00
Felipe Leme
cd2969c85d New Autofill API: SaveInfo.addSanitizer()
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testDontSaveWhenSanitizedValueDidntChange
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testSanitizeOnSave
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.TextValueSanitizerTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SaveInfoTest

Bug: 67370425

Change-Id: Ie13789a08da98bea4abfd4ae87b17fd3eff24e17
2017-10-05 17:08:32 -07:00
Ruben Brunk
5a8466172a Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev am: c765c2c448
am: 3de064f7cc

Change-Id: I97be49896650231b057285ab13672324a8415f11
2017-10-05 04:15:15 +00:00
TreeHugger Robot
c765c2c448 Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev 2017-10-05 03:53:44 +00:00
TreeHugger Robot
678f0b1205 Merge "New autofill API: let service explicitly set dataset filter." 2017-10-05 02:20:48 +00:00
Felipe Leme
27a026ac1a New autofill API: let service explicitly set dataset filter.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#filterTextUsingRegex
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testDatasetAuthFilteringUsingRegex
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.DatasetTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Fixes: 67314013

Change-Id: I4412c1bf650219d005b9287033b463de6aee764d
2017-10-04 16:56:58 -07:00
Felipe Leme
8369c689d3 Merge "Improved javadocs for Autofill save workflow." into oc-mr1-dev am: 94e07022c2
am: d03db3c7f9

Change-Id: I29dee744197d18cf5085b8b7c23d2cdd29c1dc78
2017-10-04 20:48:29 +00:00
Ruben Brunk
52ea662280 Bind VR compositor service from VrManagerService.
- Allow VR system application to have VR manager service bind a
compositor process so that oom scoring for the compositor process can be
adjusted.

Bug: 38390640

Test: Check that the VrCore compositor process is -700 on AIO devices with:

  adb shell procrank -o

Change-Id: I7b5bce5eb87bd5ed0fdeadf4ec7bdd2b361ab875
2017-10-03 20:58:30 -07:00
Felipe Leme
ce8f7269a0 New Autofill API: add (optional) content description on ImageTransformation.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t ImageTransformationTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t CheckoutActivityTest#testCustomizedSaveUiWithContentDescription

Fixes: 67009271

Change-Id: Ic6e7c992c04f85a33c235533c3b00664d5d28810
2017-10-03 17:14:21 -07:00