Commit Graph

169 Commits

Author SHA1 Message Date
Beth Thibodeau
610843d123 Merge "Remove AgingHelper code" into qt-dev am: fbc908ab86
am: 8ce3f3fa4b

Change-Id: Ib571aa0d5ff4d93332999fcfa75e1a4965f8a8a7
2019-05-22 04:20:30 -07:00
Beth Thibodeau
06545136ed Merge "Synchronize block in onNotificationPosted" into qt-dev
am: 376830178b

Change-Id: I074da77675a278ce34148d9ded1b923da5cdf759
2019-05-21 21:33:47 -07:00
Beth Thibodeau
5af18c1878 Remove AgingHelper code
Fixes: 132217006
Test: atest ExtServicesUnitTests
Change-Id: I1388fe97aa43aaf8d4eb9339aee5a96a9bf7fbad
2019-05-21 14:29:02 -04:00
Beth Thibodeau
7c72b5e69e Synchronize block in onNotificationPosted
This is the only place in Assistant.java where mkeyToImpressions is not
synchronized

Fixes: 131199823
Test: make, atest ExtServicesUnitTests
Change-Id: I9abc8090d0423761dee9882c3f3459677738a848
2019-05-21 11:21:55 -04:00
Zimuzo Ezeozue
b1b7422068 Merge "Add ExplicitHealthCheckServiceImplTest" into qt-dev
am: ab9c69fda4

Change-Id: Ibecb66d0d1f707d98ae117dd3baad278a0163d0b
2019-05-20 15:27:01 -07:00
Zimuzo
0d70a6ac49 Add ExplicitHealthCheckServiceImplTest
Test: atest
android.ext.services.watchdog.ExplicitHealthCheckServiceImplTest
Bug: 132640467

Change-Id: I2d1820a38adce238a157e925512898c184dadec0
2019-05-19 19:39:29 +01:00
Jaewoong Jung
d98250aeb4 Merge "Convert ExtServices/Android.mk to Android.bp." into qt-dev-plus-aosp 2019-05-10 15:22:53 +00:00
Adam He
8dd691953b Merge "Added test for max distance on editDistance()." into qt-dev
am: 96d29fd8ad

Change-Id: I029ec7ca8ec3ecc549117b5e289ccb37fb724ea0
2019-05-10 00:33:36 -07:00
Jaewoong Jung
0e66f06192 Convert ExtServices/Android.mk to Android.bp.
See build/soong/README.md for more information.

Bug: 122332340
Test: built and flashed on a Pixel device + TreeHugger
Change-Id: Ib239d928fa37ee8286a232b2798d02262e874cbc
2019-05-09 12:46:58 -07:00
Adam He
c7be4205c9 Added test for max distance on editDistance().
Fixes: 132202845
Test: atest android.ext.services.autofill.EditDistanceScorerTest
Change-Id: Ib87e372703c5ce72a09f7974f8477c4022813d9b
2019-05-08 16:03:07 -07:00
Baligh Uddin
0e1a129eca Merge "Update version number to 220000000" into qt-dev
am: ef4808551d

Change-Id: I7296199072205e97c697714e3f8e63a20237532b
2019-05-05 09:50:55 -07:00
Baligh Uddin
ef4808551d Merge "Update version number to 220000000" into qt-dev 2019-05-05 16:35:35 +00:00
Tony Mak
96be4e817d Merge "Cache TextClassificationManager instead of TextClassifier" into qt-dev
am: d7314d7ab3

Change-Id: I0106403c7fd9269ab4b0e3d456f8429f124019a2
2019-05-03 16:51:18 -07:00
Tony Mak
1b959cf219 Cache TextClassificationManager instead of TextClassifier
Calling getTextClassifier() make sure we use the latest set of flags.
This is important as NAS has a very long lifetime.

Test: atest SmartActionsHelperTest

BUG: 131904289
Change-Id: I48e843c074db2e48ffa8187a395ee6d953940654
2019-05-03 17:35:22 +01:00
Julia Reynolds
5a2f69cc35 Lighten SBNs
Drop heavy objects that aren't needed for processing

Test: atest, hprof after change
Fixes: 130434362
Change-Id: I95cd6431736502b36c3aba7a2fe516253e574764
(cherry picked from commit b5f5359916)
2019-05-02 23:57:05 +00:00
Julia Reynolds
85ec837be4 Lighten SBNs
Drop heavy objects that aren't needed for processing

Test: atest, hprof after change
Fixes: 130434362
Change-Id: I95cd6431736502b36c3aba7a2fe516253e574764
Merged-In: I95cd6431736502b36c3aba7a2fe516253e574764
2019-05-01 23:03:47 +00:00
Matt Pape
554e191d4b Merge "Migrate usage of single property lister to multi prop listener." into qt-dev
am: 8e24abad64

Change-Id: Iba8191210ba73eaa42269891bf67cb8bd0cb3c1b
2019-05-01 13:14:37 -07:00
Matt Pape
15769e2ffa Migrate usage of single property lister to multi prop listener.
Test: atest CtsViewTestCases:TextClassificationManagerTest
      atest FrameworksCoreTests:TextClassificationManagerTest
      atest ExtServicesUnitTests:AssistantSettingsTest
      atest SystemUITests:SmartReplyConstantsTest
      atest FrameworksServicesTests:AutofillManagerServiceTest
      atest FrameworksUiServicesTests:NotificationManagerServiceTest
Bug: 128902955
Change-Id: I00e524b615b3bd03b6b40535410ff7eb2ef6f8ee
2019-04-30 16:35:16 +00:00
Julia Reynolds
0a8cafef38 Merge "Revert "Keep a light version of the SBN around"" into qt-dev
am: eb8b30d226

Change-Id: I4910b3525dccb001e48ba4134fda9aaf85a7cbdf
2019-04-29 12:57:31 -07:00
Zimuzo Ezeozue
a9fd8e1ff1 Merge "Change watchdog PackageInfo to PackageConfig" into qt-dev
am: 0f6db7d1dd

Change-Id: I2d0b4cc3c39e9fa204010d0b40b6cd304ca4844a
2019-04-29 12:09:21 -07:00
Akshay
38efbb623d Update version number to 220000000
The Beta 3 builds (which are in dogfood an public beta) will receive modules via the Play Store with version numbers 210000000. Hence, we must bump the version in qt-dev and hence beta 4.

BUG: 131240537
Change-Id: I4f09986002f660896dbc1f8a0482c16b4a554d1e
2019-04-26 17:04:37 -07:00
TreeHugger Robot
eb8b30d226 Merge "Revert "Keep a light version of the SBN around"" into qt-dev 2019-04-25 16:30:25 +00:00
Julia Reynolds
3e4966920d Revert "Keep a light version of the SBN around"
This reverts commit 75a7e2f9e9.

Reason for revert: Turns out this wipes out data we need :(

Change-Id: Id1d79dec17639440eae55e41fb4e91f0d9e6162c
Fixes: 131290765
2019-04-25 13:35:24 +00:00
Zimuzo Ezeozue
0f6db7d1dd Merge "Change watchdog PackageInfo to PackageConfig" into qt-dev 2019-04-25 09:58:52 +00:00
Julia Reynolds
5b6eb23212 Merge "String change" into qt-dev
am: 7def7254ea

Change-Id: Idff6d0923327266053d8f9381b9a2db264fbeaa1
2019-04-24 16:40:38 -07:00
Zimuzo
1a9aac7b33 Change watchdog PackageInfo to PackageConfig
Test: atest PackageWatchdogTest
Bug: 131165818
Change-Id: Ie3a385468a0de05bc55862e6f71513077d44bbc0
2019-04-24 20:44:52 +01:00
Julia Reynolds
e23b36774f String change
Bug: 123899489
Test: make
Change-Id: If9d42711a1442bef57924e5ad01023697edd95ed
2019-04-24 10:06:16 -04:00
Shafik Nassar
54812e81bb Merge "Make Watchdog request timeout flag configurable" into qt-dev
am: 62a176c140

Change-Id: I932f149e106ab536816f9568b1f1c321eb86a728
2019-04-24 06:39:47 -07:00
Shafik Nassar
62a176c140 Merge "Make Watchdog request timeout flag configurable" into qt-dev 2019-04-24 10:39:39 +00:00
Colin Cross
e0bcbdb2bd Merge "Update frameworks tests for truth 0.42" into qt-dev-plus-aosp 2019-04-17 20:09:15 +00:00
Julia Reynolds
57dce7b037 Merge "Keep a light version of the SBN around" into qt-dev 2019-04-17 12:53:42 +00:00
Tony Mak
0bf14e4804 Merge "Split TextClassifierEvent into multiple subclasses" into qt-dev 2019-04-17 10:05:20 +00:00
Julia Reynolds
75a7e2f9e9 Keep a light version of the SBN around
No need to keep bitmaps et al when we aren't using them

Test: hprof before and after change
Fixes: 130434362
Change-Id: Iabe0ee3e8f80dfb165bacfb118a31218c9e58847
2019-04-16 21:41:45 +00:00
Abodunrinwa Toki
6d06337157 Split TextClassifierEvent into multiple subclasses
As per the suggestion from API council, we now have a subclass for event
of each category.

Bug: 129344540

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/
Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/SmartActionsHelperTest.java

Change-Id: Ic43b33c2176447c40e64bd0e410e906d5fb9c4cc
2019-04-16 13:22:25 +01:00
shafik
e3f2ee7bc1 Make Watchdog request timeout flag configurable
Leverage DeviceConfig to configure the following variable:
  * watchdog_request_timeout_millis

Bug: 120598832
Test: Manual testing
Change-Id: I4b2f2f20c387b891a88dd68a0d2368685e675b15
2019-04-15 15:44:49 +01:00
Jan Althaus
8cccf29fbf Always send Adjustment for importance
Without this adjustment, we can't calculate accurate quality metrics for
the NotificationCategorizer.

Test: make, manual
Fixes: 130415410
Change-Id: I12fb792b487e470d333c88032951ea4b47a2554b
2019-04-15 08:19:36 +00:00
Colin Cross
b6cf22daf1 Update frameworks tests for truth 0.42
SubjectFactory has been replaced with Subject.Factory.

Bug: 130435731
Test: m checkbuild
Change-Id: I5ae4009aeeab54518c5169a5cd37948cb056058e
2019-04-12 14:34:58 -07:00
Akshay Thakker
9800d82743 Merge "Update version numbers to 0210000000" into qt-dev 2019-04-10 02:47:48 +00:00
Zimuzo
cd6b11575f Add supported PackageInfo to ExplicitHealthCheckService API
With the change in I4f13638598037acaeb30d61c8d5178f45882fcba
to separate the PackageWatchdog package expiry deadline from the explicit
health check deadline. It would be cleaner for ExtServices to supply
this deadline per-package. We now do that as a field in
PackageInfo.

Bug: 120598832
Test: Builds

Change-Id: I29e2d619a5296716c29893ab3aa2f35f69bfb4d7
2019-04-05 16:05:45 +00:00
Akshay
296acdfb88 Update version numbers to 0210000000
Update version number to 0210000000. The Beta 2 builds (which are in dogfood an public beta) will receive modules via the Play Store with version numbers 0200000000. Hence, we must bump the version in qt-dev and hence beta 3. This is so that prebuilts in the beta 3 OTA will be higher than any Play Store pushes on beta 2. We are bumping it by 10000000 so that we have name space to do intermediate cherrypick builds if needed.

Bug: 129977903
Change-Id: Ibacb2a5a232e1d4491d14e89404c99d50fe314ae
2019-04-04 22:41:12 +00:00
Jeff Hamilton
ad2a94770f Set the version code to 0200000000
Bug: 129093117
Change-Id: I6397511874afb47ba9c034f74ad8f748e50e23b9
2019-03-29 14:25:20 -04:00
Zimuzo
e680d60f32 Implement ExplicitHealthCheckService in ExtServices
If658567ca41bb0328e279735897fc50ab76abc11 added the
ExplicitHealthCheckService API to allow ExtServices to request explicit
health checks for packages and report to the PackageWatchdog.

We now implement this service and add a rudimentary NetworkChecker
that relies on listening to the ConnectivityManager for validated
network requests.

Bug: 120598832
Test: Manually tested that after an APEX update, the network stack
does not pass the explicit health check until WiFi is connected
successfully. If Wi-Fi is never connected and the network stack
monitoring duration is exceeded, the update is rolled back.

Change-Id: Ifa968b4c7107cabedf186dffbc5eb771a3840e7f
2019-03-28 10:14:22 +00:00
Tony Mak
dab427e9e5 Call SmartActionsHelpers in a worker thread
Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/

BUG: 129042820

Change-Id: I395617a36cec4f5d6744a018415bbed225c7f1bc
2019-03-26 18:41:17 +00:00
Tony Mak
dcef8e393b Make adjustNotification working no matter the notification is just
enqueued or already posted

BUG: 129042820

Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/

Change-Id: I5df96b0e971e9b037b3efa9204c3fad3bfcf1081
2019-03-25 13:47:29 +00:00
Tony Mak
9e0dfdce60 Support copy action in ExtServices
1. Implemented CopyCodeActivity to copy the text from the incoming intent
2. Support ConversationAction of type == "copy"

Test: 1. atest SmartActionsHelperTest
      2. Send myself a message "Authentication code: 12345", observe
         the copy action. Tap on it, observe a toast and verify that
         the code is copied

BUG: 126193140
Change-Id: I73ac3b36413fd5f632951b48910c557a22b20c52
2019-03-15 16:56:02 +00:00
TreeHugger Robot
8c50dc11b7 Merge "Use updated DeviceConfig API's new getters to simplify invocations." 2019-03-11 14:12:54 +00:00
Stanislav Zholnin
3353c1161f Use updated DeviceConfig API's new getters to simplify invocations.
Test: atest AssistantSettingsTest
Change-Id: Ia147b184838af0294653947072147f30eb5aece1
2019-03-11 11:14:28 +00:00
Jeff Hamilton
e4e4222463 Merge "Set the minSdk and targetSdk." 2019-03-07 19:17:59 +00:00
Jeff Hamilton
1d4bfed4d3 Set the minSdk and targetSdk.
Bug: 127713324
Change-Id: I77460b0512617fe785472ac5b218c99d0200b255
2019-03-07 00:54:46 -05:00
Julia Reynolds
d0ceefa989 API changes for NAS
- make NAS @SystemApi and guard with permission
- Add missing Nullable/NonNull annotations

Fixes: 126699678
Fixes: 127146476
Test: make, gts
Change-Id: Ie024983f7c440d5b4d3065af031b27958395f2f1
2019-03-06 09:40:36 -05:00