History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c038c32c7c171e004f7cb74a4ab1d469a3b87f18 24-May-2018 Mike Digman <digman@google.com> Tweak new rotate icon and motion

Slightly reduce the icon size to decrease its size relative to the new
back button. Use scaleX attribute to ensure arrows always point in
direction of motion. Fix intro animation bug where rippling would only
happen for first three loops.

Bug: 79930974
Test: manual
Change-Id: I6b8d4acd4c1537649d0120663169e7a1fd4db7fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
4b0351d53f5739394c0bc3a4c3629e5d539279c4 21-May-2018 Mike Digman <digman@google.com> Merge "Extend rotation button timeout duration" into pi-dev
d13e43b2bdd583215805433b1dceb7eeb6e317f9 21-May-2018 Mike Digman <digman@google.com> Extend rotation button timeout duration

Moving from 6s to 10s timeout when navbar is visible.

Change-Id: I3a7067c37f254698ae53fdb9208576f3e486c8ce
Fixes: 79981820
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
96985e74261a0dacec66cb127821d7f2248f8438 09-May-2018 Matthew Ng <ngmatthew@google.com> Fade back button in and out tied with the overview/shelf (1/2)

Back button changes opacity when moving the shelf during swipe up
between home screen and overview. The alpha changes depending on the
progress of the swipe up animation. When going from app to home and vice
versa, the fade animation does not tie with the swipe up progress. The
fade animation also masks the back button drawable when ime visibility
changes.

Change-Id: Idaf219923af58732715d0f0b59386dea7ab0d0ad
Fixes: 74581837
Fixes: 76900236
Test: swipe up from home screen to overview
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
24fd435070bbe56ab1fe8710377ff4418d55b76b 27-Apr-2018 Phil Weaver <pweaver@google.com> Merge "Handle accessibility button state on user switch" into pi-dev
a858c5f60f405621ee9b333c910084ec35150cea 26-Apr-2018 Phil Weaver <pweaver@google.com> Handle accessibility button state on user switch

Bug: 78196203
Test: Enable Magnification with button, switch to guest,
see accessibility button disappear

Change-Id: I4feda07243a6c17a5985f29dbea9d4ad0adcb0cf
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
f4c989962cd8accf027b1f10d4cbd51249886b33 25-Apr-2018 Mike Digman <digman@google.com> Only ripple rotate btn if attached to window

Change-Id: I164ba4ed9166941fe5b8fb96539d4b8e70beb6f7
Fixes: 78532076
Fixes: 78568790
Test: boot test without crash
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
0b2f7503a8069086d2671418d13270caf97853ef 20-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Reset sticky navbar timeout when rotate btn shown" into pi-dev
9b50b76700b2b0b0271e99bf844aa005f9192568 19-Apr-2018 Mike Digman <digman@google.com> Reset sticky navbar timeout when rotate btn shown

First revealing the navbar and then rotating in an
immersive sticky activity makes the rotate navbar button
hard to tap. Signal to the navbar to reset sticky hiding
timeouts if the button becomes visible or changes.

Change-Id: I381bbfd2e0192465b8358bedd213f23dde8ec982
Fixes: 78248328
Test: manual testing with custom immersive sticky activity
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
08a2028228c73d83f37c23eb63d03c2e775d1594 19-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement swipe up and quick scrub onboarding" into pi-dev
27599053d59d43e88cdf1dce16f25a2cf3b0642e 17-Apr-2018 Tracy Zhou <tracyzhou@google.com> Implement swipe up and quick scrub onboarding

Bug: 70180942
Test: manual test
Change-Id: I5c487d1e4ab800450c6b5a8f7ad1bf7434e45904
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
84db16105edcf0c91cc770e7abbff806e0665e37 18-Apr-2018 Matthew Ng <ngmatthew@google.com> Fixes no vibration on old nav bar

Since systemui and launcher are always connected, the old condition for
disabling vibration when systemui and launcher are connected does not
work anymore and instead if the interface changes back to the old nav
bar then enable vibrations.

Change-Id: Ia19c040c65d6fe1d0f05af0ee6cdd11ca3b46bdf
Fixes: 78138490
Test: disable swipe up in settings and press home/back button
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
121b11ff5b80f1d9e762120f9cd87834b05a5b6a 04-Apr-2018 Mike Digman <digman@google.com> Fix null running task info in SysUI tests

Test: failing test now runs
Change-Id: If2917258bc2b0532bfac3ad76340c67da7830c27
Fixes: 76420969
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
074c4344f5f32a6c92ec1736cf0132242da11a21 27-Mar-2018 Winson Chung <winsonc@google.com> Disable long press recents whenever overview service is bound

- In both the quickstep and fallback cases, we'll rely on the UI to
enter split screen and not long press recents button.

Bug: 76438197
Test: Manual, long press recents with fallback activity, ensure nothing
happens

Change-Id: If3f367632c5c9ffae520285c694c71054b02f209
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
f9e302704a3042a4a09cab5ca9dbcb9f34c4ecaa 27-Mar-2018 Winson Chung <winsonc@google.com> Update onboarding based on swipe up state

- We now use the fallback activity for the existing nav layout, which means
that we are always bound. We should update the onboarding listener when
the interaction flags change as well.

Bug: 76309872
Test: Manual
Change-Id: Ib6ad10e9e767adf2e305d8a0a2074516961a60c4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
e14c475043ee6932f3dc1eddf449ca1c83536418 20-Mar-2018 Mike Digman <digman@google.com> Ensure rotate disable2 flag can be set on boot

SUW sometimes calls disable2 before getView() is non-null.

Change-Id: I6a201e05da5e1d72829f469487279d2c607f6eed
Fixes: 75291849
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
dd2f49edb68996ef8d1a62e68a0493d9f98d5fea 16-Mar-2018 Mike Digman <digman@google.com> Add disable2 flag for rotate suggestions

The SUW team has requested a programmatic way to hide rotation
suggestions during setup. Piggyback on disable2 with new flag,
callbacks already available in NavBarFragment. Downgrade
permissions for disable2 to match disable so SUW can use.

Test: manual with SUW variant
Fixes: 75291849
Change-Id: I1021ee5e1628c36ebf53afe843f903006474163e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
3e33da67d47fb78356cc9d3eabaad3c1198acc1f 15-Mar-2018 Mike Digman <digman@google.com> Add rotation logs to help debug bug reports

Debug logs should be turned off for release

Change-Id: I8d9f1ee1e46d014669def25dd47c3a151545afc6
Fixes: 74961129
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
feff6c7d41fe3c78bef976afadc3f9bfcac7fb0e 15-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add IMS#BACK_DISPOSITION_ADJUST_NOTHING" into pi-dev
386f50e04f6e93894a38951cf9e946e9fa952af8 14-Mar-2018 Yohei Yukawa <yukawa@google.com> Add IMS#BACK_DISPOSITION_ADJUST_NOTHING

This is a follow up CL to our previous attempt [1] to make
InputMethodService#setBackDisposition() work and make sense.

Based on the feedback from several IME developers, we learned that
InputMethodService#setBackDisposition() is still confusing.

My conclusion is that trying to reuse existing flags was a mistake.
Here are the rationale for deprecating those two flags.

* BACK_DISPOSITION_WILL_NOT_DISMISS

This flag had never been used until we started using it in our
previous CL [1]. However, it turns out that what this flag means
is hard to understand because its JavaDoc only says
"This input method will not consume the back key."
To address the original goal of Bug 38513361, we can (and should)
introduce a new flag rather than reusing this confusing flag.
Deprecating this flag should have no impact because it had never
been used.

* BACK_DISPOSITION_WILL_DISMISS

On pre-P devices IME could abuse this flag to override the back
button to "dismiss" mode even after IME lost the focus. On the
other hand, as far as we know there is no good use case for this
flag. Hence rather than trying to fix such an abuse scenario, we
should just deprecate this flag.

Instead, a newly introduced flag BACK_DISPOSITION_ADJUST_NOTHING
should be sufficient to achieve the original goal of Bug 38513361.
This flag does not rely on the concept "dismiss" and key event
handling hence it would be much easier to maintain.

[1]: I99e7c413fe1a93f8d8cff897b5c5f0947690d2c0
3fecef119e1921204ea06792586ee10a94608ae6

Fix: 74403102
Test: atest CtsInputMethodTestCases
Change-Id: I064209c40da79fffb2627e8f580818a793017b1f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
2ea93b708dbc49235b42e76a587d5f353638040f 14-Mar-2018 Matthew Ng <ngmatthew@google.com> Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""

This reverts commit 0e490d9208de480ed38fe31a12029fc59b0955e9.

Reason for revert: Will be merged with fix
Bug: 74726495
Test: manual

Change-Id: I36ea9c2702107b23eff4adb1f3ba9fdc1be12999
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
0e490d9208de480ed38fe31a12029fc59b0955e9 14-Mar-2018 Winson Chung <winsonc@google.com> Revert "Centralized quick step/scrub/switch logic (1/2)"

This reverts commit b06ae3bf131b0bd0ded398d3a06974a6a9d78a50.

Reason for revert: b/74726495
Bug: 74726495

Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
b06ae3bf131b0bd0ded398d3a06974a6a9d78a50 07-Mar-2018 Matthew Ng <ngmatthew@google.com> Centralized quick step/scrub/switch logic (1/2)

Moved all the logic for quick step/scrub/switch to QuickStepController
so touch events can be used for deciding which gesture is used. Once a
gesture is decided, the rest will not handle the other gestures.

Quickstep will trigger when passing a touch slop on navigation bar. The
event onQuickStep (with a motion event) will be sent to launcher when
this occurs telling it that systemui is not handling anymore motion
events. During quickstep motion events will still be proxied.

Used raw X and Y motion events for Opalayout and KeyButtonView so that
the moving over the touch slop can be detected to ignore button (long)
press state.

Fixes: 73971902
Fixes: 74456391
Test: swipe up
Change-Id: I40b931aa0a9f123b810ff9206c9b1ce040a68a56
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
4ef95e253138f995b47d3021ac3f2ce4978bffcd 07-Mar-2018 Mike Digman <digman@google.com> Merge "Reset user rotate pref on navbar create" into pi-dev
ab65025833344b3b55bd146a86d48cabe254a89d 06-Mar-2018 Mike Digman <digman@google.com> Reset user rotate pref on navbar create

System appears in portrait after restart, however rotation
watcher callbacks don't fire leaving user rotate pref stale
from last boot. Reset in onCreate and replace override logic
with policy's natural rotation.

Test: manual
Change-Id: Ia1f1e5f637708e5c678edbb5cbf9f4125e451103
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
d0a73e7aa4f40e8cdb2f25edd9c3946beaf5c957 03-Mar-2018 Matthew Ng <ngmatthew@google.com> Shows the correct home icon when quickstep is enabled on startup

The wrong home icon was shown on startup because it takes sometime for
the disabled flags to set disable recents flag that determines if
overview is enabled. When it changes to be true update nav bar icons.

Test: boot phone and look at nav bar
Change-Id: Ib1c00cfa1c3eb0444ccc985dfaf1b3c74e790692
Fixes: 74071465
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
5aeca79673d142f9924f71fc6055c46d837a95e7 05-Mar-2018 Mike Digman <digman@google.com> Increase rotate suggestion timeout in fullscreen

To use the rotate nav button in fullscreen the navbar must
become visible. This normally requires a user gesture which
makes it hard to hit the button given its normal timeout
duration. Make it easier to tap by effectively extending the
timeout if the suggestion is given when the navbar is
invisible.

Test: manual with fullscreen testing app
Change-Id: I54ac3dfb590df9b9a039c53984623497ca18fcb5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
64543e668f3f044916363f586f27161004bf3c4b 01-Mar-2018 Matthew Ng <ngmatthew@google.com> Prevent nav bar vibrations when overview proxy is connected (1/2)

Systemui can control when to allow vibrations on virtual key vibrations
on key down when overview proxy service is connected. This prevents
vibrations from KeyButtonView when swiping up over a navigation button.
This gives more control over haptics to systemui so that in the future
launcher can send haptic feedback when quick step begins.

Bug: 73919295
Bug: 73942704
Test: swipe up from navigation bar
Change-Id: I5de2a6f199d7e08b4d146e729f4b9c89b2adcded
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
6ff33b7f5364d83fc2034af03f53efdb28d36b6e 27-Feb-2018 Matthew Ng <ngmatthew@google.com> Fixes set lock task (and screen pinning) state with/out quickstep

When quickstep is enabled, ensures that the home button is gone when
locked to task without home access and prevents quickstep when overview
access is disabled. When quickstep is disabled, fixes recents visibility
according to overview access. Also prevent screen pinning after locking
task to app.

Bug: 72799389
Fixes: 73886663
Test: manual - use quickstep when locked to task
Change-Id: Iacfa0b12374217511602cee6c2ca5ceafd6e2964
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
5075264b6d0a9b2981713b6f65a4a65d2e9afce8 15-Feb-2018 Mike Digman <digman@google.com> Add intro mode to rotate suggestion button

Ripples the button multiple times when in intro mode

Test: manual
Change-Id: I16ada6014077298aa393ca495db1cd2b275b90dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
61799eacf4af2a9f3b9477096ab7712eb8de22e2 26-Feb-2018 Mike Digman <digman@google.com> Merge "Fix hard to touch and stuck navbar rotate icon"
85a9bea67ad7c4199a95119af690eda5f9a06ce7 24-Feb-2018 Mike Digman <digman@google.com> Fix hard to touch and stuck navbar rotate icon

Hide rotate button on Quickstep navbar grab. Prior signals
didn't always capture this. Launcher now also changes its
requested orientation on touch, ignore that. Pause callback
made hide animator unexpectedly isRunning=true causing the
icon to never fade out, should be fixed now.

Test: manual
Change-Id: I4bb39d57d9cef5748aadf2f18c640feba3f53775
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
fee0b5b26a4b2ccb8aa6396ce903d0a187b26851 22-Feb-2018 Matthew Ng <ngmatthew@google.com> Bringing back assistant on long press home button (1/2)

Triggering assistant should have the home button animations run.
Prevent long press to start quickscrub.

Bug: 70180755
Test: long press home with quick step enabled
Change-Id: I8bb75210b1bd15eeb97a8b2bf9bbe022f1822dfe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
1e28a5ae5031d1407cd2b55d5140ce336428a38b 14-Feb-2018 Mike Digman <digman@google.com> Update rotate suggestion button icon+motion

Motion is dynamically set to match pending screen rotation through
styling. AVD bugs make consistently looping motion hard, looped instead
within AVD. Refactor some logic into NavBarFragment for simplicity.

Test: custom Gingerbread app with menu and IME, a11y manual toggling
Change-Id: I5a975785203aeaf46c36962be05cab6abdc628a1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
8f25fb96e2e3c064869dad00e7234013ac22c5d7 17-Jan-2018 Matthew Ng <ngmatthew@google.com> Add more controls for launcher to control sysui

Added a 4 flags to control the state of system ui:
1. Disable swipe up navigation (prevents motion events going through)
2. Disable quick scrub (& step)
3. Show overview button (hidden by default)
4. Hide back button (shown by default)

Test: manual
Bug: 67957962
Bug: 70180755
Change-Id: Ibc44af9bbdfa9611688fe12285a999d81b8287e9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
6a9fb9433306cbc3d0e1be3968729589f3218c65 14-Feb-2018 Mike Digman <digman@google.com> Merge "Move rotate navbar button to the right stack"
8583ae8a6af11bedbb00a4eb9efd2565da2fecbb 13-Feb-2018 Phil Weaver <pweaver@google.com> Add a11y titles for a few sysui windows

Adding for status bar, nav bar, and global actions dialog.
Also removing some extra code from global actions dialog
that populated window state changes. Apps in general don't
need this extra information, so we don't need to maintain
it in SysUi either.

In verifying the fix, I noticed that all windows were
considered anchored because of a mismatch between long and
int. Fixing that too.

Bug: 73131182
Test: With the testback a11y service, verified that these
titles do indeed appear in the window information provided
to accessibility services. Also noted that windows are no
longer reporting themselves as anchored.

Change-Id: Ie09fbb88250b3c9663d6c28001e0ce9f70c67954
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
a48cf192f37bc94740594a1731716403bb03ec39 13-Feb-2018 Mike Digman <digman@google.com> Move rotate navbar button to the right stack

Puts button below A11y button but above IME switcher and menu.
Removes distinct rotate option from SysUI tuner.

Test: custom Gingerbread app to test menu+IME, manual a11y testing
Change-Id: Ieef352ecb679c069d8535eb058c82ccf868af2ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
9c3bce5c4444bcf98bc6342fa5c448345bb67a6c 01-Feb-2018 Matthew Ng <ngmatthew@google.com> Fixes crash null exception on land/seascape pinned orientations

Reverts the revert of ag/3546427 and fixes the regression.

Didn't add the ids to the layout in landscape and seascape that caused
the crash. Also fixed a boolean parsing issue in CommandQueue and
correcting the unpin button press when it lays the buttons after
overview proxy connects to launcher.

Change-Id: I59791f6a08e11d17dfb32ab3a2733766c8cf1036
Fixes: 72800226
Test: manual, rotate screen and pin (like in play movies)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
9b9d0c513a8f25d2a3dcdaeee15c9b727ede385c 01-Feb-2018 Matthew Ng <ngmatthew@google.com> Revert "Uses back and home button for screen pinning when recents is invisible"

This reverts commit c4356fb75318967148e8394878af1c13d37080dd.

Reason for revert: Regression b/72800226

Change-Id: Iaa14de444c00a9da7c3b3a6d8828f40d66a8ac29
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
c4356fb75318967148e8394878af1c13d37080dd 19-Jan-2018 Matthew Ng <ngmatthew@google.com> Uses back and home button for screen pinning when recents is invisible

All the text and screen pinning hint shows tells the user that the back
and home button should be held to exit screen pinning. The hint also do
not have the recents button shown if it is invisible. The toast code has
been moved to recents and services calls through to post a toast message
depending if the recents button is visible.

Test: manual
Fixes: 72059911
Change-Id: I93abf5072b97760f33e7e77421544a4b3ad27beb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
72c510f1c4d5cff42a3925a784027e258ac0bcdc 23-Jan-2018 Eugene Susla <eugenesusla@google.com> Revert "Move A11y events throttling away from View(RootImpl)"

This reverts commit e4d31b3c103045d5b2b141a05084dced595cc64f.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
20c7cf950d5c0446aa073b4c0ed131bbc10a5401 26-Jan-2018 Tarandeep Singh <tarandeep@google.com> Merge "Make IMS.setBackDisposition() work."
857b165867a21d5029891b3edb8c5e4631460a9c 25-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Disable quick step when notification is open"
78f88d10ba61ebe25457aaeefc88b8a2460998e4 23-Jan-2018 Matthew Ng <ngmatthew@google.com> Disable quick step when notification is open

When notification shade is open, any swipe gestures should only affect
the notification shade. When the shade is gone, users should be able to
interact with quick step again.

Change-Id: I18bede697ae81b8010f10bf5e538d3142b39c86f
Fixes: 72185561
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
c94759d89804d1e8cca8c64343b19d1ebac53b32 23-Jan-2018 Mike Digman <digman@google.com> Log rotation suggestion events in SystemUI

Also use non-static MetricsLogger calls
Test: manual

Change-Id: Ib32b1320934698b98103d7fa5f4929d8247a43f6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
85ff7fa1687658d37c8701f45a534cb5866df077 23-Jan-2018 Mike Digman <digman@google.com> Make rotation locked orientation flow ignore forced landscape

Fixes: 72206087
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
3fecef119e1921204ea06792586ee10a94608ae6 22-Jan-2018 Tarandeep Singh <tarandeep@google.com> Make IMS.setBackDisposition() work.

InputMethodService.setBackDisposition() has been broken from a long
time. This is how setBackDisposition() is supposed to work
1. BACK_DISPOSITION_WILL_DISMISS:
When Keyboard is visible back button will show as down arrow (in
navigation bar) and tapping it will dismiss keyboard.
2. BACK_DISPOSITION_WILL_NOT_DISMISS:
When keyboard is visible, back button will be shown as BACK arrow and
tapping it will send the back event to current activity. If activity
doesn't handle onKeyDown() for back button, activity will finish and
keyboard will hide.

Note: backDisposition flags reset when finishInput() is called.

Bug: 38513361
Test: Manual with apk attached in bug
Test: atest InputMethodServiceTest
Change-Id: I99e7c413fe1a93f8d8cff897b5c5f0947690d2c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
90402957beb698799f65aa6756633554d121bc11 23-Jan-2018 Mike Digman <digman@google.com> Add a11y, hover support to rotate suggestion button

Tweaks timeouts from volume dialog for a11y and hover. Repurposes
volume dialog code to detect when a11y feedback services are active.
New content description needs to be localized. Also includes some
related cleanup.

Test: a11y manual by toggling service, hover manual with usb mouse

Change-Id: Ife12c74910c1658e06e75a4baf393a56568e985b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
e07773175a55807e68aba6cd8a69b2401b748883 19-Jan-2018 Mike Digman <digman@google.com> Send valid and invalid rotation proposal changes to SysUI

SysUI needs a signal to remove active proposals if the proposal
changes to an invalid one.

Test: manual, visual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
7d09277f99ca919db70d45425bd366ff1b1b7e0e 11-Jan-2018 Mike Digman <digman@google.com> Add rotate suggestion button by default to left side of navbar

Icons, animations are preliminary
Test: manual

Change-Id: If8a6942c1e78f6cfb5aae6d78e6acfa2b0bb6566
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
dc79e5c5801b2b6ed6b0a41d8b02832bae33a848 15-Dec-2017 Matthew Ng <ngmatthew@google.com> Remove recents button and longpress home when connected to service (1/2)

When overview is connected to the launcher service, long press to launch
assistant, the diamond animation and the recents button will be
removed.

Test: manual - enable new experience in launcher settings
Bug: 67957962
Change-Id: I8e976ae36465476e6287e0c1190cd2964099bbc6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
ea03be1056d44328b96559702791bdac2a466002 04-Dec-2017 Jason Monk <jmonk@google.com> Add latency logging for rotation

Move LatencyTracker and sysui_latency to make this possible

Fixes: 67862696
Test: atest
platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/LatencyTests.java#testRotationLatency

Change-Id: I42e3218355c162d4ba04b0f2c49e031156b5a357
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
cb5d316646df62e9ca84cdf0b03ce7d53ae6396b 09-Aug-2017 Eliot Courtney <edcourtney@google.com> [StatusBar] Remove unused code. General clean-up.

Bug: 62602530
Test: Compile, run on Pixel
Test: runtest systemui
Change-Id: I9238dae185d4e9b3f86e53a839c71af7215ac231
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
a83859ffaa4d339729cbc1a8c114b73c6afedb00 03-Jul-2017 Benjamin Franz <bfranz@google.com> Refactor all lock task related methods into a new class

This simplifies the way lock task mode is called by creating a class
that is fully responsible for managing locked tasks. This enables unit
testing and makes it easier to see where individual calls are coming
from. Feeling is that there are some subtle bugs around synchronization
and expectations on the locked task APIs.

Also added unit tests for the new manager class.

Test: bit
FrameworksServicesTests:com.android.server.am.LockTaskManagerTest
Test: go/wm-smoke
Test: cts-tradefed run cts -m DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Bug: 63909481
Change-Id: I3fa8606778fea5a801c21aebeb231db5a6bee47f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
43db6d26d8cfc7004c0f71f7e8f8de59081f6ccd 28-Jun-2017 Matthew Ng <ngmatthew@google.com> Android Recents implementation for low ram devices

For now the implementation is set behind the ActivityManager flag if the
device has low memory.

This implementation has a linear list of tasks and less functionality
such as removing split screen and reducing the amount of tasks shown to
9. For more information please check out the bug.

Bug: 62251652
Test: manual
Change-Id: I8e0a822a865089df1e8bef55ca61ed30978748d0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
bc6a3043a24fe1418d611911c0097ec04c8453f1 15-Jun-2017 Marc Hittinger <trojal@google.com> Merge "Remove redundant hwaccelerated enabling."
d002a0a96eb857804b3aafbcd32cf66a378c5b6c 05-Jun-2017 Siarhei Vishniakou <svv@google.com> Remove unused variable 'screenon'

Test: make
Change-Id: I341ef164b2e56a774b531aff7020c82aa69d1157
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
ab1684790280be50317cfb80d5cf68913197c158 05-Jun-2017 Siarhei Vishniakou <svv@google.com> Remove unused function

Test: make

Change-Id: Ia8dd15d0490a99adc91636ad4641c3df846a024c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
c9f7fa56d5d364798c91a7743bf6f6a067dfa4bb 01-Jun-2017 Erik Wolsheimer <ewol@google.com> Merge "Support multi-window on low-memory watches." into oc-dev am: c6372cceb1
am: ba90d46a6e

Change-Id: I133f2ede861a2c55df7cda26f34c80447c80733d
9be3a060827154617eed9132c64431af56d98eb4 31-May-2017 Erik Wolsheimer <ewol@google.com> Support multi-window on low-memory watches.

On watches, multi-window is used to present essential system UI, and thus it
must be supported regardless of device memory characteristics.

Bug: 37482466
Test: Manually, on a watch
Change-Id: I7929a090b7fd46de019d237ce771c82a6d7fd3f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
fc25704a86c9c0dfb85ed04b6fd6d239c7757526 20-May-2017 Marc Hittinger <trojal@google.com> Remove redundant hwaccelerated enabling.

Hardware acceleration is enabled on the application level in the
manifest. This cleanup-only CL removes redundant calls to enable
hardware acceleration on the level of activity, window, or view.

Test: Ran systemUI jank tests checking for lack of jankiness.

Change-Id: I37a9b687be3aaf95f9ba497e99cabd5f8c73ace1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
d4afe152bf5cd93e5034f5b8b43b2f0fe0269a7f 01-May-2017 Jason Monk <jmonk@google.com> Rounded corners support, off by default.

Test: runtest systemui
Bug: 33208650
Change-Id: I63e11e36268e277cc1c5e70651fa5248aa8b3fc0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
4cab9308fc73967f8085325b237d30978a7ba6da 31-Mar-2017 Phil Weaver <pweaver@google.com> Hide API to listen to a11y service state

Hiding and adding the requested return value, so if we
later decide to unhide it we'll be up to snuff for API
review.

Bug: 35764675
Test: Verified that the two features that listen, a11y
volume and the accessibility button on the nav bar, work
properly. Also ran accessibility CTS.
Merged-In: I47b62f2b4fd1ea4a7e697d20a3bb2c3201f6bcce
Change-Id: I4df6164772eb01b4f988c201f46c788eb7124511
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
db9a77401356fac8b77fbf9f8180863ea4eeb924 18-Apr-2017 Phil Weaver <pweaver@google.com> Pre-merge hide API for a11y service state

Presubmit failed because automerge failed on master
for some reason.

Bug: 35764675
Test: Ran a11y CTS
Change-Id: I47b62f2b4fd1ea4a7e697d20a3bb2c3201f6bcce
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
0b67d53ba9f98176060eb8916acae18869e56746 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix leak in nav bar" into oc-dev
91e587ebbc5b208f152c8a882f9e137f2525410e 13-Apr-2017 Jason Monk <jmonk@google.com> Fix leak in nav bar

Test: runtest systemui
Change-Id: Ib082ef216f1541911acbed84942ddfd5dd065a7f
Fixes: 37220220
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
5d6144056493b0d657e74d13de8e751c06510357 06-Apr-2017 Casey Burkhardt <caseyburkhardt@google.com> Improved multiuser support for A11y button/Magnification

- Ensures NavigationBarFragment updates Accessibility button state
based on the settings of the current user.
- Launches AccessibilityButtonChooserActivity as the current user

Bug: 36652061
Bug: 36699310
Bug: 37103953
Test: Manual
Change-Id: Ieded484d548fb4631ceb8a873d667dd53fd2fd79
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
5e8b980c5d6bc282b51b3ddfc8722ff973c7e885 24-Mar-2017 Casey Burkhardt <caseyburkhardt@google.com> Target selection for Accessibility button

Allows for selecting a single accessibility service or feature
to be triggered by the accessibility button in the navigation bar

Bug: 34720082
Test: Manual
Change-Id: I320febede0398b1eff38a87d4db31fd7dfc53062
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
b9dcd66aaeb57e8427eedb52a3d9149f395bb228 20-Mar-2017 Casey Burkhardt <caseyburkhardt@google.com> Fix NPE in NavigationBarFragment

Retains handle to a ContentResolver within NavigationBarFragment
to account for Context sometimes being unavailable.

Bug: 36356742
Change-Id: Id9070276feb77126e4d0358b8db91516f27ace47
Test: Manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
74922c63e1dfba074aa9219034e48a161bdfba5b 13-Feb-2017 Casey Burkhardt <caseyburkhardt@google.com> Display magnification via the nav bar Accessibility Button

Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
35fa3c26adcb5f6577849fd0df5228b1f67cf2c6 11-Mar-2017 Andrii Kulian <akulian@google.com> Associate rotation watchers with displays

Displays can be rotated separately and rotation watcher clients
are only interested in rotation of some specific display. This CL
adds displayId to rotation watchers and only informs them about
changes on their display.

Bug: 34242678
Test: Manual and debug.
Change-Id: If0f03804da0392c2b14a4e7c2d6a06068ad8760b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6b 27-Jan-2017 Jason Monk <jmonk@google.com> Work on separating out the status bar management

Lots of stuff:
- Make StatusBarIconController be a permanent dependency
- Break out dark stuff into DarkIconDispatcher
- Create StatusBarFragment
- This bit is a bit ugly for now, but will be better later
- Other stuff probably

Test: runtest systemui
Change-Id: I4973bc9f944e66af92731bf1edd2b39657f1782f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
048c2bc19af4cfcb5e959f1bc07fbfa03a72e330 09-Dec-2016 Casey Burkhardt <caseyburkhardt@google.com> Initial implementation of Nav Bar Accessibility Button

This allows an AccessibilityService to set a flag in its
AccessibilityServiceInfo that triggers the navigation bar to show an
Accessibility Button and observe callbacks when the button is clicked
or there are changes in the visibility of the navigation bar.

Test: Manual (Created a sample AccessibilityService) + CTS
Bug:29231271
Change-Id: I03d653d85bc37df28ed71d8bba94b7c75fe56e43
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 26-Jan-2017 Jason Monk <jmonk@google.com> Delete BaseStatusBar

It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
d339538a67b7d6bb3d7ad73f31ad20ffc932f891 13-Dec-2016 Winson Chung <winsonc@google.com> Remove dependency on resizable activity to enter PiP.

- Removing the requirement for activities to have both the
resizeableActivity and supportsPictureInPicture attribute
to enter PiP. The activity may still be resized when
entering picture-in-picture.

Bug: 34256643
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: If6bd4721c53072e5518f554a8c7598705517c132
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
9c7844cb91b43929d0a86b1c90aa1efb37f5463a 18-Jan-2017 Jason Monk <jmonk@google.com> Work on sysui dependencies

One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
865246dc9ac488a440f8ca13973dbd8c60fede1e 19-Jan-2017 Jason Monk <jmonk@google.com> Fix crash from AssistManager

It expects to have onConfiguration called at least once, so
make sure it has.

Test: runtest systemui
Bug: 34377261
Change-Id: Iba980b020ef2c175c7ffebedf946edb282be464c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
49fa016a98cef9940c883b3f620a0e90537a204e 11-Jan-2017 Jason Monk <jmonk@google.com> Move navigation bar logic to its own class

Start hacking away at PhoneStatusBar by trying to pull out
as much NavigationBar logic as possible.

Test: runtest systemui
Change-Id: I23b904428be31b91f0747fd60c9f6e0dd323eb44
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java