Commit Graph

534 Commits

Author SHA1 Message Date
Evan Severson
85d7336db0 Update the sensor use dialog if more sensors are accessed
If another sensor is accessed after the dialog has been shown we now
update the dialog to reflect all accessed sensors.

Test: Wrote app which opens mic/cam at different times
Fixes: 187139024
Fixes: 187132341
Change-Id: I178bb4f6ea1913e3ee0e2153cf8ac3b2f24e4623
2021-07-09 13:38:47 -07:00
Flavio Fiszman
e54f26157f Conversations Widget - Backup and Restore
Change-Id: I46a8359ffd4b462add31f5cecce70ff05870db6f
Bug: 183084949
Test: PeopleBackupHelperTest, PeopleSpaceWidgetManagerTest..
2021-06-29 15:53:44 +01:00
Jacqueline Bronger
536a5f789f Show a bottom sheet when the mic/camera is blocked
On mobile a normal dialog is shown when a sensor is blocked by the
global toggle.

Bug: 186720017
Test: manual
For one sensor and both sensors together:
1) Block sensor(s) in settings or with 'adb shell cmd sensor_privacy enable 0 microphone' (/camera)
2) open the Duo app
3) Try to access blocked sensor(s): 'adb shell appops start
com.google.android.apps.tachyon 27' (/26)
4) Sensor(s) should be unblocked if 'unblock' is selected or remain
blocked if cancelled (check in settings or 'adb shell dumpsys sensor_prvacy' where disabled means unblocked or privacy indicator will show up)

Change-Id: I69fb67478460d05acf6b1d570705dc4f73ca8d1e
2021-06-17 12:30:11 +00:00
Anna Zappone
514ce64531 UX polish updates
Padding, color, and dynamic text resizing. See full details in
b/183084168.

Bug: 185131475, 183084168, 1804014433
Test: PeopleTileViewHelperTest
Change-Id: Ie6a4da771b9735ccce7b0549acfea4c17231d915
2021-05-18 12:29:35 +01:00
Narayan Kamath
94ff9d8ce2 SystemUI: Set usesPermissionFlags="neverForLocation"
System UI requires BT permissions in order to present device
state to users, and these permissions are never used to derive
user location.

This change also removes the COARSE_LOCATION permission that
was added in commit a86101724b to receive BluetoothDevice.ACTION_FOUND
broadcasts. This is no longer necessary.

Test: atest SystemUITests
Bug: 187069003

Change-Id: I0c9e6603aeb99d3ccfc21d4e26314740e08cf166
2021-05-04 12:32:57 +01:00
Matt Pietal
0caab1c800 Controls - Restart activity on rotation
The user can get stuck with 2 or 4 controls per row. Let the system
restart the activity to get the proper layout.

Fixes: 185364758
Test: manual, rotate with controls open
Change-Id: I501820c29e556b63363decd5a78769f5d6bb09e9
2021-04-16 11:56:35 +00:00
Fabian Kozynski
b4f9164e5c Merge "Fix colors and themes in QS" into sc-dev 2021-04-12 13:04:39 +00:00
Cecilia Hong
d8dd3010d4 Revert^2 Initial data pipeline for Smartspace media recommendations data in media carousel.
This reverts commit 1967209719.

Reason for revert: Forward fix with removing the bcsmartspace dependency.

Test: Tested manually on local builds
Bug: 182813345
Change-Id: Icb8cbac4e27abfa9346f9ed0ef6513f6874db556
2021-04-10 02:07:17 +00:00
Fabian Kozynski
37342cb837 Fix colors and themes in QS
Fix in:
* QSCustomizer
* QSSecurityFooter
* PrivacyDialog
* BrightnessSlider dialog and mirror

Test: manual
Fixes: 184862982
Change-Id: Ie2e4a17a72b31215e7294dac1afc0e2d39c4ff91
2021-04-09 09:55:59 -04:00
Jeff Sharkey
7627719334 Merge "New BLUETOOTH_ADVERTISE manifest permission." into sc-dev 2021-04-09 05:22:23 +00:00
Jeff Sharkey
6dcac06a84 New BLUETOOTH_ADVERTISE manifest permission.
This change is part of defining a distinct BLUETOOTH_ADVERTISE
permission to guard the BluetoothLeAdvertiser APIs, since that's a
distinct enough of an operation from SCAN and CONNECT.  It'll
continue to be covered under the general "Nearby devices" runtime
permission group.

Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Change-Id: I8b62e4d625df1e201f12a73025cd29c431feea79
2021-04-08 20:15:02 -06:00
Matt Pietal
20744ed3b4 Revert^3 "Enable smartspace"
3b67a00d95

Change-Id: I4711f24b1ed3535dbf40ffd6ab893e6cd661fe49
2021-04-08 18:16:22 -07:00
Matt Pietal
3b67a00d95 Revert^2 "Enable smartspace"
Address issue with component init and tests

Bug: 184642387
Test: com.android.devicehealthchecks.SystemAppCheck

Change-Id: I51ad3fb2e9df47a8f426a356fc34c8499b94892f
2021-04-07 09:13:09 -04:00
Jack He
b1f4cb5b83 Merge "Revert "Initial data pipeline for Smartspace media recommendations data in media carousel."" into sc-dev 2021-04-07 00:01:57 +00:00
Jack He
1967209719 Revert "Initial data pipeline for Smartspace media recommendations data in media carousel."
This reverts commit 3f4f355af2.

Bug: 184684030
Reason for revert: Break builds

Change-Id: Idc67e1eb4d114fd0342444815c0bfbb514523385
2021-04-06 23:59:38 +00:00
Cecilia Hong
9d274e7b2d Merge "Initial data pipeline for Smartspace media recommendations data in media carousel." into sc-dev 2021-04-06 20:26:01 +00:00
Matt Pietal
f8fa4efc58 Merge "Revert "Enable smartspace"" into sc-dev 2021-04-06 18:32:43 +00:00
Ulyana Trafimovich
a4fc6da238 Revert "Enable smartspace"
Revert "Enable smartspace"

Revert submission 13984710-smartspace_ls

Reason for revert: Broken test: com.android.devicehealthchecks.SystemAppCheck#system_app_crash on git_master on redfin-userdebug at 7262114

Reverted Changes:
I77a4ef72c:Enable smartspace
I77a4ef72c:Enable smartspace

Bug: 184642387
Change-Id: I299bef5e730c632803c56cf0f1cd858caac4e49f
Test: forrest run for the broken test
2021-04-06 16:34:41 +00:00
TreeHugger Robot
83bfac2e6d Merge "Enable smartspace" into sc-dev 2021-04-06 14:57:34 +00:00
Matt Pietal
ffb1601d49 Controls in QS
1. Migrate Android 11 users to a priority QS tile position
2. New Android 12 control users will see a tile appear at the end,
with seeding already initiated.
3. Add a new method to QSTileHost to position a tile in the middle
4. Remove all Controls code from GlobalActionsDialog

Bug: 172360102
Test: atest QSTileHostTest TileServicesTest QSFragmentTest
GlobalActionsDialogTest DeviceControlsTileTest

Change-Id: I1e52681b2cf7948b732808b1ff426d09b379ed93
2021-04-06 07:45:58 -04:00
cecilia
3f4f355af2 Initial data pipeline for Smartspace media recommendations data in media carousel.
Test: Tested manually on local builds
Bug: 182813345
Change-Id: I650e2970de3ae94e3ac3cc77f591500c340802ce
2021-04-06 01:16:48 -04:00
Matt Pietal
37d3636c37 Enable smartspace
Allow KeyguardSliceProvider to be replaced by content coming from the
BcSmartspaceDataPlugin, only when the plugin is enabled.

Bug: 172360102
Test: manual
Change-Id: I77a4ef72c7131f955fe37763e02542726c36927b
2021-04-05 20:47:51 -04:00
Lucas Dupin
32d406516b Rename SysUI base theme
For historical reasons, the base theme was called QuickSettings.
I'm renaming it to SystemUI because QS won't respond to dark theme
changes anymore.

Test: make
Bug: 183953523
Change-Id: I685c1a4c3fb5ffded8e2f44f13a6ba68e9c45686
2021-04-02 17:09:58 -07:00
Silin Huang
80142305f6 Add an activity for wallet card carousel screen.
The WalletActivity initializes a WalletScreenController to query the
wallet cards and present on the content view.
The next step is to launch the new activity from QuickAccessWalletTile.

Test: manually test on deivce
Test: atest
Bug: b/182964813
Change-Id: Idbf0918e111db0d00f3b60b8c26b968c961df202
2021-04-02 11:08:29 -07:00
Flavio Fiszman
e4931c88d5 Change People Tile config activity layout
Change-Id: I7df41980e1d9fe6b14a91be9ff68fad0c1c7185f
Test: manual
Bug: 183721209
2021-03-31 10:34:13 +00:00
Jeff Sharkey
7b14b87647 Request new Bluetooth runtime permissions.
An upcoming platform change is introducing a new "Nearby devices"
runtime permission which contains the new BLUETOOTH_CONNECT and
BLUETOOTH_SCAN permissions.

We have logic in place to use <split-permission> to translate the
older BLUETOOTH and BLUETOOTH_ADMIN permissions into these new
runtime permissions, but modern apps will need to pivot to
requesting them directly as part of targeting Android S.

This change requests both the old and new permissions to avoid
breakage while the new permission enforcement is being phased in.

Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Test: atest CtsStatsdAtomHostTestCases
Change-Id: I39f45e7d22d132d44c84017cd98e6d9e98533c7f
2021-03-22 15:34:05 -06:00
Matt Casey
b8090a0c40 Layout and style updates for LongScreenshotActivity
- Give save button accent color.
- Remove cancel button (may come back in another form later)
- Share button becomes and icon on the right.
- Edit button moves to the bottom, gets icon + text

Bug: 180967468
Test: Visual eval with light and dark themes
Change-Id: I19ccea06e7dbec47b26ffd0684ebb7e31bdfe8b4
2021-03-19 15:55:08 -04:00
Flavio Fiszman
560acb653b Remove People Tile flag and clean up
Change-Id: Ia4d3f72933bd624fbc414354f8cdca7003737687
Test: manual
Bug: 170396074
2021-03-19 09:27:41 +00:00
Flavio Fiszman
d5a379653b Prompt People tile on marking as priority
Change-Id: I4ee1566762d381b6288e3b19c89db904a5d86d8b
Test: manual
Bug: 182570341
2021-03-17 16:24:37 +00:00
TreeHugger Robot
01ab7bcd20 Merge "Controls in QS" into sc-dev 2021-03-11 15:04:27 +00:00
Anna Zappone
b98280defc Strings for Beta 1
Test: none
Bug: 163617224
Change-Id: I8d75a4c2bb4645ea51814db46101bf228e380106
2021-03-10 17:34:37 +00:00
Matt Pietal
7d969181e9 Controls in QS
Continue to support launching from both global actions as well as the
QS tile. Use an activity for QS tile launches, which supports
lockscreen visibility.

Bug: 172360102
Test: manual
Change-Id: I002aa32f9126745ee310e203ad45f9c28f39fa8d
2021-03-10 12:14:36 -05:00
Matt Casey
7fbe02a1dd Merge "Image state restoration for LongScreenshotActivity" into sc-dev 2021-03-01 19:26:42 +00:00
Matt Casey
2bb3ca0c85 Image state restoration for LongScreenshotActivity
- When long screenshot is acquired, save image to a temporary file.
- When restoring state, read in that bitmap.
- Moved bitmap export code from ScrollCaptureController to
  LongScreenshotActivity because it needs to be able to export any
  drawable regardless of source.
- Currently deleting the temporary file onDestroy.

Bug: 181087631
Test: Enable "don't keep activities" debug setting. Take long
screenshot, go to overview and return. Rotate UI. Verify that image
restores along with crop bounds and export still works properly.

Change-Id: I892ad78025c818c8c65d16f2844daa955cc0b005
2021-03-01 12:25:03 -05:00
Evan Severson
0f9d5aea50 Expose SensorPrivacy as SystemApi
Rename the apis to be more consistent.
Also expose to test api.
Have the aosp mark that it supports the toggle features by default.

Test: atest CtsSensorPrivacyTestCases
Bug: 162549680

Change-Id: Ib38c16adfc5cec931347e1a1891618983d78248b
2021-02-24 15:39:19 -08:00
Matt Casey
0606a73455 Move long screenshot UI to an Activity
Separate UI code from image acquisition.
Using a static variable to get scroll capture connection from the
Activity, can do something more elegant later.
Doesn't do full activity restoration yet.

Bug: 179906912
Test: Running through long screenshot flow, turning screen on/off,
returning to task.

Change-Id: If5715c7008bbf3a1c8918a202a733fb3f8e8f876
2021-02-18 12:14:37 -05:00
Flavio Fiszman
6f24a63ba1 Creates People ContentProvider
Change-Id: I00a901a8fb713b4ce1989bb76f054a47f60892f1
Test: PeopleProviderTest
Bug: 179988318
2021-02-16 16:55:57 +00:00
Galia Peycheva
fc49b64e0c Revert "Add permission for blur SystemApi"
Revert "Add permission check for blurs in SurfaceFlinger"

Revert "Remove public usages of FLAG_BLUR_BEHIND"

Revert "Add pid and uid to SF::setClientStateLocked"

Revert "Add USE_BACKGROUND_BLUR to cts expected permissions"

Revert submission 13350963-blur_system_api

Reason for revert: This topic made blurs a system api. API council voted against that and we will instead aim to make it public for S. None of these changes are relevant in that case.

Reverted Changes:
I3683db296:Remove public usages of FLAG_BLUR_BEHIND
I23b21b603:Add USE_BACKGROUND_BLUR to cts expected permission...
Id21f03793:Add pid and uid to SF::setClientStateLocked
If5d8344a5:Add permission for blur SystemApi
I70d1e1715:Add permission check for blurs in SurfaceFlinger
Icf98c3607:Make window background blurs SystemApi
I0b881ec6e:Make BackgroundBlurDrawable a SystemApi

Bug: 177523043
Test: m
Change-Id: If8c915c716dacf3319974eaf118e10f323538c4b
Merged-In: If8c915c716dacf3319974eaf118e10f323538c4b
2021-02-02 23:08:39 +01:00
Philip P. Moltmann
85712bdfeb Merge "Fine tune what sensor use UI to show" 2021-01-21 00:26:50 +00:00
Philip P. Moltmann
6cc4906547 Fine tune what sensor use UI to show
Sometimes we want to show a dialog, sometimes a notification, sometimes
nothing.

- Also some minor UI tuning to match mocks.
- Also suppress dialog while dialog is visible and shortly after. This
  avoids a dialog directly after closing previous dialog.

Test: Triggered dialog. Needs exhaustive test of all
      cases though.
Bug: 162549680
Change-Id: I52ccd22858969823d8670a9e345d3da994ec1c19
2021-01-20 10:20:42 -08:00
Winson Chung
94891df66a Merge "Move the overflow ui to the bubble window" 2021-01-20 17:48:55 +00:00
Winson Chung
ebf6903682 Move the overflow ui to the bubble window
- An activity always runs on the main looper of the process
  and this simplifies threading since all bubble data will
  run on the shell thread
- The BubbleExpandedView will not initialize the task view
  when mIsOverflow is set.  We still snapshot the overflow
  view to keep the existing selection animation logic the
  same between overflow/task bubbles

Bug: 161979899
Test: atest WMShellUnitTests
Test: atest SytemUITests

Change-Id: If3632a3030c58c9ec334afcb06aac4c51e28938b
2021-01-19 14:39:39 -08:00
Galia Peycheva
18b5ed4db6 Add permission for blur SystemApi
Bug: 177336952
Bug: 177524486
Test: m
Change-Id: If5d8344a582f8170c20f638a27b426127563e274
2021-01-18 11:28:25 +01:00
Fabian Kozynski
4d2758609c Migrate to WifiPickerTracker
Migrates AccessPointControllerImpl to use WifiPickerTracker and
WifiEntry. Also migrates the detail in WifiTile.

Test: manual, using detail (needs code to trigger)
Test: atest AccessPointControllerImplTest
Test: atest SystemUITests

Fixes: 153813490
Change-Id: I8ac5c104ea75a74f174d47eac1822f4d148388a4
2021-01-12 10:38:29 -05:00
Flavio Fiszman
8415720b76 Enable PeopleSpaceActivity by default.
We were previously enabling the activity via flag,
but we're not using the flag anymore.

Change-Id: I02494a3ff9dfc591dbe49473283ce5a46ad226d6
Test: manual
Bug: 176094791
2021-01-06 17:17:45 +00:00
Flavio Fiszman
d48706535c Remove PeopleSpace icon, enable widget by default.
Change-Id: Ied1cc8aa2dc35d8f9ad7d4cbf48b08c120998f02
Test: manual
Bug: 170396074
2020-12-16 17:30:44 +00:00
Wale Ogunwale
062b17a171 Rename splitscreen package to legacysplitscreen
Split-screen implementations moving forward would be based on app-pairs
and main/side stage models. So, renaming existing package to avoid
confusion.

Bug: 175416931
Test: They pass!
Change-Id: I55ab1d27fb1c00ba7a58d685ea7eb2840efb9437
2020-12-14 12:13:11 -08:00
Bernardo Rufino
4216bb64d7 Add BROADCAST_CLOSE_SYSTEM_DIALOGS to System UI
Bug: 159105552
Test: Verify that the package has permission via adb shell dumpsys
      package

Change-Id: I9471323420735a7bd65b867af176136330d2e385
2020-12-14 14:07:52 +00:00
Anna Zappone
2ec38a18f7 Support single conversation in People Space widget
Via flag value, allow user to select one conversation or see all
conversations. Updates UX to make single conversation fit a 2x1 tile.

Test: PeopleSpaceWidgetManagerTest
Change-Id: I2fac077f4fab32a9a597437a3834dab27539ba75
Bug: 174850448
2020-12-08 10:58:23 +00:00
Ben Lin
819f82ba1d TV-PiP: Migrate Menu to SystemWindows.
Bug: 169574665
Test: Run PiP on TV

Change-Id: Ia6d0e6f7c88c4cc59e21700b70d74e09cf8fc519
2020-12-01 16:51:25 -08:00