Commit Graph

2887 Commits

Author SHA1 Message Date
Sergey Volnov
f421bf17fc Allow HotwordDetectionService to obtain ContentCaptureManager.
This would allow pushing data into sandboxed ContentCaptureService.

Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I798b4f525a5707d4c97ae525ed69bd3864cb261d
2021-04-19 14:23:40 +01:00
chaviw
1e16caa255 Update Wallpaper to use BLAST
Test: Wallpaper still works
Bug: 170765639
Change-Id: I97a3f412035e1e2977bdefd2389084a74b568f82
2021-04-15 15:10:07 -05:00
Matt Pietal
6ee6b37c2f Merge "QS Wallet priority placement" into sc-dev 2021-04-13 19:07:08 +00:00
Alex Buynytskyy
2a3eef7ab6 Merge "API feedback with better documentation." into sc-dev 2021-04-13 15:53:20 +00:00
Matt Pietal
cf72270a2e QS Wallet priority placement
If the wallet service is available at all, move the tile into a
priority position so it is easily visible to users.

Fixes: 183024893
Test: atest AutoTileManagerTest WalletControllerImplTest

Change-Id: I8c75dff785555e3ca9d9a68ea3747f4c2fa35188
2021-04-13 11:30:41 -04:00
Chavi Weingarten
ca10b476ea Merge "Remove filtering option for display hash." into sc-dev 2021-04-13 14:31:54 +00:00
Alex Buynytskyy
bdd6f7d521 API feedback with better documentation.
+revert the Incremental installation API to be SystemApi as the corresponding native API is not exposed in the NDK.

Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I466eb6d2f98aed75c22b92877d5e8cb3ddf839bc
2021-04-12 14:37:17 -07:00
zhaojiac
47b9ccdf1c Addresses TODO in ResumeOnRebootService Javadoc
Also add service owners

Change-Id: I7669bbfc3975c164e773b9517dde5e3437b2fc1a
Bug: 184151180
2021-04-12 17:56:41 +00:00
Peter Li
2fa9e7823e Merge "Implement timeout mechanism when HotwordDetectionService initializes" into sc-dev 2021-04-09 04:25:46 +00:00
Santiago Etchebehere
676a66efc0 Merge "Provide access to a mirror of WallpaperEngine SurfaceControl" into sc-dev 2021-04-09 03:16:27 +00:00
Santiago Etchebehere
8a884b22a4 Provide access to a mirror of WallpaperEngine SurfaceControl
Bug: 179127643
Test: manual: tested behavior of wallpaper preview in older
WallpaperPicker apk and new version

Change-Id: I3b66cbdf2198228e990fae6400d019da91bc93c9
2021-04-09 03:14:26 +00:00
Neil Fuller
16e9a9c3a8 Improve / fix docs
This is a docs-only change to improve System API javadocs
(TimeZoneProviderService) and track some command line changes from an
earlier commit (LocationTimeZoneManagerService).

Bug: 175718363
Test: build only
Change-Id: I255cf064d62a0fb4bb54a407877d4ab3d33ec311
2021-04-07 21:25:35 +01:00
lpeter
9c9f5aa6a1 Implement timeout mechanism when HotwordDetectionService initializes
Bug: 183684347
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I77d29491b055ee2a45aa088df4c1cd54e604c259
2021-04-07 12:23:42 +08:00
chaviw
56a3f73f4c Remove filtering option for display hash.
The option for filtering for a display hash isn't really useful since we
always want it to use filtering. Remove the filtering option from
DisplayHashParams

Test: Builds
Fixes: 183238998
Change-Id: I303da1c7c3e0dc96026fd30eb61df0a4f6b34355
2021-04-06 14:43:50 -05:00
Julia Reynolds
47fe65234f Merge "Allow apps to migrate NLS filter settings" into sc-dev 2021-04-05 13:30:57 +00:00
Julia Reynolds
0e36d959d0 Allow apps to migrate NLS filter settings
On a per user vs manifest wide basis.

Test: atest, cts-verifier
Bug: 184027330
Change-Id: Iae591765e410e360f289692bac012a1f26574add
2021-04-02 17:04:58 +00:00
Yi Jiang
48c52c219e Merge "Fixes javadoc in RotationResolutionRequest" into sc-dev 2021-03-31 20:31:05 +00:00
Yi Jiang
1cc42bb371 Fixes javadoc in RotationResolutionRequest
Bug: 182914734
Test: None

Change-Id: Ic1af4033d8555a314214c238894ff01113c7822e
2021-03-31 10:54:40 -07:00
Ahaan Ugale
845e86b61b Merge "Fix HotwordDetectedResult phrase and extras." into sc-dev 2021-03-30 20:41:19 +00:00
Jay Aliomer
3bff4d5edc Merge "Add null checks in wallpaper service" into sc-dev 2021-03-30 19:45:55 +00:00
Jay Aliomer
32e5de029d Add null checks in wallpaper service
Fixes: b/183406113
Fixes: b/183196002
Fixes: b/181557891
Test: WallpaperServiceTest
Change-Id: I62fd71cd99d53ed63ee0a334e1c8daf7f90a4a6b
2021-03-30 19:43:15 +00:00
chaviw
2e605fd668 Add throttling to generateDisplayHash
Calling generateDisplayHash can cause the system to slow down if there
are too many requests. Add throttling logic to prevent apps from calling
the API too frequently. The throttling time is based on a value sent
from ExtServices so it can be adjusted later

Test: DisplayHashManagerTest
Bug: 155825630
Change-Id: Id49d1c4113fc65d7b73a1e7b9fc73f50a8d7041f
2021-03-29 15:54:37 -05:00
lpeter
6f2a263810 Add callback to report HotwordDetectionService status
Bug: 182788844
Test: Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I12f0a265fc4fce0bbfe0983f39b4dcd947e3cf64
2021-03-29 17:41:24 +08:00
Ahaan Ugale
9ea331f06d Fix HotwordDetectedResult phrase and extras.
Requiring hotword phrases to be listed in the manifest is punted to T.
A simple limited phrase ID is used for now.

Use PersistableBundle for the extras so that remotable objects cannot be
passed through it.

Bug: 182788844
Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: builds
Change-Id: I9c1472b586f737788cc10d8dd7e023f348763392
2021-03-28 14:31:24 -07:00
Sergey Volnov
baceb11e71 Introduce the concept of software and external hotword.
Follow-up: implement circular buffer and integrate with the flows.

Bug: 182788844
Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I654a06afb27bb961bfb547a6636e08eb72a031fc
2021-03-26 00:10:44 -07:00
Alex Buynytskyy
f8d0c5584e Merge "Making the rest of Streaming installation API public." into sc-dev 2021-03-25 23:58:06 +00:00
Alex Buynytskyy
8e3eeb507a Making the rest of Streaming installation API public.
Something was left behind when we opened the installation API.

Bug: 152310230
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: Ia2d4c3f3e97c8432fcca094d6e0f4e97dcc048d4
2021-03-25 14:52:33 -07:00
Zimuzo Ezeozue
3244637a97 Merge "Address onAnrDelayStarted API comments" into sc-dev 2021-03-25 19:35:47 +00:00
Zim
308a048787 Address onAnrDelayStarted API comments
Test: m
Bug: 183446229
Change-Id: I433096c9fdc003b777f8a280f13f675a2d7ea8bf
2021-03-25 16:15:36 +00:00
TreeHugger Robot
d5dc9e47a4 Merge "Unhide api for setHotwordDetectionServiceConfig" into sc-dev 2021-03-25 03:49:32 +00:00
Sergey Volnov
f4df342133 Merge "Enhance AlwaysOnHotwordDetector.EventPayload with more fields." into sc-dev 2021-03-24 23:28:11 +00:00
Nikita Dubrovsky
f5386796a8 Merge "Fix debug logcat message in AugmentedAutofillService" into sc-dev 2021-03-24 22:36:20 +00:00
Nikita Dubrovsky
32d4a839bd Fix debug logcat message in AugmentedAutofillService
Bug: 161549032
Test: Presubmit only
Change-Id: I81a2535717ded43a30ffccce5f2bf310ce736f07
2021-03-24 11:02:11 -07:00
Ahaan Ugale
a451a40f95 Add AutofillService#onSavedDatasetsInfoRequest.
System settings will use this to display the number of saved passwords
in each AutofillService available on the device.

The API supports some flexibility to make it easier to support a
different settings UX in the future.

Bug: 169455298
CTS-Coverage-Bug: 183499221
Test: manual - check the result displayed in settings
Change-Id: I13dd2f06dad18cfe8ef5de9b44854e44ac8d7365
2021-03-24 08:27:56 -07:00
Sergey Volnov
a3f9ee62e5 Enhance AlwaysOnHotwordDetector.EventPayload with more fields.
This will eventually support a more flexible information handling:
passing HotwordDetectedResult and audio stream directly from the server.

Bug: 182788844
Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: N/A committing data class, will test e2e
Change-Id: Ie97723c113bced3046a1d2a652a95f94399399be
2021-03-24 08:35:11 +00:00
lpeter
247d69aa7e Unhide api for setHotwordDetectionServiceConfig
We also changed API from setHotwordDetectionServiceConfig
to updateState.

Bug: 182951186
CTS-Coverage-Bug: 183425641
Test: Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I29ed0736f9502d3ac5a29ea26a8386bce7113e54
2021-03-24 16:34:44 +08:00
Ahaan Ugale
8f02ccf5dc Merge "Allow HotwordDetectionService to return HotwordRejectedResult." into sc-dev 2021-03-23 21:58:59 +00:00
TreeHugger Robot
20e5c931b5 Merge "Use the PersistableBundle instead of the Bundle" into sc-dev 2021-03-23 21:42:26 +00:00
Joanne Chung
dd0224162c Add API to get the PendingIntent for translation settings Activity
Bug: 176208267

Test: manual test with sample app
Test: atest CtsTranslationTestCases

Change-Id: I00416cf9cb63d522b9d8a448be3533b89b753aa0
2021-03-23 23:51:46 +08:00
Adam He
476e44e1f9 Merge "Add API for TranslationContext" into sc-dev 2021-03-23 05:12:29 +00:00
lpeter
58f920e023 Use the PersistableBundle instead of the Bundle
It will be more secure to use PersistableBundle
instead of Bundle for passing the configrations
data from VoiceInteractor to HotwordDetectionService.

Bug: 176938300
Test: Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I19a412cca5e2cd5f9f79a112a9d7da8fd3a00a38
2021-03-23 12:32:25 +08:00
Ahaan Ugale
8151b18c52 Allow HotwordDetectionService to return HotwordRejectedResult.
This is simply passed through the system to the AlwaysOnHotwordDetector.

Bug: 182788844
Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: builds
Change-Id: I2b7147b330051d870bfe970e9b5e16aaab52e9bc
2021-03-22 13:48:23 -07:00
Adam He
7c3a6e37a2 Add API for TranslationContext
* TranslationContext holds source/dest specs, replacing spec pairs in
methods.
* TranslationCapability holds information on the translation models, as well
as a helper method to generate a TranslationContext for creating
translators.
* TCapability is meant to hold information about the translation models, and
provide information/flag on what the translator can support, versus the
TContext which will indicate exactly which supported flags should be
used and activated by the models.
* Added TM.getTranslationCapabilities, and add/remove TCapabilityUpdateListener

Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: I2ab7a3eadcbbc9e13f8f33bf9c51cda69f30fdb7
2021-03-22 11:38:50 -07:00
Beverly
8652e483b0 Next alarm is definitive info from clock
Even if the next alarm is further in the future than the alarm on the
ScheduleCalendar, update the next alarm b/c this means that our current
nextAlarm is old info

Test: atest ScheduleCalendarTest
Test: manual
  1. enable DND that ends at alarm
  2. create an alarm that goes off in 5 min
  3. change alarm to go off in 11 min
  4. in the 6 minute difference, notice that DND is still on and didn't
  end earlier than execpted.
Fixes: 181665547
Change-Id: Ieb2fc7269c4a9b1bc109941d16ce191012d338c4
2021-03-22 10:29:54 -04:00
Julia Reynolds
b7eee43f50 Merge "Provide more specific notification cancelation reasons" into sc-dev 2021-03-22 02:08:10 +00:00
Adam He
2e43f72bf1 Merge "Implement TranslationCallback with support for partial responses." into sc-dev 2021-03-21 09:45:33 +00:00
Julia Reynolds
972df6e950 Provide more specific notification cancelation reasons
For S+ apps

Test: CTS
Fixes: 175319604
Change-Id: I836b6632007224381a181add54e3c36a39466d4b
Merged-In: I836b6632007224381a181add54e3c36a39466d4b
2021-03-20 02:05:06 +00:00
Adam He
ff092aae1a Implement TranslationCallback with support for partial responses.
Translator#translate() is also updated to be asynchronous with callback
instead.

Bug: 178651352
Test: atest CtsTranslationTestCases
CTS-Coverage-Bug: 178651352
Change-Id: Ibe1f97994fe6ee593a3a3bbb452c075b49a7eb5a
2021-03-19 14:58:47 -07:00
Nicolò Mazzucato
11bc52ed42 Merge "Always call onHandleAssist with AssistState containing at least activity id" into sc-dev 2021-03-19 13:34:18 +00:00
TreeHugger Robot
4c460aca40 Merge "Defined trigger result structures for positive / negative hotword triggers." into sc-dev 2021-03-19 11:24:29 +00:00