Commit Graph

1395 Commits

Author SHA1 Message Date
Beverly Tai
1bbf283483 Merge "Update dnd settings summary" into pi-dev am: 8ecf40491b
am: 6fb1b0ba25

Change-Id: I0070ca70cc90c3177ea3b45c587f1c78d556537a
2018-04-09 13:18:04 -07:00
Beverly Tai
8ecf40491b Merge "Update dnd settings summary" into pi-dev 2018-04-09 19:54:24 +00:00
Beverly
ebcaeeb792 Update dnd settings summary
- Add null check for ZenModeConfig
- Add ability to include description for indefinite dnd

Test: manual, DndConditionTest, ZenModeSettingsTest
Bug: 76208187
Bug: 77704156
Change-Id: I88de555d2681e613dbcd7694087efef2504b4d51
2018-04-06 14:26:03 -04:00
Selim Cinek
108ebd0c4d Merge "Migrated the Person class to its own file" into pi-dev am: cecec7bf5b
am: b1226660f6

Change-Id: I1066f90cf4a5a415dcf35abd9e27fea02073faf4
2018-04-06 09:37:58 -07:00
Selim Cinek
9acd673c0d Migrated the Person class to its own file
Because we are expecting usage of Person across
other surfaces, we migrate the class out
of he Notification class which is already incredibly
huge.

Test: Migrated existing cts test
Change-Id: Ia487ae7965b5ca2b016245d21faa63e3b4628344
Fixes: 75980526
2018-04-05 17:21:11 -07:00
Jan Althaus
ac272dcc4c Merge "Makes TCS methods non-abstract" into pi-dev am: 37317e1668
am: d5cc6a8289

Change-Id: I954f9bd4c150027fbaec036fa9dc1892c9a0daba
2018-04-05 11:03:54 -07:00
Jan Althaus
37317e1668 Merge "Makes TCS methods non-abstract" into pi-dev 2018-04-05 16:53:17 +00:00
Jan Althaus
39ccc7e388 Makes TCS methods non-abstract
This only affects System API

Bug: 77563695
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTestBug:
Change-Id: Ie927ffe3a4678b7a622c139a5431b89e8f22c6e4
2018-04-05 17:26:03 +02:00
Abodunrinwa Toki
15b037367c Merge "Fix TCS crash due to API changes." into pi-dev am: d6997b05e0
am: b3f39bfd55

Change-Id: I3d365ffe5efed4b0d7133fe0e03fd326dbf25b64
2018-04-04 14:41:55 -07:00
Abodunrinwa Toki
ae82e7ad28 Fix TCS crash due to API changes.
- Brings by old deleted APIs and hides them
- Except parceling and hidden APIs that won't have been called anyway
- Option holds a reference to the Request object so we don't have to
  rebuild it

Bug: 77523413
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTest
Change-Id: I4277c48a950c3334439649373885ed7fe54f898e
2018-04-04 14:10:51 +02:00
Abodunrinwa Toki
dd5bc6f127 Merge "Merge "TextClassifier API updates." into pi-dev am: bf9dfb16be" into pi-dev-plus-aosp
am: 008a5d01af

Change-Id: I4efb43ab74ac98244c6f4145855a75480e2c85b0
2018-04-02 22:20:45 +00:00
TreeHugger Robot
bf9dfb16be Merge "TextClassifier API updates." into pi-dev 2018-04-02 09:08:52 +00:00
Abodunrinwa Toki
080c8542b6 TextClassifier API updates.
1. Wraps TC queries in Request objects
2. Adds create/destroyTextClassificationSession system APIs
3. Adds the session Ids to system API calls
4. Change setSignature() to setId() on result objects
5. Plumbing to make the API updates work as things currently work
6. Hide Linkify.addLinksAsync APIs

Bug: 74461129

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTest

Change-Id: I933ada8b37ef9893331a265e3b4fc08e043f1029
2018-04-01 20:04:47 +01:00
Beverly
6bcab1a32a Merge "Don't exit dnd rule for old alarms" into pi-dev am: df3788dcd8
am: 77bd7d6657

Change-Id: I579d382e1eb17c6da750d2e26da0cbce7f1dc368
2018-03-30 18:17:00 +00:00
TreeHugger Robot
df3788dcd8 Merge "Don't exit dnd rule for old alarms" into pi-dev 2018-03-30 13:16:46 +00:00
Felipe Leme
c5f19bc0fd Merge "Minor javadoc fixes." into pi-dev am: 46e83ebf27
am: 74a95763db

Change-Id: I6b973b04046b6ad35a9bba35f69c82d6ef9c6951
2018-03-30 02:00:34 +00:00
Felipe Leme
12aef85270 Merge "Fixed annotation typo." into pi-dev am: 74896e21a7
am: e4c2d3c5ce

Change-Id: Ib098e9eb01551c303ccb9c4ddc3c2ab70c769010
2018-03-29 23:58:48 +00:00
TreeHugger Robot
46e83ebf27 Merge "Minor javadoc fixes." into pi-dev 2018-03-29 23:11:32 +00:00
Beverly
369dd4257c Don't exit dnd rule for old alarms
Bug: 77209521
Test: atest ScheduleCalendarTest
Change-Id: I394a6a74872f76f90b75238593197bb6c50531ef
2018-03-29 18:14:04 -04:00
TreeHugger Robot
74896e21a7 Merge "Fixed annotation typo." into pi-dev 2018-03-29 21:43:14 +00:00
Felipe Leme
8ce43a5e70 Minor javadoc fixes.
Test: echo 'In TH we trust!'
Bug: 74830976

Change-Id: Ib88fc0b0275e87ea31d22759507b4c29c7849c05
2018-03-29 13:02:09 -07:00
Felipe Leme
ea53501e72 Merge "Improved documentation of AutofillFieldClassificationService.onGetScores()" into pi-dev am: 7516514148
am: 523388559a

Change-Id: Iaeb0422f305956efa1843eaa18b0429ecbadc320
2018-03-29 19:42:09 +00:00
Felipe Leme
7cdba9fcf0 Fixed annotation typo.
Bug: 73648631
Test: not really

Change-Id: I4a10642f05e28e5e324ca5b40e50a29138f49b8b
2018-03-29 12:31:09 -07:00
Felipe Leme
20d30e5226 Improved documentation of AutofillFieldClassificationService.onGetScores()
Test: echo 'In TH we trust!'

Fixes: 74830976

Change-Id: Ia1c002fa3b340810789b9cca9d7c4b71ea083230
2018-03-28 14:30:19 -07:00
Felipe Leme
d3d26f04aa Merge "Fixed AutofillServiceHelper.assertValid() so it throws the right exception." into pi-dev am: 0049ec1410
am: abd29040bb

Change-Id: I33538ef226c81fc380fb21f198353f1cde86bfd3
2018-03-24 02:51:01 +00:00
Felipe Leme
ec150609e4 Fixed AutofillServiceHelper.assertValid() so it throws the right exception.
Test: atest FillResponseTest SaveInfoTest
Bug: 76097200

Change-Id: Id643007e2d038cc6948cdb8d66c5454048d5f632
2018-03-23 14:09:02 -07:00
Felipe Leme
5b5e50d987 Merge "Improved autofill logging and dumping." into pi-dev am: 63df4e248a
am: c39b648a80

Change-Id: Ifc409bae7d1e8b1c6d2f84be9c1ca7bef308966f
2018-03-23 07:28:21 +00:00
Felipe Leme
63df4e248a Merge "Improved autofill logging and dumping." into pi-dev 2018-03-23 05:48:26 +00:00
Felipe Leme
9518f6f957 Merge "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode." into pi-dev am: 0cdac33f8f
am: 307af3b7d2

Change-Id: I6a221dc1adc0d03bcfcae65dcebd532d412367a4
2018-03-23 04:40:30 +00:00
Felipe Leme
a8ef3b7a1e Merge "Removed urlBarResourceId." into pi-dev am: 3a31f6c5cc
am: e40a0838ba

Change-Id: I13688d0b8ce95910eae74e814030b78e28054be8
2018-03-23 01:38:29 +00:00
Felipe Leme
0cdac33f8f Merge "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode." into pi-dev 2018-03-23 01:05:29 +00:00
Felipe Leme
da9ea34c02 Improved autofill logging and dumping.
Bug: 76027553
Test: adb shell dumpsys autofill

Change-Id: I19ef88c71334c62292ed982e43d7a7e89b35f10e
2018-03-22 16:43:28 -07:00
TreeHugger Robot
3a31f6c5cc Merge "Removed urlBarResourceId." into pi-dev 2018-03-22 22:22:30 +00:00
Felipe Leme
4f74a018c8 Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode.
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Bug: 76027553

Change-Id: I432b4321801ca90a55a24e5e896578d5b2d63014
2018-03-22 13:30:59 -07:00
Felipe Leme
6f7a3565e3 Merge "Don't allow null ids on FillResponse.Builder.setAuthentication()" into pi-dev am: de6dfd93e5
am: a14992b585

Change-Id: I00f8979ad1a686413b34a4d1f150a467949c55bc
2018-03-22 18:48:27 +00:00
Felipe Leme
88b745cce3 Removed urlBarResourceId.
It will be removed before the final P build.

Test: atest FrameworksServicesTests:AutofillManagerServiceTest CtsAutoFillServiceTestCases
Fixes: 74445943

Change-Id: I9bc243a3c1ae78f2c385dbb907d362d8ab16b34c
2018-03-22 11:44:06 -07:00
Felipe Leme
f667366709 Merge "Fixed autofill service metadata name on javadoc sample." into pi-dev am: b030730aa8
am: 949d293ed2

Change-Id: I3554d6033b19a0139b7d8f3a680be68d8b900d59
2018-03-22 18:37:16 +00:00
Felipe Leme
de6dfd93e5 Merge "Don't allow null ids on FillResponse.Builder.setAuthentication()" into pi-dev 2018-03-22 17:36:18 +00:00
Felipe Leme
df0b0d380d Fixed autofill service metadata name on javadoc sample.
Bug: 72811034
Test: nope

Change-Id: I0367fa6ad1fa21c51dadb9706830bc50c3139cab
2018-03-22 08:40:52 -07:00
Felipe Leme
2596089146 Don't allow null ids on FillResponse.Builder.setAuthentication()
It would crash the system when save is invoked.

The issue was reproduced by passing a null id on
AuthenticationTest#testFillResponseAuthServiceHasNoDataButCanSave , but that
change was not committed because with the fix the builder would throw an
exception.

Test: atest CtsAutoFillServiceTestCases:FillResponseTest

Fixes: 76097200

Change-Id: Ifa8105ee1451ba7107082a94a538a8f84f50df18
2018-03-21 14:13:17 -07:00
Beverly
c89adbd1aa Merge "Ability to hide/unhide suspended app notifications" into pi-dev am: 6c0f42b3b5
am: de3719dffe

Change-Id: I60893e37fba9da2e6f567baca6a57afebd910e8a
2018-03-21 05:44:50 +00:00
Hongwei Wang
b3effd2888 Merge "Check if the given user is unlocked when unlock by token" into pi-dev am: 764f123b97
am: d559bd176e

Change-Id: Ibd88426965b032c177d183f958e25c5649342ef3
2018-03-21 05:03:20 +00:00
TreeHugger Robot
6c0f42b3b5 Merge "Ability to hide/unhide suspended app notifications" into pi-dev 2018-03-20 23:38:36 +00:00
TreeHugger Robot
764f123b97 Merge "Check if the given user is unlocked when unlock by token" into pi-dev 2018-03-20 23:36:37 +00:00
Beverly
5a20a5ed2f Ability to hide/unhide suspended app notifications
Test: NotificationListenerVerifierActivity.java
Test: atest NotificationDataTest NotificationListenerServiceTest NotificationManagerServiceTest
Bug: 73965645
Change-Id: I49a02e9fd84dfaa1891437a5d8fc52109a43cded
2018-03-20 17:40:36 -04:00
Beverly
ae4ec208ab Merge "Auto zen rules reset for some upgrading users" into pi-dev am: 8cf1ae4928
am: 41651c75cf

Change-Id: I2a812c0d318ef5ad074d2cff4ba7217548f956e5
2018-03-20 18:05:37 +00:00
Hongwei Wang
bab773d23f Check if the given user is unlocked when unlock by token
Bug: 76010226
Test: None

Change-Id: I2ceea0f185c5e54a9c2a529a9cf8db78587c4072
2018-03-20 09:55:31 -07:00
TreeHugger Robot
8cf1ae4928 Merge "Auto zen rules reset for some upgrading users" into pi-dev 2018-03-20 16:51:10 +00:00
Beverly
4e2f76c3ef Auto zen rules reset for some upgrading users
Automatic zen rules will be set to the undeletable,
default rules for for fresh P devices and for upgrading users
who didn't have any zen automatic rules enabled on upgrade

Bug: 74381638
Test: atest ZenModeHelperTest
Change-Id: Icfa7dfe6c99cb9d67821df0034d5e9a3457b2ef4
2018-03-20 09:31:29 -04:00
Felipe Leme
506954cd9e Merge "Cosmetic changes on Field Classification TODOs and docs." into pi-dev am: a96583edf6
am: 237773621d

Change-Id: I1a959ebe36328ceafc57dfdc821877841af89e14
2018-03-19 21:53:00 +00:00