Commit Graph

301953 Commits

Author SHA1 Message Date
phweiss
5edfd11bea DO NOT MERGE Add network logging icon to Quicksettings when enabled
am: c94b637305

Change-Id: I227210c1d938b98bfb8b2a5f895b837fad1c6181
2016-12-19 18:03:47 +00:00
Adrian Roos
1c0f3bedcd Merge "Assist app is not launched when long-pressing on Home key" into nyc-mr2-dev am: 31b96311bf
am: ca504aae64

Change-Id: I434d05ea7354eb9de535ef5279d7a1c5302fed1b
2016-12-19 18:03:14 +00:00
Kaori Katou
8e38e144b3 Assist app is not launched when long-pressing on Home key am: ed7bf5eecc
am: ea00cbb776

Change-Id: Icc3c6ae23a92c2c15cf6df6d14f869586a0d4787
2016-12-19 18:02:10 +00:00
Junda Liu
df2b94fa55 Merge "Add carrier config key KEY_EDITABLE_TETHER_APN_BOOL." into nyc-mr2-dev am: 565fcb4b95
am: b5ee93791a

Change-Id: I151f2ac74a096463932d891c579d648628c98a7e
2016-12-19 18:00:50 +00:00
Marie Janssen
df37f1fa74 Merge changes I546d7abc,I32163278 into nyc-mr2-dev
* changes:
  Bluetooth: fix issues re-enabling after crash
  Bluetooth: log message improvements
2016-12-19 17:58:43 +00:00
Philipp Weiß
f84f98c4e2 Merge "DO NOT MERGE Add network logging icon to Quicksettings when enabled" into nyc-mr2-dev 2016-12-19 17:57:16 +00:00
Lei Yu
22f2d07bb6 Merge "Remove hardcode color for battery_detail" 2016-12-19 17:55:22 +00:00
Chris Wren
d9f3d9edc0 Don't WTF when reading empty data from the eventlog
Bug: 33446064
Fixes: 33446064
Test: run cts -m CtsUtilTestCases -t android.util.cts.EventLogTest
Change-Id: I4951202cd7d6ca441700b7122cfa3aae2167c7b0
2016-12-19 12:51:34 -05:00
Calin Juravle
b8976d8f22 Record data about dex files use on disk
Add DexManager to keep track of how dex files are used.

Every time a dex file is loaded, PackageManager will notify DexManager
which will process the load. The DexManager will look up what package
owns the dex file and record its use in package-dex-usage.list (through
PackageDexUsage).

Test: device boots, package-dex-usage.list is created and contains valid data, after device reboot the list is succesfully read from disk.
runtest -x .../PackageDexUsageTests.java
runtest -x .../DexManagerTests.java

Bug: 32871170
Change-Id: If5496c3b95820b537260c326d4eaa04eb50b1d8c
2016-12-19 17:48:35 +00:00
Calin Juravle
0318162abc Add logic for recording dex files use on disk
Add PackageDexUsage to handle the I/O operations of dex usage data. It
is responsible to encode, save and load dex

Test: runtest -x .../PackageDexUsageTests.java

Bug: 32871170
Change-Id: I2acc5430080a7e937c798513d8959ab631decfd9
2016-12-19 17:48:27 +00:00
Jeremy Joslin
ab60cb6a6d Fix ScanResult array parceling.
readParcelableArray() wasn't working as expected so I just parceled
the array myself.

Test: adb shell am instrument -e class android.net.RecommendationRequestTest  -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I83939d17769930b707b8bc579542c74a05e31d19
Merged-In: I47bc31adbedea817feaa5953cb6ee48506f9c6d6
2016-12-19 09:43:34 -08:00
Manu Cornet
6d6f1c29ed 2D recents: polish the new task view layout algorithm
Bug: 32101881
Test: On local sw600dp device, checked recents layout
Change-Id: Iaa78349322a46be9517ae4c5bc8df6a4ce7201c8
2016-12-19 09:32:44 -08:00
Calin Juravle
9abb501075 Report non-primary dex files loads to PM
Scaffold for the reporting of non-primary dex files loads to the package
manager.

This will enable:
1) monitoring and compilation of secondary dex file
2) better way to track foreign dex file usage (used to determined the
compilation filter of apks).

Test: device boots
Bug: 32871170

(cherry picked from commit 8d2a51f1b8)

Change-Id: I61e65aee471798fbc7a18938647051274c3a058a
2016-12-19 17:28:46 +00:00
phweiss
9e450e1233 Rework Device Monitoring Dialog in Quicksettings
If a device owner is active, the layout is changed from a
standard AlertDialog with only one string to a custom dialog
that includes information on Device Owners, and VPN and Network Logging,
if enabled.

BUG: 29748723
BUG: 33126622
Test: Manual, CTS-Verifier tests will be added later

Change-Id: I2bfca9d9d02a42d9c3b17683625eda29e9369666
2016-12-19 17:53:00 +01:00
Daniel Sandler
946ae62dba Merge "Avoid NPE in notification inline controls." into nyc-mr2-dev
am: be09dd77dc

Change-Id: I9dd8c496cb6e9fec63ba370d25faedbcd505dd13
2016-12-19 16:50:18 +00:00
Dan Sandler
0f82af28ef Avoid NPE in notification inline controls.
am: 6e54b889d0

Change-Id: I4d581b3d8e59bb9baa16199243b59aaa57d8fc7a
2016-12-19 16:50:12 +00:00
Daniel Sandler
be09dd77dc Merge "Avoid NPE in notification inline controls." into nyc-mr2-dev 2016-12-19 16:44:12 +00:00
TreeHugger Robot
d0abcbeb3b Merge "Use junit instead of junit4-target" 2016-12-19 15:31:06 +00:00
phweiss
a0cb251ca6 Show notification when network logging is enabled
A notification is shown after network logging is enabled
and after the next three reboots that are at least one day apart.

Clicking it sends an intent to quick settings to shown its device monitoring
dialog.

Bug: 29748723
Bug: 33126577

Test: Manual, CTS-Verifier tests will be added later
Change-Id: I2bf517bd27ab23ad3f66270602dbf062efab8cbb
2016-12-19 15:59:58 +01:00
Andrew Scull
7cd4536e80 Merge "Don't save the password metrics to disk." 2016-12-19 14:48:37 +00:00
Paul Duffin
6690a19c68 Use junit instead of junit4-target
Bug: 30188076
Test: make checkbuild
Change-Id: I61bf0d812d433d3622e9be33c549da16e511a359
2016-12-19 14:01:32 +00:00
Michal Karpinski
5dcf480c0d Merge "Initialize AtomicBoolean for NetworkLogger#mIsLoggingEnabled" into nyc-mr2-dev
am: bd510de4e9

Change-Id: I82c5e02fb4356465a738b2d7906b6894065e73ef
2016-12-19 13:50:05 +00:00
Michal Karpinski
1ec95aaa26 Initialize AtomicBoolean for NetworkLogger#mIsLoggingEnabled
am: a775ad997b

Change-Id: Iffda619c616ab804b97a837910ca55de4d283cf0
2016-12-19 13:49:58 +00:00
TreeHugger Robot
bd510de4e9 Merge "Initialize AtomicBoolean for NetworkLogger#mIsLoggingEnabled" into nyc-mr2-dev 2016-12-19 13:43:10 +00:00
Diego Perez
76ab11d470 Merge "Create new layoutlib-legacy to be included in the SDK" 2016-12-19 12:06:57 +00:00
Diego Perez
9b34676d5d Create new layoutlib-legacy to be included in the SDK
This version of the jar file only contains a Bridge that returns an
error (or an image if you ask for it) contaning a message that says that
the SDK version of layoutlib is not supported.

Test: Manually tested
Change-Id: I3d24df86a3112c52858649c3286270a31496961b
2016-12-19 12:03:49 +00:00
TreeHugger Robot
805e893e35 Merge "Enforce DISALLOW_ADD_MANAGED_PROFILE" 2016-12-19 11:57:13 +00:00
Esteban Talavera
01576869a3 Enforce DISALLOW_ADD_MANAGED_PROFILE
Only the device owner should be able to create a managed
profile if that restriction is set

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest    frameworks-services

Bug: 31952368

Change-Id: Ia5170e54594ccba1e5bcedffaec98c2af42264c0
2016-12-19 11:54:11 +00:00
Calin Juravle
12e15a9c22 Merge "Report non-primary dex files loads to PM" 2016-12-19 11:23:53 +00:00
Hugo Benichi
2cb7bad13e Merge changes I1450c126,I8926a922,I54403377,Idf216797 into nyc-mr2-dev
am: 85f3996d72

Change-Id: Ia780475dbbd9ebd58f5bcc9cefa74108f48ca53b
2016-12-19 08:40:43 +00:00
Hugo Benichi
e55546a127 DO NOT MERGE IP Connectivity metrics: add connect() statistics
am: 2299a1c401

Change-Id: I7ad93b1b3a3446ffd6dce7c0799ddb9a2b43955f
2016-12-19 08:40:37 +00:00
Hugo Benichi
6b480eca3f DO NOT MERGE Fix IP connectivity metrics tests
am: 93c0de0a35

Change-Id: Ia6a28b09263729caa72786062e134f8c684e3ccb
2016-12-19 08:39:55 +00:00
Hugo Benichi
3fc3dc2602 DO NOT MERGE IP connectivity metrics: introduce ConnectStatistics and DNS statistics
am: 097bde6c8f

Change-Id: Ibe6d3945cda64f55c6aab7ef4fc4a6cd8a6daf05
2016-12-19 08:38:54 +00:00
Hugo Benichi
66346ab78c DO NOT MERGE IP connectivity metrics: add transport field.
am: 4c9d3f19cd

Change-Id: I1e6b0f9e7b8f2e2808d85e302fdd3ca1dc4d5a41
2016-12-19 08:38:10 +00:00
Hugo Benichi
85f3996d72 Merge changes I1450c126,I8926a922,I54403377,Idf216797 into nyc-mr2-dev
* changes:
  DO NOT MERGE IP Connectivity metrics: add connect() statistics
  DO NOT MERGE Fix IP connectivity metrics tests
  DO NOT MERGE IP connectivity metrics: introduce ConnectStatistics and DNS statistics
  DO NOT MERGE IP connectivity metrics: add transport field.
2016-12-19 08:31:17 +00:00
Hugo Benichi
58b3f35e9f Merge changes Iadf7f15d,I74702938,Ib8a725cd into nyc-mr2-dev
am: 05d36569b6

Change-Id: I09bbd93408e2de8b4ce159a7b22d3650a04ba081
2016-12-19 08:29:30 +00:00
Hugo Benichi
7f907b0341 DO NOT MERGE Network notifications: revamp keying scheme
am: 84daaea8fd

Change-Id: Ibad7d0210b2c69826462b781f43a82d65849ebfb
2016-12-19 08:29:23 +00:00
Hugo Benichi
4778249ab0 DO NOT MERGE Define Network notification proto constants.
am: 065acc5a6c

Change-Id: Ic1bb6306d6a0f2e5a764abb1834f75ad796c9f28
2016-12-19 08:29:16 +00:00
Hugo Benichi
04507a635b DO NOT MERGE Unit tests for NetworkNotificationManager
am: d3da17a260

Change-Id: I873ea4a5625c526d61017967604305ada548f907
2016-12-19 08:29:11 +00:00
Hugo Benichi
05d36569b6 Merge changes Iadf7f15d,I74702938,Ib8a725cd into nyc-mr2-dev
* changes:
  DO NOT MERGE Network notifications: revamp keying scheme
  DO NOT MERGE Define Network notification proto constants.
  DO NOT MERGE Unit tests for NetworkNotificationManager
2016-12-19 08:25:32 +00:00
Donghyun Cho
0b485b2f37 CEC: Dump recent message history for better logging
Logging for CEC messages is disabled by default, so it is hard to debug
using bug report. Providing recent history of cec messages would be
helpful to see what happened via CEC line.

Bug: 33682018
Test: adb shell dumpsys hdmi_control
Change-Id: I476ce454418d6da8d65f520cc79d653bf96f3afd
2016-12-19 16:01:11 +09:00
Hugo Benichi
7f58ca8af4 Merge "DO NOT MERGE Netd events: record connect() success/errno" into nyc-mr2-dev
am: 64bc2580e3

Change-Id: I24ab257a4f9646edf25bde3c95f31b88ff35aa48
2016-12-19 06:00:34 +00:00
Hugo Benichi
2f30e611eb DO NOT MERGE Netd events: record connect() success/errno
am: e8fe0aaab9

Change-Id: Ia9d271d4dac362e930c7c3463bdbafd9a85ca739
2016-12-19 06:00:28 +00:00
Hugo Benichi
64bc2580e3 Merge "DO NOT MERGE Netd events: record connect() success/errno" into nyc-mr2-dev 2016-12-19 05:55:26 +00:00
Tomasz Mikolajewski
d8a2e19493 Update documentation for ACTION_SEND.
Test: Documentation only.
Bug: 28409713
Change-Id: I6efc4e80a7289ab25e491c29fbd92e10c1b50281
2016-12-19 14:08:11 +09:00
Hugo Benichi
403ea607a5 Captive portals: login activity probes like NetworkMonitor
am: cdf3ba48cc

Change-Id: Ie85df7dd734b872cc361d0820edbfffc928f9f3a
2016-12-19 02:07:41 +00:00
Seigo Nonaka
9863f67469 Fix getLineExtent for hyphen width.
Need to set hyphen edit before measuring line.

Bug: 33388205
Test: Manually done
Change-Id: I32b1639d03ddd9bddb1f3ab34b577544ae358a6a
2016-12-19 10:35:38 +09:00
Hugo Benichi
cdf3ba48cc Captive portals: login activity probes like NetworkMonitor
This patch changes CaptivePortalLoginActivity captive portal test to be
consistent with NetworkMonitor by:
 - using Network.java to open the http connection.
 - adding a UserAgent property to the request header.

Test: manually tested.
Bug: 32369183
Change-Id: I33cbcdab9809c712d998da6d925bdd4e3093f8ff
2016-12-19 09:19:13 +09:00
Michael Rosenfeld
bf5546b1e2 Merge "Clean up local hprofs" am: 9ab94e15c7 am: 1876d82450
am: 67fd9f3968

Change-Id: I8eaea581cfda4844c3ea81f7ee63f0cfc40ef3e0
2016-12-18 00:28:42 +00:00
Marie Janssen
02daba1e72 Merge "Bluetooth: fix issues re-enabling after crash" am: e2c22e38d5 am: ff0d3e1c8d -s ours
am: 7fd7bc57ee

Change-Id: I711edb691cd0cbbd4c5f52d4ebdc27fd7adb2d26
2016-12-18 00:24:42 +00:00