Stateful controls returned from applications will have their status
flag set to indicate the state of the Control. For all non STATUS_OK
states, assume the control information isn't meant to be persisted and
do not store it.
Bug: 152525430
Test: atest ControlsControllerImplTest
Change-Id: I70c7a8f180561fff281a641b8d547af7cef17520
This makes sure that the text only extends as far as the star (for
subtitle). The title text is constrained to be on top of the star.
Also:
* Make whole tile clickable
* Add ripple to tile on click
Test: manual
Fixes: 152496155
Change-Id: I284aaf5b8eb3ce761680808f93b19627cb9cc479
If reboot happens too quickly, the video output freezes during the
fade in window enter animation. This leads to the text on the shutdown
UI being hard to read, as the window is still transparent and text from
underneath might shine through.
To resolve this, this change removes the window animations from the
shutdown UI for TVs, so that the UI appears instantly without a fade.
Bug: 152509487
Test: flash build and reboot / factory reset
Change-Id: I28153a56f3b5cfc4f89b06fcc8fe6fba935eb30b
The background of the shutdown UI was transparent.
This lead to the text on the shutdown UI being hard
to read, as text from underneath might shine through.
This change makes the background of the shutdown UI opaque for TVs.
Bug: 152509487
Test: flash build and then factory reset / reboot the device
Change-Id: I620224b9c7b289fbf4db3ffec78007653bea0d71
Before we were only announcing when inflation ends, but we won't
inflate it every time it becomes visible.
Test: manual
Test: atest KeyguardBouncerTest
Fixes: 145172036
Change-Id: Iafbce10738a0906b251721a4ce4483e503ad6d91
User unlock states should be cleared whenever user switches. Otherwise,
it's possible for the following sequence of events
1) Unlock first user via biometrics
2) Do not dismiss keyguard, switch to second user
3) Switch back to first user - can unlock without authenticating
Fixes: 151906507
Test: Repeat steps above, does not occur anymore
Test: atest KeyguardUpdateMonitorTest
Change-Id: I1d8e5867a18a680e85be8c335f09d4cb4209612e
- Fixes issue with dots showing up on the wrong side, because code assumed the stack starts on the right when it actually starts on the left now.
- Animates dots out when they're behind the stack/when collapsing from expanded state.
- Animates dots out when expanding.
Remaining issues include: hiding the app badge (deceptively hard), updating state for DND as soon as it changes (vs. when a new bubble is posted, also hard).
Test: manual
Bug: 145245204
Bug: 137213469
Change-Id: I9e2ff29c62ba8c8d0f052e42386b5d517952984e
Add support passphrase and ack dialogs. Passphrase should use the
exact same text and dialog as the PIN dialog, only defaulting to text
input.
Bug: 152517004
Test: Controls Mock App supports launching all dialog types
Change-Id: I3ebd51d656818f8edad9b70ccc8f0b89d6d8acc6
Removed controls should have as much cached information as possible.
This adds structure name and subtitle.
Also, if the structure is not set it would cause issues (as empty
structure is a valid structure).
Fixes: 151089232
Test: atest ControlsControllerImplTest
Test: manual
Change-Id: I6cf5f285fe85ddc78ae59133dcf406793293a3f7
Any vertical diff while dragging would stop the drag, and scroll the
parent. Request the parent to let the child maintain focus.
Bug: 152493182
Test: manual, dim a light with enough controls to scroll
Change-Id: I4b00db3501c16521dc3156dc4631aa533fdf17ae
This CL prevents fake drag by checking ViewPager#isFakeDragging, which
is enabled by ViewPager#beginFakeDrag.
This is not a fix of the underlying issue (which is not known) but a
patch to prevent crashing.
Fixes: 149979063
Test: adb shell monkey --throttle 1000 --pct-nav 0 --pct-majornav 0 \
--pct-touch 30 --ignore-crashes --ignore-timeouts \
--ignore-security-exceptions -v 2000000
Change-Id: I7da764eaf20fc9d971afe2cb89b232b4efd65a3b
App icons may not respond well to tinting, as currently defined, and
the spec calls for them to remain untouched. Make sure to limit the
icon size.
Bug: 152397193
Test: visual
Change-Id: I36afecfc440fb82814c5bd00ca20e4d71ce40789
Ensure that both local wipe dialogs are shown by the BiometricPrompt
credential view as appropriate:
- A "last attempt" warning dialog when the user is one failure from a wipe
- The "now wiping" dialog shows before the prompt is dismissed
Test: Manual:
1. Create a work profile via TestDPC (go/testdpc)
2. Set a work profile lock pattern/PIN/password via Settings > Security
3. Launch the work profile instance of TestDPC
4. Scroll down to "Lock screen"
5. Tap "Lock screen restrictions"
6. Select the "Work profile" tab
7. Set "Max password failures for local wipe" to 3
8. Lock & unlock the screen
9. Launch work profile app
10. Enter the wrong pattern/PIN/password three times
Fixes: 152016710
Change-Id: I3771d222aaaacef5fa70c1246432a6fd1afdcd42
following ag/10570572, dismiss PiP is driven by SysUI as following
- SysUI issues WindowContainerTransaction and set the child windowing
mode at the beginning
- SysUI continues the animation
- SysUI issues WindowContainerTransaction and set the final windowing
mode at the end
This solves also the black background issue while exiting from PiP to
fullscreen mode.
Known issues
- app does not receive fullscreen configuration when transitioning from
PiP to fullscreen mode
- saving of the reentry bounds should be originated from SysUI rather
than WM going forward
Bug: 149947030
Bug: 151866274
Test: atest PinnedStackTests PipAnimationControllerTest
Change-Id: I7ed0d8b47dcc26653ebe2f3c08acab9e8b835db4
The benefit is that icon colors and icon scaling can be performed on a
background thread and then all of the views updated on the main thread.
Bug: 150454272
Test: atest KeyguardMediaPlayerTest.kt
Test: manual - play music and look at lock screen controls
Change-Id: I2423233f1ddeb081ab420053964c2b1cb2185514
Wi-Fi icon was removed from status bar if it doesn't have internet
access. Rationale was that it gives users incorrect impression that
wi-Fi is enabled whereas in reality cellular is used.
However, in cases where there is no cellular Wi-Fi may be the default
network even if it has no internet access. In such cases, Wi-Fi is the
default network, always show it in the status bar.
Bug: 136473125
Test: atest NetworkControllerWifiTest
Test: visual inspection
Change-Id: I0ec189e2340d3280165cafd8747a7456f7e950f5
- Skip multi-window mode tasks with the exclude-from-recents flag from
the visible recent tasks list
- Expose a method in LauncherApps to be able to start a shortcut with
additional intent flags (to add the exclude-from-recents flag)
- Remove unused ActMan path (only ActTaskMan call is used now)
- Refactor the call to get the running tasks, there are currently only
two usages of getFilteredTasks(), one is to get all the tasks, the
other is really to get tasks that we will end up using for transitioning
into the task in recents.
As such, we can remove the individual ignore flags (it would get more
complicated if we wanted to filter based on logic like MW mode +
excluded recents only), and instead have a boolean that filters the
running tasks based on whether they would ever show in recents at all,
with the exception of the home and recent tasks.
Bug: 152133859
Test: atest WmTests:RunningTasksTest
Test: atest WmTests:RecentTasksTest
Change-Id: Ia4f5fd37228c72ce449490f948e923afba821bb2
Signed-off-by: Winson Chung <winsonc@google.com>