Commit Graph

2964 Commits

Author SHA1 Message Date
Shashwat Razdan
96b300dbc0 Merge "Removing logspam from SmartspaceService" into sc-dev 2021-06-02 03:53:33 +00:00
Shashwat Razdan
c539aa5c15 Removing logspam from SmartspaceService
Test: CTS tests
Bug: 189885848
Change-Id: I6c9ec07ee659df781e5230a8641c3aa0d7ddd210
2021-06-02 00:09:49 +00:00
Sergey Volnov
76660ef721 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev 2021-05-25 21:41:58 +00:00
Ahaan Ugale
31f241cc63 Hotword: Add onStopDetection() for software detectors.
For DSP-based detection, stopRecognition() disables detection at the
sound trigger layer. For software detection, the HotwordDetectionService
must be notified so it can stop detection.

Bug: 189236104
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I220d2255e5e500c22723f6e2fbc34860a529f216
2021-05-25 18:59:29 +00:00
Sergey Volnov
a0906a1759 Make builder public for HotwordRejectedResult.
This is the P0 feature we found 10 minutes ago from the client team:
there is currently no way to create HotwordRejectedResult.

Bug: 189189762
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I6260a43dda89ba812ac1a6d6b5486145d6777f84
2021-05-25 18:30:41 +00:00
Sergey Volnov
8d488e7fa0 Address API council feedback:
s/isPersonalizedHotwordDetection/isHotwordDetectionPersonalized/.

Bug: 189189762
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: Ibd39eb95c9e3066e251288f9b2dc3c8278f2b1d6
2021-05-25 12:58:04 +01:00
Adam He
102dd28dd0 Merge "Make APIs abstract once AiAi has implemented them." into sc-dev 2021-05-24 21:06:16 +00:00
Sergey Volnov
3cff27f756 Merge "HotwordDetectionService: Remove deprecated-at-birth APIs." into sc-dev 2021-05-24 08:48:07 +00:00
Adam He
a5db52f9ed Make APIs abstract once AiAi has implemented them.
Bug: 187871949
Test: atest CtsTranslationTestCases
Change-Id: I2f332d7ed2b952f193d2b6df4a034c79035a71fd
2021-05-21 18:32:13 -07:00
Ahaan Ugale
fb45d8ed94 Merge "Adjust HotwordDetectedResult with up-to-date information." into sc-dev 2021-05-22 00:11:26 +00:00
Sergey Volnov
966917e513 Adjust HotwordDetectedResult with up-to-date information.
Asked for API exception in b/168305377#comment49.

Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: atest CtsVoiceInteractionTestCases
Change-Id: I50c39c430950f21950210feffc287203b49780c6
2021-05-21 14:08:00 -07:00
Ahaan Ugale
8ed012f320 HotwordDetectionService: Remove deprecated-at-birth APIs.
Fix: 182788844
Test: atest CtsVoiceInteractionTestCases
Change-Id: I9050c110702f5785410e2fb847e239ce041eb9e6
2021-05-21 09:52:41 -07:00
TreeHugger Robot
cc0987b12a Merge "Soft remove deprecated translation apis." into sc-dev 2021-05-21 08:39:35 +00:00
Adam He
6ebd5b236d Soft remove deprecated translation apis.
Bug: 186475868
Test: atest CtsTranslationTestCases
Change-Id: I87395052e9e5574f4ba11652c484cedec95c0cfb
2021-05-20 18:14:56 -07:00
TreeHugger Robot
214e26eced Merge changes from topic "revert-13738532-client_suggestions_fillrequest-sc-dev-EQZRQWLQUO" into sc-dev
* changes:
  [DO NOT MERGE] Remove the Client Suggestions APIs
  [DO NOT MERGE] Remove Client suggestions implementations
2021-05-20 01:23:24 +00:00
TreeHugger Robot
ee438f960a Merge "Deprecate Context#createApplicationContext" into sc-dev 2021-05-19 15:35:09 +00:00
TYM Tsai
94a825887b [DO NOT MERGE] Remove the Client Suggestions APIs
Bug: 188618287
Test: atest CtsAutoFillServiceTestCases
Change-Id: I178e0443278383120d9e6e3321ec96be8e5705c1
2021-05-19 23:24:32 +08:00
Evan Severson
11b564feb1 Show sensor usage dialog for assistant
The problem is that the assistant doesn't draw its own
UI in some cases so even though it's in the background the user
considers it as a foreground app. We can check if the app trying to
access the microphone currently has a voice interaction session which
should be a good indicator that the user intends to user the app.

Test: Use the assistant, observe dialog
Bug: 178243539
Change-Id: Ie17f6e47a002e75467cce23fd74f5fcbc92aa577
2021-05-18 14:02:04 -07:00
Ryan Mitchell
c54ebba25b Deprecate Context#createApplicationContext
If an application caches an ApplicationInfo and uses it to call
Context#createApplicationContext, the app will not get the most recent
version of the overlays for that application. To make things worse, the
LoadedApk stored in ActivityThread#mResourcePackages is updated using
the old ApplicationInfo causing further uses of the cached LoadedApk to
return outdated information.

Deprecate Context#createApplicationContext, convert all internal uses
to Context#createPackageContext(String packageName, ...) and log
whenever any one calls Context#createApplicationContext with an
outdated ApplicationInfo to detect debug issues in using old infos.

Bug: 188059515
Test: change wallpaper and observe widgets get reloaded with most
      recent overlays
Change-Id: I2aeefa8c0e66264859109975a54c4f73f76ad710
2021-05-18 09:07:58 -07:00
Chavi Weingarten
6ebcfff707 Merge "Add getter to retrieve interval between requests." into sc-dev 2021-05-18 15:02:06 +00:00
Matt Pietal
989ea6ebda Merge "Wallet - Listen for setting changes" into sc-dev 2021-05-14 13:24:28 +00:00
chaviw
566d81d802 Add getter to retrieve interval between requests.
Added a getter instead of getting the interval between requests data
from the xml file. This was in response to API council feedback

Test: DisplayHashManagerTest
Fixes: 184890915
Change-Id: I8f903cada26b6fc4cd8c12a5c97089705bc821e3
2021-05-13 14:20:03 -05:00
TreeHugger Robot
a3c4e2ecc1 Merge "Remove onTranslationResultCallback and use a Consumer instead." into sc-dev 2021-05-13 18:51:17 +00:00
TreeHugger Robot
c0f1de7c5c Merge "API review : use a range of numbers for OEM errors" into sc-dev 2021-05-13 18:17:52 +00:00
Matt Pietal
8cf1abfd16 Wallet - Listen for setting changes
Quick access wallet settings has moved, and need to listen to the
changes in order to show the affordance on the lockscreen.

Fixes: 183025745
Test: atest NotificationPanelViewControllerTest
Change-Id: I711b51a7ed10c4d95e4aa6bc4fc7273657c06c8e
2021-05-13 13:08:50 -04:00
Adam He
bddf9536c7 Remove onTranslationResultCallback and use a Consumer instead.
* Deprecated old apis, changed private class CallbackWrapper to
implement consumer instead.

Fixes: 187872807
Test: atest CtsTranslationTestCases
Change-Id: Ie70ad2166a72ec34947266a137d0c382ffb35575
2021-05-12 17:09:53 -07:00
Ahaan Ugale
f60fbc10b5 Merge "Nullability fixes for HotwordDetectionService APIs." into sc-dev 2021-05-12 21:56:54 +00:00
Ahaan Ugale
d579a8ee6e Nullability fixes for HotwordDetectionService APIs.
* Make the Hotword*Result payloads NonNull. HotwordDetectedResult on the
  VoiceInteraction side is still @Nullable since the EventPayload is
  used for other result types too.
* Remove @NonNull for a primitive return type.

Bug: 184962614
Test: atest CtsVoiceInteractionTestCases
Change-Id: Ib57368dab442f80805233864dc8fd86249f677cf
2021-05-12 13:06:31 -07:00
lpeter
f79009a5d7 API review : use a range of numbers for OEM errors
By API review feedback, it would be better to use a range
of numbers for OEM errors instead of just defining
CUSTOM_ERROR_1 / CUSTOM_ERROR_2 in HotwordDetectionService.

Bug: 184962614
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: Id1e3a29e37ef566a1d8e30c703b7f2c4ae138f82
2021-05-12 17:39:00 +08:00
Chris Li
6e2b80c046 Merge "Fix non-visual Context in ImageWallpaper" into sc-dev 2021-05-12 06:00:13 +00:00
TreeHugger Robot
e8ce892093 Merge "Use binder thread instead of main thread in HotwordDetectionService" into sc-dev 2021-05-11 07:50:29 +00:00
lpeter
e0fafd2146 Use binder thread instead of main thread in HotwordDetectionService
Bug: 180945857
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: Ib3424b49eb3ae15dbddf6126ae296bcaf7d6b73b
2021-05-11 13:46:43 +08:00
Chris Li
4cb2859e93 Fix non-visual Context in ImageWallpaper
Before, it tried to access WindowManager from a non-visual context. Now,
it should use a window context.

Bug: 187644235
Test: manual
Change-Id: I3994d7b86fd28598d375c1c8033d72bbc9a9fdcf
2021-05-10 12:08:32 -07:00
Julia Reynolds
910dff6136 Allow NLS metadata fields to use name strings
Instead of just numbers

Test: atest, CTS Verifier
Fixes: 181175697
Change-Id: I677d1cfa47bb55a94b3c153453447477c66f99bd
2021-05-07 14:32:44 -04:00
Andrea Ambu
250374368b Merge "hotword: Fix inconsistent @NonNull and API comment" into sc-dev 2021-05-05 14:54:02 +00:00
Andrea Ambu
c3f72bcf3d hotword: Fix inconsistent @NonNull and API comment
- setMediaSyncEvent does not need to accept any @Nullable param.
- getMediaSyncEvent return @Nullable.

This CL manually define the getter to allow for the @Nullable/@NotNull
and doc asymmetry.

Bug: 186469575
Fix: 186469575
Test: CtsVoiceInteractionTestCases
Change-Id: Icc0b6282e6ee13c8fcaa7dea763a39c430e66644
2021-05-05 10:24:51 +01:00
TreeHugger Robot
4a247f9186 Merge "Add the javadoc for HotwordDetectionService" into sc-dev 2021-05-03 06:40:04 +00:00
lpeter
8fbe605e1a Add the javadoc for HotwordDetectionService
Bug: 180945857
Test: Build
Change-Id: I42bb01949ec019da80077eeaf96c63b2c94f70a5
2021-05-03 11:48:37 +08:00
Yi Jiang
73d3172e96 Merge "Adds expirations for remote callbacks" into sc-dev 2021-04-30 20:33:03 +00:00
Yi Jiang
bd4a600225 Adds expirations for remote callbacks
Right now there is no timeout/expiration in the remote service. In cases
that the implementer of Rotation Resolver Service doesn't call back
and the pending callback blocks the following requests, we should
add an expiration of the pending callback in the remote service.

Bug: 186674250
Test: Manually tested the feature

Change-Id: I82f08155243e2205a2c95ae39c71c3118e9249ec
2021-04-29 18:05:04 -07:00
Hyunyoung Song
ce5f5faab8 Merge "API council review for SearchUiManager" into sc-dev 2021-04-29 15:52:12 +00:00
Chavi Weingarten
89e0e3fb07 Merge "Updated DisplayHash APIs" into sc-dev 2021-04-29 15:31:20 +00:00
Hyunyoung Song
1717e02ea6 API council review for SearchUiManager
Bug: 184265048
Test: atest CtsSearchUiServiceTestCases

Change-Id: Ib4dd0d3b29438418d4deb31e999a076e5eeff484
2021-04-28 20:57:11 -07:00
chaviw
286642aecd Updated DisplayHash APIs
Test: DisplayHashingServiceImplTest
Test: DisplayHashManagerTest
Fixes: 185274179
Fixes: 185940192
Change-Id: I8562fc8f0f3b53d41214a80168be5d14b9eb4c10
2021-04-28 17:43:03 -05:00
Yi Jiang
424b267ef9 Merge "Cleans up lagecy annotations" into sc-dev 2021-04-28 21:15:18 +00:00
Yi Jiang
c9be3d120f Cleans up lagecy annotations
Bug: 175334753
Test: None
Change-Id: Id8d60e7bd282a4efcea4eebd4de536e3c4cd63fc
2021-04-27 13:23:18 -07:00
TreeHugger Robot
49b78296ed Merge "Fix wallpaper scaling issues" into sc-dev 2021-04-27 15:13:31 +00:00
Vishnu Nair
44e44a7353 Fix wallpaper scaling issues
BlastBufferQueue adapter will modify the passed in SurfaceControl
properties. This conflicts with updates from the Wallpaper service. To
fix this, create a wrapper layer for the wallpaper BlastBufferQueue.

Fixes: 185561343
Test: rotate wallpaper, confirm wallpaper is scaled correctly

Change-Id: Ie0057652d72e07f811c22afc97e7417cda94bb2d
2021-04-26 16:54:00 -07:00
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