89 Commits

Author SHA1 Message Date
Mark Renouf
1bf86b5e5b Demo: show scroll chip and capture tall screenshot when tapped
The result is shown via intent ACTION_VIEW, after saving to PNG.

This change introduces ScrollCaptureClient, a light layer around
the raw binder API for scroll capture (which is more disruptive
to change). This provides a layer to help adapt patterns between
the app interface and system UI, as well as provide an optimal
testing strategy.

Test: atest ScrollCaptureClientTest
Change-Id: Ib6d0f61ae0b4d4dc3df459e07d9eaf34d11d59ed
2020-11-03 20:16:07 -05:00
Miranda Kephart
75b334c665 Animate in share/edit buttons immediately.
Bug: 159931141
Test: manual

Change-Id: Ib903e6046c17fb96cd2e918fb2851ea84fd46d2b
2020-10-15 12:45:09 -04:00
Galia Peycheva
296a49c944 Update volume control ui for tv
As part of this we introduce a new theme "volume_dialog_theme", which
in the general case is the same as the previously used "qs_theme". Just
for TVs we override the accentColor.

Before: https://hsv.googleplex.com/5706562045739008
After: https://hsv.googleplex.com/5373850558660608

Bug: 162302410
Test: flash on atv device && press +/- on remote
Change-Id: I1151746cf417effbb300c0c11a26b8f75e9d8fb2
2020-08-04 14:24:59 +02:00
Miranda Kephart
2766208311 Update RTL/dark theme/orientation dynamically
Currently, we don't update the views once they are inflated, only
on initialization. In practice, this means that while RTL will
work correctly after rebooting the phone (or after the screenshot
process is killed and then recreated), it will not update between
taking two screenshots in quick succession.

This change adds a ConfigurationListener, which updates the dark
mode, RTL state, and phone orientation (portrait/landscape) on
a change in the configuration. Also makes the width of the preview
in landscape the correct size.

Bug: 149487205
Bug: 151351984
Fix: 149487205
Fix: 151351984
Test: manual -- tested changing RTL, orientation, and dark mode
while the screenshot process was running (including while the UI
was visible)

Change-Id: Icfe332e073546c47e92f1e7c0a4f8749bfaf833a
2020-05-14 16:58:14 -04:00
Kevin Chyn
49fc8e21d6 Update password landscape layout
Fixes: 156230320

Test: BiometricPromptDemo with password, rotate to landscape
Change-Id: I30370d67d53da359d9db74898dbfe51820fa87a2
2020-05-11 11:52:44 -07:00
Curtis Belmonte
44d5ad8a57 Condense landscape layout of auth credential password view
Changes the layout of the biometric prompt auth credential password
when in landscape orientation, in order to prevent the keyboard from
obscuring the password/PIN entry or error text views. Specifically:
- Removes the icon from the layout
- Reduces/removes padding and spacers

Test: CTS Verifier > Biometric Tests > 4a: Credential, Cipher
Test: Biometric support demo app

Fixes: 155041280
Change-Id: I8d576f76d2e90b1830a22aebbfc12559634b6b75
2020-04-29 11:12:00 -07:00
Curtis Belmonte
ce03593da0 Make BiometricPrompt credential UI closer to Settings
Adjusts the fonts, sizes, and positions of the AuthCredentialView UI
invoked by BiometricPrompt to better match the UI for setting or
confirming a PIN/pattern/password in Settings.

Test: Manually, using the BiometricPrompt demo and TestDPC apps

Fixes: 152053691
Change-Id: I0d0316b2ac5bde696706e916a29021481e824509
2020-03-26 14:04:46 -07:00
Curtis Belmonte
936737974f Fix landscape layout of BiometricPrompt pattern screen
Test: Manual:
1. Enter "BiometricPrompt Demo" app.
2. Check "Allow device credential", uncheck "Require confirmation".
3. Check any Radio button. (e.g. Persist across configuration changes)
4. Rotate DUT to landscape mode.
5. Tap the "AUTHENTICATE" then deliberately unrecognized.
6. Tap "Use pattern" button.

Before: The pattern entry UI is clipped and the text is not visible.

After: The pattern entry UI fits on the screen and is interactable.

Fixes: 149545148
Change-Id: Iefc0a7ce60a8caeb537b46ec821df0ea4d80e843
2020-03-18 12:40:24 -07:00
Alex Johnston
5179ac6f57 Update work profile app lock to latest spec
* Removed old background image of work profile lock
* Updated text and description for PIN, password and pattern
* Added enterprise logo to work profile lock

Bug: 141290838
Test: Manual testing
      atest com.android.systemui.biometrics.AuthBiometricViewTest
      atest com.android.systemui.biometrics.AuthContainerViewTest

Change-Id: Ic2a0b0b572da383846ee113d32450fe3734dfd02
2020-01-30 16:30:41 +00:00
Automerger Merge Worker
09f33b6fba Merge "Change layout of ToggleAction for GlobalActionsDialog" am: edabed7fb7 am: 8c69f7b36c am: ba0bac5e95
Change-Id: I2dea44a3ed9f266b3dc1605747d44d9a7b370ec7
2020-01-13 19:38:02 +00:00
Koji Fukui
5c010eebf2 Change layout of ToggleAction for GlobalActionsDialog
Layout of SinglePressAction was changed on Android 10, but ToggleAction
did not changed.
As a result, GlobalActionDialog menu is inconsistent layout when
ToggleAction is used.

We change to load the same layout resource for each Actions.
And show state of ToggleAction as single line.

Bug: 144680446
Change-Id: I75e07ea04450a2ecc91d5883711381deb72aa982
2019-12-24 17:47:33 +09:00
Kevin Chyn
8110ebb57c 16/n: Add PIN/Password
Bug: 140127687

Make AuthCredentialView abstract, and have the following subclasses
 1) AuthCredentialPatternView
 2) AuthCredentialPasswordView

Back button cancels password authentication

Test: manual test with pattern, pin, password
Test: atest com.android.systemui.biometrics

Change-Id: I95e42144616a59827da25d10d063990452714f76
2019-10-04 13:13:12 -07:00
Kevin Chyn
8cbb488b9a 13/n: persist device credential across configuration changes
1) AuthContainerView can be started in either `biometric` or `credential`
   views. This is to potentially support an API where only credential
   is allowed/requested.
2) When onSaveState, AuthContainerView saves both the states of
   `biometric` and `credential` visibility. In the case of configuration
   change, AuthController is responsibile for checking the visibility
   and creating a AuthContainerView with the correct initial view.
3) When AuthCredentialView is the initial view, it owns the panel
   expansion.
4) Added landscape layout

Bug: 140127687

Test: atest com.android.systemui.biometrics
Test: BiometricPromptDemo, use pattern, rotate device. auth, cancel,
      demo logs are correct.

Change-Id: I1f501cf13b924353f251a69757fdb9d7e0bf1d21
2019-10-03 14:00:16 -07:00
Aran Ink
50195263b7 Change GlobalActions emergency icon to star of life.
Also fixes spacing for landscape/seascape layout spacing in column view.

Test: Manual inspection.
Fixes: 133435027

Change-Id: Ia3eee8747847ee2a74c2014263545dfdf14f52ce
2019-05-31 14:31:07 +00:00
Aran Ink
622a43e2c0 Tweak colors and spacing for GlobalActionsDialog.
Bug: 132197067
Fixes: 132895084
Fixes: 133401862

Test: Manual testing for color and layout at different Display Size settings.

Change-Id: I8837f112f3bf3ae248ab463202d9967cd1ffe9d2
2019-05-23 15:35:49 -04:00
Aran Ink
6cf5b74c29 Center GlobalActionsDialog when it does not take up the full screen.
Fixes: 132770089
Test: Manual -- power menu appears centered along edge in all orientations.
Change-Id: If42345e255f4f463a8137ff56ac2b5d6a9601da4
2019-05-15 13:32:37 -04:00
Aran Ink
a2fb824529 Fix shadow and animation clipping for Global Actions Dialog.
Fixes: 132637931
Test: Manual testing of animations in landscape/seascape/portrait for both column and grid GAD.
Change-Id: I4870a0ec9c1c07ae6eee6c3d0943a19252a25241
2019-05-14 16:39:43 -04:00
Aaron Heuckroth
dc22284752 Merge "Add GlobalActionsColumnLayout to replace HardwareUILayout." into qt-dev 2019-05-01 21:17:15 +00:00
Aaron Heuckroth
e2d92acee5 Add GlobalActionsColumnLayout to replace HardwareUILayout.
Refactor code to improve code re-use and enable testing, and add lots of unit tests.
HardwareUILayout is no longer used.

Test: Automated tests pass. Manual testing with different display sizes and with panel plugin enabled/disabled.

Fixes: 130808177
Fixes: 128372852

Change-Id: I1e48d226973a9b610cece2691af7b233cdb5235c
2019-05-01 17:21:57 +00:00
TreeHugger Robot
a87fd73922 Merge "Remove custom theme added for tooltip in captions toggle first run show. windowIsFloating is necessary to stop drawing system bar backgrounds on certain devices." into qt-dev 2019-04-28 20:10:49 +00:00
Anthony Tripaldi
477d097f79 Remove custom theme added for tooltip in captions toggle first run show.
windowIsFloating is necessary to stop drawing system bar backgrounds on
certain devices.

Bug: 130786771
Test: manual
Change-Id: Ic095d72d5dbfad1631b46e75775b14c7a36121b6
2019-04-25 11:03:32 -04:00
Aaron Heuckroth
5e28f8c838 Add unit tests to GlobalActionsGridLayout.
Refactor GlobalActionsGridLayout, ListGridLayout, and related classes/XML files to clean things up and improve testability.

Test: Automated tests pass. (Hooray, they exist now!)

Fixes: 130808337
Change-Id: I89f1a90b07425a95ce600dd104ed3a4729c2215b
2019-04-24 13:26:12 -04:00
Amin Shaikh
70bd4dd32a Fix volume dialog ringer icon size.
Added padding and scaling to ensure icons in this space are all 24dp

Fixes: 129555425
Test: mp sysuig
Change-Id: I85c7b53a8245f95f467e03fb55fba6642b658d28
2019-03-29 17:39:23 -04:00
Anthony Tripaldi
8ec1f7e863 Fix for b/129240060 - updating landsape volume dialog layout to use the
newly created CaptionsIcon view.

Bug:129240060
Test: manual
Change-Id: I3936a0fe1b52f00f4196313158d0baee7798307f
2019-03-25 13:46:38 -04:00
Anthony Tripaldi
ea0236d0ec Add tool tip view for first run of volume dialog to notify users of odi
captions functionality.

Bug:128970574
Change-Id: I4710fd1d84f4116e003c14720a2ce55c5b3ff899
Test: manual
2019-03-21 10:25:11 -04:00
Aaron Heuckroth
f19d2726f0 Move grid-based Global Actions to power button when not using panel.
Use a pixel-value instead of a dp-value for defining location of the power button to ensure the menu appears in the correct place at different display sizes.
Improve separated list logic to avoid showing an empty separated list.
Switch ListGridLayout priority to minimize rows instead of columns.

Test: Automated tests pass. GA menu appears next to button when the panel is disabled (feature flag), and snaps to the bottom of the screen when the panel is enabled.
Change-Id: Ic0246dc4a2af7679e65c71ae8d9db758aeb9a3a8

Fixes: 127740041
2019-03-12 19:41:46 +00:00
Aaron Heuckroth
eeda8be874 Fix TalkBack accessibility for grid-based power menu.
Test: Automated tests pass. TalkBack direction and ordering correct for LTR languages, direction ordering correct for RTL languages.
Change-Id: Id7206a9e93976ae74a6d515a84e6840aaa730995
2019-03-04 14:44:35 -05:00
Aaron Heuckroth
4ea2fdb97a Add support for small screens to grid-based global actions menu.
Test: Automated tests pass, GAM looks decent at all "Display size" settings on a Pixel 2/3.
Change-Id: Ib9f2e30e5bf400005cf8abbae123138b0c0022f2
2019-02-15 16:44:38 -05:00
Aaron Heuckroth
75e249f637 Add rotation support to grid-based global actions menu.
Test: All automated tests should pass. Rotating the phone with the GAM displayed should result in both the container and icon views staying in the same physical position relative to the device.
Change-Id: Ia1ba6265fb954ea9908ddb618569ca018297c82d
2019-02-13 16:08:14 -05:00
Jason Monk
18116a60e2 Remove unused files
Test: make
Fixes: 34846431
Change-Id: Ia41e1c262c3f9bc8b96af9d6670176d9432959a7
2017-01-31 19:20:17 -05:00
Jason Monk
a9f128832f Add preview section to nav bar tuner.
It uses density scaling to show a slightly smaller real time version
of the nav bar, so you can see edits without possibly breaking the
nav bar.

Also fix rotation in the tuner, cause it was broken.

Change-Id: I3de89c3df25c6adb18f0aef41b597c96446d1631
2016-01-27 23:05:11 -05:00
Winson Chung
48f2cda829 Removing the debug header bar icon.
- Repurposing resize button to move tasks between
  stacks when freeform is enabled
- Enabling freeform workspaces for supported
  devices
- Removing old debug dialog

Bug: 26043230
Bug: 24815256

Change-Id: If3236999dd236de5d5bd665d69edfc17f18f74f0
2015-12-15 15:30:12 -05:00
Winson
b1bbaedb1a Adding debug ui to dock windows.
Change-Id: I9cd51763ef6089eabba734bf3bf9f52ddf540069
2015-09-25 17:45:03 -07:00
Skuhne
b9026ff592 Fixing layout button in caption and adding quarter functionality
Furthermore limit the number of arrangements to the device in use.

BUG: 19893373
Change-Id: I21d56e57338cc45b09ca45a6048a527548371991
2015-03-25 17:25:08 -07:00
Jorim Jaggi
a9ef7929b8 Remove dead code #7: Remove unused SysUI resources
Change-Id: I6e338dee76063d7d200967bef0ed1122c2769d42
2015-01-07 15:20:28 +01:00
Jason Monk
29f7a7b0ae SysUI Tests: Make tests not break SysUI
Now you can run the tests without getting the blank broken sysui.
The tests instrument themselves so they include all of the source
they need to run rather than piggybacking on the sysui process.

A couple of changes were needed for this.  The xml files cannot
reference com.android.systemui, instead they must use res-auto.
The tests can no longer make privileged calls, so some restructuring
to avoid those calls was needed.

Bug: 18222975
Change-Id: I67b794af854f1420583d48960bd6e52ca753b56d
2014-11-17 14:46:11 -05:00
Jorim Jaggi
f479792e05 New swipe-up assist animation for L.
Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
2014-08-05 15:24:26 +02:00
John Spurlock
74d2480845 Move moveable non-public framework resources up to SystemUI
Specifically, non-public resources only referenced by SystemUI
and nowhere else in frameworks or system apps (via @*android:)

Remove orphan resources found during the process.

Change-Id: I005514ff1ce52e1622849bc01cd825b09fa55842
2013-12-02 17:37:40 -05:00
Michael Jurka
9b0b59e6d1 More background protection in Recents for status bar
Bug: 11255407
2013-11-04 16:11:11 +01:00
John Spurlock
bd95740648 Transparent system ui flags -> Translucent WM flags.
Migrate View.SYSTEM_UI_FLAG_TRANSPARENT_(STATUS/NAVIGATION) to
WindowManager.LayoutParams.FLAG_TRANSLUCENT_(STATUS|NAVIGATION).

Add associated public attrs for both new window flags:
  windowTranslucentStatus
  windowTranslucentNavigation

Introduce convenient four new themes that set translucent decor:
  Theme.Holo.NoActionBar.TranslucentDecor
  Theme.Holo.Light.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.Light.NoActionBar.TranslucentDecor

Update PhoneWindowManager mechanism to plumb these values back to
SystemUI to drive bar mode state.

The new translucent flags come from the top fullscreen window, not
the focused window, so translucency does not change when opening
dialogs.

Imply some window-level system-ui visibility if one or both of these
new flags are present, specifically:
  FLAG_TRANSLUCENT_STATUS implies LAYOUT_STABLE, LAYOUT_FULLSCREEN
  FLAG_TRANSLUCENT_NAVIGATION implies LAYOUT STABLE, LAYOUT_HIDE_NAV

Rename all associated variable & resource names to use the term
translucent instead of transparent. (Retain the term semi-transparent
for the transient bar style).

Recents activity allowed to inherit translucent decor state via the
new PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR.  Compensating changes
to use the full screen area more appropriately.

Update keyguard to use new WM flags.

Update docs and various api artifacts.

Sanity-check fixes:
 - Toasts and alerts given stable layout.
 - Suppress nu-gradient when in transient (hidey) mode.
 - New translucent flags use top-fullscreen window, dialogs don't clear.

Bug:10674960
Bug:11062108
Bug:10987178
Bug:10786445
Bug:10781433
Change-Id: If667a55bea4cf5e008549524b9899197fab55ebe
2013-10-06 16:03:53 -04:00
John Spurlock
8f1f0109d3 Remove unused status bar help and obsolete resources.
Bug:10502089
Change-Id: I813244c4d5535256a56b242b92e6373edbbaba93
2013-08-29 21:02:15 -04:00
Michael Jurka
31a6fb3b08 Prevent Recents from doing a relayout
Don't relayout Recents when going from a
fullscreen app to Recents; set the proper flags
to do the layout underneath the status bar
2013-03-20 16:44:13 +01:00
Fabrice Di Meglio
02c40c2404 Fix bug #8058390 Space is required after the battery sign in the RTL locales
- fix remaining left/right properties that needed to be start/end properties

Change-Id: Iaa5090c2ad256e378313f164e2388f42428e5700
2013-03-08 14:05:28 -08:00
Michael Jurka
e9c90271ac Fix Recents in RTL/landscape mode
The normal LTR Recents interface in landscape
actually scrolls/behaves like a RTL interface,
so we hardcode the layout to stay the same in both
modes

Change-Id: I57e5e76de3260c6de1dd9e939797b7e1c23cca03
2013-03-06 22:04:05 +01:00
Michael Jurka
e60bc7f2d8 Fix RTL layout in Recent Apps, landscape mode
Bug: 8067692
2013-03-01 16:00:32 +01:00
Fabrice Di Meglio
8afcd14997 Make SystemUI RTL aware
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Ica88ed68f893d5272691a9207788b65623849dee
2012-12-17 17:03:09 -08:00
Casey Burkhardt
c7c972d832 Fixing view accessibility classification for recents.
Change-Id: I0324fe322d97ee35105d7d71442fa79663e0fdfa
Bug: 7438790
2012-10-30 17:09:28 -07:00
Daniel Sandler
b17a726f2f Notification & settings panel help.
Comes up the first time you touch the status bar; explains
where quick settings is, and even allows you to swipe down
to try it (instead of touching "OK").

Bug: 7209412
Change-Id: I72b1a91902e64b4623e0fcaf1555dc703870b59f
2012-10-07 14:48:24 -04:00
Michael Jurka
9bdaada95c Fix bug 7138446: Icon blips in during Recents animation
Add animation where icon and description of the
primary activity fades and translates in

Change-Id: Ie21b5302ac9e58ee6af219b7cde98d12a8e82697
2012-10-02 21:18:26 +02:00
Casey Burkhardt
2868059d93 Hiding appropriate nodes for accessibility in recents.
Bug: 6855305
Change-Id: I2c9fac2cfc777f912ff78283bbe6b3a9666f17c6
2012-10-01 17:57:16 -07:00