32868 Commits

Author SHA1 Message Date
TreeHugger Robot
5d99e14ca9 Merge "Switch fragment tests to use TestableLooper" 2017-02-09 19:03:20 +00:00
TreeHugger Robot
cc8628202b Merge "Import translations. DO NOT MERGE" 2017-02-09 18:54:02 +00:00
TreeHugger Robot
f61cdcb60f Merge "Add a new setting to store the network recommendation app." 2017-02-09 18:16:17 +00:00
Jason Monk
28d5d220cc Switch fragment tests to use TestableLooper
Test: runtest systemui
Change-Id: Iccbbaca2ef02cb3f5b08eef66c6c939e4ec2a5eb
2017-02-09 09:30:42 -08:00
TreeHugger Robot
df185d7502 Merge "avoid race condition on very fast tests" 2017-02-09 16:46:53 +00:00
Jeremy Joslin
c9eb3c4651 Add a new setting to store the network recommendation app.
Test: manual
Bug: 35095406
Change-Id: I3d0b7f3b977c0862969d61a4e46f12151eb15417
2017-02-09 08:43:19 -08: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
Jason Monk
7898e87be2 Merge "Add better method test handlers/loopers in sysui" 2017-02-09 15:43:19 +00:00
Chris Wren
6f6c0cd4b8 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
2017-02-09 09:51:50 -05:00
TreeHugger Robot
5706614868 Merge "SysUiLeaks: Add LeakDetector" 2017-02-09 14:03:22 +00:00
Bill Yi
bfddd29b9b Import translations. DO NOT MERGE
Change-Id: I148a1107957e81169b55693f0f7c6920e9143e9c
Auto-generated-cl: translation import
2017-02-09 01:39:21 -08: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
3304c8fc4b Merge "Serially (un/)register score cache in WifiTracker." 2017-02-09 06:23:32 +00:00
Sundeep Ghuman
ac7b43616e Serially (un/)register score cache in WifiTracker.
Before the cache unregistration logic was posted to the worker thread.
However, when WifiSettings is quit, the onDestroy method immediately
kills the WorkHandler. This caused unregistration to never occur, which
left the cache registered and the listener to try to post work on the
dead worker thread. The cache is now registered and unregistered
serially in start and stop tracking, respectively. Furthermore, the
cachelistener is running on the mainHandler as it is a lightweight task
(posting to work handler).

Bug: 34891717
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I7739fdbe036be5b2870be45f33f670fd69d69af1
2017-02-08 20:56:07 -08: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
TreeHugger Robot
4a7b9f2b90 Merge "Fix a crash when opening app data usage for work profile" 2017-02-08 22:33:47 +00: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
Fan Zhang
73b161ddc1 Fix a crash when opening app data usage for work profile
The icon on app header is a clone of original app icon, which relies on
getConstantState() of the orginal drawable non-null.

Change-Id: Ice5360f5d00d99b3cfe538b167ce67fc06d5e402
Fix: 34190136
Test: make RunSettingsLibRoboTests
2017-02-08 12:02:52 -08: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
Eugene Susla
d5015bec23 Merge "Companion device chooser UI enchancements" 2017-02-08 18:22:01 +00:00
Dan Sandler
6cfde40234 Fix regression in battery size.
The aspect ratio of the intrinsic dimensions resulted in a
too-short battery.

Test: visual
Change-Id: I31cc36d1efad5cc9b086b90eb857a08eee181677
2017-02-08 10:10:47 -08: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
Salvador Martinez
5457217e2c Merge "moved shared classes from settings to settingslib" 2017-02-08 17:57:13 +00: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
6fd229b37e Merge "Import translations. DO NOT MERGE" 2017-02-08 10:36:39 +00:00
TreeHugger Robot
ba89ed754f Merge "Move the logic of batteryMeterDrawable to settingslib" 2017-02-08 10:14:28 +00:00
TreeHugger Robot
e88e228a24 Merge "Import translations. DO NOT MERGE" 2017-02-08 10:04:04 +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
ef4d6f3787 Merge "Fixing crash when fetching stack bounds." 2017-02-08 03:25:00 +00:00
Eugene Susla
d44f9334ed Companion device chooser UI enchancements
Test: Ensure the device chooser dialog looks nicer.
Bug: 30932767
Change-Id: I62e6437e26f229aedb051998a8745a6e1918dbdc
2017-02-07 18:27:15 -08:00
Suprabh Shukla
11015dd446 Merge "Deprecating secure setting install_non_market_apps" 2017-02-08 01:53:28 +00: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
Jiaquan He
41b8a3af18 2D Recents: Fix the thumbnail radius. am: 083c6fbbd0
am: 5207be100b

Change-Id: Ic2912d940a877730165a8188ca39ada17ebfa540
2017-02-08 01:02:05 +00: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
Jiaquan He
5207be100b 2D Recents: Fix the thumbnail radius.
am: 083c6fbbd0

Change-Id: I93ff98979bcffa0c3724807ec9caac8f39025fa6
2017-02-08 00:06:22 +00:00
TreeHugger Robot
85016506c6 Merge "2D Recents: Fix the thumbnail radius." into nyc-mr2-dev 2017-02-08 00:00:26 +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