Commit Graph

3028 Commits

Author SHA1 Message Date
Adam He
ff043d6c94 Merge "Remove activity name from autofill metrics logger." into sc-dev am: c254f87c57
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147190

Change-Id: I05bc950285f84a833bbceef3dcdb5c8855cbd1f4
2021-07-01 18:49:51 +00:00
Adam He
c254f87c57 Merge "Remove activity name from autofill metrics logger." into sc-dev 2021-07-01 18:38:06 +00:00
Silin Huang
5308b9287e Merge "Add a tile service meta-data for QuickAccessWalletServiceInfo that fetches a drawable for wallet tile." into sc-dev am: 516cd210f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15045436

Change-Id: I3bbdba7c8f92dcae84e944ab9ce86e354141b48c
2021-06-30 23:27:53 +00:00
Silin Huang
3d9cf89d06 Add a tile service meta-data for QuickAccessWalletServiceInfo that
fetches a drawable for wallet tile.

The wallet tile will get the icon drawable from QAW client; if it
doesn't exist, fall back to the static icon in SysUI.

Test: manual
Bug: 190606984
Fixes: 190539096
Change-Id: I2d822ee34c8e4b27ae72e86186b0d78f2b52854f
2021-06-30 22:28:01 +00:00
Ryan Mitchell
e50429ce38 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: b3659d36b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15156470

Change-Id: I41522622f93d74d94041a9a1286fc6f0e6632d9a
2021-06-30 21:12:10 +00:00
Ryan Mitchell
b3659d36b0 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev
* changes:
  Revert^2 "Apply overlay changes with config change"
  Revert^3 "Deprecate Context#createApplicationContext"
2021-06-30 20:58:43 +00:00
Ryan Mitchell
350c2669d6 Revert^3 "Deprecate Context#createApplicationContext"
This reverts commit cb5a80ea57.

Reason for revert: Was not the cause of the test failure

Fixes: 186622527
Test: atest FrameworksCoreTests:ContextTest
Change-Id: I705854f080200f0465d94a7754e710f05a3ec92c
2021-06-30 15:53:45 +00:00
Adam He
4ed8a9b1c6 Remove activity name from autofill metrics logger.
Bug: 192370727
Test: atest CtsAutoFillServiceTestCases
Change-Id: I88765d5ef92ed9fb03bc5c3c161ddad22e297fd6
2021-06-29 15:52:34 -07:00
Paul Hobbs
b268728bd6 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: 8d440c0566
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15144638

Change-Id: I21fe746dbce7f404018377204ec7bb2a43456791
2021-06-29 20:55:34 +00:00
Paul Hobbs
8d440c0566 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev
* changes:
  Revert^2 "Deprecate Context#createApplicationContext"
  Revert "Version LoadedApk cache using base code path"
  Revert "Apply overlay changes with config change"
2021-06-29 20:36:15 +00:00
Paul Hobbs
cb5a80ea57 Revert^2 "Deprecate Context#createApplicationContext"
Bug: 192242649

5a41b45a85

Change-Id: Idcebd68e0079e7e87de04ae25069b3a9ff72093c
2021-06-29 20:06:45 +00:00
TreeHugger Robot
0efe115c7e Merge "Specify the wallpaper blast wrapper is a wallpaper window" into sc-dev am: 0954cfe651
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132873

Change-Id: Ib6e73dc66e5ea34228d86860e4ddc983c1ea8431
2021-06-29 16:14:13 +00:00
TreeHugger Robot
0954cfe651 Merge "Specify the wallpaper blast wrapper is a wallpaper window" into sc-dev 2021-06-29 16:12:22 +00:00
Vishnu Nair
c59eff487b Specify the wallpaper blast wrapper is a wallpaper window
SurfaceFlinger scheduler keys off the window type to implement some
refresh rate selection logic. If a layer has window type wallpaper, then
the refresh rate vote is set to min. With Blast, the actual buffer will
arrive in a layer without the window type metadata. Fix this by
setting the metadata on the blast bbq layer as well.

Test: check if wallpaper runs at a lower refresh rate
Fixes: 191222072
Change-Id: I50058cf42fca155630354ea247d12511ebfe37a8
2021-06-28 23:41:58 +00:00
Ryan Mitchell
9cd626c564 Merge changes Icf81845d,Iea54abf3,I98656314 into sc-dev am: 5a532f6eed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15058002

Change-Id: If4acdbd45591f6def9eb3b6cb5da204efb8f6fe5
2021-06-27 06:38:45 +00:00
Ryan Mitchell
5a532f6eed Merge changes Icf81845d,Iea54abf3,I98656314 into sc-dev
* changes:
  Apply overlay changes with config change
  Version LoadedApk cache using base code path
  Revert "Deprecate Context#createApplicationContext"
2021-06-27 06:27:58 +00:00
TreeHugger Robot
0c1aa5639c Merge "NullPointerException when retriving wallpaper page areas" into sc-dev am: 6a72ef35a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15111366

Change-Id: Ib4229e4550fd035b7ee27658e88c3e3ea1d395e4
2021-06-25 19:58:14 +00:00
TreeHugger Robot
6a72ef35a7 Merge "NullPointerException when retriving wallpaper page areas" into sc-dev 2021-06-25 19:45:24 +00:00
Jay Aliomer
bc32a51ceb NullPointerException when retriving wallpaper page areas
Fixes: 191293701
Test: manual
Change-Id: I18c4d627f29848b50bb8c7dc2b4a02627ff3a89b
2021-06-25 13:50:57 -04:00
Joanne Chung
1d3f9829b1 Merge "Add hidden TYPE_ACTIVITY_STARTED to allow notify activity start event." into sc-dev am: 5f980cbdaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15023695

Change-Id: If254d8f86a71cb4a2db1cb3cc10aec3308c72069
2021-06-24 04:07:43 +00:00
Joanne Chung
5f980cbdaf Merge "Add hidden TYPE_ACTIVITY_STARTED to allow notify activity start event." into sc-dev 2021-06-24 03:48:29 +00:00
Joanne Chung
cdcf3a8339 Add hidden TYPE_ACTIVITY_STARTED to allow notify activity start event.
The current launcher implementation, the resumed Activity doesn't
enter paused state when entering overview. The launcher will have
a start activity event when entering overview but we don't provide
start event now.

We are not allowed to add new APIs now, we add new hidden constant
constants in ActivityEvent and send the event when the activity is
started.

Bug: 189968849
Test: manual. Checks if the activity start events are received by
ContentCaptureService
Test: atest ActivityRecordTests

Change-Id: I8e4f8b7ac8f24c66ccad9f7e884cac9e20ce3cc6
2021-06-24 10:04:14 +08:00
TreeHugger Robot
1f329ab037 Merge "Validate the HotwordDetectedResult" into sc-dev am: 7712f3bc0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15009270

Change-Id: Ia557c35496b2d66898d8c47266880b90e4ac55f2
2021-06-23 13:44:49 +00:00
TreeHugger Robot
7712f3bc0a Merge "Validate the HotwordDetectedResult" into sc-dev 2021-06-23 13:29:09 +00:00
Ryan Mitchell
5a41b45a85 Revert "Deprecate Context#createApplicationContext"
This reverts commit c54ebba25b.

Bug: 188059515
Test: atest FrameworksCoreTests:ContextTest
Change-Id: I986563142dac135281889e811e6e5219d728d5d1
2021-06-22 22:30:38 -07:00
Sergey Volnov
dc52e50c3d Merge "Implement preriodic trusted process restarting for hotword detectors." into sc-dev am: 56686819a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14679832

Change-Id: I746f8771183b3b0bcea3746410334f94a5cdfd3e
2021-06-22 15:08:06 +00:00
TreeHugger Robot
579c354625 Merge "Added a hidden modelState to indicate model was deleted from device but available still." into sc-dev am: e4724a8e8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15031542

Change-Id: Ie7974c06a91cd0ae584bc5abc23e8ecedd72dbaa
2021-06-22 15:00:16 +00:00
Sergey Volnov
56686819a8 Merge "Implement preriodic trusted process restarting for hotword detectors." into sc-dev 2021-06-22 13:33:08 +00:00
lpeter
461a62b31c Validate the HotwordDetectedResult
Implementation as below:
1.Implemet the getMaxBundleSize()
2.Validate if the bundle data of setExtras() is more than
getMaxBundleSize()
3.Validate if the value of setHotwordPhraseId() is between 0
and getMaxHotwordPhraseId()
3.Validate if the value of setScore() is between 0
and getMaxScore()
4.Validate if the value of setPersonalizedScore() is between 0
and getMaxScore()
5.Validate if the data of HotwordDetectedResult is more than 100 bytes

Bug: 190688148
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: Ie23e8a831053f14ff0ea795fef356508b9fe126e
2021-06-22 19:46:24 +08:00
Sergey Volnov
1b2b909a16 Implement preriodic trusted process restarting for hotword detectors.
Bug: 188892570
Test: 1) adb shell cmd voiceinteraction restart-detection
2) Tried locally with restarting every 30 seconds, verified everything
works
3) adb shell ps | grep <test_package_name> - shows:

u0_a221       3328  1026 14501612 69208 0                   0 R com.google.th
u0_i9002      9049  1026 14448104 53860 0                   0 S com.google.th:com.google.th.SampleHotwordDetectionService:hotword_detector_3

Change-Id: I9f08943212c20b83da35c18df56460eaedbbf8f0
2021-06-22 12:43:08 +01:00
Adam He
8b25ff8c9f Added a hidden modelState to indicate model was deleted from device but available
still.

Bug: 191518728
Test: atest CtsTranslationTestCases
Change-Id: I16ee0c2514052f9a8d6589646098c043d67a6703
2021-06-21 13:25:20 -07:00
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