356 Commits

Author SHA1 Message Date
TreeHugger Robot
c01dd791c3 Merge "Fix monkey crash" into oc-dev 2017-04-05 15:55:42 +00:00
TreeHugger Robot
1e943b3ef0 Merge "Make sure to remove child views when recreating notification menu row" into oc-dev 2017-04-05 15:20:50 +00:00
Geoffrey Pitsch
029a3fa6db Inline Controls hide Settings button when no appropriate link.
Notifications sent to USER_ALL when not the system user.
Fix bug when notification wants to unhide the settings button.

Test: runtest systemui
Change-Id: I45c91426c8ec68eac19ab33378a33e5376bfc9e2
Fixes: 36708034
2017-04-04 09:26:39 -04:00
Jason Monk
6997da71fb Fix monkey crash
Test: runtest systemui
Change-Id: I6706a9e1bb7935d709f10c192f421fe1d321fe1d
Fixes: 36779672
2017-04-03 15:22:54 -04:00
Mady Mellor
0df26108c5 Make sure to remove child views when recreating notification menu row
Test: added NotificationMenuRowTest.testRecreateMenu() + runtest systemui
Bug: 36855649
Change-Id: I4045dc292eb2b5a817ae8d2e78cbce50d4d22b41
2017-04-03 11:57:57 -07:00
TreeHugger Robot
a56b6e530a Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev 2017-04-03 15:37:18 +00:00
TreeHugger Robot
f244f7e1b8 Merge "Fix losing status bar icons on config changes" into oc-dev 2017-04-03 15:05:38 +00:00
Jason Monk
de8cd0e8f5 Merge "Switch cast over to support library dialog" into oc-dev 2017-04-03 13:34:19 +00:00
TreeHugger Robot
cf6fa5e951 Merge "QS: Add transient icon for hotspot" into oc-dev 2017-03-31 23:18:43 +00:00
Jason Monk
110e5f6c16 QS: Add transient animations for bluetooth and wifi
Test: runtest systemui
Change-Id: I04a81e1b36a6595bfb102603ad07b079c8b0ee77
Fixes: 26781226
2017-03-31 13:51:03 -04:00
Jason Monk
e645aee45a QS: Add transient icon for hotspot
Will make the loading time more clear.

Test: visual
Bug: 32270851
Change-Id: I0ea7591da132ff65fb7fc16b03b2891891e66598
2017-03-31 13:49:21 -04:00
Winson Chung
ac52f2892d Ensure we show the PiP menu in response to KEYCODE_WINDOW.
Bug: 36687605
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testWindowButtonEntersPip
Change-Id: I0bb35fd666eb6a438e4676267f6726b44bffb3db
2017-03-31 10:42:53 -07:00
Jason Monk
6eb906ecc3 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
2017-03-31 10:53:29 -04:00
Jason Monk
1cbf5fbd7a Switch cast over to support library dialog
Makes UI more consistent and removes the cast detail panel from QS.

Test: visual
Change-Id: I9a70b9695511c5f1e4235a838a071079506963a6
Fixes: 35407111
2017-03-30 15:23:43 -04:00
TreeHugger Robot
a07ce03d3c Merge "Wait to unlock before changing notification importance" into oc-dev 2017-03-30 16:14:03 +00:00
Geoffrey Pitsch
5278d3d38c Wait to unlock before changing notification importance
Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464
2017-03-30 09:55:51 -04:00
TreeHugger Robot
c463bed8db Merge "Make sure TileServices get onTileRemoved on reset" into oc-dev 2017-03-29 20:04:04 +00:00
Jason Monk
903556b162 Make sure TileServices get onTileRemoved on reset
Test: runtest systemui
Change-Id: Ic23eb6759f99c9cfe45ab975b3bb723dae56e0d8
Fixes: 34481238
2017-03-29 13:13:51 -04:00
Jason Monk
cd74f6971f Don't allow settings launch when user isn't setup
Test: runtest systemui
Change-Id: Ia0c90f981b9d45e8e3e8c09771d4baa8ab9fabff
Fixes: 31737292
(cherry picked from commit 7d596d522c06e768e7ff511da30cd3ddfa781223)
2017-03-28 21:24:48 +00:00
Jason Monk
9a82d12462 QS: Don't animate first state change
Test: runtest systemui
Change-Id: I151af59665c74ca04839f7d33153fb8c90ddd996
Fixes: 36076790
(cherry picked from commit 2b48aa3f71403f41f6d6b90cfe437ee4bdce160f)
2017-03-28 18:14:49 +00:00
Jason Monk
da9395e681 Fix QS getting stuck in weird animation during recreate
Don't animate on first state change in QS, no reason to animate on
bootup or recreate.

Test: runtest systemui
Change-Id: Ib1ceddd708fdc922224b57dbfe12d2f9a76fcee3
Fixes: 35116271
(cherry picked from commit 2da4619b12a4c65a645534079057e7d2bb0bae21)
2017-03-28 18:04:22 +00:00
Jason Monk
64b214ea16 Have QS fragment keep track of some state on recreate
Test: runtest systemui
Change-Id: I1cf84a0943092fcfc5428fcfccb4a887a83b294b
Fixes: 35205198
Fixes: 36592148
(cherry picked from commit 78187249c3e8aaf89a380816e123a3a4653d5b4e)
2017-03-28 18:01:50 +00:00
Jason Monk
b29e0db8f8 Merge "Fix status bar visibility initialization" 2017-03-27 20:20:28 +00:00
Jason Monk
60033fc070 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
2017-03-27 12:41:32 -04:00
Jason Monk
8c09ac7435 Clean up and cover more QS metrics
Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
2017-03-27 12:36:25 -04:00
Mady Mellor
be976024a8 Merge "Add plugin interfaces to control notification menu / swipe behavior" 2017-03-24 16:54:18 +00:00
TreeHugger Robot
01b9a95eb5 Merge "Revert "Integrate new looper apis into testables"" 2017-03-24 14:20:16 +00:00
Jason Monk
fd8f615953 Revert "Integrate new looper apis into testables"
This reverts commit f715f417d23d0605abcac309135340ac6ce311ce.

Change-Id: I4c0c12d8687426cecccf0f8dad710ea42699727b
2017-03-24 12:44:34 +00:00
Jason Monk
287eb95e68 Merge "Less cereal, more stable" 2017-03-24 00:35:28 +00:00
TreeHugger Robot
f5604e101b Merge "Notification Inline strings for non-upgraded apps" 2017-03-23 22:19:40 +00:00
Geoffrey Pitsch
ee8c81ee56 Notification Inline strings for non-upgraded apps
Also fix string typo - "1 of n notification categories"

Test: runtest systemui
Change-Id: I6f48f2ffde4896341ee0a435b9b1dc6a1255ea48
2017-03-23 14:59:05 -04:00
Jason Monk
6ab83ad110 Less cereal, more stable
Sometimes when the PluginManagerImpl got around to executing the
message it posts in the constructor, the next test would be initializing
the Dependencies and it would cause a crash. Clean up this whole
thing by making the looper injectable and the message runs at
a deterministic time.

Test: runtest systemui
Change-Id: I485d72aea22aa8f6c759012d54701af8a503681b
2017-03-23 14:52:17 -04:00
Jason Monk
f715f417d2 Integrate new looper apis into testables
Test: runtest --path frameworks/base/tests/testables
Change-Id: Ic12c85ecbd9534a676bd2d7f8643a0c2b4b849b2
2017-03-23 14:52:10 -04:00
Mady Mellor
95d743c38c Add plugin interfaces to control notification menu / swipe behavior
1) Updates the notification menu plugin to do more:
- The plugin can now supply the view it wants to display behind a
  notification as the menu
- Touch interaction (i.e. notification translating on top) is piped
  through to the plugin so it can update the view behind the notification

2) Makes NotificationMenuRow an implementor of the plugin which moves
   a bunch of that logic out of NotificationStackScroller

Test: runtest systemui
Change-Id: I8723b96c195ff7311317d5523418cfcbe2a79b52
2017-03-22 19:04:50 -07:00
Dan Shi
874a0916fc Merge "Add test configs to apct tests under frameworks/base" 2017-03-22 17:55:58 +00:00
TreeHugger Robot
914c4ab1ed Merge "Fix QS/status bar BT state" 2017-03-21 18:10:04 +00:00
Jorim Jaggi
6f9dbcb742 Implement new thumbnail loading strategy
- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
2017-03-21 14:59:48 +01:00
Dan Shi
7f2afd2dff Add test configs to apct tests under frameworks/base
TouchLatency is needed by test TouchLatencyJankTestWear
UiBench is needed by test UiBenchJankTests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
make -j32 TouchLatency TouchLatencyJankTestWear  && \
tradefed.sh run template/local --template:map test=TouchLatencyJankTestWear \
      --test-tag testname --log-level-display VERBOSE
make -j32 UiBenchJankTests UiBench  && \
tradefed.sh run template/local --template:map test=UiBenchJankTests \
      --test-tag testname --log-level-display VERBOSE

Change-Id: I63f23e3a21ad1343607953958fb7bb0a5fb8c343
2017-03-21 00:05:14 -07:00
Geoffrey Pitsch
d0856f00c7 Inline Notification Controls to full spec
Based off redline spec
Support bundled notifications when long-press on summary
Hide banned text when sent from the default channel

Test: runtest systemui
Change-Id: I9315b4dc12cafbdf37ba9896879bfbe23c8d6921
2017-03-20 10:42:23 -04:00
Jason Monk
6a73e63463 Fix QS/status bar BT state
The adapter state doesn't always seem to be reported correctly, so
if in doubt, calculate the adapter state based on the list of devices
we have.

Test: runtest systemui
Change-Id: I25f68665cdcb411e6976c9efc6b61612fe81302c
Fixes: 34598634
2017-03-17 11:08:30 -04:00
Paul Duffin
a7773c2fb1 Change dependency to standard mockito-target-minus-junit4
The mockito-updated-target-minus-junit4 target was added because
some tests needed a later version of mockito than was available
through mockito-target-minus-junit4. Since the latter has now
been upgraded to 2.7.13 that is no longer true and so users of
mockito-updated-target-minus-junit4 can be switched to use
mockito-target-minus-junit4 instead.

Bug: 32912773
Test: make checkbuild && runtest systemui
Change-Id: If7e4dd26d7d0e93731856e9739a048c89a835333
2017-03-17 13:52:15 +00:00
TreeHugger Robot
587b60282e Merge "frameworks/base: Add APCT tests to the device-tests suite." 2017-03-16 17:35:12 +00:00
Julia Reynolds
1d97e6a0c1 Remove resource id channel/group name fields
Apps can listen for the LOCALE_CHANGED broadcast to
change names if needed.

Fixes: 35336590
Test: runtest systemui-notification, cts, manual
Change-Id: I62d2778f61e99200692755a6f268828a374837e6
2017-03-16 14:20:28 +00:00
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
TreeHugger Robot
b40c82f230 Merge "Move out test utilities to a Testables library" 2017-03-15 00:55:20 +00:00
Adrian Roos
af45b60e90 Fix flakey KeyguardIndicationControllerTest
The test in question would pass only when the device was
not charging, because the KeyguardIndicationController registers
itself with the KeyguardUpdateMonitor and shows indications when
the device starts charging.

Fixed by not registering the controller with the KeyguardUpdateMonitor
and instead driving the controller's callback directly.

Change-Id: I6828a97a36572be9e7520ce9a82afddf474d4008
Fixes: 36211361
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/KeyguardIndicationControllerTest.java -m transientIndication_releasesWakeLock_afterHidingDelayed
2017-03-14 14:21:40 -07:00
Jason Monk
340b0e5216 Move out test utilities to a Testables library
Test: runtest --path frameworks/base/tests/testablets/tests
        && runtest systemui

Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0
2017-03-14 17:17:54 -04:00
Geoffrey Pitsch
164c648d18 @Ignore for KeyguardControllerTest
transientIndication_releasesWakeLock_afterHidingDelayed is slightly
flaky.

Test: runtest systemui
Bug: 36211361
Change-Id: I0e71c445efae54c45cca418653a8d6df2888d722
2017-03-14 10:52:58 -04:00
Maurice Lam
95628d6d25 Merge "Add permission to show notification during setup" 2017-03-10 21:14:58 +00:00
TreeHugger Robot
1eb124656d Merge "Fixed a bug where the increased height wasn't applied correctly" 2017-03-10 03:22:16 +00:00