Commit Graph

13062 Commits

Author SHA1 Message Date
Winson Chung
29a786590f Adding PipManager dumps.
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: Id647833f1b4dcb6226517c058d17d1812f022671
2017-02-13 10:23:04 -08:00
Jason Monk
a8e72d463c Merge "Move Keyguard to SystemUI" 2017-02-11 00:37:39 +00:00
Jason Monk
23f85ec14d Move Keyguard to SystemUI
Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7
2017-02-10 07:45:58 -08:00
TreeHugger Robot
946346e872 Merge "Fix tinting and sizing of tuner lock screen shortcuts" 2017-02-10 06:36:08 +00:00
Jason Monk
ca2156890a Fix tinting and sizing of tuner lock screen shortcuts
Test: visual
Change-Id: I13f0281d38cd4d73322e9752d9bca36be2412917
2017-02-09 20:25:20 -08:00
Adrian Roos
09c43c8743 Dependency: Make non-class dependencies type-safe
Introduces a new DependencyKey<V> type which allows
referring to non-class dependencies in a type-safe
way. This also improves performance because we no
longer need to perform string comparisons.

Test: runtest systemui
Change-Id: Idc948855a85a1899be41e7f0170c40e73e525024
2017-02-09 21:23:04 +01:00
TreeHugger Robot
34895c404b Merge changes I348c18dc,I0c33d519
* changes:
  SysUiLeaks: Detect leaks in TunerService
  SysUiLeaks: Detect leaks of NotificationData.Entry
2017-02-09 15:45:09 +00:00
TreeHugger Robot
5706614868 Merge "SysUiLeaks: Add LeakDetector" 2017-02-09 14:03:22 +00:00
Adrian Roos
6b2852e03f SysUiLeaks: Detect leaks in TunerService
Bug: 34932615
Test: manual
Change-Id: I348c18dc4e5772637828c1f53f15c84ad4c39485
2017-02-09 10:33:04 +01:00
Adrian Roos
f6d562b83f SysUiLeaks: Detect leaks of NotificationData.Entry
Bug: 34932615
Test: manual
Change-Id: I0c33d5194fe94e99b7bebe3a04a3730e41575080
2017-02-09 10:33:03 +01:00
Adrian Roos
e1e0b483be SysUiLeaks: Add LeakDetector
Bug: 34932615
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
Change-Id: Id4a9cbdaddc83ca3e25923eec33d53b6761c54cb
2017-02-09 10:33:02 +01:00
TreeHugger Robot
47c4c94100 Merge "Work on separating out the status bar management" 2017-02-09 02:48:36 +00:00
TreeHugger Robot
dcd208d167 Merge "Fixing issue with play/pause buttons being inverted." 2017-02-09 02:17:17 +00:00
Jason Monk
aa573e9e86 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
2017-02-08 19:51:41 -05:00
Daniel Sandler
fa234b2f47 Merge changes from topic 'battery3'
* changes:
  Fix regression in battery size.
  Clean up BatteryMeterDrawable internal api.
2017-02-08 22:03:14 +00:00
Andrew Sapperstein
d99f0f8cd1 Merge "Add additional logging for temperature readings." 2017-02-08 20:58:55 +00:00
TreeHugger Robot
a0db8b655f Merge "Fixing small issues with drag-to-dismiss window." 2017-02-08 20:01:27 +00:00
TreeHugger Robot
54f9672986 Merge "Use the Context name to publish and use vrmanager" 2017-02-08 19:09:51 +00:00
Dan Sandler
6aa6e6e640 Clean up BatteryMeterDrawable internal api.
Bug: 32539932
Test: runtest -x frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/BatteryMeterDrawableBaseTest.java
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/BatteryMeterDrawableTest.java
Change-Id: Ifdc3368b930abcf248b60ee99f6f9139ad804f91
2017-02-08 10:10:46 -08:00
TreeHugger Robot
d0e1022237 Merge "SysUI: Add method for plugins to keep status bar full screen" 2017-02-08 17:53:53 +00:00
Craig Donner
8deb67cb64 Use the Context name to publish and use vrmanager
Bug: 34736524
Test: build
Change-Id: I8aabb4d242fb2378b24dd30a972c382a7f8f4934
2017-02-08 09:46:07 -08:00
Julia Reynolds
0ebe2d1b0d Merge changes from topics 'proto', 'lights'
* changes:
  Dump notification records to proto
  Highlight selected channel on launching settings.
  Let developers choose a light color for channels
2017-02-08 13:34:28 +00:00
Manu Cornet
d916d103eb 2D Recents: Slightly darken header to differentiate from thumbnail am: 017a3acc3c
am: b72edcc21c

Change-Id: I310f5388c501f851eb78bd7d0a619ffe0a8f1270
2017-02-08 10:50:35 +00:00
Manu Cornet
b72edcc21c 2D Recents: Slightly darken header to differentiate from thumbnail
am: 017a3acc3c

Change-Id: I3eba04869c2cc0095f7f0f43855aeba3bc595759
2017-02-08 10:46:16 +00:00
TreeHugger Robot
ba89ed754f Merge "Move the logic of batteryMeterDrawable to settingslib" 2017-02-08 10:14:28 +00:00
Manu Cornet
017a3acc3c 2D Recents: Slightly darken header to differentiate from thumbnail
Bug: 34771148
Test: Locally on sw600dp device, sent screenshot to UX to confirm
Change-Id: I74282c6ed81d3b48d554f9acf55d4fafca2c73f4
2017-02-08 00:40:34 -08:00
Winson Chung
dce0b5fe20 Fixing small issues with drag-to-dismiss window.
- Ensure that it fills the height under the nav bar
- Prevent flash by removing window immediately

Test: Enable drag-to-dismiss and drag the PiP
Change-Id: I60036263321ff99be24a0762eb2e622faa609786
2017-02-08 01:36:44 +00:00
Winson Chung
db2ad5d974 Fixing crash when fetching stack bounds.
Bug: 35115909
Bug: 35112703
Test: Manual
Change-Id: I708501f2d94682e5e945e2ade52c5c53c2fb8067
2017-02-07 17:28:25 -08:00
jackqdyulei
597b10f6db Move the logic of batteryMeterDrawable to settingslib
In Settings, we also need a BatteryMeterDrawable to show battery meter,
that's why I move it to settingslib.

In this cl, what I have changed is listed below:
1. Create BatteryMeterDrawableLib that contains logic of battery
drawing.
2. Still Keep the battery control logic in systemui.
3. Remove hardcoded battery color by using the color state lists.
4. Move some tests to settingslib

Bug: 34771849
Test: make SettingsLibTests

Change-Id: I39c0f0e31ca5e1b958467298db1d0590d16c9f6d
2017-02-07 17:27:00 -08:00
Winson Chung
b0103abff7 Fixing issue with play/pause buttons being inverted.
Test: Launch PiP with media session and no custom actions
Change-Id: Ib58b36fba19068dc9c96199b7b6e511fd41dc7ed
2017-02-08 00:06:53 +00:00
Jason Monk
421a9410b4 SysUI: Add method for plugins to keep status bar full screen
Lots of things detect overlays these days (installing apps) and the
only way to avoid the problems associated with this is to live in
the status bar window. So allow plugins to hold the window open
when they want to so they can have overlays be in that.

Move StatusBarWindowManager to Dependency to make things easier
as well.

Test: Install the example plugin, test can access QS and interact
      with apps

Change-Id: Ib2288bf56704960847217bad01a480ab407e0ffe
2017-02-07 18:58:14 -05:00
Winson Chung
cd161864a3 Merge changes I3ef361bd,I89a5184c
* changes:
  Refactor PiP logic in preparation for expanded state.
  Modifying RemoteAction callback to PendingIntent.
2017-02-07 21:18:15 +00:00
Julia Reynolds
2187d34e35 Highlight selected channel on launching settings.
Test: manual
Change-Id: Iae49dcf8989a6524012897c321c0499e784a05e1
2017-02-07 15:46:09 -05:00
Jason Monk
d8df1b083d Merge "QS: Fix brightness/edit disappearing with too few tiles" 2017-02-07 18:23:54 +00:00
Winson Chung
2a82fe587b Refactor PiP logic in preparation for expanded state.
- #1: Move logic for handling IME size changes into SysUI, and only rely
      on PinnedStackController to provide bounds when first entering
      PiP and on rotation
- #2: Doing #1 allows us to move PipMotionHelper to SysUI completely, which
      lets us aggregate the animation calls out of PipTouchHandler
- #3: Add proper callbacks to the listeners when the movement bounds
      changed from config change, ime change, or aspect ratio change. This
      allows SysUI to calculate the associated movement bounds for the
      expanded state, and we can then remove the corresponding WM call.
      It also means that SysUI is the only thing that needs to know about
      the expanded state.
- #4: Fix issue where TV was getting the default bounds, not taking the
      aspect ratio when the PiP was entered into account.  Doing #3
      allows us to report the right bounds.
- #5: Remove dead code related to edge snapping/minimizing now that they
      are on by default and associated tuner setting, and controller
      callbacks

Test: android.server.cts.ActivityManagerPinnedStackTests (all existing tests pass)

Change-Id: I3ef361bdf8d44094b4c0a11c70ba4db7d697fdec
Signed-off-by: Winson Chung <winsonc@google.com>
2017-02-07 08:26:36 -08:00
Winson Chung
9c2a686757 Modifying RemoteAction callback to PendingIntent.
Test: android.server.cts.ActivityManagerPinnedStackTests
Bug: 34864798
Change-Id: I89a5184c2f067722cb1f5f962bbb8cbb91529092
2017-02-07 08:26:24 -08:00
Jason Monk
8cb6669f75 resolve merge conflicts of a800795a15 to master
Test: treehugger
Change-Id: I1f4743288021546344966c2b3ca1ee33c73667a8
2017-02-06 20:25:11 -05:00
Jason Monk
a800795a15 Merge "Hotspot Tile: longclick should open Tethering settings" am: 96c4f1a21e am: 4e82bf6c51
am: 55345f5c30

Change-Id: I7874cfc1e034577390d5d77ebbdb22358de57b47
2017-02-07 00:17:43 +00:00
Casey Burkhardt
edb54686c2 Merge "Initial implementation of Nav Bar Accessibility Button" 2017-02-07 00:14:49 +00:00
Jason Monk
55345f5c30 Merge "Hotspot Tile: longclick should open Tethering settings" am: 96c4f1a21e
am: 4e82bf6c51

Change-Id: I39d311e1b455a7a3e53ac8c1b12d1d67b07972ee
2017-02-07 00:09:14 +00:00
Jason Monk
cedcb945f7 QS: Fix brightness/edit disappearing with too few tiles
- Make sure the tile layout doesn't have negative height

Test: runtest systemui
Fixes: 34593873
Change-Id: I392aa925cde1b2147a86cda63cd9e84cd3026a90
2017-02-06 15:06:01 -08:00
Jason Monk
96c4f1a21e Merge "Hotspot Tile: longclick should open Tethering settings" 2017-02-06 22:53:59 +00:00
Manu Cornet
527df54e58 2D Recents: use correct layout logic for drawing transition headers am: de3cfb0c1f
am: 8e08d0e828

Change-Id: I048d8bb5e3eff94ad87d302f000a6739ad51fc49
2017-02-06 22:53:09 +00:00
Manu Cornet
8e08d0e828 2D Recents: use correct layout logic for drawing transition headers
am: de3cfb0c1f

Change-Id: I46c45fed648858212a31e477f46ad25475b0710a
2017-02-06 22:47:28 +00:00
Manu Cornet
925d862656 Merge "2D Recents: use correct layout logic for drawing transition headers" into nyc-mr2-dev 2017-02-06 22:38:34 +00:00
Selim Cinek
e373313bd5 Merge changes If0edccf8,I086b7bae,I043011c6,I4b05f340,I309097ef, ...
* changes:
  Disabling animations now when the screen is off
  Fixed a quick flash of the icon when adding a notification
  Fixed a bug where the notification icons wouldn't match
  Fixed weirdness about last icon in shelf
  Fixed a regression where custom notification where unreadable
  Fixed a wrong translation calculation on first pull down
2017-02-06 21:59:08 +00:00
TreeHugger Robot
cd1d343ffd Merge "StatusBar: Clean up buzzBeepBlinked and friends" 2017-02-06 21:17:03 +00:00
Casey Burkhardt
048c2bc19a 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
2017-02-06 12:56:08 -08:00
Adrian Roos
bf697fda00 Merge "AOD: Fix AoD time tick after refactor" 2017-02-06 20:01:18 +00:00
TreeHugger Robot
5f7a49bc38 Merge "Fixing crash when fetching SysUI components for secondary user." 2017-02-06 19:42:33 +00:00