Sergey Volnov
4dea0b1cdc
Merge "HotwordDetectionService: Remove deprecated-at-birth APIs." into sc-dev am: 3cff27f756 am: 83b5743901 am: 4b0f200517
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676746
Change-Id: I05e5df0741b9155da61d73e9bea5697a20c59048
2021-05-24 11:56:11 +00:00
Sergey Volnov
4b0f200517
Merge "HotwordDetectionService: Remove deprecated-at-birth APIs." into sc-dev am: 3cff27f756 am: 83b5743901
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676746
Change-Id: I09f46a1c0d18090c99548267f7626f00f33c17d2
2021-05-24 11:33:18 +00:00
Sergey Volnov
3cff27f756
Merge "HotwordDetectionService: Remove deprecated-at-birth APIs." into sc-dev
2021-05-24 08:48:07 +00:00
Ahaan Ugale
d2008eef63
Merge "Adjust HotwordDetectedResult with up-to-date information." into sc-dev am: fb45d8ed94 am: 6d8667355c am: ae22636292
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14666659
Change-Id: Ic1b82497fb312bd6f7b19479fb70564e56f991e9
2021-05-22 00:47:11 +00:00
Ahaan Ugale
ae22636292
Merge "Adjust HotwordDetectedResult with up-to-date information." into sc-dev am: fb45d8ed94 am: 6d8667355c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14666659
Change-Id: I03a31fc2436ee3b9a61a4f063bafd613eb871f0a
2021-05-22 00:33:16 +00: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
fbb73c1d7c
Merge "Soft remove deprecated translation apis." into sc-dev am: cc0987b12a am: d0922047d0 am: 2494782a3c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14606780
Change-Id: I61414a3eb757f8fa7e49450011ce16f662e9dbaa
2021-05-21 09:01:32 +00:00
TreeHugger Robot
d0922047d0
Merge "Soft remove deprecated translation apis." into sc-dev am: cc0987b12a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14606780
Change-Id: I156df433e5e47061213caa273c3cbc7a7c5734e6
2021-05-21 08:47:40 +00: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
e7e7374c5c
Merge "Deprecate Context#createApplicationContext" into sc-dev am: ee438f960a am: d95a9ebbfb am: 891659ba75
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14528644
Change-Id: I396eb97e5b36556757caf269b0e565459c62828b
2021-05-20 04:17:25 +00: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
8af24bc17c
Merge "Show sensor usage dialog for assistant" into sc-dev am: 49f6ccf69e am: bc1e5930ee
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442497
Change-Id: Ib6df20c1711930e06e215e316303a49dfb86e743
2021-05-20 00:21:34 +00:00
chaviw
e836493e28
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
(cherry picked from commit 566d81d802 )
2021-05-19 13:09:11 -07: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
ec7dc2538b
Merge "Wallet - Listen for setting changes" into sc-dev am: 989ea6ebda
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14487716
Change-Id: Ibb4c1530ec76e39a1c355b50765051470670cd57
2021-05-14 13:27:46 +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
7cfce2661f
Merge "Remove onTranslationResultCallback and use a Consumer instead." into sc-dev am: a3c4e2ecc1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14522703
Change-Id: I54fefd3632bdd0dfa04a014c1c8ae283e3ea9e04
2021-05-13 19:01:06 +00: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
57b91178d0
Merge "API review : use a range of numbers for OEM errors" into sc-dev am: c0f1de7c5c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14501937
Change-Id: I983597134f7e278879f76a1cb9aa8c54757328ce
2021-05-13 18:20:58 +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
f8bee18919
Merge "Nullability fixes for HotwordDetectionService APIs." into sc-dev am: f60fbc10b5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14490409
Change-Id: I0d0dd72e485045f5d1c5c1580f62c679b895a722
2021-05-12 22:21:20 +00: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
212067e56b
Merge "Fix non-visual Context in ImageWallpaper" into sc-dev am: 6e2b80c046
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14483697
Change-Id: I0d6af632fab49aeaf16aa6b1c1a4442608873df5
2021-05-12 06:03:11 +00:00
Chris Li
6e2b80c046
Merge "Fix non-visual Context in ImageWallpaper" into sc-dev
2021-05-12 06:00:13 +00:00
TreeHugger Robot
d13482ae4c
Merge "Use binder thread instead of main thread in HotwordDetectionService" into sc-dev am: e8ce892093
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14484648
Change-Id: I0fa5320deffdce8a1610344361031b8b89f009a6
2021-05-11 08:26:24 +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
88a6bc0807
Merge "Allow NLS metadata fields to use name strings" into sc-dev am: c96669eac2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14470461
Change-Id: I343774c4f82ffe216e1c77f453190a9f3d813c25
2021-05-10 16:02:20 +00: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
ce138216bf
Merge "hotword: Fix inconsistent @NonNull and API comment" into sc-dev am: 250374368b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424463
Change-Id: Ib028d4469e1ee61a0adc097c28755a402327ecdd
2021-05-05 15:18:07 +00: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
9804b8209a
Merge "Add the javadoc for HotwordDetectionService" into sc-dev am: 4a247f9186
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326782
Change-Id: I78835c6e5d266bbae756e0f8c7773928301ec30b
2021-05-03 06:53:34 +00: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
88a5f8bdcb
Merge "Adds expirations for remote callbacks" into sc-dev am: 73d3172e96
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14362743
Change-Id: Ic9f0dd4a3a96577e63b0905149108c446bbca4ba
2021-04-30 20:49:22 +00:00
Yi Jiang
73d3172e96
Merge "Adds expirations for remote callbacks" into sc-dev
2021-04-30 20:33:03 +00:00