Commit Graph

2997 Commits

Author SHA1 Message Date
Julia Reynolds
3cc6d05598 Merge "Store DND rule owners" into sc-dev am: 6b1067a79f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15002286

Change-Id: I2dcd420ebcb74aaba93230df93ae02f0aa9415c8
2021-06-17 19:42:14 +00:00
Julia Reynolds
7c9ab2d361 Store DND rule owners
Test: uiservicestest, cts
Fixes: 189332346

Change-Id: Ie546c15c25fcbd193b67cb997220f075691e9bab
2021-06-16 15:55:36 -04:00
Ahaan Ugale
26b80f66e6 Merge "Allow HotwordDetectionService access to audioflinger." into sc-dev am: a8a6a45f68
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671365

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

Change-Id: Icb91dd64c5fdae2ba2aa285bf62ded36e779f3e2
2021-06-10 18:08:40 +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
a4bea97be4 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

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

Change-Id: Ib1101a3635d610dfc522b14782e102b1a274f394
2021-06-09 17:08:42 +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
72adb9d049 Merge "Enable dimming for mid-range luminance wallpapeprs." into sc-dev am: 4bb784103f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881020

Change-Id: I4d5972ed83051531e4ac16cc4bc6844cecb81454
2021-06-08 18:08:20 +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
661335b9cf Merge "Return colors of areas even if they are not in current page" into sc-dev am: 1e70989c61
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14827878

Change-Id: Ie6eb7360b1bb36e5b2116edf8924bfd85a4cac59
2021-06-07 19:51:10 +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
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
c79c20c842 Merge "Dim wallpaper by setting wallpaper layer transparency." into sc-dev am: 76fda9db9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14486205

Change-Id: Ibc92b51b87dd089c5efef8c0c75817518fd8f4e6
2021-06-04 00:18:28 +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
c906bf48d2 Merge "Implement a callback to report HotwordDetectionService status" into sc-dev am: 822d0b7f77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14747457

Change-Id: Ib4aa56c56d8975f4e06dc672a4f103448e425a5a
2021-06-03 09:32:32 +00:00
TreeHugger Robot
822d0b7f77 Merge "Implement a callback to report HotwordDetectionService status" into sc-dev 2021-06-03 09:15:11 +00:00
Shashwat Razdan
5a453fd205 Merge "Removing logspam from SmartspaceService" into sc-dev am: 96b300dbc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14794073

Change-Id: I57ba9f5e5a10f2717cd53f8dd27e08aceb453644
2021-06-03 06:42:21 +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
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
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
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
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
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
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
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
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