OSDN Git Service

android-x86/frameworks-base.git
7 years agoMove libstorage includes into frameworks/base/lib/storage am: e78f853e46
Colin Cross [Thu, 15 Dec 2016 07:14:32 +0000 (07:14 +0000)]
Move libstorage includes into frameworks/base/lib/storage am: e78f853e46
am: afef87b1ba

Change-Id: Iff9c41710528af37a788973ac4a1080024808c95

7 years agoMove libstorage includes into frameworks/base/lib/storage
Colin Cross [Thu, 15 Dec 2016 06:59:18 +0000 (06:59 +0000)]
Move libstorage includes into frameworks/base/lib/storage
am: e78f853e46

Change-Id: Icac09a62152f11cf7a8d5ce5ffe9011949e17ec0

7 years agoMerge "More correct startup and shutdown procedures." am: 618d4215a2
Erik Kline [Thu, 15 Dec 2016 05:32:50 +0000 (05:32 +0000)]
Merge "More correct startup and shutdown procedures." am: 618d4215a2
am: b6588f9a41

Change-Id: I8a2bcab3b9373d2573601fa3bffa123020b3fbae

7 years agoMerge "More correct startup and shutdown procedures."
Erik Kline [Thu, 15 Dec 2016 05:25:48 +0000 (05:25 +0000)]
Merge "More correct startup and shutdown procedures."
am: 618d4215a2

Change-Id: I4844130b04ded0fc913593081d07a6052bdc0e42

7 years agoMerge "More correct startup and shutdown procedures."
Treehugger Robot [Thu, 15 Dec 2016 05:10:10 +0000 (05:10 +0000)]
Merge "More correct startup and shutdown procedures."

7 years agoMore correct startup and shutdown procedures.
Erik Kline [Mon, 12 Dec 2016 12:21:40 +0000 (21:21 +0900)]
More correct startup and shutdown procedures.

During IpManager startup, anything sending messages to the state machine
must not begin doing so until after the state machine has been started.
Reorder the constructor accordingly.

During shutdown, AvoidBadWifiTracker needs to unregister the registered
BroadcastReceiver and might as well also unregister the ContentObserver.

Test: backport from internal
Bug: 33388922
Change-Id: I58e07f7ccddaab160c153bcfb69fd45f50bb8710

7 years agoMerge "Fix a memory leak." am: 1715678a89
George Burgess IV [Wed, 14 Dec 2016 23:41:26 +0000 (23:41 +0000)]
Merge "Fix a memory leak." am: 1715678a89
am: 8f9c005fa9

Change-Id: I29afa8d1394feb57574ed527cda102405571fd65

7 years agoMerge "Fix a memory leak."
George Burgess IV [Wed, 14 Dec 2016 23:34:23 +0000 (23:34 +0000)]
Merge "Fix a memory leak."
am: 1715678a89

Change-Id: Ia005c534ef0e62e3efd6f59954cd2850349c7672

7 years agoMerge "Fix a memory leak."
Treehugger Robot [Wed, 14 Dec 2016 23:23:50 +0000 (23:23 +0000)]
Merge "Fix a memory leak."

7 years agoMerge "Add ability to set supported audio routes on phone accounts and connection...
Hall Liu [Wed, 14 Dec 2016 23:23:21 +0000 (23:23 +0000)]
Merge "Add ability to set supported audio routes on phone accounts and connection" am: d11261dcc9
am: 32e98d2f45

Change-Id: I0741edc2b35b7c57cbde338c4617791d1d089137

7 years agoMerge "Add an IPC for requesting network scores." am: e89ed4a001
Jeremy Joslin [Wed, 14 Dec 2016 23:22:15 +0000 (23:22 +0000)]
Merge "Add an IPC for requesting network scores." am: e89ed4a001
am: 724b26c902

Change-Id: If6284c934cd47257367c614523d4928758ab34e1

7 years agoresolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp
Marie Janssen [Wed, 14 Dec 2016 21:44:28 +0000 (13:44 -0800)]
resolve merge conflicts of 7a2518e to nyc-mr1-dev-plus-aosp

Change-Id: I903680717ed121a93fee3b7c2ed358cb29726d71

7 years agoMove libstorage includes into frameworks/base/lib/storage
Colin Cross [Wed, 14 Dec 2016 21:03:12 +0000 (13:03 -0800)]
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

7 years agoMerge "Add ability to set supported audio routes on phone accounts and connection"
Hall Liu [Wed, 14 Dec 2016 20:03:54 +0000 (20:03 +0000)]
Merge "Add ability to set supported audio routes on phone accounts and connection"
am: d11261dcc9

Change-Id: I002d1d32e6c0fb69c99047a19ca07f4326ec5323

7 years agoMerge "Add an IPC for requesting network scores."
Jeremy Joslin [Wed, 14 Dec 2016 20:02:45 +0000 (20:02 +0000)]
Merge "Add an IPC for requesting network scores."
am: e89ed4a001

Change-Id: I23bee3f29d3b3f71da6103e23afafc2df128ab75

7 years agoMerge "Bluetooth: log message improvements"
Marie Janssen [Wed, 14 Dec 2016 20:01:39 +0000 (20:01 +0000)]
Merge "Bluetooth: log message improvements"
am: f34bdf7676

Change-Id: Ic89c59257559d95119829fa4157dbb763124e86f

7 years agoMerge "Add ability to set supported audio routes on phone accounts and connection"
Hall Liu [Wed, 14 Dec 2016 19:55:00 +0000 (19:55 +0000)]
Merge "Add ability to set supported audio routes on phone accounts and connection"

7 years agoMerge "Add an IPC for requesting network scores."
Treehugger Robot [Wed, 14 Dec 2016 19:47:48 +0000 (19:47 +0000)]
Merge "Add an IPC for requesting network scores."

7 years agoMerge "Bluetooth: log message improvements"
Treehugger Robot [Wed, 14 Dec 2016 19:47:31 +0000 (19:47 +0000)]
Merge "Bluetooth: log message improvements"

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec ...
Julius D'souza [Wed, 14 Dec 2016 19:24:10 +0000 (19:24 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec  -s ours am: 7a69e8f3d8 am: af0b547fc7 am: 20081c4e71 am: 8cc9f081aa
am: 1838237435

Change-Id: Ib189c8e059a6d867e9ece1d03c193dc5f8002fad

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec ...
Julius D'souza [Wed, 14 Dec 2016 19:18:04 +0000 (19:18 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec  -s ours am: 7a69e8f3d8 am: af0b547fc7 am: 20081c4e71
am: 8cc9f081aa

Change-Id: I39ecaf420d8bc4390c737fd378fd0e32202e2d8c

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec ...
Julius D'souza [Wed, 14 Dec 2016 19:11:59 +0000 (19:11 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec  -s ours am: 7a69e8f3d8 am: af0b547fc7
am: 20081c4e71

Change-Id: I5e461a835cf64ba69894da2c5493a9d8a1ebcbcf

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec ...
Julius D'souza [Wed, 14 Dec 2016 19:06:29 +0000 (19:06 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec  -s ours am: 7a69e8f3d8
am: af0b547fc7

Change-Id: I23ef765ebbd2dde2110946fcc46c6b61e11733f2

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec ...
Julius D'souza [Wed, 14 Dec 2016 19:00:38 +0000 (19:00 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController am: e6f8cb29ec  -s ours
am: 7a69e8f3d8

Change-Id: I581e1cd6ef0dec7042802b29dd76db8ffc02cec3

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController
Julius D'souza [Wed, 14 Dec 2016 18:54:02 +0000 (18:54 +0000)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController
am: e6f8cb29ec  -s ours

Change-Id: Ia7bdba0fd3d52bb2d7c33f81d376336563f3a5cb

7 years agofix case issues with mGoingIdleWakeLock in DeviceIdleController
Julius D'souza [Wed, 14 Dec 2016 18:30:25 +0000 (10:30 -0800)]
fix case issues with mGoingIdleWakeLock in DeviceIdleController

Bug: 31900521

Change-Id: I9484b10f0e6b99dfaf11266bb275a31d7ff3868c

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle...
Julius D'souza [Wed, 14 Dec 2016 18:15:28 +0000 (18:15 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle. am: f9f39cc4a8  -s ours am: 589f83e686  -s ours am: 495aa09cc6  -s ours am: 10a9005003  -s ours am: 03c946e06b  -s ours
am: c2aed112a7  -s ours

Change-Id: Iac7c7e89a57c9e8717aa2fe9012b76595acbb2ea

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle...
Julius D'souza [Wed, 14 Dec 2016 18:09:25 +0000 (18:09 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle. am: f9f39cc4a8  -s ours am: 589f83e686  -s ours am: 495aa09cc6  -s ours am: 10a9005003  -s ours
am: 03c946e06b  -s ours

Change-Id: I75323469d9e15ea3b8652bb5f972d0e14a06cc7a

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle...
Julius D'souza [Wed, 14 Dec 2016 18:03:26 +0000 (18:03 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle. am: f9f39cc4a8  -s ours am: 589f83e686  -s ours am: 495aa09cc6  -s ours
am: 10a9005003  -s ours

Change-Id: I7a1d2d5b60b27765b2381e6d85fd3f8e967a40e1

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle...
Julius D'souza [Wed, 14 Dec 2016 17:56:53 +0000 (17:56 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle. am: f9f39cc4a8  -s ours am: 589f83e686  -s ours
am: 495aa09cc6  -s ours

Change-Id: I0f1a50fac9a6fc8a5c21b890aaa3aea5ea2aca74

7 years agoBluetooth: log message improvements
Marie Janssen [Tue, 13 Dec 2016 18:51:02 +0000 (10:51 -0800)]
Bluetooth: log message improvements

Some log improvements:
 - Reduce logspam
 - Use names for states in logs instead of numbers
 - Be more consistent with messages

Also remove some commented out dead code.

Test: run on phone, observe more useful logs
Change-Id: I32163278e148be144c03d4e8aaf0eb761226c94c

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle...
Julius D'souza [Wed, 14 Dec 2016 17:51:28 +0000 (17:51 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle. am: f9f39cc4a8  -s ours
am: 589f83e686  -s ours

Change-Id: I76a619ed9824174735d0a86c55fe13a3d6e90ec5

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle.
Julius D'souza [Wed, 14 Dec 2016 17:44:27 +0000 (17:44 +0000)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController is going idle.
am: f9f39cc4a8  -s ours

Change-Id: Ibd0b18a9e833afcc85845f4db57a927e80739cc2

7 years agoAdd an IPC for requesting network scores.
Jeremy Joslin [Wed, 14 Dec 2016 00:11:51 +0000 (16:11 -0800)]
Add an IPC for requesting network scores.

Migrating the NetworkScoreManager.requestScores() method to use an
IPC rather than a broadcast.

Defined the new IPC in the AIDL files for NetworkScoreService and
NetworkRecommendationProvider. Added a no-op implementation in
NetworkScoreService and a full implementation in
NetworkRecommendationProvider (plus tests).

Test: adb shell am instrument -e class android.net.NetworkRecommendationProviderTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
BUG: 33593157
Change-Id: Iacf7b6d424ec3c57e8b89e5abc6bc3e8414097b9
Merged-In: I951f6186aa11ddbe5a94e374173a1fd40b2a4cce

7 years agoMerge "Revert "Remove AmrInputStream"" am: e2d8581529
Marco Nelissen [Wed, 14 Dec 2016 17:05:59 +0000 (17:05 +0000)]
Merge "Revert "Remove AmrInputStream"" am: e2d8581529
am: 01cb199bed

Change-Id: Icafcabcc2b99dac4d897e0d68725c53e84fdd5c5

7 years agoMerge "Revert "Remove AmrInputStream""
Marco Nelissen [Wed, 14 Dec 2016 16:59:23 +0000 (16:59 +0000)]
Merge "Revert "Remove AmrInputStream""
am: e2d8581529

Change-Id: I55615b328bedf67819d076ccb21b9bc1f13a07a8

7 years agoMerge "Revert "Remove AmrInputStream""
Marco Nelissen [Wed, 14 Dec 2016 16:44:47 +0000 (16:44 +0000)]
Merge "Revert "Remove AmrInputStream""

7 years agoRevert "Remove AmrInputStream"
Marco Nelissen [Wed, 14 Dec 2016 16:44:12 +0000 (16:44 +0000)]
Revert "Remove AmrInputStream"

This reverts commit 0c3518cc7724df29b790d9d81af9a105e7958cf7.

Change-Id: I250d86d2d6ce462cb5f29bc6c312d88a49ac24a4

7 years agoMerge "Copy core-junit files into legacy-test." am: 69e363f506
Paul Duffin [Wed, 14 Dec 2016 15:10:30 +0000 (15:10 +0000)]
Merge "Copy core-junit files into legacy-test." am: 69e363f506
am: 884d3ca53b

Change-Id: I6d4a760fc740620578f324de6f847a3ec59600d5

7 years agoCopy core-junit files into legacy-test. am: cd7c34d8bf
Paul Duffin [Wed, 14 Dec 2016 15:09:22 +0000 (15:09 +0000)]
Copy core-junit files into legacy-test. am: cd7c34d8bf
am: 98e609d556

Change-Id: I4eb422f8fe217e5528e632d1f85c1303604b0d64

7 years agoMerge "Copy core-junit files into legacy-test."
Paul Duffin [Wed, 14 Dec 2016 15:02:20 +0000 (15:02 +0000)]
Merge "Copy core-junit files into legacy-test."
am: 69e363f506

Change-Id: I95f3c2005e87f86f7014f6bf693eae7212f54a73

7 years agoCopy core-junit files into legacy-test.
Paul Duffin [Wed, 14 Dec 2016 15:02:16 +0000 (15:02 +0000)]
Copy core-junit files into legacy-test.
am: cd7c34d8bf

Change-Id: I672fa4b006b04db5a4c8f86793f1c891bc55754a

7 years agoMerge "Copy core-junit files into legacy-test."
Paul Duffin [Wed, 14 Dec 2016 14:50:55 +0000 (14:50 +0000)]
Merge "Copy core-junit files into legacy-test."

7 years agoCopy core-junit files into legacy-test.
Paul Duffin [Mon, 12 Dec 2016 16:35:36 +0000 (16:35 +0000)]
Copy core-junit files into legacy-test.

The legacy-test directory contains part of the Android API and
so must maintain backwards compatibility. The junit classes that
are in the API are copied here to ensure that they do not change
when external/junit is upgraded.

Bug: 30188076
Test: make checkbuild and checked legacy-test contents
Change-Id: I6c263afc16c06abfd027334be51a41422239a189

7 years agoMerge "Copy junit-runner files into test-runner." am: 3e24af3eb7
Paul Duffin [Wed, 14 Dec 2016 13:40:03 +0000 (13:40 +0000)]
Merge "Copy junit-runner files into test-runner." am: 3e24af3eb7
am: 5d53a925a1

Change-Id: I9239d238e51c61c6646022f64917348af27179ab

7 years agoCopy junit-runner files into test-runner. am: eef35dd29a
Paul Duffin [Wed, 14 Dec 2016 13:36:38 +0000 (13:36 +0000)]
Copy junit-runner files into test-runner. am: eef35dd29a
am: b46cecb6c4

Change-Id: I8f75a351d8e697b2fdbc4e1b3d06fd4ea25ffb0a

7 years agoMerge "Copy junit-runner files into test-runner."
Paul Duffin [Wed, 14 Dec 2016 13:35:44 +0000 (13:35 +0000)]
Merge "Copy junit-runner files into test-runner."
am: 3e24af3eb7

Change-Id: I55ec07039052bf6030a16bfa0cbeedc8690809f7

7 years agoCopy junit-runner files into test-runner.
Paul Duffin [Wed, 14 Dec 2016 13:30:03 +0000 (13:30 +0000)]
Copy junit-runner files into test-runner.
am: eef35dd29a

Change-Id: I974279917ae3451abf44143161ac945f4153768f

7 years agoMerge "Copy junit-runner files into test-runner."
Paul Duffin [Wed, 14 Dec 2016 13:22:39 +0000 (13:22 +0000)]
Merge "Copy junit-runner files into test-runner."

7 years agoCopy junit-runner files into test-runner.
Paul Duffin [Mon, 12 Dec 2016 12:22:31 +0000 (12:22 +0000)]
Copy junit-runner files into test-runner.

The android.test.runner target forms part of the Android API and
so must maintain backwards compatibility. The junit classes that
belong in there are copied here to ensure that they do not
change when external/junit is upgraded.

Bug: 30188076
Test: make checkbuild and checked android.test.runner contents
Change-Id: I947144c47ae1c3eb361a43c39bdd03dc11b9575f

7 years agoMerge "Stop setting net.hostname" am: 06178a39f8
Erik Kline [Wed, 14 Dec 2016 08:07:01 +0000 (08:07 +0000)]
Merge "Stop setting net.hostname" am: 06178a39f8
am: 35cc49e03f

Change-Id: Id261566422c4af7a3ce65877ba04b0a401685c23

7 years agoMerge "Stop setting net.hostname"
Erik Kline [Wed, 14 Dec 2016 07:59:59 +0000 (07:59 +0000)]
Merge "Stop setting net.hostname"
am: 06178a39f8

Change-Id: Id03d2f8bf6fa8b447c5f32d3d2a51faef193ba62

7 years agoMerge "Stop setting net.hostname"
Treehugger Robot [Wed, 14 Dec 2016 07:51:00 +0000 (07:51 +0000)]
Merge "Stop setting net.hostname"

7 years agoStop setting net.hostname
Erik Kline [Wed, 14 Dec 2016 03:06:53 +0000 (12:06 +0900)]
Stop setting net.hostname

Test: as follows
    - basics:
        - built
        - flashed
        - booted
    - connect to {v4-only, dualstack, v6-only} networks
        - verified expected connectivity on each
    - runtest frameworks-net
Bug: 30979015

Change-Id: I65e9878c7b8eaddaba1c0e1b8566ddfa0760047f

7 years agoMerge "DHCPv4 anonymity profile: support skipping hostname option" am: eef38717b9
Erik Kline [Wed, 14 Dec 2016 03:29:10 +0000 (03:29 +0000)]
Merge "DHCPv4 anonymity profile: support skipping hostname option" am: eef38717b9
am: 94e328c22f

Change-Id: I4d46a9aa4b601098e55bf681906cb245d4d9a5cb

7 years agoMerge "DHCPv4 anonymity profile: support skipping hostname option"
Erik Kline [Wed, 14 Dec 2016 03:22:12 +0000 (03:22 +0000)]
Merge "DHCPv4 anonymity profile: support skipping hostname option"
am: eef38717b9

Change-Id: Id0eff1bdb60f1895fa6dd6c619071994efd79939

7 years agoMerge "DHCPv4 anonymity profile: support skipping hostname option"
Treehugger Robot [Wed, 14 Dec 2016 03:07:48 +0000 (03:07 +0000)]
Merge "DHCPv4 anonymity profile: support skipping hostname option"

7 years agoDO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController
Julius D'souza [Tue, 13 Dec 2016 01:15:17 +0000 (17:15 -0800)]
DO NOT MERGE ANYWHERE: Hold a wake lock while DeviceIdleController
is going idle.

The inputs to DeviceIdleController (alarm manager, sensors)
hold wake locks while they call it.  But then the real work
happens in a handler which is outside of the wakelock, so
listeners don't get a chance to run right away, which in
the case of NetworkPolicyManager means the device is in a
higher power state than it should be.

It's not clear that this will 100% fix the bug, because
NetworkPolicyManagerService also has its own internal
Handler, and isn't holding its own wakelock for this,
but this change allows NPMS to be fixed if it really
needed to be.

Bug: 31900521
Change-Id: I706045aa189147824c9214c57abc13993aee9a5b

7 years agoAdd ability to set supported audio routes on phone accounts and connection
Christine Hallstrom [Thu, 1 Dec 2016 00:06:42 +0000 (16:06 -0800)]
Add ability to set supported audio routes on phone accounts and connection

The set audio routes are used by Telecom to restrict where the audio may
be routed to. For example, an account can specify that calls may not be
routed over bluetooth headsets, which will prevent a new call from being
routed to this source.

This is a cherry-pick of abandoned ag/1521009.

Bug: 32958838
Change-Id: Idd5e4d38b157f11454f3d991385644f2f384596e

7 years agoFix a memory leak.
George Burgess IV [Tue, 13 Dec 2016 23:32:00 +0000 (15:32 -0800)]
Fix a memory leak.

This was caught by clang's static analyzer. Warning:
frameworks/base/media/mca/filterfw/native/core/shader_program.cpp:1031:3:
warning: Potential leak of memory pointed to by 'attrib.owned_data'
    return StoreAttribute(attrib);

Bug: None.
Test: The static analyzer no longer complains.
Change-Id: Ibef0368dfa48ba57e38019a5a3e33d5bacd847a2

7 years agoMerge "Remove AmrInputStream" am: 70b262b0f2
Marco Nelissen [Tue, 13 Dec 2016 23:28:55 +0000 (23:28 +0000)]
Merge "Remove AmrInputStream" am: 70b262b0f2
am: e57b37e423

Change-Id: Ia95832144e831b91ba0f163db1da8ef8e7033446

7 years agoMerge "Remove AmrInputStream"
Marco Nelissen [Tue, 13 Dec 2016 23:22:14 +0000 (23:22 +0000)]
Merge "Remove AmrInputStream"
am: 70b262b0f2

Change-Id: I46f8cf7847982e8ab590c9016472fea93aa4a27b

7 years agoMerge "Remove AmrInputStream"
Marco Nelissen [Tue, 13 Dec 2016 23:09:21 +0000 (23:09 +0000)]
Merge "Remove AmrInputStream"

7 years agoRemove AmrInputStream
Marco Nelissen [Fri, 11 Nov 2016 21:18:12 +0000 (13:18 -0800)]
Remove AmrInputStream

Bug: 32114618
Change-Id: I55328e6f003377f4d3c2ba2266844047b1422f49

7 years agoMerge changes from topic 'f-radio-toggle' into cw-f-dev
Ivan Podogov [Tue, 13 Dec 2016 19:46:45 +0000 (19:46 +0000)]
Merge changes from topic 'f-radio-toggle' into cw-f-dev
am: e5592abb83

Change-Id: I9b6e01eedbbd463e0053bab3a5b8a080aaf7514a

7 years agoAdd WiFi toggle prompts - framework
Svetoslav Ganov [Tue, 13 Dec 2016 19:46:20 +0000 (19:46 +0000)]
Add WiFi toggle prompts - framework
am: 82737b42a6

Change-Id: I5767478779bf20ad854a0992b73b3cd72737504c

7 years agoresolve merge conflicts of b1e2da7 to nyc-mr1-dev-plus-aosp
Ivan Podogov [Tue, 13 Dec 2016 16:34:53 +0000 (16:34 +0000)]
resolve merge conflicts of b1e2da7 to nyc-mr1-dev-plus-aosp

Test: build police
Change-Id: Ifec1ab6760ebb94b0b411c9c60f07066e151206b

7 years agoMerge "Make the onRequestRecommendation() method async." am: fbeacb02c0
Jeremy Joslin [Tue, 13 Dec 2016 16:19:14 +0000 (16:19 +0000)]
Merge "Make the onRequestRecommendation() method async." am: fbeacb02c0
am: a6c6bc333d

Change-Id: I56a830273f8e3246b598c2ea7a027b87e3066e16

7 years agoMerge "Make the onRequestRecommendation() method async."
Jeremy Joslin [Tue, 13 Dec 2016 16:13:44 +0000 (16:13 +0000)]
Merge "Make the onRequestRecommendation() method async."
am: fbeacb02c0

Change-Id: I9b98480499c2366eee06de163b561c4583e475d2

7 years agoMerge "Make the onRequestRecommendation() method async."
Treehugger Robot [Tue, 13 Dec 2016 16:04:35 +0000 (16:04 +0000)]
Merge "Make the onRequestRecommendation() method async."

7 years agoMerge changes from topic 'f-radio-toggle' into cw-f-dev
Ivan Podogov [Tue, 13 Dec 2016 15:55:24 +0000 (15:55 +0000)]
Merge changes from topic 'f-radio-toggle' into cw-f-dev

* changes:
  Add WiFi toggle prompts - framework
  Add Bluetooth toggle prompts - framework

7 years agoMerge "API changes for updating Locale to OpenJDK8u60, part 2" am: c35137ce36
Tobias Thierer [Tue, 13 Dec 2016 13:48:39 +0000 (13:48 +0000)]
Merge "API changes for updating Locale to OpenJDK8u60, part 2" am: c35137ce36
am: 7de23e292f

Change-Id: Id25c5050bb798ec206e86a83260a3bee9510e52c

7 years agoMerge "API changes for updating Locale to OpenJDK8u60, part 2"
Tobias Thierer [Tue, 13 Dec 2016 13:42:50 +0000 (13:42 +0000)]
Merge "API changes for updating Locale to OpenJDK8u60, part 2"
am: c35137ce36

Change-Id: Ibbf80ffe75bdbbc5da343e139bd80bc70afe4794

7 years agoMerge "API changes for updating Locale to OpenJDK8u60, part 2"
Tobias Thierer [Tue, 13 Dec 2016 13:36:07 +0000 (13:36 +0000)]
Merge "API changes for updating Locale to OpenJDK8u60, part 2"

7 years agoDHCPv4 anonymity profile: support skipping hostname option
Erik Kline [Tue, 13 Dec 2016 04:44:19 +0000 (13:44 +0900)]
DHCPv4 anonymity profile: support skipping hostname option

Per https://tools.ietf.org/html/rfc7844#section-3.7

   When using the anonymity profile, DHCP clients SHOULD NOT send the
   Host Name option.

Once the net.hostname property is removed and ensured unset via CTS
this option will no longer be sent.

Test: as follows
    - build, flashed
    - connected to v4-only and dualstack networks, verified v4 works
    - android.net.dhcp.DhcpPacketTest passes
    - setprop net.hostname "" and verified no hostname option
Bug: 30979015
Change-Id: Ieab3f04ea38e176d9147bb788742a5397762c2e4

7 years agoMerge "Copy WifiNetworkScoreCache into frameworks/base. Add tests." am: a895081335
sghuman [Tue, 13 Dec 2016 02:29:14 +0000 (02:29 +0000)]
Merge "Copy WifiNetworkScoreCache into frameworks/base. Add tests." am: a895081335
am: 9b2760dbe5

Change-Id: Ia4c873cc5425175b86f909b6aa3798074521467a

7 years agoCopy WifiNetworkScoreCache into frameworks/base. Add tests. am: 46169f946b
Sundeep Ghuman [Tue, 13 Dec 2016 02:23:42 +0000 (02:23 +0000)]
Copy WifiNetworkScoreCache into frameworks/base. Add tests. am: 46169f946b
am: e436024c65

Change-Id: I9f9310feaa19385bb9287c959c2f2d3a9642e3b9

7 years agoMerge "Copy WifiNetworkScoreCache into frameworks/base. Add tests."
sghuman [Tue, 13 Dec 2016 02:23:15 +0000 (02:23 +0000)]
Merge "Copy WifiNetworkScoreCache into frameworks/base. Add tests."
am: a895081335

Change-Id: I779eabea94d67d01ac29b49a68456daf9dd19013

7 years agoCopy WifiNetworkScoreCache into frameworks/base. Add tests.
Sundeep Ghuman [Tue, 13 Dec 2016 02:18:21 +0000 (02:18 +0000)]
Copy WifiNetworkScoreCache into frameworks/base. Add tests.
am: 46169f946b

Change-Id: Id3ce970efaea32d0d0a2fa5594b91628e2f3d1df

7 years agoMerge "Copy WifiNetworkScoreCache into frameworks/base. Add tests."
sghuman [Tue, 13 Dec 2016 02:08:39 +0000 (02:08 +0000)]
Merge "Copy WifiNetworkScoreCache into frameworks/base. Add tests."

7 years agoMake the onRequestRecommendation() method async.
Jeremy Joslin [Thu, 8 Dec 2016 18:24:02 +0000 (10:24 -0800)]
Make the onRequestRecommendation() method async.

Converted the NetworkRecommendationProvider.onRequestRecommendation()
method into an async call to give implementors more flexibility.

Added unit tests for NetworkRecommendationProvider.

Test: Added NetworkRecommendationProviderTest.
BUG: 32909424
Change-Id: I8c1d2e11baa539744d77a012e85351f750523e3b
Merged-In: Iebe72f260133e9ad1946b0b75e2f69635e154ef3

7 years agoMerge "Add trace category for adb." am: 6968d90dc5
Josh Gao [Tue, 13 Dec 2016 00:42:42 +0000 (00:42 +0000)]
Merge "Add trace category for adb." am: 6968d90dc5
am: 15dc5951e6

Change-Id: I1e60464308807f09a4d89ee4c0fc1a007fb1be88

7 years agoMerge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4." am: ff93f92...
Felipe Leme [Tue, 13 Dec 2016 00:41:15 +0000 (00:41 +0000)]
Merge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4." am: ff93f927e4  -s ours
am: c398c0fc8d  -s ours

Change-Id: I44dd708ba7b890cc54f27cdcee7334c25a215411

7 years agoMerge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers...
Jerry Zhang [Tue, 13 Dec 2016 00:37:12 +0000 (00:37 +0000)]
Merge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers." am: 1975240f17
am: 830874dbe7

Change-Id: I930f006ffd7a429379638aa4f8268ed443a3696b

7 years agoMerge "Add trace category for adb."
Josh Gao [Tue, 13 Dec 2016 00:36:54 +0000 (00:36 +0000)]
Merge "Add trace category for adb."
am: 6968d90dc5

Change-Id: Id542769172f3d40221a6b20ea8af1db5a70abfd1

7 years agoMerge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4."
Felipe Leme [Tue, 13 Dec 2016 00:30:21 +0000 (00:30 +0000)]
Merge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4."
am: ff93f927e4  -s ours

Change-Id: I9cf0ed46073b2cf8af33e61df77aa7c0ec168344

7 years agoMerge "Add trace category for adb."
Josh Gao [Tue, 13 Dec 2016 00:28:09 +0000 (00:28 +0000)]
Merge "Add trace category for adb."

7 years agoMerge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers."
Jerry Zhang [Tue, 13 Dec 2016 00:26:33 +0000 (00:26 +0000)]
Merge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers."
am: 1975240f17

Change-Id: I4b6532719b848ba4b595c8069ecbbd42e855382b

7 years agoMerge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4."
Treehugger Robot [Tue, 13 Dec 2016 00:18:56 +0000 (00:18 +0000)]
Merge "DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4."

7 years agoMerge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers."
Jerry Zhang [Tue, 13 Dec 2016 00:12:04 +0000 (00:12 +0000)]
Merge "Modify UsbDeviceManager stack to allow MtpServer to use FunctionFS drivers."

7 years agoMerge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest." am: d0fdf7aba3 -s ours
Felipe Leme [Mon, 12 Dec 2016 23:18:29 +0000 (23:18 +0000)]
Merge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest." am: d0fdf7aba3  -s ours
am: 9f0030a98a  -s ours

Change-Id: Ifd564eb7e8260b0642805abf4621d77c0381a5a2

7 years agoMerge "Fix erroneous constructor in ScoredNetwork.java" am: 9d55f43719
sghuman [Mon, 12 Dec 2016 23:12:36 +0000 (23:12 +0000)]
Merge "Fix erroneous constructor in ScoredNetwork.java" am: 9d55f43719
am: eaed9ef0b7

Change-Id: I0314c02497dcabd6f3fa1caeb665ff5ecb9a0f59

7 years agoMerge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest."
Felipe Leme [Mon, 12 Dec 2016 23:12:25 +0000 (23:12 +0000)]
Merge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest."
am: d0fdf7aba3  -s ours

Change-Id: I3720f2e2fd0c78c9d45e0b26e7157902a32fae76

7 years agoMerge "Fix erroneous constructor in ScoredNetwork.java"
sghuman [Mon, 12 Dec 2016 23:07:22 +0000 (23:07 +0000)]
Merge "Fix erroneous constructor in ScoredNetwork.java"
am: 9d55f43719

Change-Id: I6f24c92a9638f91197a4d17bfdc3fbeeede3daf4

7 years agoMerge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest."
Treehugger Robot [Mon, 12 Dec 2016 23:00:17 +0000 (23:00 +0000)]
Merge "DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest."

7 years agoCopy WifiNetworkScoreCache into frameworks/base. Add tests.
Sundeep Ghuman [Wed, 30 Nov 2016 03:56:48 +0000 (19:56 -0800)]
Copy WifiNetworkScoreCache into frameworks/base. Add tests.

Begin process of migrating WifiNetworkScoreCache.java from System Server
(//frameworks/opt/net/wifi/service/java/com/android/server/wifi/) to a
SystemApi. This CL is a straight copy and paste of
WifiNetworkScoreCache.java. Only new code is located in
WifiNetworkScoreCacheTest.java

Bug: b/33050254
Test: Unit tests added to cover most common use cases.
Change-Id: I7510420d293339ce7811fcf71a6efceb8d809c3a

7 years agoMerge "Fix erroneous constructor in ScoredNetwork.java"
sghuman [Mon, 12 Dec 2016 22:53:18 +0000 (22:53 +0000)]
Merge "Fix erroneous constructor in ScoredNetwork.java"

7 years agoFix erroneous constructor in ScoredNetwork.java
Sundeep Ghuman [Mon, 12 Dec 2016 22:36:03 +0000 (14:36 -0800)]
Fix erroneous constructor in ScoredNetwork.java

Test: Unit tests in ag/310934.
Change-Id: I0075b15f59796872ea9779c04373563607d2f883

7 years agoDO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4.
Felipe Leme [Fri, 12 Aug 2016 22:19:40 +0000 (15:19 -0700)]
DO NOT MERGE: Migrate NetworkPolicyManagerServiceTest to JUnit 4.

BUG: 30839080
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java

(cherry picked from Ic192334389eed7596e1f7cb8ce98a5169262418c)

Change-Id: I90cf55ad948bbe0883473431f40201cf4206dc82

7 years agoDO NOT MERGE: Fixed NetworkPolicyManagerServiceTest.
Felipe Leme [Wed, 10 Aug 2016 21:46:39 +0000 (14:46 -0700)]
DO NOT MERGE: Fixed NetworkPolicyManagerServiceTest.

NetworkPolicyManagerServiceTest had many tests there were @Suppressed
because they were obsolete and harder to fix using Easymocks.

This CL replaced EasyMock by Mockito and re-enabled most tests, although
some tests were removed because:
- It's underlying logic changed too much that.
- It would be hard to mock all external entities they interact with.
- They are covered by CTS tests.

Bug: 30764608
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/NetworkPolicyManagerServiceTest.java

(cherry picked from commit I53ff86fc9b64cb058846f1aefa244771630d9e1e)

Change-Id: Ia9cdb780cb0917477b310dc38d2e39731d6a7609