Commit Graph

1218 Commits

Author SHA1 Message Date
Beverly
be6d3524b6 Public access to static methods in ZenModeConfig
Edits to ScheduleCalendar and ScheduleConditionProvider tests

Test: runtest -x frameworks/base/services/tests/notification/src/com/android/server/notification/ScheduleCalendarTest.java
runtest -x frameworks/base/services/tests/notification/src/com/android/server/notification/ScheduleConditionProviderTest.java$
Bug: 63077372
Change-Id: I0662c230f1f2df867f9b64d69aab3bcb88696b61
2017-12-05 14:43:46 -05:00
TreeHugger Robot
05c1a6ca4c Merge "New Autofill API: let service set optional header and footer for dataset picker." 2017-12-05 02:46:37 +00:00
Colin Cross
6584e5e650 Merge "Remove unused AIDL files" am: d0abc863f4 am: 43f665c95e
am: 3dbbd3d3a9

Change-Id: Ida23b5013fa6a3e1fd6ba3e5a699f798f29b4b84
2017-12-05 01:10:14 +00:00
Colin Cross
3dbbd3d3a9 Merge "Remove unused AIDL files" am: d0abc863f4
am: 43f665c95e

Change-Id: I3d966c647103c45f8a078adcb4260c08174cf61c
2017-12-05 00:34:32 +00:00
Colin Cross
43f665c95e Merge "Remove unused AIDL files"
am: d0abc863f4

Change-Id: Ia6d798f6acf3930945cac488db81ccec3792648d
2017-12-05 00:06:29 +00:00
Treehugger Robot
d0abc863f4 Merge "Remove unused AIDL files" 2017-12-04 23:35:35 +00:00
Felipe Leme
e9324786a7 New Autofill API: let service set optional header and footer for dataset picker.
Test: atest CtsAutoFillServiceTestCases:FillResponseTest#testBuilder_setAuthentication_illegalState,testBuilder_setHeaderOrFooterInvalid,testBuilder_setHeaderOrFooterAfterAuthentication,testBuilder_build_headerOrFooterWithoutDatasets
Test: atest CtsAutoFillServiceTestCases:LoginActivityTest#testAutoFillOneDataset_withHeader,testAutoFillOneDataset_withFooter,testAutoFillOneDataset_withHeaderAndFooter
Test: atest CtsAutoFillServiceTestCases

Fixes: 69458670

Change-Id: I34be762968ffcad97dbf86898d3f1745bc8d4d64
2017-12-04 14:20:07 -08:00
Julia Reynolds
15f4ac5a94 Merge "Update 'next alarm' tracking" 2017-12-04 20:24:03 +00:00
TreeHugger Robot
3ce82e34e6 Merge "Refactored field detection mechanism to support multiple fields." 2017-12-04 19:46:51 +00:00
Colin Cross
4e1b9c199d Remove unused AIDL files
These files show up in a glob for all AIDL files, but are not listed
in AIDL files to be built, and have no references in codesearch
except for one unused import.

Bug: 70046217
Test: m checkbuild
Change-Id: I7d6a3bb19d2e16b5f09473f3058afcf5b4edd9b6
2017-12-04 11:14:25 -08:00
Julia Reynolds
4b3184366d Update 'next alarm' tracking
Also improves logging and adds tests.

Test: runtest systemui-notification
Bug: 67028535
Bug: 69440234
Change-Id: I259fdc2d253d2a4ac415e23bd66a0b9d7c69b053
2017-12-04 13:19:37 -05:00
Jonathan Basseri
e05afb03c8 Convert ICarrierService to oneway.
Change the carrier config AIDL used by CarrierService to a oneway call.
This is the IPC used to fetch carrier config bundles from carrier apps.
Converting to oneway allows CarrierConfigLoader to be non-blocking while
it fetches config.

Bug: 63176442
Test: runtest carrierconfig-unit & manual
(cherry picked from commit 49b54d64ca)
Merged-in: Iceaf0446321f719011f67897398da7d5998c5fc7
Change-Id: I436f6c920f68f8bbc0fd66a5ff10676ed1529383
2017-12-04 17:56:33 +00:00
Felipe Leme
452886a5b8 Refactored field detection mechanism to support multiple fields.
Now instead of using FillResponse.setFieldDetection() with an object that
contains both the autofill ids an the user data, service must:
- Set global mapping through AutofillService.setUserData()
- Pass just the autofill ids to FillResponse.setFieldClassificationIds()

This CL is purely a refactoring CL - although the new API supports multiple
values and multiple fields, the implementation is still hardcode for one
value and one field (as before).

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases:FillResponseTest

Bug: 68045531

Change-Id: I8d846d817dfcde3a4db7abff798bb2250e1c4e7b
2017-12-04 09:56:06 -08:00
TreeHugger Robot
0d0c397f26 Merge "Changed Dataset.setValue() methods to allow filtering with authentication." 2017-12-01 07:29:06 +00:00
Felipe Leme
bbf8549ad0 Changed Dataset.setValue() methods to allow filtering with authentication.
The Dataset.setValue() methods were created before Datasets supported
RemoteViews as presentation. As such, the service always had to provide a
value for the dataset fields, and the value could not be used for filtering
(otherwise the user could "guess" what that authenticaed values were).

But once Dataset required RemoteViews for presentation, the field values were
not used anymore when the dataset required authentication (in fact, the
setValue() methods accepted null for the value), so now we can always use the
field values for filtering.

Test: atest CtsAutoFillServiceTestCases
Fixes: 69458842

Change-Id: Ia58af8bb946f31c3806c28570b2445870d7ccf0c
2017-11-30 21:31:15 -08:00
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
Felipe Leme
6a2ec5b518 Minor fixes on SaveInfo javadoc.
Test: ran 'mmm -j108 frameworks/base/:doc-comment-check-docs' and checked HTML
Bug: 68402851

Merged-in: I9ba776be77132942d516d23ac69d3ad9f9b3da62
Change-Id: I9ba776be77132942d516d23ac69d3ad9f9b3da62
2017-10-28 00:13:55 +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