Commit Graph

2952 Commits

Author SHA1 Message Date
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
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