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
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
Padding, color, and dynamic text resizing. See full details in
b/183084168.
Bug: 185131475, 183084168, 1804014433
Test: PeopleTileViewHelperTest
Change-Id: Ie6a4da771b9735ccce7b0549acfea4c17231d915
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
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
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
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
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
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
Allow KeyguardSliceProvider to be replaced by content coming from the
BcSmartspaceDataPlugin, only when the plugin is enabled.
Bug: 172360102
Test: manual
Change-Id: I77a4ef72c7131f955fe37763e02542726c36927b
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
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
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
- 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
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
- 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
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
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
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
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
- 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
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
We were previously enabling the activity via flag,
but we're not using the flag anymore.
Change-Id: I02494a3ff9dfc591dbe49473283ce5a46ad226d6
Test: manual
Bug: 176094791
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
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