Commit Graph

301953 Commits

Author SHA1 Message Date
TreeHugger Robot
3eb3104126 Merge "Get correct insets of the phone screen at boot" 2016-12-15 01:36:40 +00:00
Hugo Benichi
fb2609d3ee Network notifications: revamp keying scheme
This patch changes the (tag: String, id: Int) keying scheme for network
notifications so that TRON notification counters can count network
related notifications unambiguously.

TRON instruments all notifications shown for package "android" as well
as user interactions with these Notifications. These counters are
grouped by id. However the network notifications ("no internet" dialog,
"captive portal sign in" dialog, ...) use a static tag and a dynamic id
for keying notifications, preventing the counters to correctly
aggregate. In addition there is also the risk of collision with other
SystemUi notification ids not managed by NetworkNotificationManager.

In order to make the TRON counters useful for network notifications,
the id is now encoding the network notification type in a stable way
while the tag is used to uniquely identify network notifications.

Test: change covered by previously added new unit tests.
Bug: 32198726
Bug: 33030620
Change-Id: I1201d1d4fab8183dd83449c2afb2c35cfece883f
2016-12-15 10:31:38 +09:00
Hugo Benichi
e1cbf15f1a Define Network notification proto constants.
This patch defines 4 new constants in metrics_constants.proto
corresponding to the 4 network notifications shown by
NetworkNotificationManager.

Estimates for the average number of notifications:
  - SIGN_IN:        3/day/device
  - NO_INTERNET:    5/day/device
  - LOST_INTERNET:  5/day/device
  - NETWORK_SWITCH: 3/day/device (turned off right now)

Test: no functional change
Bug: 32198726
Bug: 33030620
Change-Id: I31bd9b5562b94d62aac499f7174a3e115671bda8
2016-12-15 10:31:17 +09:00
sergeyv
91d6354cde HWUI: fix support RGB_565 for hardware bitmaps
Test: hwuimacro hwBitmap565
bug:30999911
Change-Id: Ie4128aba95a92041b7388c46d0b2109feaae302a
2016-12-14 16:34:55 -08:00
Android Build Merger (Role)
a76d260835 Merge "Merge "Fix a memory leak." am: 1715678a89 am: 8f9c005fa9 am: 85785b557a am: 9dfed40bd8" 2016-12-15 00:31:49 +00:00
George Burgess IV
56489bd5d0 Merge "Fix a memory leak." am: 1715678a89 am: 8f9c005fa9 am: 85785b557a
am: 9dfed40bd8

Change-Id: I35b03837734c4bab706faf99e8f9d3596e7ead92
2016-12-15 00:31:03 +00:00
Android Build Merger (Role)
d7098afd5d Merge "Merge "Add ability to set supported audio routes on phone accounts and connection" am: d11261dcc9 am: 32e98d2f45 am: 60cb82e8e6 am: 9e0f5d1abf" 2016-12-15 00:30:38 +00:00
Hall Liu
2292d9e891 Merge "Add ability to set supported audio routes on phone accounts and connection" am: d11261dcc9 am: 32e98d2f45 am: 60cb82e8e6
am: 9e0f5d1abf

Change-Id: I30201510e0ad5d686fda522b8de19a6b2ec5e150
2016-12-15 00:29:29 +00:00
Android Build Merger (Role)
d8cd3b7aec Merge "Merge "Add an IPC for requesting network scores." am: e89ed4a001 am: 724b26c902 am: a00fda5311 am: 9f15b30858 -s ours" 2016-12-15 00:29:05 +00:00
Jeremy Joslin
2db78002b9 Merge "Add an IPC for requesting network scores." am: e89ed4a001 am: 724b26c902 am: a00fda5311
am: 9f15b30858  -s ours

Change-Id: Id3910a71b720d4edab766ae76134d6fdfd82c285
2016-12-15 00:28:18 +00:00
Android Build Merger (Role)
11275ae028 Merge "resolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp am: f2fc15824d am: 2f94877c01" 2016-12-15 00:27:57 +00:00
Marie Janssen
5c7ef9ccc7 resolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp am: f2fc15824d
am: 2f94877c01

Change-Id: I00f1e604816bd95b4ecc3063209e38780a4e8675
2016-12-15 00:27:08 +00:00
TreeHugger Robot
b78f75108d Merge "Change English permission descriptions" 2016-12-15 00:26:40 +00:00
Chris Craik
8fb56d0272 Remove unnecessary shadow damage calc in invalidate
Test: builds, boots

Work already done in native, via RenderNode::damageSelf and
RenderProperties::getClipDamageToBounds.

Change-Id: Id96d00d58d61c629dabba49dde3bef1c7b079e89
2016-12-14 16:05:49 -08:00
George Burgess IV
9dfed40bd8 Merge "Fix a memory leak." am: 1715678a89 am: 8f9c005fa9
am: 85785b557a

Change-Id: I1e05b7d2793797cba915d0debd775b6b09b972cb
2016-12-14 23:49:07 +00:00
Philip P. Moltmann
3349644872 Delay SharedPreferences.apply() by 50 ms
... so that multiple applies can be combined into a single write.

Do do this I replaces the executor in the QueuedWork by a more Android-y
handler.

Test: Ran shared preferences CTS tests. Looked at log and saw a lot of
      skipped writes
Bug: 33385963

Change-Id: I8f33df717be7091532930ccf6ca8c48940e4edd4
2016-12-14 15:48:39 -08:00
George Burgess IV
85785b557a Merge "Fix a memory leak." am: 1715678a89
am: 8f9c005fa9

Change-Id: I29afa8d1394feb57574ed527cda102405571fd65
2016-12-14 23:41:26 +00:00
George Burgess IV
8f9c005fa9 Merge "Fix a memory leak."
am: 1715678a89

Change-Id: Ia005c534ef0e62e3efd6f59954cd2850349c7672
2016-12-14 23:34:23 +00:00
Hall Liu
9e0f5d1abf Merge "Add ability to set supported audio routes on phone accounts and connection" am: d11261dcc9 am: 32e98d2f45
am: 60cb82e8e6

Change-Id: I9bfe58895aadcd5c40bae1bfc7a093feee4a6aa2
2016-12-14 23:30:01 +00:00
Jeremy Joslin
9f15b30858 Merge "Add an IPC for requesting network scores." am: e89ed4a001 am: 724b26c902
am: a00fda5311

Change-Id: I5b529ba1f9a151e108229c493cbdc0facd494d30
2016-12-14 23:28:56 +00:00
Marie Janssen
2f94877c01 resolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp
am: f2fc15824d

Change-Id: I71d80c8a24f206d5919f56a28b1f1333021b7d46
2016-12-14 23:27:54 +00:00
Dan Sandler
6e54b889d0 Avoid NPE in notification inline controls.
Specifically, notifications that come from essential parts
of the system that cannot be blocked or silenced.

Fixes: 32384422
Test: manual: longpress Clock notification, press DONE
Change-Id: Ic43cf90d4d7940b1cbfcedb6934567b799efd12b
2016-12-14 18:26:06 -05:00
Treehugger Robot
1715678a89 Merge "Fix a memory leak." 2016-12-14 23:23:52 +00:00
Hall Liu
60cb82e8e6 Merge "Add ability to set supported audio routes on phone accounts and connection" am: d11261dcc9
am: 32e98d2f45

Change-Id: I0741edc2b35b7c57cbde338c4617791d1d089137
2016-12-14 23:23:21 +00:00
Jeremy Joslin
a00fda5311 Merge "Add an IPC for requesting network scores." am: e89ed4a001
am: 724b26c902

Change-Id: If6284c934cd47257367c614523d4928758ab34e1
2016-12-14 23:22:15 +00:00
Eino-Ville Talvala
52d600769c Merge "Camera: Updates in preparation for HIDL" 2016-12-14 23:08:14 +00:00
TreeHugger Robot
01c41ed8ed Merge "Migrate the NETWORK_SCORER_APP to NETWORK_RECOMMENDATIONS_ENABLED." 2016-12-14 22:48:57 +00:00
Philip P. Moltmann
338da5ff52 Change English permission descriptions
Test: Built
Bug: 32029075
Change-Id: I4e5a2a7a16d36453b7bc082884f86aa88b5bf442
2016-12-14 14:48:44 -08:00
Adrian Roos
64f87bad12 FalsingLog: Fix false positive Log.wtfs
Fixes a frequent case where we do not get notified immediately of the
screen turning on and log a WTF as a result when a touch makes it
through to the lockscreen.

Change-Id: I5437aa0283d78624ffb3a43404e7248b7e91372c
Fixes: 32575746
2016-12-14 14:39:16 -08:00
Adrian Roos
8e291a5d3f FalsingLog: Fix false positive Log.wtfs
Fixes a frequent case where we do not get notified immediately of the
screen turning on and log a WTF as a result when a touch makes it
through to the lockscreen.

Change-Id: I5437aa0283d78624ffb3a43404e7248b7e91372c
Fixes: 32575746
2016-12-14 14:39:16 -08:00
David Stevens
1e87ae5c8e Merge "Exit accessory mode more aggressively" 2016-12-14 22:29:39 +00:00
TreeHugger Robot
04b2be42c3 Merge "Deprecate android.text.AndroidCharacter" 2016-12-14 22:20:58 +00:00
Roozbeh Pournader
aa0af8e862 Use TextDirectionHeuristics to detect text direction in Html
Previously, AndroidBidi was used instead, whch did a lot of extra work
just to detect a paragraph's direction. TextDirectionHeuristics stops as
soon as the direction is found, and avoids JNI too.

Bug: 21455837
Test: cts-tradefed run cts-dev --module CtsTextTestCases --test android.text.cts.HtmlTest
Change-Id: Iea196fb5ca43dca99e65a367a2da701b1c1b98b8
2016-12-14 14:10:46 -08:00
jackqdyulei
f744687ece Add tint for page indicator dot icon
Bug: 32592245
Test: Manual
Change-Id: Id818d9060f5ed487ec48c8d88aaf7c3a180bc2fe
2016-12-14 13:56:39 -08:00
Kweku Adams
c6bd4243a4 Fixing issue in current and max duration calculations.
It looks like one operation was done out of order and some of the times used in
the calculations were leading to incorrect results.

BUG: 31023263
Test: bit FrameworksCoreTests:com.android.internal.os.BatteryStatsDurationTimerTest

Change-Id: I417cc28c5a55748067b6c7f682a66fe3dbc09f09
(cherry picked from commit 47db5a8bf7)
2016-12-14 21:54:48 +00:00
Marie Janssen
f2fc15824d resolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp
Change-Id: I903680717ed121a93fee3b7c2ed358cb29726d71
2016-12-14 13:44:28 -08:00
Jorge Lucangeli Obes
d2a7a674fb Remove duplicated code.
Maybe the result of a bad merge? The removed section is identical to
the section above.

Bug: None
Test: Marlin builds, boots.
Change-Id: I588f60e60eb89adc606bd433e835caea029c8a72
2016-12-14 16:42:17 -05:00
Colin Cross
71044fe7e5 Move libandroid_runtime headers into frameworks/base/core/jni
Move libandroid_runtime's headers into its source directory, and export
them to modules that link against libandroid_runtime.  Also fixes
one unused-paramter warning that was hidden by the use of -isystem to
include frameworks/base/include.

Bug: 33630870
Test: m -j native
Change-Id: Id6c2561d6c7d82a7ca2d183f11b1d3d3dcb42843
2016-12-14 13:35:40 -08:00
Colin Cross
19def9943a Move hwui private headers to frameworks/base/libs/hwui/private
hwui already exports most of its headers, move its private headers
into its source directory.

Bug: 33630870
Test: m -j native
Change-Id: I4968d5aaaa68d9e92c826841d20f29cef349c9d8
2016-12-14 13:35:40 -08:00
Colin Cross
3ac2be93a9 Convert libstorage to Android.bp
See build/soong/README.md for more information.

Test: m -j native
Change-Id: Ieb34d79af10e4e7cd146d0d40fd6946499dd1da0
2016-12-14 13:28:56 -08:00
Colin Cross
e78f853e46 Move libstorage includes into frameworks/base/lib/storage
Move the libstorage includes out of the global include path and into
frameworks/base/lib/storage/include, and export it.

Bug: 33630870
Test: m -j native
Change-Id: Idc0735360abc703496b9bc46d1a76ce8039af0d1
2016-12-14 13:28:46 -08:00
Sergei Vasilinetc
0b2a66c72e Merge "Fix getConfig function for hw bitmaps" 2016-12-14 20:32:23 +00:00
TreeHugger Robot
db10a2094c Merge "Remove accidentally exposed Geofencing classes." 2016-12-14 20:15:27 +00:00
Winson Chung
a29eb98d9f Adding support for PIP actions.
- Introduced generic RemoteAction to represents an action
  that can be made across processes with an icon and text
  description based on a Notification action.
- Modified PinnedStackController to ensure that it notifies
  the listeners from the source of truth, this ensures that
  SysUI is in the right state if killed and re-registers
  itself.

Test: Enable menu & minimize in SystemUI tuner.
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testNumPipActions

Change-Id: I5b5d0cf9de3f06b5687337d59cfb91e17355bdb1
Signed-off-by: Winson Chung <winsonc@google.com>
2016-12-14 12:15:07 -08:00
TreeHugger Robot
7198ca863e Merge "Fix merge for OnDrawListener" 2016-12-14 20:12:35 +00:00
Hall Liu
32e98d2f45 Merge "Add ability to set supported audio routes on phone accounts and connection"
am: d11261dcc9

Change-Id: I002d1d32e6c0fb69c99047a19ca07f4326ec5323
2016-12-14 20:03:54 +00:00
Jeremy Joslin
724b26c902 Merge "Add an IPC for requesting network scores."
am: e89ed4a001

Change-Id: I23bee3f29d3b3f71da6103e23afafc2df128ab75
2016-12-14 20:02:45 +00:00
Marie Janssen
7a2518ee6e Merge "Bluetooth: log message improvements"
am: f34bdf7676

Change-Id: Ic89c59257559d95119829fa4157dbb763124e86f
2016-12-14 20:01:39 +00:00
Roozbeh Pournader
c6bffbf603 Use ICU for formatting in DateUtils.formatDuration
Previously, we were using native strings. ICU has higher quality and
more comprehensive data.

Also adds parameters for specifying the format width (e.g. "2 hrs" vs
"2 hours").

Bug: 31526474
Test: adb shell am instrument -w -e class android.text.format.DateUtilsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I754f6c761c2ed3853046796c57ff2d86a6ccd43e
2016-12-14 11:59:30 -08:00
Hall Liu
d11261dcc9 Merge "Add ability to set supported audio routes on phone accounts and connection" 2016-12-14 19:55:00 +00:00