Commit Graph

3025 Commits

Author SHA1 Message Date
Shashwat Razdan
8961980efa Merge "Removing logspam from SmartspaceService" into sc-dev am: 96b300dbc0 am: 1987db0f60 am: dcc16b34f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14794073

Change-Id: I2025ec27a45ac24c99d4f205d1dcd3296875769b
2021-06-02 04:48:47 +00:00
Shashwat Razdan
dcc16b34f4 Merge "Removing logspam from SmartspaceService" into sc-dev am: 96b300dbc0 am: 1987db0f60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14794073

Change-Id: I991c860323ba4fcc41f017864391c1d1ed96d30b
2021-06-02 04:29:13 +00:00
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
fdd8f55445 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev am: 76660ef721 am: 20a30b3855 am: ac235e9a60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14718524

Change-Id: I8d4a47536d42264f72854390c5d48f47964d97a8
2021-05-25 22:39:36 +00:00
Sergey Volnov
ebfddc542d Merge "Make builder public for HotwordRejectedResult." into sc-dev am: 12d855bbb5 am: 982328c402 am: b6c928d1f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720630

Change-Id: I9b254cbe081450b130cdff4ef075bc4a9136c350
2021-05-25 22:39:19 +00:00
Sergey Volnov
20a30b3855 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev am: 76660ef721
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14718524

Change-Id: Id52a02d9e7c53b3d8fe373397452d20c36fa6a1c
2021-05-25 22:09:01 +00:00
Sergey Volnov
982328c402 Merge "Make builder public for HotwordRejectedResult." into sc-dev am: 12d855bbb5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720630

Change-Id: Icd398bb1550d1c35af78f070dab7e4867ae18eb7
2021-05-25 21:50:47 +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
TreeHugger Robot
69b9a19be5 Merge "Address API council feedback: s/isPersonalizedHotwordDetection/isHotwordDetectionPersonalized/." into sc-dev am: 6ec781dea5 am: 8adbfe0624 am: e12c57d5a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703100

Change-Id: I6f36dc8fbf586d0f94c6a313c859ad73628ca6a2
2021-05-25 14:54:37 +00:00
TreeHugger Robot
8adbfe0624 Merge "Address API council feedback: s/isPersonalizedHotwordDetection/isHotwordDetectionPersonalized/." into sc-dev am: 6ec781dea5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703100

Change-Id: I7a8efe1aad76e3a74ba8062be30958a379ee4a96
2021-05-25 14:01:27 +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
5a38b7b0be Merge "Make APIs abstract once AiAi has implemented them." into sc-dev am: 102dd28dd0 am: 4ce1449467 am: f34da02a3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14631836

Change-Id: I06b23be2ff9729ba27036f29f1db030aefb6ce08
2021-05-24 21:57:05 +00:00
Adam He
f34da02a3e Merge "Make APIs abstract once AiAi has implemented them." into sc-dev am: 102dd28dd0 am: 4ce1449467
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14631836

Change-Id: Icb8a9ba6cc59d1c8682730ff14a66c16c3320663
2021-05-24 21:41:45 +00:00
Adam He
f58ee5eaa0 Merge "Make APIs abstract once AiAi has implemented them." into sc-dev am: 102dd28dd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14631836

Change-Id: I59cd1fe6205ed0fa4e4bc8349e98ddd2eb6696ec
2021-05-24 21:21:11 +00: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
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
f7be45e4f7 Merge "HotwordDetectionService: Remove deprecated-at-birth APIs." into sc-dev am: 3cff27f756
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676746

Change-Id: I0b2191cbfeba7f79375f5684db496a2b30f9b3f1
2021-05-24 08:58:05 +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
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
d0291e05a9 Merge "Adjust HotwordDetectedResult with up-to-date information." into sc-dev am: fb45d8ed94
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14666659

Change-Id: I5c781330a9041ccf93207a7fd2b5ca1ebf95715d
2021-05-22 00:17:43 +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