OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "HwBinder: fail gracefully for device w/o hwbinder"
Steven Moreland [Thu, 22 Dec 2016 20:48:17 +0000 (20:48 +0000)]
Merge "HwBinder: fail gracefully for device w/o hwbinder"
am: 380697ca79

Change-Id: I301b1f9e9344a8b314a6debff3fef2e7c8362f1a

7 years agoMerge "HwBinder: fail gracefully for device w/o hwbinder"
Treehugger Robot [Thu, 22 Dec 2016 20:41:01 +0000 (20:41 +0000)]
Merge "HwBinder: fail gracefully for device w/o hwbinder"

7 years agoMerge "Make users of MtpServer fill in DeviceInfo field values"
Alex Klyubin [Thu, 22 Dec 2016 19:10:00 +0000 (19:10 +0000)]
Merge "Make users of MtpServer fill in DeviceInfo field values"
am: 933ea68aca

Change-Id: Iacecf43819f8cd6c0e8df7a53105e0538075c188

7 years agoMerge "Fix failing WifiNetworkScoreCacheTest."
Sundeep Ghuman [Thu, 22 Dec 2016 19:05:44 +0000 (19:05 +0000)]
Merge "Fix failing WifiNetworkScoreCacheTest."
am: 5e055b6a18

Change-Id: I52e23144730acc15c943fa6485a872a88ee0a787

7 years agoMerge "Cherrypick: Define the calculateRankingScore method and Key."
Sundeep Ghuman [Thu, 22 Dec 2016 19:04:22 +0000 (19:04 +0000)]
Merge "Cherrypick: Define the calculateRankingScore method and Key."
am: 425af45d02

Change-Id: Ib61f91087967f1b026cd2ba77175ccf47943bc53

7 years agoMerge changes I40f055df,I562713df
Jeremy Joslin [Thu, 22 Dec 2016 19:02:45 +0000 (19:02 +0000)]
Merge changes I40f055df,I562713df
am: 4a04c07df4

Change-Id: Ie951518a0a472691d1cd8b90a025e3a67b1acd53

7 years agoStay bound to the most current active scorer.
Jeremy Joslin [Thu, 22 Dec 2016 19:02:38 +0000 (19:02 +0000)]
Stay bound to the most current active scorer.
am: b1365852cc

Change-Id: I8313d23450b47f23f73eb050e6b4244bc0d37622

7 years agoClear and restore the calling ID.
Jeremy Joslin [Thu, 22 Dec 2016 19:01:43 +0000 (19:01 +0000)]
Clear and restore the calling ID.
am: 29ed4a99bf

Change-Id: Ie5752ca772e6f5c8fed8092d23e0604f44598b24

7 years agoresolve merge conflicts of febd982 to stage-aosp-master
Alex Klyubin [Thu, 22 Dec 2016 18:20:23 +0000 (10:20 -0800)]
resolve merge conflicts of febd982 to stage-aosp-master

Change-Id: I40c27e3159b8f7acd60c6fa42509bb23d146b937

7 years agoMerge "Make users of MtpServer fill in DeviceInfo field values"
Alex Klyubin [Thu, 22 Dec 2016 17:06:06 +0000 (17:06 +0000)]
Merge "Make users of MtpServer fill in DeviceInfo field values"

7 years agoMerge "Fix failing WifiNetworkScoreCacheTest."
Treehugger Robot [Thu, 22 Dec 2016 03:11:57 +0000 (03:11 +0000)]
Merge "Fix failing WifiNetworkScoreCacheTest."

7 years agoFix failing WifiNetworkScoreCacheTest.
Sundeep Ghuman [Thu, 22 Dec 2016 00:44:46 +0000 (16:44 -0800)]
Fix failing WifiNetworkScoreCacheTest.

There was a NPE thrown by an unintialized mock.

Bug: 33818187
Test: Android unit tests
Change-Id: I478885dcebaf41f93488a6a12bb83652ad462be5

7 years agoMerge "Cherrypick: Define the calculateRankingScore method and Key."
Treehugger Robot [Thu, 22 Dec 2016 00:03:56 +0000 (00:03 +0000)]
Merge "Cherrypick: Define the calculateRankingScore method and Key."

7 years agoMerge changes I40f055df,I562713df
Treehugger Robot [Wed, 21 Dec 2016 22:58:40 +0000 (22:58 +0000)]
Merge changes I40f055df,I562713df

* changes:
  Stay bound to the most current active scorer.
  Clear and restore the calling ID.

7 years agoCherrypick: Define the calculateRankingScore method and Key.
Sundeep Ghuman [Wed, 7 Dec 2016 21:32:33 +0000 (13:32 -0800)]
Cherrypick: Define the calculateRankingScore method and Key.

Define the key to be used to store the rankingScoreOffset inside the
ScoredNetwork bundle. Implement a platform API method to calculate the
ranking score for a given rssi.

OCL: ag/1688711

Bug: 33049302
Test: Unit tests
Change-Id: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Merged-In: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Topic: ScoredNetworkRankingScore

7 years agoMake users of MtpServer fill in DeviceInfo field values
Alex Klyubin [Wed, 21 Dec 2016 19:19:52 +0000 (11:19 -0800)]
Make users of MtpServer fill in DeviceInfo field values

This is part of weaning apps off accessing system identifiers via
system properties API. Apps should use android.os.Build API instead.

Bug: 33700679
Test: Enable MTP mode then check that mtp-detect output same as before this commit
Change-Id: I4e6696cdee18b9c3e987c432c095911e85a997db

7 years agoStay bound to the most current active scorer.
Jeremy Joslin [Wed, 21 Dec 2016 00:59:26 +0000 (16:59 -0800)]
Stay bound to the most current active scorer.

This fixes the following issue:

1) Scorer A is active and bound.
2) A change occurs to Scorer A such that it is no longer the selected
   scorer.
3) Scorer B is selected as the scorer and returned whenever
   getActiveScorer() is queried.
4) Scorer A is never unbound because it isn't seen as the active
   scorer.
5) Scorer B is never bound until its package changes in some way (or
   the feature is disabled/enabled).

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest + manual testing.
Change-Id: I40f055df472e2b9e7b07e6979a841dd4c0b794ce
Merged-In: I468a8c02a72f089f1fb778d150d945efe5485b88

7 years agoClear and restore the calling ID.
Jeremy Joslin [Tue, 20 Dec 2016 22:36:20 +0000 (14:36 -0800)]
Clear and restore the calling ID.

Clear and restore the calling identity in IPC methods after asserting
the caller has the required permissions.

Fixed 2 tests in NetworkScoreServiceTest that were failing due to a
recent refactor.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG: 33781319
Change-Id: I562713df3d9455cdc02bf80a687940fb9daecd8f
Merged-In: Icd79751d12dcfe4af8026980aaa1f7bd463468dc

7 years agoMerge "Avoid Calendar's unexpect change in snapToCycleDay()"
Jeff Sharkey [Wed, 21 Dec 2016 21:11:19 +0000 (21:11 +0000)]
Merge "Avoid Calendar's unexpect change in snapToCycleDay()"

7 years agoMerge "Expose ScanResult#untrusted as a @SystemApi."
Amin Shaikh [Wed, 21 Dec 2016 19:56:19 +0000 (19:56 +0000)]
Merge "Expose ScanResult#untrusted as a @SystemApi."
am: a93e57f1ac

Change-Id: I9cac16dbceb36d6ff72e92d2ab8de20bd8d70e36

7 years agoMerge "Expose ScanResult#untrusted as a @SystemApi."
Treehugger Robot [Wed, 21 Dec 2016 19:47:31 +0000 (19:47 +0000)]
Merge "Expose ScanResult#untrusted as a @SystemApi."

7 years agoExpose ScanResult#untrusted as a @SystemApi.
Amin Shaikh [Sat, 10 Dec 2016 01:11:50 +0000 (17:11 -0800)]
Expose ScanResult#untrusted as a @SystemApi.

- Expose ScanResult#untrusted to inform NetworkRecommendationProviders
  that a ScanResult does not correspond to a saved network.
- Add static construction methods and assertions to RecommendationResult

Test: runtest frameworks-services

Bug: 33490132
Change-Id: If7006040f63843c1c468c9d95c5c017383c5c5dd
Merged-In: If7006040f63843c1c468c9d95c5c017383c5c5dd

7 years agoAvoid Calendar's unexpect change in snapToCycleDay()
Shunta Sato [Tue, 25 Oct 2016 08:42:58 +0000 (17:42 +0900)]
Avoid Calendar's unexpect change in snapToCycleDay()

Symptom:
Calendar object's certain field is unexpectedly changed after
using Calendar.add() method.

Detail and sample:
Following patch causes this issue.
- Switch network cycle calculation to use Calendar.
  https://android.googlesource.com/platform/frameworks/base/+/f2bead5

Call of Calendar.add() method might make a smaller field value
invariant. The smaller field means such a field of
Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND and so on
if Calendar.MONTH field is focused.
According to above, sometimes correct Calendar value won't be
acquired by original code.
To avoid unexpected change, it requires initialization toward
each smaller field after Calendar.add() call.

Solutions:
Calendar.DAY_OF_MONTH, Calendar.HOUR_OF_DAY, Calendar.MINUTE,
and Calendar.SECOND fields is set to 0 after added value to
Calendar.MONTH field.

Bug: 32724903
Author: Shigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com>
Change-Id: I7af6391653be21786b662b2f8eaad10c413733c1

7 years agoHwBinder: fail gracefully for device w/o hwbinder
Steven Moreland [Thu, 15 Dec 2016 23:50:17 +0000 (15:50 -0800)]
HwBinder: fail gracefully for device w/o hwbinder

Test: compiles
Change-Id: I03ffd0d7480c5771634977e30ccf02b39f69f8ba

7 years agoMerge "Reconnect to installd when it restarts."
Jeff Sharkey [Wed, 21 Dec 2016 18:56:47 +0000 (18:56 +0000)]
Merge "Reconnect to installd when it restarts."
am: 48d5d6cda8

Change-Id: Ib4c4ced58f5963465f1e2d3eb401a8c71624ac12

7 years agoMerge "Reconnect to installd when it restarts."
Jeff Sharkey [Wed, 21 Dec 2016 18:45:45 +0000 (18:45 +0000)]
Merge "Reconnect to installd when it restarts."

7 years agoReconnect to installd when it restarts.
Jeff Sharkey [Wed, 21 Dec 2016 16:18:33 +0000 (09:18 -0700)]
Reconnect to installd when it restarts.

Test: builds, boots, reconnects when installd dies
Bug: 33695164
Change-Id: I29769a111783095f742ad81af779a7403ca52ff3

7 years agoMerge "Report non-primary dex files loads to PM"
Calin Juravle [Wed, 21 Dec 2016 10:04:39 +0000 (10:04 +0000)]
Merge "Report non-primary dex files loads to PM"
am: f23ea2ca62

Change-Id: I5eb9f8c8bc7e66c074adb95ad5dfec412cec539c

7 years agoMerge "Report non-primary dex files loads to PM"
Calin Juravle [Wed, 21 Dec 2016 09:57:40 +0000 (09:57 +0000)]
Merge "Report non-primary dex files loads to PM"

7 years agoMerge "Fix incorrect FIFO cgroup assignment."
Tim Murray [Wed, 21 Dec 2016 01:57:51 +0000 (01:57 +0000)]
Merge "Fix incorrect FIFO cgroup assignment."
am: d9ce420d9a

Change-Id: Ib5c5ee81058ded098d16dba1dfd43096bbd91937

7 years agoMerge "Fix incorrect FIFO cgroup assignment."
Treehugger Robot [Wed, 21 Dec 2016 01:47:55 +0000 (01:47 +0000)]
Merge "Fix incorrect FIFO cgroup assignment."

7 years agoMerge "Change fillColor for Wi-Fi badges to #FFFFFF."
Amin Shaikh [Wed, 21 Dec 2016 01:10:44 +0000 (01:10 +0000)]
Merge "Change fillColor for Wi-Fi badges to #FFFFFF."
am: c1940ef392

Change-Id: If3d909680cbcda0440807db40761c1a84b2cde97

7 years agoMerge "Change fillColor for Wi-Fi badges to #FFFFFF."
Treehugger Robot [Wed, 21 Dec 2016 01:00:18 +0000 (01:00 +0000)]
Merge "Change fillColor for Wi-Fi badges to #FFFFFF."

7 years agoMerge "Create and implement a CacheListener inside WifiNetworkScoreCache."
Sundeep Ghuman [Wed, 21 Dec 2016 00:43:15 +0000 (00:43 +0000)]
Merge "Create and implement a CacheListener inside WifiNetworkScoreCache."
am: 31a8f712ab

Change-Id: Iba52c9ed85a7e35c46b85a9516a81ac5096a6710

7 years agoMerge "Create and implement a CacheListener inside WifiNetworkScoreCache."
Treehugger Robot [Wed, 21 Dec 2016 00:28:47 +0000 (00:28 +0000)]
Merge "Create and implement a CacheListener inside WifiNetworkScoreCache."

7 years agoChange fillColor for Wi-Fi badges to #FFFFFF.
Amin Shaikh [Tue, 20 Dec 2016 23:28:34 +0000 (15:28 -0800)]
Change fillColor for Wi-Fi badges to #FFFFFF.

Bug: 33778046
Test: make
Change-Id: I0cfc2c6d682a2f13e665563fc1c54fa19324af53

7 years agoCreate and implement a CacheListener inside WifiNetworkScoreCache.
Sundeep Ghuman [Tue, 13 Dec 2016 02:05:10 +0000 (18:05 -0800)]
Create and implement a CacheListener inside WifiNetworkScoreCache.

Bug: 33041117
Test: Unit tests
Change-Id: Ic07522062f79223079b84c49210fcfc0217ecd38

7 years agoMerge "Make WifiConfiguration#meteredHint a @SystemApi"
Amin Shaikh [Tue, 20 Dec 2016 22:35:06 +0000 (22:35 +0000)]
Merge "Make WifiConfiguration#meteredHint a @SystemApi"
am: f456ddf3fd

Change-Id: Ie1324197329486e9eeec0bb765441a6fc5bb8a32

7 years agoMerge "Make WifiConfiguration#meteredHint a @SystemApi"
Treehugger Robot [Tue, 20 Dec 2016 22:24:13 +0000 (22:24 +0000)]
Merge "Make WifiConfiguration#meteredHint a @SystemApi"

7 years agoFix incorrect FIFO cgroup assignment.
Tim Murray [Tue, 20 Dec 2016 19:47:24 +0000 (11:47 -0800)]
Fix incorrect FIFO cgroup assignment.

bug 33745094
Test: builds

Change-Id: I46eefc8ea6f17ca3795f4743692ddfea36d5db0f

7 years agoMerge "Adds carrier config to determine if high definition audio is displayed"
Hall Liu [Tue, 20 Dec 2016 21:19:43 +0000 (21:19 +0000)]
Merge "Adds carrier config to determine if high definition audio is displayed"
am: 26e5096364

Change-Id: I2ce0958075ec3bd2c337993516ad06ffd264d594

7 years agoMerge "Bluetooth: persist state when turning on from BLE"
Andre Eisenbach [Tue, 20 Dec 2016 21:18:35 +0000 (21:18 +0000)]
Merge "Bluetooth: persist state when turning on from BLE"
am: 8e9551bacf

Change-Id: Iad69e2f184df54ffbb2d7169e45345c80547b010

7 years agoMerge "Adds carrier config to determine if high definition audio is displayed"
Hall Liu [Tue, 20 Dec 2016 21:13:31 +0000 (21:13 +0000)]
Merge "Adds carrier config to determine if high definition audio is displayed"

7 years agoMerge "Bluetooth: persist state when turning on from BLE"
Andre Eisenbach [Tue, 20 Dec 2016 21:11:58 +0000 (21:11 +0000)]
Merge "Bluetooth: persist state when turning on from BLE"

7 years agoBluetooth: persist state when turning on from BLE
Marie Janssen [Tue, 20 Dec 2016 19:21:12 +0000 (11:21 -0800)]
Bluetooth: persist state when turning on from BLE

Test: in BLE_ON state, turn to full on, reboot phone
Bug: 33777496
Change-Id: I246d6ff0dcb81d66aa915ef443040d6fc3c98310

7 years agoMake WifiConfiguration#meteredHint a @SystemApi
Amin Shaikh [Tue, 20 Dec 2016 19:00:34 +0000 (11:00 -0800)]
Make WifiConfiguration#meteredHint a @SystemApi

This allows NetworkRecommendationProviders to set this field on
returned WifiConfigurations.

Test: make
Bug: 33760009
Change-Id: I4d34272a1fb8d88bcc56cf4f00d8beadd06ac603
Merged-In: I4d34272a1fb8d88bcc56cf4f00d8beadd06ac603

7 years agoMerge "Add Wi-Fi quality badge icons."
Amin Shaikh [Tue, 20 Dec 2016 20:24:31 +0000 (20:24 +0000)]
Merge "Add Wi-Fi quality badge icons."
am: edb8982c31

Change-Id: I43d4f52e26eb7514b177d10769d6a5e3fc78f386

7 years agoMerge "Add Wi-Fi quality badge icons."
Treehugger Robot [Tue, 20 Dec 2016 20:13:59 +0000 (20:13 +0000)]
Merge "Add Wi-Fi quality badge icons."

7 years agoMerge "Permit 65535 byte ZIP comments and empty Central Directory"
Alex Klyubin [Tue, 20 Dec 2016 18:45:57 +0000 (18:45 +0000)]
Merge "Permit 65535 byte ZIP comments and empty Central Directory"
am: f420b91e26

Change-Id: Ic178cdd9043c171f2f51643212e34b642657abe9

7 years agoAdd Wi-Fi quality badge icons.
Amin Shaikh [Sat, 17 Dec 2016 04:37:48 +0000 (20:37 -0800)]
Add Wi-Fi quality badge icons.

Test: make
Bug: 33705924
Change-Id: I6ae9fab369151e6c2d3769d7ba4a20103368f0a0

7 years agoMerge "Permit 65535 byte ZIP comments and empty Central Directory"
Alex Klyubin [Tue, 20 Dec 2016 18:33:28 +0000 (18:33 +0000)]
Merge "Permit 65535 byte ZIP comments and empty Central Directory"

7 years agoMerge "Implement the request and recommend calls."
Jeremy Joslin [Tue, 20 Dec 2016 06:25:08 +0000 (06:25 +0000)]
Merge "Implement the request and recommend calls."
am: 1e814b3928

Change-Id: I91c905ab2fc7e061462fb96c2c81a783aa93a391

7 years agoMerge "Implement the request and recommend calls."
Treehugger Robot [Tue, 20 Dec 2016 06:16:03 +0000 (06:16 +0000)]
Merge "Implement the request and recommend calls."

7 years agoMerge "Implement the discovery of a network recommendation provider."
Jeremy Joslin [Tue, 20 Dec 2016 03:26:04 +0000 (03:26 +0000)]
Merge "Implement the discovery of a network recommendation provider."
am: 470d256519

Change-Id: I804df594669be3b42704dead7007790666bef0f6

7 years agoMerge "Implement the discovery of a network recommendation provider."
Treehugger Robot [Tue, 20 Dec 2016 03:16:31 +0000 (03:16 +0000)]
Merge "Implement the discovery of a network recommendation provider."

7 years agoImplement the request and recommend calls.
Jeremy Joslin [Fri, 9 Dec 2016 21:11:51 +0000 (13:11 -0800)]
Implement the request and recommend calls.

Implemented requestRecommendation() and requestScores() to call
through to the bound network recommendation provider if available.

BUG: 33593157
BUG: 33668692
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Change-Id: I055251fa94d93d4ea4e5001c4ec6c1dfb626d1b2
Merged-In: I8e2ed73dc6876deb1a8bd47bcaeaca8db68f3a44

7 years agoImplement the discovery of a network recommendation provider.
Jeremy Joslin [Tue, 6 Dec 2016 15:42:38 +0000 (07:42 -0800)]
Implement the discovery of a network recommendation provider.

Updated the NetworkScorerAppManager to examine the list of configured
network recommendation providers and to select the first valid
provider.

As part of this update the old logic of looking for a valid network
scorer has been removed. Scorers/recommendation providers are only
selected from the configured list now. The setActiveScorer() method
has been deprecated as a result.

The NetworkScoreService has been updated to monitor the list of
potential recommendation providers and to reevaluate the binding
whenever they change. It also monitors the new setting for
NETWORK_RECOMMENDATIONS_ENABLED to connect or disconnect from the
provider as needed.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG: 33158362
Change-Id: I450981261aa5355c1c91ec2e3a0a3b58cc65316b
Merged-In: I42aeb5223da794f71f7e58cb1bdf18817200cbf2

7 years agoMerge "Remove ~1/3 of the installd calls at boot."
Jeff Sharkey [Tue, 20 Dec 2016 01:14:35 +0000 (01:14 +0000)]
Merge "Remove ~1/3 of the installd calls at boot."
am: 5bc305b97c

Change-Id: Ia6af8d920971118f108320d08b15cbe3da59b28a

7 years agoMerge "Remove ~1/3 of the installd calls at boot."
Treehugger Robot [Tue, 20 Dec 2016 01:06:22 +0000 (01:06 +0000)]
Merge "Remove ~1/3 of the installd calls at boot."

7 years agoRemove ~1/3 of the installd calls at boot.
Jeff Sharkey [Mon, 19 Dec 2016 23:39:02 +0000 (16:39 -0700)]
Remove ~1/3 of the installd calls at boot.

When preparing CE storage for an app, we always perform a second call
to extract any newly created CE directory inode.  Let's simplify this
and just return the inode number from the createAppData() call.

Test: builds, boots, reads CE inodes after wipe
Bug: 33463450
Change-Id: I9b73da576800b56d7d0961dd4deb0b6a546acbe7

7 years agoMerge "Fix ScanResult array parceling."
Jeremy Joslin [Mon, 19 Dec 2016 22:07:20 +0000 (22:07 +0000)]
Merge "Fix ScanResult array parceling."
am: 5fdc86fb27

Change-Id: I25e509ea057370c4380764c47808c0dbde85a6fc

7 years agoMerge "Fix ScanResult array parceling."
Treehugger Robot [Mon, 19 Dec 2016 21:57:05 +0000 (21:57 +0000)]
Merge "Fix ScanResult array parceling."

7 years agoMerge "Remove "final" from ResultCallback."
Joe LaPenna [Mon, 19 Dec 2016 21:01:26 +0000 (21:01 +0000)]
Merge "Remove "final" from ResultCallback."
am: b60d7b334c

Change-Id: I3b6679368418af3992007f58d47c544cf7a1b1ed

7 years agoMerge "Remove "final" from ResultCallback."
Treehugger Robot [Mon, 19 Dec 2016 20:54:13 +0000 (20:54 +0000)]
Merge "Remove "final" from ResultCallback."

7 years agoPermit 65535 byte ZIP comments and empty Central Directory
Alex Klyubin [Mon, 19 Dec 2016 18:52:52 +0000 (10:52 -0800)]
Permit 65535 byte ZIP comments and empty Central Directory

This fixes two cosmetic issues in APK Signature Scheme v2 signature
verifier in Android Package Manager:
* Accept APKs with ZIP End of Central Directory comment of length
  65535. Previously, only comments of length 65534 were accepted due
  to a off by one bug.
* Accept APKs with empty ZIP Central Directory.

These issues should not affect actual APKs because they cannot have an
empty ZIP Central Directory (they must contain at least the
AndroidManifest.xml entry) and shouldn't contain any comments in ZIP
End of Central Directory.

Test: cts-tradefed run singleCommand cts --skip-device-info --skip-preconditions --skip-connectivity-check --abi arm64-v8a --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest
Change-Id: I461c43472fa97c04e7579d129a6053e44233adb7

7 years agoRemove "final" from ResultCallback.
Joe LaPenna [Thu, 15 Dec 2016 22:46:52 +0000 (14:46 -0800)]
Remove "final" from ResultCallback.

Removing final makes providers easier to test using mocks.

Test: Build system image.

Change-Id: Iaaa30f73226e1d0cb0e9e68faa349e86986be72d
Merged-In: Iaaa30f73226e1d0cb0e9e68faa349e86986be72d

7 years agoFix ScanResult array parceling.
Jeremy Joslin [Sat, 17 Dec 2016 01:48:13 +0000 (17:48 -0800)]
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

7 years agoReport non-primary dex files loads to PM
Calin Juravle [Wed, 23 Nov 2016 19:50:58 +0000 (19:50 +0000)]
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 8d2a51f1b8fc35a1d4fda6b6cdfdf2754f1e1211)

Change-Id: I61e65aee471798fbc7a18938647051274c3a058a

7 years agoMerge "Clean up local hprofs"
Michael Rosenfeld [Sat, 17 Dec 2016 02:10:53 +0000 (02:10 +0000)]
Merge "Clean up local hprofs"
am: 9ab94e15c7

Change-Id: Ie99cc29ef321ec7276535b28ae4b7eaf828410da

7 years agoMerge "Clean up local hprofs"
Treehugger Robot [Sat, 17 Dec 2016 01:54:34 +0000 (01:54 +0000)]
Merge "Clean up local hprofs"

7 years agoClean up local hprofs
Michael Rosenfeld [Fri, 16 Dec 2016 20:42:01 +0000 (12:42 -0800)]
Clean up local hprofs

* After use
* Upon failure

Test: manual tool use
Change-Id: I2669e190c3792522c121158ea2aec84fe577c9e3

7 years agoMerge "Bluetooth: fix issues re-enabling after crash"
Marie Janssen [Fri, 16 Dec 2016 23:07:42 +0000 (23:07 +0000)]
Merge "Bluetooth: fix issues re-enabling after crash"
am: e2c22e38d5

Change-Id: I6722c1b8d839918e2ce7918f5f7b8583a14c1ded

7 years agoMerge "Bluetooth: fix issues re-enabling after crash"
Marie Janssen [Fri, 16 Dec 2016 22:56:58 +0000 (22:56 +0000)]
Merge "Bluetooth: fix issues re-enabling after crash"

7 years agoMerge "Increment vers of PrintRecommendationService"
Philip P. Moltmann [Fri, 16 Dec 2016 22:51:11 +0000 (22:51 +0000)]
Merge "Increment vers of PrintRecommendationService"
am: 08bff42ef4

Change-Id: Ie98d6f58dbb4d29e27200aa1b9829372930a0fa3

7 years agoBluetooth: fix issues re-enabling after crash
Marie Janssen [Thu, 15 Dec 2016 21:51:30 +0000 (13:51 -0800)]
Bluetooth: fix issues re-enabling after crash

When Bluetooth crashes, sometimes an LE app restarts it before
ActivityManager gets a chance.  In this case, the Bluetooth manager
would assume the state should be LE only and did not continue to fully
enabled.

Luckily in this case the persisted system state is also ON.  Use the
persisted state as information about whether we should be fully enabled.

Test: basic sanity check, forced crash of BT
Bug: 33632976
Change-Id: I546d7abccb82a26fcca2eb70d6d7c76e9510404e

7 years agoMerge "Increment vers of PrintRecommendationService"
Philip P. Moltmann [Fri, 16 Dec 2016 22:36:10 +0000 (22:36 +0000)]
Merge "Increment vers of PrintRecommendationService"

7 years agoMerge changes Ic85892b4,I627e47c6
Vitalii Tomkiv [Fri, 16 Dec 2016 22:35:54 +0000 (22:35 +0000)]
Merge changes Ic85892b4,I627e47c6
am: d995c94426

Change-Id: If036b0f5b8497667a9c2a916ec74d482def2aed5

7 years agoMake sure Zygote is running at process priority 0 after VM has started.
Vitalii Tomkiv [Fri, 16 Dec 2016 22:35:49 +0000 (22:35 +0000)]
Make sure Zygote is running at process priority 0 after VM has started.
am: 1e52ce48a6

Change-Id: Ia1f511d294a9c718534a4a0b8ad747ef58a98b52

7 years agoRevert "Add boost to increase the load on newly-forked zygote processes."
Todd Kjos [Fri, 16 Dec 2016 22:35:08 +0000 (22:35 +0000)]
Revert "Add boost to increase the load on newly-forked zygote processes."
am: 8175f0955a

Change-Id: I6f61c45f690647c860e0ceb140857e53bc253f00

7 years agoMerge changes Ic85892b4,I627e47c6
Treehugger Robot [Fri, 16 Dec 2016 22:20:24 +0000 (22:20 +0000)]
Merge changes Ic85892b4,I627e47c6

* changes:
  Make sure Zygote is running at process priority 0 after VM has started.
  Revert "Add boost to increase the load on newly-forked zygote processes."

7 years agoMerge "Add the webview zygote socket to the zygote whitelist."
Torne (Richard Coles) [Fri, 16 Dec 2016 21:38:17 +0000 (21:38 +0000)]
Merge "Add the webview zygote socket to the zygote whitelist."
am: f8882ae834

Change-Id: I02d08d8f91567b8bd6709137f98f87550c13f145

7 years agoMerge "Add the webview zygote socket to the zygote whitelist."
Treehugger Robot [Fri, 16 Dec 2016 21:25:34 +0000 (21:25 +0000)]
Merge "Add the webview zygote socket to the zygote whitelist."

7 years agoIncrement vers of PrintRecommendationService
Philip P. Moltmann [Fri, 16 Dec 2016 20:51:49 +0000 (12:51 -0800)]
Increment vers of PrintRecommendationService

as the Samsung PlugIn was updated.

Test: Let the service generate some recommendations
Change-Id: Ief7ea4f1dddfee92aa9fa83ff53b296ced0e3b55

7 years agoMerge "Set com.android.networkrecommendation as the default network recommendation...
Joe LaPenna [Fri, 16 Dec 2016 20:35:53 +0000 (20:35 +0000)]
Merge "Set com.android.networkrecommendation as the default network recommendation service."
am: 0b4df21aac

Change-Id: Ia955fd0d980a5ddcdb5ae6880c7a380251819f44

7 years agoMerge "Set com.android.networkrecommendation as the default network recommendation...
Treehugger Robot [Fri, 16 Dec 2016 20:23:47 +0000 (20:23 +0000)]
Merge "Set com.android.networkrecommendation as the default network recommendation service."

7 years agoMerge changes Ia4bec085,I59095f2a
Andreas Gampe [Fri, 16 Dec 2016 19:38:43 +0000 (19:38 +0000)]
Merge changes Ia4bec085,I59095f2a
am: 733d007279

Change-Id: Id0f0746af66b4f2e0352e2a0dde9d3f27e23f84c

7 years agoEnable logwrapper functionality on user builds
Tamas Berghammer [Fri, 16 Dec 2016 19:38:38 +0000 (19:38 +0000)]
Enable logwrapper functionality on user builds
am: 0ca16fa584

Change-Id: Ic18991f9a59f05356fcbcc65acc79be43fc68542

7 years agoZygote: Add invoke-with to zygote protocol
Tamas Berghammer [Fri, 16 Dec 2016 19:37:57 +0000 (19:37 +0000)]
Zygote: Add invoke-with to zygote protocol
am: b8f7c351b9

Change-Id: I79db6f759b02ef612364fc857102615d51900cd9

7 years agoMerge changes Ia4bec085,I59095f2a
Andreas Gampe [Fri, 16 Dec 2016 19:24:12 +0000 (19:24 +0000)]
Merge changes Ia4bec085,I59095f2a

* changes:
  Enable logwrapper functionality on user builds
  Zygote: Add invoke-with to zygote protocol

7 years agoAdd the webview zygote socket to the zygote whitelist.
Torne (Richard Coles) [Fri, 23 Sep 2016 15:41:42 +0000 (16:41 +0100)]
Add the webview zygote socket to the zygote whitelist.

Allow the webview zygote socket to be open at time of fork, so that
webview renderers can be forked successfully.

(cherry picked from commit a7fcb2bc2a65da3743914727adb0df89a4eb0b66)

Test: WebView functions correctly with multiprocess dev setting enabled
Bug: 21643067
Change-Id: I312846433a43a8e4548cb2f98b96b56acf9f5333

7 years agoMerge "NativeLibraryHelper: Minor fixes"
Andreas Gampe [Fri, 16 Dec 2016 18:44:54 +0000 (18:44 +0000)]
Merge "NativeLibraryHelper: Minor fixes"
am: c1536f0d10

Change-Id: I81e69315c5f74341ddf3472263462f8fdf935797

7 years agoSet com.android.networkrecommendation as the default network recommendation service.
Joe LaPenna [Thu, 8 Dec 2016 00:32:51 +0000 (16:32 -0800)]
Set com.android.networkrecommendation as the default network recommendation service.

BUG: 33224286
Test: Build image and verified the config value was set.

Change-Id: Id657c28753eaa6050bb2d82e45f70f694ce7e7dd
Merged-In: Id657c28753eaa6050bb2d82e45f70f694ce7e7dd

7 years agoMerge "NativeLibraryHelper: Minor fixes"
Treehugger Robot [Fri, 16 Dec 2016 18:31:25 +0000 (18:31 +0000)]
Merge "NativeLibraryHelper: Minor fixes"

7 years agoMake sure Zygote is running at process priority 0 after VM has started.
Vitalii Tomkiv [Thu, 19 May 2016 00:43:02 +0000 (17:43 -0700)]
Make sure Zygote is running at process priority 0 after VM has started.

Boosting up zygote priority before VM startup, saves ~450ms of boot time
for N9, 180ms for Nexus 5X.

(cherry picked from commit 5d551a5ac3d13706f62a86842ff6851e1d25213b)

Bug: 28866384
Test: m
Test: Device boots
Change-Id: Ic85892b408e15bbc1de7ce706f113f23974fe478

7 years agoRevert "Add boost to increase the load on newly-forked zygote processes."
Todd Kjos [Wed, 7 Sep 2016 01:25:46 +0000 (18:25 -0700)]
Revert "Add boost to increase the load on newly-forked zygote processes."

This reverts commit 6d43a861d01ef48f37c69f96346a13d23164a585.

(cherry picked from commit 0f2ded62ae3d88ddb732df182c3bfee3e2729018)

Test: m
Test: Device boots
Change-Id: I627e47c6ead4ce2d2bffa923a32a56d06c022df7

7 years agoEnable logwrapper functionality on user builds
Tamas Berghammer [Fri, 11 Nov 2016 16:08:26 +0000 (16:08 +0000)]
Enable logwrapper functionality on user builds

When an app is debuggable, check whether a script called "wrap.sh" exists
in the app's native library directory. If so, start the app using the
invoke-with functionality over the script. Weaken the invoke-with check
on the zygote side to allow the functionality for debuggable apps.

The goal of the functionality is to make malloc debug, strace and other
similar tools available for NDK based application developers.

Bug: 33668201
Test: manual - debug malloc can be enabled using the new feature
Change-Id: Ia4bec0854cf4dc08446f1671494200f54ef366ee

7 years agoZygote: Add invoke-with to zygote protocol
Tamas Berghammer [Fri, 11 Nov 2016 16:08:26 +0000 (16:08 +0000)]
Zygote: Add invoke-with to zygote protocol

Add "--invoke-with" to the zygote connection protocol. It was
already understood as an argument by the zygote.

Bug: 33668201
Test: m
Change-Id: I59095f2ac542aadff78a7ff1dded86cf5f192707

7 years agoNativeLibraryHelper: Minor fixes
Andreas Gampe [Fri, 16 Dec 2016 00:12:39 +0000 (16:12 -0800)]
NativeLibraryHelper: Minor fixes

Skip over directories when iterating library files. Ensure correct
temp file naming.

Bug: 33668201
Test: m
Test: Device boots
Test: Manual: Install debuggable and non-debuggable apps
Change-Id: I2f0547e965d9a0c478e333a13b2db02f4eedac2c

7 years agoMerge "Make TelephonyManager APIs public:"
Polina Bondarenko [Fri, 16 Dec 2016 10:37:21 +0000 (10:37 +0000)]
Merge "Make TelephonyManager APIs public:"
am: 441bfc6718

Change-Id: I968c8232c746027123beac6481161019e1dc64a5

7 years agoMerge "Make TelephonyManager APIs public:"
Treehugger Robot [Fri, 16 Dec 2016 10:29:03 +0000 (10:29 +0000)]
Merge "Make TelephonyManager APIs public:"