• Home
  • History
  • Annotate
  • only in /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
History log of /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6ad0e39f338d47e75bd1b964259ba21c00043f45 03-Jun-2017 Siarhei Vishniakou <svv@google.com> Revive DeadZone

Override dispatchTouchEvent for the root FrameLayout
of NavigationBar to process ACTION_OUTSIDE MotionEvents
and dispatch directly to DeadZone to keep track of the
most recent outside tap.
Clarified documentation of ACTION_OUTSIDE behaviour.

Bug: 37552674
Test: open IME, tap any key, then quickly tap on top half
of the home button. The home button tap is ignored
and device does not go to homescreen.

Change-Id: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23
avigationBarFragmentTest.java
621933fd7bd276c536e6c5c2dd8f5d411283006c 14-Jun-2017 Chris Wren <cwren@google.com> add a log for peek to shade expansion

Move the note_load counter into the manager, replacing
the redundant and useless notification_load counter.

Update the StatusBarTest to allow for hander side-effects.

Test: runtest systemui
Change-Id: I2551c51cc0f4627995abe4401eafc2e5adb3a8fa
Fixes: 27698560
tatusBarTest.java
f8c4add85188a90940d9d7045ab4c945375fcff2 08-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where the notification could stay userlocked

When collapsing the shade while draging down (using fingerprint)
notifications would stay userlocked and would appear in a small
height instead of their regular size.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarWindowViewTest.java
Change-Id: Ibd97a6ce063bc2fcd76f11e010e781a61bd76b5f
Fixes: 36469584
tatusBarWindowViewTest.java
fd3b1a1b76c69d08ab9e9a969a7996b132825943 07-Jun-2017 Jorim Jaggi <jjaggi@google.com> Fix crash in test

Test: runtest systemui
Change-Id: I841b6ed21fb101e7873b218521c480c904f361f8
Fixes: 62389344
tatusBarTest.java
30203159f9b04a7955c4ebdbf8b61f1c754495a2 26-May-2017 Julia Reynolds <juliacr@google.com> Suppress HUNs according to group alert behavior

Test: runtest systemui, systemui-notification
Change-Id: I9f987bc0ba22f2d48b02585fd722880bb5c2a9b5
Fixes: 62126386
tatusBarTest.java
25a52b65b2cac1f49f37f4532cfa62282432957a 23-May-2017 Jason Monk <jmonk@google.com> Add test to verify all sysui tests extend the right stuff

And then make it pass.

Test: runtest systemui
Fixes: 38500852
Change-Id: I377164219e4a4f4d1a99f11ef06da03c2b527eb0
utoTileManagerTest.java
ollapsedStatusBarFragmentTest.java
ozeParametersTest.java
avigationBarFragmentTest.java
tatusBarIconControllerTest.java
91e587ebbc5b208f152c8a882f9e137f2525410e 13-Apr-2017 Jason Monk <jmonk@google.com> Fix leak in nav bar

Test: runtest systemui
Change-Id: Ib082ef216f1541911acbed84942ddfd5dd065a7f
Fixes: 37220220
avigationBarFragmentTest.java
6eb906ecc346f52bfbff8a500673ec66612bd385 29-Mar-2017 Jason Monk <jmonk@google.com> Fix losing status bar icons on config changes

The DarkIconManager was not correctly calling set when icons
were added, leaving them blank after a config change until a new
set came in.

Do some refactoring to fix this and make it more testable.

Test: runtest systemui
Change-Id: I0b231021f2ce7d82a3f84ebb281b4e4fc902a0aa
Fixes: 35367550
tatusBarIconControllerTest.java
b29e0db8f812532a0a4ff9837b1485545f0e3460 27-Mar-2017 Jason Monk <jmonk@google.com> Merge "Fix status bar visibility initialization"
60033fc07023c617e22629b919180054a7ccb11c 24-Mar-2017 Jason Monk <jmonk@google.com> Fix status bar visibility initialization

Make sure it starts up to everything showing and that the StatusBar
calculates the bar mades after it is attached.

There is still a bug where the behind scrim is showing during SUW,
but this fixes many of the issues besides that case.

Test: visual
Change-Id: I93314c607e374c97d5c06f936ef8b7e07e057648
Bug: 36407135
ollapsedStatusBarFragmentTest.java
8c09ac7435c62a8ba2e34d57a7ac3be2ddf23adc 16-Mar-2017 Jason Monk <jmonk@google.com> Clean up and cover more QS metrics

Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
tatusBarTest.java
340b0e5216b4fcc435e0459b1ca46155a572100d 08-Mar-2017 Jason Monk <jmonk@google.com> Move out test utilities to a Testables library

Test: runtest --path frameworks/base/tests/testablets/tests
&& runtest systemui

Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0
utoTileManagerTest.java
ollapsedStatusBarFragmentTest.java
avigationBarFragmentTest.java
fd57db6ead1b990ed000c5cd15d8fd1d1668f13e 09-Mar-2017 Chris Wren <cwren@android.com> re-enable StatusBarTest tests

Also fix a broken test by passing the fake
logger deeper into the status bar.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I74dda6fbcf1e48d9723cd0e7f63eff4a5e561338
tatusBarTest.java
ef3199040f0c87f130f8321d9e937604e9f46ca6 07-Mar-2017 Chris Wren <cwren@android.com> more testable MetricsLogger interface

Begin migration to non-static methods to allow easier mocking.
New clients should use the non-static methods.
Old clients that want to unit test metrics
should move to the new interface.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I168f3787ee50ddde8aa2d42c05b2b816d1d3a30e
tatusBarTest.java
e5b770e47d44a40d412c7d42010b2cf67920d9e3 04-Mar-2017 Jason Monk <jmonk@google.com> Updated QS UI

- Adds footer to QS which contains the date/alarm info
and all touch targets (settings, edit, etc.)
- Swaps out emergency + carrier text on cell tile for a
standard CarrierText from lock screen in the header
to make the header only contain status info.
- Add dividing line
- Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
utoTileManagerTest.java
uickStatusBarHeaderTest.java
69c2d1d7525755edea4a81a6c2d9bca966799a49 23-Jan-2017 Christine Franks <christyfranks@google.com> Add QS tile for Night Display when first used

Bug: 30994985
Test: runtest systemui, and manual - verify that the quick settings
panel does not have a Night Display quick settings tile, then turn
Night Display on and verify that the tile has appeared. Multiuser
does NOT work and is tracked separately.

Change-Id: I997b4ca7952016fc703a6bb777e500f4eccce189
utoTileManagerTest.java
9ec0f1eca44190167c8d8d858cd13c27fe9ce7d2 23-Feb-2017 Jason Monk <jmonk@google.com> Fix roaming getting stuck after changing sims

The header was keeping a map of roaming states which could have
stray old subids in it when it shouldn't. It just needs to be
cleared when the sims change.

Test: runtest systemui
Change-Id: If61b9b5f376daecc49f483b679378c5968a1501c
uickStatusBarHeaderTest.java
02de498b0e6e3bdb57778995b7da644dc3007cc9 11-Feb-2017 Adrian Roos <roosa@google.com> Partial revert of "Disable StatusBarTests due to flakes."

Only disable the flakey metrics tests. The other tests in
this class are fine. Also use @Ignore instead of commenting
out @Test.

This reverts commit 63b55435e8406f3235876da2e672fc8d890fc7c2.

Change-Id: I023e63be18dba3659cabe4db9ae1245ccafe835c
tatusBarTest.java
63b55435e8406f3235876da2e672fc8d890fc7c2 10-Feb-2017 Geoffrey Pitsch <gpitsch@google.com> Disable StatusBarTests due to flakes.

Looks like it relies on some global state.

Test: runtest systemui
Change-Id: If4add9e551bbaef5580df2532f937345c9e69d32
tatusBarTest.java
28d5d220cc66eb4263aaae083a8496950258642b 02-Feb-2017 Jason Monk <jmonk@google.com> Switch fragment tests to use TestableLooper

Test: runtest systemui
Change-Id: Iccbbaca2ef02cb3f5b08eef66c6c939e4ec2a5eb
ollapsedStatusBarFragmentTest.java
avigationBarFragmentTest.java
6f6c0cd4b8f59a6d6bb67196177ee964f6704da3 08-Feb-2017 Chris Wren <cwren@android.com> avoid race condition on very fast tests

most of the use cases for this involve uiautomator tests,
which are slow anyway. In this case it may be possible for
the checkpoint to record the current time, and then the
test event arrive before the clock ticks over to the
next millisecond, which would cause them to be ignored.

If this fixes the flakiness we should consider a more gneeral fix.

Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Bug: 35138327
Change-Id: Idc4aec50df1a75be710c5a69522af058f7e68ec1
tatusBarTest.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
ollapsedStatusBarFragmentTest.java
avigationBarFragmentTest.java
e70ef857fb66d4bee340aca6cbd82944cfefb17a 02-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix leaks in sysui"
de850bbcaa61c1874b803f2086443febbafd81a4 02-Feb-2017 Jason Monk <jmonk@google.com> Fix leaks in sysui

Add support for testing for PluginManager and TunerService leaks
and add tests for the known leaks and fix them. Also port PluginManager
and TunerService to Dependency to make them easier to handle in
tests.

Test: runtest systemui
Change-Id: I5642539ee24dd72f802905106decd0c87b41b4eb
Fixes: 34846972
avigationBarFragmentTest.java
27a52fa86bd279407575192fc9842b6a54624cfb 01-Feb-2017 Chris Wren <cwren@android.com> port status bar logs to Tron V2

Bug: 33303260
Test: runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/legacy/ && runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone
Change-Id: I7746b846247e930617f0b440217635e71ed58bb5
tatusBarTest.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
avigationBarFragmentTest.java
honeStatusBarTest.java
tatusBarTest.java
685db72eb7ddfeef29af1d191e67e0a041191f58 23-Jan-2017 Jason Monk <jmonk@google.com> Fix up the tests (yet again)

Turns out there was an actual bug in QSFooter where it was using
the wrong handler class (and not showing any of its security features),
and it would have been caught by presubmit if it was working...

Test: runtest systemui
Change-Id: Icbb19db1cc6f3f2a5f984618428ceb2899af69ab
avigationBarFragmentTest.java
ef7a4022680c38394e6b154331bf475b5b9c7733 19-Jan-2017 Adrian Roos <roosa@google.com> PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable

Adds a regression test for NPEs around executeRunnableDismissingKeyguard when
a null runnable is passed.

The bug was fixed in I89477a8a0067e285e5d0122e918fac45274c57ad.

Fixes: 33489225
Test: runtest systemui
Change-Id: Ia8981bc4c2a1a0f6d8c48e6d66e2af801d6cddac
honeStatusBarTest.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
avigationBarFragmentTest.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
avigationBarFragmentTest.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
avigationBarFragmentTest.java
fc2b64e3e80d44dabd6c32eb8cd69893d39476a9 02-Sep-2016 Geoffrey Pitsch <gpitsch@google.com> Rename SystemUI "Tests" classes to "Test"

Change-Id: Id29e76b7b1854be5dbf2077c809e7d848687cfa8
ozeParametersTest.java
e9dab0dadeab5d1bf49bf4705bafc226179270c4 26-Jan-2016 Xiaohui Chen <xiaohuic@google.com> DO NOT MERGE sysui: remove shelf

Bug: 26742568
Change-Id: I36bd013c4adb62b76b6f2789aa490c1484a535d7
avigationBarAppsModelTest.java
4b1542a4517ab645c9ad9f9d1373bf8116c25416 17-Sep-2015 Vadim Tryshev <vadimt@google.com> Fix accessibility labels for app icons.

Derive the app labels in a right way.
Not forgetting to get accessibility labels for newly dragged-in apps.

The change adds inefficiency with apps getting repeatedly resolved several times,
which is OK for a prototype, but I have plans to optimize this.

Bug: 20024603
Change-Id: I755d38de34c016d0ec31ecc617f7accfd876693b
avigationBarAppsModelTest.java
4dc0c15a6ac0564b2e7d9d8b957795a373d05907 15-Sep-2015 Vadim Tryshev <vadimt@google.com> Making sure that after a rotation Shelf shows latest set of pinned apps.

2 copies of NavigationBarApps (for vertical and for horizontal orientation) share a single
static copy of NavigationBarsAppsModel.
If the active orientation's view made changes, they are not conveyed
to the inactive one, and if we rotate to show the other view, it will show
stale data.

The fix introduces an event generated by the model, which allows the invisible
shelf to get updated when the visible one makes changes.

Bug: 20024603
Change-Id: I0d749dbac700857b081bce8a5a232f24ba271b25
avigationBarAppsModelTest.java
8786f3cfa8344fea2c9c1e3c485cefb6b8184e26 27-Aug-2015 Vadim Tryshev <vadimt@google.com> Clarifying and stabilizing drag & drop

The existing Shelf DND crashes if profile or app removal happens
while dragging from outside of shelf. This is because in this case
shelf temporary adds a null placeholder enter to the model, and
doesn’t check for nulls in user-removed and app-removed callbacks.

Adding checking for nulls.
In addition, since adding nulls muds the contract between the
shelf view and its model, I’m getting rid of adding null entries
to the model. Nulls are used on the view side, but never leak to
the model.

Because of that, the state of the view (which may have nulls) and the
mode may not match each other during the drag, I introduce storing
app data in views, as a tag. Null tag means a drag placeholder.

Now that the state of the model doesn’t always follow the state
of the shelf via add/remove operations, it makes sense to introduce
set-all/get-all calls in the model, instead of add/remove/get(i)
calls.

Again, all these changes, even though relatively massive, add clarity
into the view/model contract by eliminating strange states where the
model can have nulls in certain positions.

Also fixing a case when removing an app while dragging it happily
creates an icon.

Bug: 20024603
Change-Id: Ie4e617ccf9278708d64ee100265a4858d1227aed
avigationBarAppsModelTest.java
2e8c5bfd6dfb3ff5c64196bbe565446294643d4f 26-Aug-2015 Vadim Tryshev <vadimt@google.com> Adding more checks for apps coming from saved prefs and from DND.

Bug: 20024603
Change-Id: Icb17c4adb55856e027a0443e19c7147c36bc37f4
avigationBarAppsModelTest.java
39810767b05b777321d0b6cc947748b419cafaa2 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Using actual users in more places.

Fixing an issue when installed apps in Guest user were treated incorrectly.
This happened because we used APIs using the systemui current user (0),
not the app's user.

Also, switching AppInfo from user's serial numbers to UserHandle. Earlier,
I declared that user ids (not serials) is the "lingua franca" between different classes,
so, this move is along these lines. In addition, this is simply more convenient.

Bug: 20024603
Change-Id: I749d900aa17083a41e4215c6587ae5ccaa31f5eb
avigationBarAppsModelTest.java
1bec0c472b961e3fe6779f310b601211db9003a6 12-Aug-2015 Vadim Tryshev <vadimt@google.com> Checking for unlauncheable apps.

When loading apps from prefs, detecting apps that cannot
be launched (for example, were uninstalled) and not adding them
to the shelf.

Also watching for apps that become unlauncheable while the shelf
is shown, and removing them as it happens.

Bug: 22694757
Change-Id: Iab9494f0480e9bf4438b72a94041002be010334f
avigationBarAppsModelTest.java
e983fd88b4b738f820e0f51d3595937bd7dce782 12-Aug-2015 Vadim Tryshev <vadimt@google.com> Eliminating “-1” user serial numbers.

These users required special treatment and complicated code development.

Now simply always using the actual value.

Bug: 22609426
Change-Id: Ife44de442de455248ae7a8ebf8655ddbc4c289d4
avigationBarAppsModelTest.java
94d469bba4de287dfc849827a1f7c047e4528401 30-Jul-2015 Vadim Tryshev <vadimt@google.com> Adding multiuser support to the shelf.

All users are stored in same SharedPreferences file. User serial number is included in the preference key.

Prefs for deleted users get cleaned up upon switching to a new user.

Bug: 22853745, 22609426
Change-Id: I7f774483bc660ed5b1e8115da9b468a291488723
avigationBarAppsModelTest.java
c5f860cea05bb3294b0a68ea954097eb819535b4 23-Jul-2015 Vadim Tryshev <vadimt@google.com> Storing and using user id for pinned shelf apps.

We need this to differentiate between starting apps for the primary and
managed users.

This in particular solves the issue when apps were executed as Owner
while we are in Guest account (see the bug).

Valid user ids for a shelf app are either primary or a managed (work)
user for the profile.
Launcher allows mixing apps for for primary and the managed users on
its home screen. Apps for the managed user are marked with a suitcase
badge.

Launcher includes a user id in the drag and drop info that it sends to
SystemUI, as “profile” extra added to the intent.

Shelf now stores this user id and uses it to start apps.

Bug: 22609426
Change-Id: Id4c6c1ac8617a83f4484f78db578955699d1a888
avigationBarAppsModelTest.java
bd8b81717b9dcdc721e2114d5f91b67a7ec2244c 08-Apr-2015 James Cook <jamescook@google.com> Persist navbar app icon list to disk

The icon list is stored in SharedPreferences under
com.android.systemui.navbarapps.

* Introduced a separate data model class for the navbar app list
* All icons are now loaded from PackageManager, not from LauncherApps
* Added test for NavigationBarAppsModel

Bug: 20024603
Change-Id: I0eb3b9e927d3311818096cfd484d6f5a81acbbc7
avigationBarAppsModelTest.java