Commit Graph

1234 Commits

Author SHA1 Message Date
TreeHugger Robot
895d73105b Merge "Add more IntDef prefixes for auto-documenting." 2017-12-14 07:17:52 +00:00
Jeff Sharkey
ce8db99114 Add more IntDef prefixes for auto-documenting.
Test: builds, boots
Bug: 70177949
Exempt-From-Owner-Approval: annotation-only changes
Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
2017-12-13 20:05:36 -07:00
TreeHugger Robot
d3c1de1aef Merge "Add OWNERS for dreams" 2017-12-13 22:09:55 +00:00
Michael Wright
fee76c4faa Add OWNERS for dreams
Test: N/A
Change-Id: Ie98e9b3626fabd1ea7bbbeccb9f7b05548bd27dd
2017-12-12 14:18:12 +00:00
TreeHugger Robot
1ec1686310 Merge "Some minor Autofill javadoc improvements." 2017-12-08 20:52:30 +00:00
Felipe Leme
d37f53e6f7 Some minor Autofill javadoc improvements.
Test: in Tree Hugger we trust!

Fixes: 70215975
Fixes: 70299456
Fixes: 70299455
Bug: 70388595

Change-Id: I8ab3d76983259830fd90867bd2d7f1e3360b3c4e
2017-12-08 10:02:03 -08:00
Tarandeep Singh
89a6c48a8b Add support for VR InputMethod.
This change adds support for VR-only IMEs in InputMethod framework.
In order to set this VR IME, setVrInputMethod(ComponentName) should be
called by VrManager.

When VrManager calls setVrInputMethod(), IMMS changes updates
the selected input method in a transient way i.e. it doesn't
update the Settings or input history. Once VR mode finishes,
it restores last input from settings.

Bug: 63037786
Test: Manually using the sample app in bug.

Change-Id: I1db7981b5198e7e203d4578cae7e5b6d20037d0d
2017-12-08 00:55:11 +00:00
TreeHugger Robot
33203ffd18 Merge "Display Cutout: Dispatch Cutout from WindowManager" 2017-12-07 20:36:13 +00:00
Adrian Roos
5c6b622328 Display Cutout: Dispatch Cutout from WindowManager
Adds the logic to dispatch a DisplayCutout from DisplayFrames
through WindowState to the View hierarchy. Does however not yet
change how windows are laid out in response to a DisplayCutout.

The display cutout is currently never present, the following CL
will add logic to emulate a display cutout on devices that do
not have a physical one.

Bug: 65689439
Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowFrameTests.java
Change-Id: Ie4cd4b575755b66a7ffead31e28640983ef4894e
2017-12-07 19:43:33 +01:00
TreeHugger Robot
734afbe61e Merge "Moar changes for Autofill Field Classification mechanism:" 2017-12-07 17:35:23 +00:00
TreeHugger Robot
a8b9e2a545 Merge changes from topics "moar_fields", "fc_refactor_score"
* changes:
  Implemented autofill field classification on multiple fields and user data.
  Refactored the FieldsClassification score mechanism.
2017-12-06 23:03:17 +00:00
Felipe Leme
329d04097e Moar changes for Autofill Field Classification mechanism:
- Changed max score to float (range 0.0 - 1.0).
- Replaced getTopMatch() to getMatches().
- Created a Scorer interface with a default edit-distance implementation.
- Added a isFieldClassificationEnabled() method.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:EditDistanceScorerTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest FrameworksCoreTests:SettingsBackupTest

Bug: 68045531

Change-Id: Ice6cbf548053b86b47980d9664a3a21219c0ff08
2017-12-06 13:14:15 -08:00
Beverly
26eba879f2 Change default dnd rules
- Created new DND Sleeping rule
- Weekend and weeknight automatic DND rules are no longer default,
they are considered user-added
- enforceDefaultRulesExist in ZenModeHelper ensures default rules are
always in the DND automatic rule list (especially important on upgrade
from O -> P)

Bug: 63077372
Test: manual
Change-Id: Ie6e89bb5d7b4483c297c142c4c56d03caa9a53e8
2017-12-06 15:40:25 -05:00
Felipe Leme
5672defaa6 Implemented autofill field classification on multiple fields and user data.
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationScorerTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest

Bug: 68045531

Change-Id: Ia9252cb5b84236a76a1419f4a2669b2e933f5177
2017-12-06 11:20:10 -08:00
Felipe Leme
bb6bfea680 Refactored the FieldsClassification score mechanism.
Before, FillEvent.getFieldsClassification() returned a map of remote ids and
scores. Now, it returns a Map of FieldClassication by AutofillId, which allows
multiple fields and scores for multiple user datas (although the initial
implementation supports only the top match for a field).

This is mostly a refactoring CL, as the implementation is still saving just one
user data entry and one field. But full support is coming next...

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationScorerTest

Bug: 68045531

Change-Id: I08b29f24efbd527216f9bce2343e1bcd4b4554c0
2017-12-06 11:20:10 -08:00
Beverly
bf16c14cbf Automatic zen rules are always priority only
- Default automatic rules are priority only
- Existing user-created rules will be changed to priority only
- New user-created rules will always be priority only
- Metrics for new dialogs and zen preference controllers

Test: manual
Bug: 63077372
Change-Id: I8694d10ebdfa67ba96f4936c74eae17b450e32af
2017-12-06 09:28:39 -05:00
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