Commit Graph

2916 Commits

Author SHA1 Message Date
Ahaan Ugale
b8144d38cc Merge "Leverage new Audio history sharing for HotwordDetectionService." into sc-dev 2021-04-26 15:22:04 +00:00
Ahaan Ugale
35f28d1bb2 Leverage new Audio history sharing for HotwordDetectionService.
The Audio Framework now supports sharing audio history, so
VoiceInteractionManagerService no longer needs to handle audio streams
itself.
See I5beba6c1e489148a14ba86165b8ef2fdc78c802a.

Bug: 168305377
Test: atest CtsVoiceInteractionTestCases
Test: manual
Change-Id: Ia7c5830aa5af6c015ae26619e0a90967ddff74e5
2021-04-26 07:50:01 +00:00
TreeHugger Robot
efc7e4c0f0 Merge "Add api to propagating translation capability updates." into sc-dev 2021-04-23 00:39:27 +00:00
Adam He
e5c140a59d Add api to propagating translation capability updates.
This change adda the apia in the TranslationService that allows to
update the TranslationCapability to the registered clients. This
change doesn't contain the register part in the TranslationManager,
the change will be done on the next change.

Bug: 176208267
Test: atest CtsTranslationTestCases
Test: manual verification
CTS-Coverage-Bug: 182990474

Change-Id: Iec7b3dc30f99985415162394d0e64d8e825ea5d9
2021-04-22 14:54:21 -07:00
Nikita Dubrovsky
69f6b650ae Merge "Javadoc URI permissions handling on Dataset.setContent" into sc-dev 2021-04-22 00:55:14 +00:00
Sergey Volnov
50fc906521 Create a callback method to invoke when the hotword detector is
restarted.

Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I73076562d822b95b39132cada8bfce904cc231cb
2021-04-21 20:27:46 +01:00
Sergey Volnov
65aed0d0a4 Merge "Ensure updateState() is available for software hotword." into sc-dev 2021-04-21 08:25:41 +00:00
Peter Li
993e1907a6 Merge "Change API names and constants by API review" into sc-dev 2021-04-21 03:20:56 +00:00
Adam He
1c3372f37d Merge "Remove onError from translationResultCallback." into sc-dev 2021-04-21 00:26:34 +00:00
Nikita Dubrovsky
c9c617f88d Javadoc URI permissions handling on Dataset.setContent
Fix: 178715049
Test: Build (javadoc-only change)
Change-Id: Ia5f24520f514ac4862186798d26aaa47d81c94ca
2021-04-20 13:18:13 -07:00
Adam He
9349ad48ce Merge "Allow throwing error on creating translation session (context not supported by service)." into sc-dev 2021-04-20 10:00:42 +00:00
TreeHugger Robot
3346694817 Merge "Add TestApi to trigger the onDetect function of HotwordDetectionService" into sc-dev 2021-04-20 09:23:33 +00:00
TreeHugger Robot
e354625105 Merge "Rename destSpecs to targetSpecs" into sc-dev 2021-04-20 01:21:06 +00:00
lpeter
13d028d884 Change API names and constants by API review
Bug: 179814121
Test: atest FillEventHistoryTest
Test: atest InlineFillEventHistoryTest
Change-Id: Iae9109e57842cda15cc3b11ec3c18e57d6ffea2c
2021-04-20 08:36:30 +08:00
TreeHugger Robot
8b7253d316 Merge "Fix a bug in SpellCheckerService." into sc-dev 2021-04-19 23:04:23 +00:00
Yi Jiang
8d7bd3610a Merge "Renames RotationResolutionRequest#getPackageName()" into sc-dev 2021-04-19 19:22:03 +00:00
TreeHugger Robot
df8de5061e Merge "Allow HotwordDetectionService to obtain ContentCaptureManager." into sc-dev 2021-04-19 17:15:50 +00:00
Chavi Weingarten
8570e52d00 Merge "Updated DisplayHash APIs" into sc-dev 2021-04-19 16:30:45 +00:00
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
lpeter
afef0beebf Add TestApi to trigger the onDetect function of HotwordDetectionService
Bug: 184685043
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I531c1229de908c64e29f1976bd2fd1e70e545853
2021-04-19 14:22:38 +08:00
Alex Buynytskyy
e7339d98df API feedback: make DataLoader API System.
Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I00107102eb2e98004ed0a5db2a318a052ab60220
2021-04-18 15:48:21 +00:00
Sergey Volnov
307f51a17d Ensure updateState() is available for software hotword.
We accidentally missed propagating this method to the interface before
the previous deadline.
Otherwise the change should be trivial and backwards compatible.

Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: Ib85f5264932aeab73ff67a3371f2304d368383ae
2021-04-16 22:23:06 +01:00
Adam He
7ae022ade8 Merge "Add cancellationSignal to the Translator#translate() api." into sc-dev 2021-04-16 20:58:59 +00:00
Qi Wang
2616a431e7 Fix a bug in SpellCheckerService.
Previously, the returned value of WordIterator#following is used without
checking, which will cause fatal error when it's WordIterator.DONE.

Fix: 184915852
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I37418bb36bc49e7dfa729ffb7209a6f383b611dd
2021-04-16 12:48:42 +08: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
Yi Jiang
f2761a61a2 Renames RotationResolutionRequest#getPackageName()
As the API reviewer suggested, change getPackageName() to
getForeGroundPackageName().

Test: m
Bug: 182793543

Change-Id: I40c62d562786b24b0653a32a52445af53dd1ed09
2021-04-14 18:00:56 -07:00
chaviw
10fe18eaf8 Updated DisplayHash APIs
Updated the DisplayHash APIs and docs based on API review

Test: Builds
Bug: 183547053
Bug: 185274179
Change-Id: I23e6491341a3f9cac96c704aa0a93d7d3e8dfebb
2021-04-14 17:24:09 -05:00
Adam He
f00114d03f Allow throwing error on creating translation session (context not
supported by service).

Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: Ib1a6b6ead5428b67fcd6fc911a051a70236cc776
2021-04-13 14:26:48 -07: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
Adam He
aabd98f354 Add cancellationSignal to the Translator#translate() api.
Bug: 176208267
Bug: 183605243
Test: atest CtsTranslationTestCases
Change-Id: I974ef773dac360d04ee3a67f63e0ffb95ee7bafc
2021-04-08 15:38:43 -07: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
Adam He
1e847ef06d Rename destSpecs to targetSpecs
Bug: 183065009
Test: atest CtsTranslationTestCases
Change-Id: I25e00fd4d7ec4df8fd383d4f82e4890d6b4d11fe
2021-04-01 13:37:35 -07:00
Adam He
7e6f9ea49b Remove onError from translationResultCallback.
*onError is not needed, error code is embedded in the
TranslationResponse itself.

Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: I67f42ae900cbac1d697de7ecae1bbffabd921c4a
2021-03-31 17:55:28 -07: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