Commit Graph

19408 Commits

Author SHA1 Message Date
Winson Chung
8779446466 Skip resizing the stack when there is no current bounds.
- When initially calling loadConfigurationsAndApply(), the state is
  set to STATE_NO_PIP when there is no pinned stack.  As of change
  ag/1725150, resizeStack no longer fails silently when there is no
  such stack to resize.  This CL skips the call to resizeStack() when
  the PiP mode is set to STATE_NO_PIP.

Bug: 34692144
Test: Try and launch Fugu
Change-Id: Ic539f4431c2f94e7c10520c383fa49157d1d0631
2017-01-25 21:03:59 +00:00
Jason Monk
d5e96800d2 Merge "Fix up the tests (yet again)" 2017-01-25 19:55:37 +00:00
Selim Cinek
6825542381 Merge "Started visual hierarchy for min priority notifications" 2017-01-25 19:53:49 +00:00
TreeHugger Robot
fbcb01cde7 Merge "Move theme out of tuner and into display settings" 2017-01-25 19:17:22 +00:00
TreeHugger Robot
b93ecbae57 Merge "MessagingStyle: Add historic messages" 2017-01-25 18:47:20 +00:00
Jason Monk
524fb4025e Move theme out of tuner and into display settings
Change-Id: Id939a8a34e92c6190c59317155238697861a65e5
Fixes: 34682466
Test: Manual
2017-01-25 12:32:07 -05:00
Adrian Roos
437cd56a7f MessagingStyle: Add historic messages
Adds an API to supply additional context to a Notification that uses
MessagingStyle. To be used in the future to enhance the Direct Reply
experience.

Test: runtest cts
Change-Id: I6da0b9067cbffbaae2bd3c5d9606a0b5437f1ed4
2017-01-25 16:55:57 +00:00
Daniel Sandler
5403efba3c Merge "What color starts with O?" 2017-01-25 16:45:39 +00:00
Dan Sandler
a0594667fb What color starts with O?
Fixes: 34609358
Test: visual
Change-Id: I00f4559abc30720ee04c09e0d04fa91de67ceeb9
Hint: NOT TEAL
2017-01-25 11:36:37 -05:00
Andrew Sapperstein
fed233eff5 Decrease frequency of high temp warnings am: 97bfa0f17d
am: be0f185de9

Change-Id: I8922139364c0b03927141236325b3ce667280dc6
2017-01-25 16:13:39 +00:00
Andrew Sapperstein
be0f185de9 Decrease frequency of high temp warnings
am: 97bfa0f17d

Change-Id: I48237148a12cbf8b11df798001aa5c99428a6daa
2017-01-25 16:08:41 +00:00
Selim Cinek
6743c0bd52 Started visual hierarchy for min priority notifications
Min priority notifications are now greyed out and in an
even smaller form-factor then before.

Test: add low-priority notifications - observe visuals
Bug: 34469375
Change-Id: I3ce2cbf22dbc3276ac738224a16c1b10165964f3
2017-01-24 18:58:55 -08:00
TreeHugger Robot
1909ec1cd5 Merge "Update Status Bar with Badged Wifi Icons." 2017-01-25 01:42:46 +00:00
TreeHugger Robot
b7cab6a190 Merge changes from topic 'bisto-request'
* changes:
  Allow privileged app to set media key event listener
  Allow privileged app to set volume key long-press listener
2017-01-25 01:16:32 +00:00
TreeHugger Robot
3c30e00add Merge "Remove accessibility labels of application info and dimiss" 2017-01-25 00:50:21 +00:00
Andrew Sapperstein
97bfa0f17d Decrease frequency of high temp warnings
Instead of showing any time the temp is above throttling temp,
if the user has dismissed the notification (or clicked it), the notification
will not reshow until the temperature has gone below the throttling
temp and come back.

Test: manual
Change-Id: I4cef9144dfcff03a5e70ccd5b12efaab1e74d15b
Fixes: 34346625
2017-01-24 16:38:50 -08:00
Sundeep Ghuman
d57f324776 Update Status Bar with Badged Wifi Icons.
This change inserts badged wifi icons into the status bar to indicate
historical network strength. The existing callback handler was modified
to explicitly pass the drawable as currently the icon is a rendered from
two separate resources, composited together in a LayeredDrawable.

Badging is controlled by Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED
and can be enabled from the Wifi Settings page.

Bug: 34056846
Test: runtest --path
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerWifiTest.java
Change-Id: I33b736d4543e380887513cbb5937f49945794c09
2017-01-24 15:18:32 -08:00
Matthew Ng
72800a9373 Remove accessibility labels of application info and dimiss
After moving application info and dismiss actions into custom actions
this will remove the talkback options by removing their labels.

Test: listened to options with talkback
Fixes: 29360763
Change-Id: Ia2cc788b22d1fcede58cb43cdbfe23c055604105
2017-01-24 15:10:38 -08:00
TreeHugger Robot
171a0abae4 Merge "Fixes for new QS" 2017-01-24 22:58:08 +00:00
Winson Chung
6d2fe9e96d Merge "Remove dependency on resizable activity to enter PiP." 2017-01-24 22:26:47 +00:00
Zac Iqbal
5dcd19000f Merge "Refactored KeyguardIndicationController and LockIcon." 2017-01-24 21:53:15 +00:00
Jason Monk
b595098185 Fixes for new QS
A bunch of small cleanup for the new QS.

Change-Id: If0a5efe67366a4288f72cb91d32f5e20a4d4d6ca
Test: visual
Fixes: 34665057
Fixes: 34658107
Fixes: 34644473
2017-01-24 16:25:59 -05:00
Zachary Iqbal
f50284c60a Refactored KeyguardIndicationController and LockIcon.
Notes:
- KeyguardIndicationController can now be provided via the SystemUIFactory.
- Created a BaseKeyguardCallback to allow extention of KIC callback implementation.
- LockIcon can now be extended through the KIC to support an avatar icon for entering trust.

Test: runtest systemui
Bug: 34589272
Change-Id: I3a8745dc5054841155a6db41c7e5e8ae5ae1f30d
2017-01-24 12:21:59 -08:00
Andrew Sapperstein
e4910cc70a Add Settings.Global configs to high temp warning.
am: 63db9254cf

Change-Id: I63de4c9648158d8b19ed5d7eac1e75ca9b68d355
2017-01-24 20:08:42 +00:00
Julia Reynolds
dd94abc33d Merge "Optionally show accessibility stream volume row." 2017-01-24 20:04:10 +00:00
TreeHugger Robot
0a26aa9b31 Merge "Add Settings.Global configs to high temp warning." into nyc-mr2-dev 2017-01-24 20:02:25 +00:00
Adrian Roos
e19a36ec12 Merge "AOD: Delay wakeup until interaction with notification" 2017-01-24 19:06:14 +00:00
Winson Chung
d339538a67 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
2017-01-24 10:56:33 -08:00
TreeHugger Robot
2bf3b1b2cf Merge "Fixing error calculating the top pinned activity." 2017-01-24 18:20:13 +00:00
Jason Monk
5559543e81 Merge "Add long-click to app info for plugin settings" 2017-01-24 17:49:46 +00:00
Jaewan Kim
5026936e49 Allow privileged app to set volume key long-press listener
If the volume long-press listener is set, the listener will receive
the volume key long-presses instead of chaging the volume.

Privileged app needs permission
android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER to set the listener.

Bug: 30125811
Change-Id: I5e8fafbb950e5e11522da0f14004648d0877bf3e
2017-01-24 09:41:43 -08:00
Andrew Sapperstein
4c2fe5da49 Merge "Add Settings.Global configs to high temp warning." 2017-01-24 17:34:31 +00:00
Jason Monk
685db72eb7 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
2017-01-24 12:34:23 -05:00
TreeHugger Robot
e5ec708000 Merge "Fix crash on user switch" 2017-01-24 17:23:07 +00:00
Julia Reynolds
dbfb40f163 Optionally show accessibility stream volume row.
Bug: 30448020
Test: manual
Change-Id: I86a28c7a900d1fbc378f0ce4c113d59353bcb416
2017-01-24 16:27:23 +00:00
Jason Monk
b68d6ae5a2 Fix crash on user switch
Don't re-register a user switcher while getting a user switched
callback, because that will cause a crash.

Test: switch users.
Fixes: 34661001
Change-Id: I31453d75aabe6ecd657e7500cf1823890d5262a0
2017-01-24 10:56:47 -05:00
Julia Reynolds
924eed1ca6 Add updatable fields to Ranking
- NotificationChannel
- Badging

Test: runtest systemuinotification & cts

Change-Id: I7fd1f2dc06148927e9a4bd5b760d436e2c5e8a98
2017-01-24 08:43:38 -05:00
Winson Chung
734c9c0556 Fixing error calculating the top pinned activity.
- When the menu was open, we were not calculating the correct
  top-activity to determine whether to relaunch fullscreen or to show
  media controller actions for.  Also fixes a bad condition check
  where we were setting the expand to fullscreen flag incorrectly.

Bug: 33754261
Test: Open a PIP activity, try to launch it again from launcher while the menu is visible
Change-Id: I3fd3dfe83a017c76cca9709f29c08621b16fb088
2017-01-23 19:08:37 -08:00
Rakesh Iyer
545e47d758 Fix crashloop in CarStatusBar.
System ui seems to be undergoing a refactor to bring in
dependency injection, in the process, mBatteryController
in CarStatusBar was not being set, causing a NPE.

Since it looks like the work is still ongoing, this is
just a spot fix for the crash, once the dependency injection
migration is complete, we can reexamine the CarStatusBar
implementation.

Bug: 34633087
Test: Verified that system booted correctly.
Change-Id: Idd3e0286fd87196ae572349904d5bef744d54353
2017-01-23 18:10:21 -08:00
Andrew Sapperstein
63db9254cf Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Merged-In: Icfd08c1c7dae456920b3978918ee01469e1dec95
Change-Id: I9ed444dfb89f86d94f3a0db699324318f5bf78d0
2017-01-23 16:50:58 -08:00
Andrew Sapperstein
e33525615e Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95
2017-01-23 16:43:35 -08:00
Dianne Hackborn
5f1a2a34d9 Merge "Optimize bg check flow." 2017-01-24 00:05:38 +00:00
TreeHugger Robot
70a1a72eff Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable" 2017-01-23 23:27:59 +00:00
Adrian Roos
500263a9bc AOD: Delay wakeup until interaction with notification
Instead of immediately waking upon touching the screen, the
wakeup now happens when interacting with the notification.

Also adds feedback for the first tap of the double tap gesture
on the content view.

Bug: 30876804
Fixes: 34498705
Fixes: 34500641
Fixes: 34500802
Test: manual
Change-Id: I75ea86a6009dd7efab480738584c96bb8743b2ba
2017-01-23 15:02:34 -08:00
Dianne Hackborn
c3af19a87d Optimize bg check flow.
No longer need to look up the application info, target SDK is
explicitly passed in to the check.  For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).

Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).

Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).

Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.

Test: ran them.

Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59
2017-01-23 14:18:33 -08:00
Adrian Roos
ef7a402268 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
2017-01-23 13:43:59 -08:00
Jason Monk
20ff3f9255 SysUI fragments: Integrate new support for constructing
Use a new system for constructing fragments so they can be swapped
out in place maintaining state. This will allow easier integration
with plugin lifecycle as parents who have child plugin fragments
can depend on the class existing and won't have to listen to
the lifecycle.

Test: runtest systemui
Change-Id: I517f4ce3d114abd49b1b5baca388d19e929b8f90
2017-01-23 16:28:03 -05:00
TreeHugger Robot
0078315a2a Merge "Work on sysui dependencies" 2017-01-23 19:31:15 +00:00
Jason Monk
9c7844cb91 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
2017-01-23 12:55:53 -05:00
TreeHugger Robot
26ba16e4d1 Merge "Fix thumbnails in landscape in recents" 2017-01-23 17:02:38 +00:00