Commit Graph

3050 Commits

Author SHA1 Message Date
Ahaan Ugale
3fdfdaf765 Merge "Allow HotwordDetectionService access to audioflinger." into sc-dev am: a8a6a45f68 am: 42b7c85907
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671365

Change-Id: I994da7b38be7af9f58bf07685adb0f60072d4bf8
2021-06-14 05:31:58 +00:00
Ahaan Ugale
a8a6a45f68 Merge "Allow HotwordDetectionService access to audioflinger." into sc-dev 2021-06-14 05:05:08 +00:00
Ahaan Ugale
23c84d2896 Merge "Grant HotwordDetectionService RECORD_AUDIO and CAPTURE_AUDIO_HOTWORD." into sc-dev am: 40069e8943 am: 1eea819631
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427323

Change-Id: I23dbb652f411f736d8380ecbd95f148f36ec8e89
2021-06-10 18:22:37 +00:00
Ahaan Ugale
40069e8943 Merge "Grant HotwordDetectionService RECORD_AUDIO and CAPTURE_AUDIO_HOTWORD." into sc-dev 2021-06-10 17:53:56 +00:00
TreeHugger Robot
a68c88e681 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3 am: accafd4628
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

Change-Id: Icbd4f765b3030a5d832452dc9fadcff6413687b0
2021-06-09 23:03:54 +00:00
TreeHugger Robot
dfbde545f3 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev 2021-06-09 22:32:37 +00:00
TreeHugger Robot
d7a1ea398f Merge "Take a screenshot as soon as the phone unlocks" into sc-dev am: 900834f728 am: 58c30dc12a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14889011

Change-Id: I08bddc81be3473ecfa8909b360c227fdeb03e97a
2021-06-09 17:22:43 +00:00
TreeHugger Robot
900834f728 Merge "Take a screenshot as soon as the phone unlocks" into sc-dev 2021-06-09 17:01:24 +00:00
Ahaan Ugale
603ea83bd7 Hotword: Propagate the DSP DetectedResult.
Fix: 190572818
Test: atest CtsVoiceInteractionTestCases
Change-Id: I8a109f6540cf8c342b827464ccc2beabd99d1b9c
2021-06-08 23:33:47 -07:00
Jay Aliomer
2ac2d0f7bc Take a screenshot as soon as the phone unlocks
Fixes: b/190443665
Test: visual
Change-Id: Iddbf3fb46deb8760aeecd0ea22a04eff5b51f834
2021-06-09 01:59:23 +00:00
Ahaan Ugale
5fc6910227 Grant HotwordDetectionService RECORD_AUDIO and CAPTURE_AUDIO_HOTWORD.
HotwordDetectionService is an isolated service which ordinarily cannot
hold permissions. An isolated service has its own uid separate from the
owning package.
To allow it to access mic audio, we dynamically override the permissions
check based on the currently bound HotwordDetectionService.

Bug: 190011174
Test: manual - sample app can read audio (with a few other wip changes)
Test: atest CtsVoiceInteractionTestCases
Change-Id: I5abc809546184ef13cb9eb009f916afae6bdf1af
2021-06-08 14:26:04 -07:00
TreeHugger Robot
06dbdf06ec Merge "Enable dimming for mid-range luminance wallpapeprs." into sc-dev am: 4bb784103f am: 10d90e0f67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881020

Change-Id: Ic93f2a9d7cc8ef9b7ab7652b1c022bd2a8aeda3c
2021-06-08 18:08:51 +00:00
Shan Huang
5d4086908f Enable dimming for mid-range luminance wallpapeprs.
Test: Manual
Bug: 185890335
Change-Id: I3ebd778331d3daa81978f40fd8a582c38aca1d7b
2021-06-08 22:30:09 +08:00
Jay Aliomer
5c585e5bdc Merge "Return colors of areas even if they are not in current page" into sc-dev am: 1e70989c61 am: 3dc3abe28d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14827878

Change-Id: Ic9a15ad77ccb7003b9605457d61d0665eae6f812
2021-06-07 20:02:48 +00:00
Jay Aliomer
1e70989c61 Merge "Return colors of areas even if they are not in current page" into sc-dev 2021-06-07 19:45:12 +00:00
Lucas Dupin
accc34eff5 Merge "Dim wallpaper by setting wallpaper layer transparency." into sc-dev am: 76fda9db9a am: 74d1b5f9d1 am: 3b825ec4f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14486205

Change-Id: I36d84eff6aa17cb70c025ca38db999f97bf86e8c
2021-06-04 11:06:15 +00:00
Lucas Dupin
3b825ec4f8 Merge "Dim wallpaper by setting wallpaper layer transparency." into sc-dev am: 76fda9db9a am: 74d1b5f9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14486205

Change-Id: I3ee0a5d3d851a7af9583122b908dba533a781754
2021-06-04 10:44:25 +00:00
Ahaan Ugale
a64d628182 Allow HotwordDetectionService access to audioflinger.
HotwordDetectionService is an isolated service which ordinarily cannot
access audioflinger due to selinux restrictions on isolated processes.
To bypass those restrictions, the audioflinger binder is passed from
the system server to the HotwordDetectionService. This follows the
existing pattern of providing access to the ContentCapture service.

In T we *may* instead solve this at the selinux layer. For now, this
simpler approach is used.

Bug: 190011174
Test: manual - sample app can read audio (with a few other wip changes)
Test: atest CtsVoiceInteractionTestCases
Change-Id: I5493a5c3addf68f2ae80d64b6971a8576484eb8e
2021-06-04 07:20:27 +00:00
Lucas Dupin
76fda9db9a Merge "Dim wallpaper by setting wallpaper layer transparency." into sc-dev 2021-06-03 23:49:25 +00:00
Jay Aliomer
10e5e4547e Return colors of areas even if they are not in current page
Bug: b/189827568
Test: manual
Change-Id: I917c7b8e61cd18d04075600f4337806deb7f41bf
2021-06-03 17:40:05 -04:00
Shan Huang
fdb14de009 Dim wallpaper by setting wallpaper layer transparency.
Guard it using persist.debug.enable_wallpaper_dimming flag.

Test: Manual, atest WallpaperServiceTest, WallpaperServiceTests
Bug: 185890335

Change-Id: Id1aaf1dc5e5dbf3df5c9b3b4333af329685f3551
2021-06-04 00:36:39 +08:00
TreeHugger Robot
f39265b3e3 Merge "Implement a callback to report HotwordDetectionService status" into sc-dev am: 822d0b7f77 am: 12b3ebd8bb am: b147cd9387
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14747457

Change-Id: I70892830ebfbc08b8f7a1734ed5bf63475b91b34
2021-06-03 09:48:52 +00:00
TreeHugger Robot
b147cd9387 Merge "Implement a callback to report HotwordDetectionService status" into sc-dev am: 822d0b7f77 am: 12b3ebd8bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14747457

Change-Id: I22be3807228a0cdcf9c3737d97d0d6bdb8cdb77e
2021-06-03 09:32:42 +00:00
TreeHugger Robot
822d0b7f77 Merge "Implement a callback to report HotwordDetectionService status" into sc-dev 2021-06-03 09:15:11 +00:00
lpeter
645623e732 Implement a callback to report HotwordDetectionService status
When the application uses VoiceInteractionService to create a
SoftwareHotwordDetector, we need to report the HotwordDetectionService
status to the application, but we pass null callback into the
updateStateLocked function, it means that we will not receive the
HotwordDetectionService status.

In this change, we implement IHotwordRecognitionStatusCallback and
pass the callback into updateStateLocked function. When we receive
the HotwordDetectionService status, we will pass the status to the
application.

Bug: 183239093
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I1a1b8abe5c7e82eddaa2f0a83f54110df74d1efb
2021-06-03 12:03:56 +08:00
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