OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Teach ApfGenerator about the new opcodes for accessing data memory"
Bernie Innocenti [Mon, 16 Apr 2018 05:24:29 +0000 (05:24 +0000)]
Merge "Teach ApfGenerator about the new opcodes for accessing data memory"

6 years agoMerge "Add permission whitelist for EmergencyInfo app."
Tyler Gunn [Mon, 16 Apr 2018 04:18:00 +0000 (04:18 +0000)]
Merge "Add permission whitelist for EmergencyInfo app."

6 years agoMerge "Add filegroup for supporting apache-http stubs generation."
Treehugger Robot [Fri, 13 Apr 2018 17:28:22 +0000 (17:28 +0000)]
Merge "Add filegroup for supporting apache-http stubs generation."

6 years agoMerge "Make android.test.mock.stubs in Android.bp"
Treehugger Robot [Fri, 13 Apr 2018 10:55:05 +0000 (10:55 +0000)]
Merge "Make android.test.mock.stubs in Android.bp"

6 years agoTeach ApfGenerator about the new opcodes for accessing data memory
Bernie Innocenti [Thu, 22 Mar 2018 14:07:47 +0000 (23:07 +0900)]
Teach ApfGenerator about the new opcodes for accessing data memory

Bug: 73804303
Bug: 36221302
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
Change-Id: Iaf92ca0bbebaaf66d0f2f7adc1a9014607f3ecf6

6 years agoMake android.test.mock.stubs in Android.bp
Jiyong Park [Tue, 13 Mar 2018 07:06:03 +0000 (16:06 +0900)]
Make android.test.mock.stubs in Android.bp

Stubs libraries android.test.mock.stubs and
android.test.mock.stubs-system are now built in Android.bp.
(Note that API check and update are still done in Android.mk)

As a good side effect, this allows android.test.runner[-minus-junit]
libraries (that are defined in Android.bp) to be built with the
android.test.mock.stubs instead of the runtime library
android.test.mock. This in turn allows us to prevent java:sdk ->
java:platform dependency also in Soong, because the runner libraries
were the only violators.

Bug: 73829976
Test: m -j android.test.mock.stubs android.test.mock.stubs-system
Test: m -j checkapi
Test: m -j update-api
Merged-In: I830a8eb13aa43b9aa4c8394f3c2fd91ee18b1f85
Change-Id: I830a8eb13aa43b9aa4c8394f3c2fd91ee18b1f85
(cherry picked from commit e649b8066c3385ba0b667a79d378402b15ef3127)

6 years agoMerge "A test api to override carrier information"
Chen Xu [Thu, 12 Apr 2018 22:58:37 +0000 (22:58 +0000)]
Merge "A test api to override carrier information"

6 years agoA test api to override carrier information
fionaxu [Mon, 19 Mar 2018 07:41:14 +0000 (00:41 -0700)]
A test api to override carrier information

This API should only be used for testing purpose e.g., CTS/GTS/SL4A
By overriding carrier information, we could force a particular carrier id,
carrier's config, but also any country or carrier overlays to be loaded
when using a test SIM with a call box.

Bug: 72332597
Test: atest CtsTelephonyTestCases:CarrierIdentificationTest

Change-Id: Icd5804375ef9334c9f6c382cc6a774b9c9c15213
(cherry picked from commit 5b509b81a0d5b14148745368b153dc6b8d4482ac)
Merged-in: 5b509b81a0d5b14148745368b153dc6b8d4482ac

6 years agoMerge "Make setServiceId a TestApi"
Hall Liu [Thu, 12 Apr 2018 20:41:44 +0000 (20:41 +0000)]
Merge "Make setServiceId a TestApi"

6 years agoMerge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
Stanley Tng [Thu, 12 Apr 2018 14:36:12 +0000 (14:36 +0000)]
Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"

6 years agoMerge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"
Chen Xu [Thu, 12 Apr 2018 04:30:18 +0000 (04:30 +0000)]
Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"

6 years agoMake setServiceId a TestApi
Hall Liu [Tue, 10 Apr 2018 21:04:12 +0000 (14:04 -0700)]
Make setServiceId a TestApi

Bug: 77152869
Test: CTS
Change-Id: I26f60b48865953971de02c50db48e0ff66f4e2a0
Merged-In: I26f60b48865953971de02c50db48e0ff66f4e2a0

6 years agoChange getGroupIdLevel1() to use subId from TelephonyManager Instance
fionaxu [Wed, 11 Apr 2018 19:47:46 +0000 (12:47 -0700)]
Change getGroupIdLevel1() to use subId from TelephonyManager Instance

Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec
(cherry picked from commit 272e8cf87e3aa780d7b83c021b859fdfc396f9d8)
Merged-in: 272e8cf87e3aa780d7b83c021b859fdfc396f9d8

6 years agoAdd filegroup for supporting apache-http stubs generation.
Nan Zhang [Tue, 10 Apr 2018 00:41:51 +0000 (17:41 -0700)]
Add filegroup for supporting apache-http stubs generation.

Bug: b/70351683
Test: m clean && m check-apache-http-legacy-api,
and compare the old and new stubs.jar using md5sum.

Change-Id: I0035837aef48a76e40a2c723c2adce3ff129ad28
Merged-In: I0035837aef48a76e40a2c723c2adce3ff129ad28

6 years agoMerge "Don't unnecessarily reevaluate tethering provisioning"
Treehugger Robot [Wed, 11 Apr 2018 21:47:53 +0000 (21:47 +0000)]
Merge "Don't unnecessarily reevaluate tethering provisioning"

6 years agoDon't unnecessarily reevaluate tethering provisioning
Erik Kline [Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)]
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Merged-In: If254326e892b78ef9daf620f829c1def136d695c
Merged-In: I288093a1d76566e72d4889d92c7aedafc318c8b6
Merged-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8

Change-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8
(cherry picked from commit 1b450e3eb9106a9cc73dfc144d275141dd5017ef)

6 years agoAdd permission whitelist for EmergencyInfo app.
Tyler Gunn [Wed, 11 Apr 2018 18:05:32 +0000 (11:05 -0700)]
Add permission whitelist for EmergencyInfo app.

This is the "Emergency Info" screen available from the lock screen.
It requires the CALL_PRIVILEGED permission in order for it to be able to
place emergency calls.  This can occur if a user adds an emergency number
to their emergency contacts.

Test: make checkbuild
Bug: 76086838
Change-Id: I76e8318c5c05bbbbdf02d2c6951f742c3bd67ea6

6 years agoMerge "Add a droiddoc generator for hwbinder.stubs"
Colin Cross [Tue, 10 Apr 2018 17:15:28 +0000 (17:15 +0000)]
Merge "Add a droiddoc generator for hwbinder.stubs"

6 years agoMerge changes from topic "hidl-system-api"
Colin Cross [Tue, 10 Apr 2018 16:06:28 +0000 (16:06 +0000)]
Merge changes from topic "hidl-system-api"

* changes:
  HIDL: add APIs used by subclasses to SystemApi
  Update HIDL-related documentation.
  Add remaining missing HIDL SystemApi methods.
  HIDL: reportSyspropMethod -> enableInstrumentation
  Allow HIDL to be used in priv-apps.

6 years agoMerge "Revert "Don't unnecessarily reevaluate tethering provisioning""
Treehugger Robot [Tue, 10 Apr 2018 08:35:31 +0000 (08:35 +0000)]
Merge "Revert "Don't unnecessarily reevaluate tethering provisioning""

6 years agoRevert "Don't unnecessarily reevaluate tethering provisioning"
Erik Kline [Tue, 10 Apr 2018 07:01:16 +0000 (07:01 +0000)]
Revert "Don't unnecessarily reevaluate tethering provisioning"

This reverts commit 8067d78c32f545db6d35c660279ab3f2326ba41d.

Change-Id: I9098f98cb134c35692c1384339f9407b94ce6f28

6 years agoMerge "Don't unnecessarily reevaluate tethering provisioning"
Treehugger Robot [Tue, 10 Apr 2018 03:22:10 +0000 (03:22 +0000)]
Merge "Don't unnecessarily reevaluate tethering provisioning"

6 years agoMerge "Trigger NetworkCallback events when private DNS usage has changed."
Erik Kline [Tue, 10 Apr 2018 03:16:07 +0000 (03:16 +0000)]
Merge "Trigger NetworkCallback events when private DNS usage has changed."

6 years agoTrigger NetworkCallback events when private DNS usage has changed.
dalyk [Mon, 5 Mar 2018 17:42:22 +0000 (12:42 -0500)]
Trigger NetworkCallback events when private DNS usage has changed.

Relies on events sent from netd in aosp/578162.

Test: Added tests to ConnectivityServiceTest. Added a new test
class DnsManagerTest. Built a simple app that appears to
receive onLinkProperties events correctly upon manual changes
to the private DNS settings on a Pixel.
Bug: 71828272
Change-Id: I68665aaf74b7d59182cc6f9586b80b55b0dfe427

6 years agoMerge "Support bluetooth not using MultinetworkPolicyTracker"
Treehugger Robot [Mon, 9 Apr 2018 07:55:50 +0000 (07:55 +0000)]
Merge "Support bluetooth not using MultinetworkPolicyTracker"

6 years agoSupport bluetooth not using MultinetworkPolicyTracker
Erik Kline [Mon, 12 Mar 2018 14:18:58 +0000 (23:18 +0900)]
Support bluetooth not using MultinetworkPolicyTracker

This required advancing the IpManager to IpClient refactoring
(Bluetooth used IpManager and friends). Most importantly, the
Bluetooth code used WaitForProvisioningCallback, so this is
moved into IpClient proper now. Also: some more renaming
cleanup.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 62476366
Bug: 72663849

Change-Id: I9eee2a9d5c31cdd48a054a7edc3403584efb1864

6 years agoDon't unnecessarily reevaluate tethering provisioning
Erik Kline [Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)]
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Change-Id: Ib8b2620ce44c55e5eb0afd3f00f3f5aa4fc8a593

6 years agoMerge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"
Treehugger Robot [Fri, 6 Apr 2018 21:54:06 +0000 (21:54 +0000)]
Merge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"

6 years agoMerge "Clarify doc comment for android.os.Build.VERSION.RELEASE"
Treehugger Robot [Fri, 6 Apr 2018 17:17:25 +0000 (17:17 +0000)]
Merge "Clarify doc comment for android.os.Build.VERSION.RELEASE"

6 years agoMerge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"
Jayachandran Chinnakkannu [Fri, 6 Apr 2018 16:31:15 +0000 (16:31 +0000)]
Merge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"

6 years agoClarify doc comment for android.os.Build.VERSION.RELEASE
Daniel Colascione [Fri, 6 Apr 2018 15:12:05 +0000 (08:12 -0700)]
Clarify doc comment for android.os.Build.VERSION.RELEASE

The RELEASE field has no guaranteed internal structure and developers
should not attempt to parse it.

Test: no code changes
Change-Id: I0ea3ab5ba5dd4cc733feb62725cf7c62c00c857b

6 years agoCorrect the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED
Jayachandran C [Fri, 6 Apr 2018 08:10:38 +0000 (01:10 -0700)]
Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED

Test: Build
Bug: 77657541
Change-Id: Ia6b576c222776cbc7e54e15cb54e39775e76ea56

6 years agoMerge "Remove an API that doesn't exist."
Treehugger Robot [Fri, 6 Apr 2018 00:31:20 +0000 (00:31 +0000)]
Merge "Remove an API that doesn't exist."

6 years agoMerge "Move the logic of (re)evaluation of Private DNS"
Treehugger Robot [Thu, 5 Apr 2018 23:52:55 +0000 (23:52 +0000)]
Merge "Move the logic of (re)evaluation of Private DNS"

6 years agoMove the logic of (re)evaluation of Private DNS
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Move the logic of (re)evaluation of Private DNS

Moves this out of ConnectivityService and into each NetworkMonitor
(where it's more self-contained).

Test: as follows
    - builds, flashes, boots
    - runtest frameworks-net passes
    - manual testing with working and non-working hostnames behaves
      somewhat (but not entirely) as expected, and not always quickly
Bug: 64133961
Bug: 72345192
Bug: 73872000
Bug: 77140445
Change-Id: Ic4322af3cb49149f2d975cb31f54b2ac7927f907

6 years agoRemove an API that doesn't exist.
Dan Albert [Thu, 5 Apr 2018 22:00:00 +0000 (15:00 -0700)]
Remove an API that doesn't exist.

Apparently this was removed in Jelly Bean:
https://stackoverflow.com/q/24312632/632035. Keeping the decl in the
NDK just confuses people: https://stackoverflow.com/q/49646596/632035.

Test: make checkbuild
Bug: None
Change-Id: If549fcd8f4052e633646c4ce8a054a0bbcd8b2bf

6 years agoMerge "Remove duplicate definitions of utility variables"
Treehugger Robot [Wed, 4 Apr 2018 23:04:08 +0000 (23:04 +0000)]
Merge "Remove duplicate definitions of utility variables"

6 years agoMerge "Add Polish keycharactermap"
Treehugger Robot [Wed, 4 Apr 2018 22:10:19 +0000 (22:10 +0000)]
Merge "Add Polish keycharactermap"

6 years agoMerge "Hearing Aid: change get/set active device (3/3)"
Treehugger Robot [Wed, 4 Apr 2018 21:42:17 +0000 (21:42 +0000)]
Merge "Hearing Aid: change get/set active device (3/3)"

6 years agoMerge "Modify isShowing method in Dialog"
Treehugger Robot [Wed, 4 Apr 2018 18:39:38 +0000 (18:39 +0000)]
Merge "Modify isShowing method in Dialog"

6 years agoMerge "Force creation of Socket upon Transform application"
Benedict Wong [Wed, 4 Apr 2018 17:14:46 +0000 (17:14 +0000)]
Merge "Force creation of Socket upon Transform application"

6 years agoMerge "throw runtimeException for applicable TM APIs"
Chen Xu [Wed, 4 Apr 2018 03:17:39 +0000 (03:17 +0000)]
Merge "throw runtimeException for applicable TM APIs"

6 years agoModify isShowing method in Dialog
tiansiming [田思明] [Fri, 9 Mar 2018 09:19:12 +0000 (17:19 +0800)]
Modify isShowing method in Dialog

The method isShowing in Dialog.java is to judge whether
the dialog is currently showing, but it will return true
when the dialog is hidden.

Bug: 74416088
Test: modify testShow in DialogTest.java (see 639879)
run cts -m CtsAppTestCases -t android.app.cts.DialogTest#testShow

Change-Id: Ibf15e080678f414f8a66ff0841be17a2f9d2d652
Signed-off-by: tiansiming [田思明] <tiansiming@xiaomi.com>
6 years agoMerge "Add dedicated flag to control app image generation"
Mathieu Chartier [Wed, 4 Apr 2018 02:14:51 +0000 (02:14 +0000)]
Merge "Add dedicated flag to control app image generation"

6 years agothrow runtimeException for applicable TM APIs
fionaxu [Fri, 23 Mar 2018 18:52:44 +0000 (11:52 -0700)]
throw runtimeException for applicable TM APIs

1. This CL revert some API change from ag/3710629.
2. throw runtime exception when running in a non-1000 UID.
3. throw for methods that persist some sort of state and readers could continue to
return placeholder values.
4. for rest of TelephonyManager API cleanup b/74401420.

Bug: 74016743
Test: Build
Change-Id: I2846efc11eebce4a923762f56f09daaf37c44763
(cherry picked from commit f20f0d916f2326bee618600119107da1a8ae15a8)
Merged-in: I2846efc11eebce4a923762f56f09daaf37c44763

6 years agoForce creation of Socket upon Transform application
Benedict Wong [Tue, 3 Apr 2018 01:12:34 +0000 (18:12 -0700)]
Force creation of Socket upon Transform application

This change forces Socket and DatagramSocket to populate the
SocketImpl, ensuring that the socket file descriptor can be
retrieved when applying Transport mode Transforms

This is done by calling getSoLinger(), triggering a getImpl(), which
triggers setImpl() if needed.

Bug: 77491294
Test: Added tests in IpSecManagerTest, ran on walleye
Change-Id: I40da08b031357710eb794e0f866aec5660c79594

6 years agoAdd dedicated flag to control app image generation
Mathieu Chartier [Tue, 13 Mar 2018 00:11:07 +0000 (17:11 -0700)]
Add dedicated flag to control app image generation

Also disable the flag for split APKs.

Bug: 72696798
Test: manual

(cherry picked from commit a9c343386d5505d7111aee3c1ffec409c9730f21)

Merged-In: I25007500e221744a218b165dde41ca9db19b1832
Change-Id: I1dc3137307834d948b52af18205ca47dc8dc7e67

6 years agoMerge "Support bypassing TLS in the framework"
Treehugger Robot [Tue, 3 Apr 2018 19:56:19 +0000 (19:56 +0000)]
Merge "Support bypassing TLS in the framework"

6 years agoBluetooth: Add hidden API to get current user of HID Device (1/3)
Hansong Zhang [Tue, 3 Apr 2018 19:12:53 +0000 (12:12 -0700)]
Bluetooth: Add hidden API to get current user of HID Device (1/3)

Bug: 69136526
Test: test with apps using HID Device profile
Change-Id: If0e49840257c877c975c2da176a08e613668cbc3

6 years agoAdd min_ce/max_ce parameters to requestLeConnectionUpdate()
Stanley Tng [Mon, 19 Mar 2018 19:28:56 +0000 (12:28 -0700)]
Add min_ce/max_ce parameters to requestLeConnectionUpdate()

Add new test parameters, min_ce and max_ce, to the SL4A tests for LE
Connection-oriented Channel (CoC) feature. This CL passes these 2
parameters to native stack.

Test: Run cmd: act.py -c $MY_SL4A_CONFIG -tc BleCoc2ConnTest
Bug: 77528723

Change-Id: I9d3d74f671772014209f8114c2d1b8ba606c54d5

6 years agoMerge "Frameworks: In the kill handler, ensure the logging handler was run"
Treehugger Robot [Tue, 3 Apr 2018 18:13:45 +0000 (18:13 +0000)]
Merge "Frameworks: In the kill handler, ensure the logging handler was run"

6 years agoMerge "Add an Executor for the onConnectedListener"
Ruchi Kandoi [Tue, 3 Apr 2018 16:48:18 +0000 (16:48 +0000)]
Merge "Add an Executor for the onConnectedListener"

6 years agoMerge "Address IMSI privacy issues."
Pankaj Kanwar [Tue, 3 Apr 2018 16:05:51 +0000 (16:05 +0000)]
Merge "Address IMSI privacy issues."

6 years agoFrameworks: In the kill handler, ensure the logging handler was run
Andreas Gampe [Mon, 2 Apr 2018 21:00:47 +0000 (14:00 -0700)]
Frameworks: In the kill handler, ensure the logging handler was run

In the KillApplicationHandler for uncaught exceptions ensure that the
LoggingHandler has been run. This ensures logging when code directly
calls getUncaughtExceptionHandler().uncaughtException().

Bug: 29624607
Bug: 73380984
Test: m
Test: manual
Change-Id: I9c9216714b4cf029d7ed21e29313c0e802345337

6 years agoSupport bypassing TLS in the framework
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Support bypassing TLS in the framework

This change comprises the following parts:

    [1] android.net.dns.ResolvUtil, containing methods that encapsulate the
        use of the high bit in netids used in DNS resolution contexts.

    [2] Updates to captive portal apps to call the ResolvUtil method that
        enables DNS-over-TLS bypass for the captive portal app process.

Test: as follows
    - builds
    - flashes
    - boots
    - runtest frameworks-net passes
Bug: 64133961
Bug: 72345192

Change-Id: I2072c1f68d6978fa0d7e9d8693135a2c51bb0f87

6 years agoAddress IMSI privacy issues.
pkanwar [Mon, 20 Nov 2017 02:08:40 +0000 (18:08 -0800)]
Address IMSI privacy issues.

Added method resetCarrierKeysForImsiEncryption
to allow for keys to be reset.

Bug: 35606429
Test: manual
Change-Id: Id2e92917b50fa2163b2bab112df6e80b5e9c5795
Merged-In: Id2e92917b50fa2163b2bab112df6e80b5e9c5795

6 years agoMerge "Change signature of requestBluetoothAudio"
Hall Liu [Tue, 3 Apr 2018 00:14:58 +0000 (00:14 +0000)]
Merge "Change signature of requestBluetoothAudio"

6 years agoAdd an Executor for the onConnectedListener
Ruchi Kandoi [Mon, 2 Apr 2018 20:31:47 +0000 (13:31 -0700)]
Add an Executor for the onConnectedListener

Test: Run CtsOmapiTestCases
Bug: 76448978
Change-Id: Ieb30b8935961db25bd058e1c41c127fa5a4437ff

6 years agoChange signature of requestBluetoothAudio
Hall Liu [Mon, 2 Apr 2018 20:52:57 +0000 (13:52 -0700)]
Change signature of requestBluetoothAudio

requestBluetoothAudio now takes a BluetoothDevice instead of a string.

Bug: 74408978
Test: unable to CTS -- can't emulate bluetooth devices
Change-Id: Id21e32b911da234f69a248e9937f9df0cf12a9a9

6 years agoMerge "Refactor isTetheringSupported() calls"
Treehugger Robot [Mon, 2 Apr 2018 18:47:18 +0000 (18:47 +0000)]
Merge "Refactor isTetheringSupported() calls"

6 years agoMerge "Adding debug message inside NetworkServiceCallback."
Xiangyu/Malcolm Chen [Mon, 2 Apr 2018 18:43:01 +0000 (18:43 +0000)]
Merge "Adding debug message inside NetworkServiceCallback."

6 years agoMerge "APF: drop multicast ICMPv6 while in doze mode"
Treehugger Robot [Mon, 2 Apr 2018 13:57:43 +0000 (13:57 +0000)]
Merge "APF: drop multicast ICMPv6 while in doze mode"

6 years agoAPF: drop multicast ICMPv6 while in doze mode
Bernie Innocenti [Wed, 28 Mar 2018 11:11:49 +0000 (20:11 +0900)]
APF: drop multicast ICMPv6 while in doze mode

Some WiFi hotspots send excessive multicast IPv6 ping requests which
cause considerable power drain. Thus, drop all multicast ICMPv6 ping
requests while the device is in doze mode.

Bug: 66930077
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
Test: manual - compared generated APF bytecode using apf_disassembler
Test: manual - force idle mode while sending multicast pings to device
Change-Id: I25dbf99985cf4413b4d0e3920d281fe6d663197a

6 years agoMerge "Make changes to MBMS API following recs"
Hall Liu [Sat, 31 Mar 2018 00:28:06 +0000 (00:28 +0000)]
Merge "Make changes to MBMS API following recs"

6 years agoRefactor isTetheringSupported() calls
Erik Kline [Fri, 9 Mar 2018 05:18:02 +0000 (14:18 +0900)]
Refactor isTetheringSupported() calls

Tethering currently wants access to complex isTetheringSupported
logic that is only available in ConnectivityService. Instead of
trying to access that via ConnectivityManager, pass this capability
in to Tethering directly, in the TetheringDependencies object.

Also:
    - ConnectivityManager is only a source of static constants now,
      so "import static" all the constants that are actually used.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net works
    - manual USB towards WiFi tethering works
Bug: 68951715

Change-Id: Ia64faaadefb4a5d84a50da98bdebd544b6fda101

6 years agoMerge "Update Bluetooth codec related strings"
Treehugger Robot [Sat, 31 Mar 2018 00:16:42 +0000 (00:16 +0000)]
Merge "Update Bluetooth codec related strings"

6 years agoAdding debug message inside NetworkServiceCallback.
Malcolm Chen [Fri, 30 Mar 2018 02:05:12 +0000 (19:05 -0700)]
Adding debug message inside NetworkServiceCallback.

Adding debug message inside NetworkServiceCallback when mCallback
is null.

Bug: 76392715
Test: existing test
Change-Id: Icd27d4082e1e4b60efe65abfff99c4165717fd4a
Merged-In: Icd27d4082e1e4b60efe65abfff99c4165717fd4a

6 years agoMerge "Make OMAPI stricter"
Ruchi Kandoi [Fri, 30 Mar 2018 23:29:08 +0000 (23:29 +0000)]
Merge "Make OMAPI stricter"

6 years agoMake OMAPI stricter
Ruchi Kandoi [Tue, 27 Mar 2018 17:03:34 +0000 (10:03 -0700)]
Make OMAPI stricter

- Channel implements java.nio.Channels.Channel.
- openBasicChannel(aid) and openLogicalChannel(aid) is added back.
- Add finalizers for the classes.
- SecureElementListener -> onConnectedListener

Bug: 76448978
Test: CtsOmapiTestCases
Change-Id: I7f92c4dcb5c08a72d32ac9440872ab853badec1d

6 years agoMake changes to MBMS API following recs
Hall Liu [Wed, 28 Mar 2018 22:54:07 +0000 (15:54 -0700)]
Make changes to MBMS API following recs

* Change all error handling logic to return an error code via the async
callback
* Add an UNKNOWN code for errors for future backwards compatibility, and
prohibit the middleware from sending this code.
* Add IntDef for errors through the async callback
* Amend documentation for download()
* Implement support for arranging downloaded files into a hierarchy
following that of the server.

Change-Id: I4d5c8f6229b216d9aa84397e628e62279033cc74
Fixes: 76449215
Test: CTS

6 years agoMerge "Fix socket leaks in various android.net.Network methods."
Treehugger Robot [Fri, 30 Mar 2018 20:52:42 +0000 (20:52 +0000)]
Merge "Fix socket leaks in various android.net.Network methods."

6 years agoUpdate Bluetooth codec related strings
Pavlin Radoslavov [Fri, 30 Mar 2018 09:55:39 +0000 (02:55 -0700)]
Update Bluetooth codec related strings

The settings related to Bluetooth codec selection
are actually triggers. Updated the corresponding
strings to reflect that.

Bug: 67682722
Test: Manual - examined the result UI
      runtest systemui
      make -j40 RunSettingsRoboTests
      make -j40 RunSettingsLibRoboTests
Change-Id: I872414f7620931a67b028c2997b0740ae3a45986
Merged-In: I872414f7620931a67b028c2997b0740ae3a45986
(cherry picked from commit a80a65a11fc6fd6aa7f3dfb19516c3d15c512dfb)

6 years agoFix socket leaks in various android.net.Network methods.
Paul Jensen [Thu, 29 Mar 2018 11:41:43 +0000 (07:41 -0400)]
Fix socket leaks in various android.net.Network methods.

Bug: 72124526
Test: make CtsNetTestCases
Merged-In: I2a2254ce65c2176ae0be1d6276034b1bb0cad987
Merged-In: I23150482d6c2ab2eaa2b37732af68af69320792b
Change-Id: I3398b67272360f894e01a8cdfbc47b17d77c2330
(cherry picked from commit 89bb993293f0d7a524d1404184a55584b59bb67c)

6 years agoMerge "apf: adjust JNI to accept_packet()'s new signature"
Bernie Innocenti [Fri, 30 Mar 2018 11:51:41 +0000 (11:51 +0000)]
Merge "apf: adjust JNI to accept_packet()'s new signature"

6 years agoapf: adjust JNI to accept_packet()'s new signature
Bernie Innocenti [Fri, 30 Mar 2018 08:12:02 +0000 (17:12 +0900)]
apf: adjust JNI to accept_packet()'s new signature

Test: Fixes the build breakage
Change-Id: Id5c3cec5459ce6f9693457448002e60bbca6c09b

6 years agoMerge "Relax APF version check in ApfGenerator"
Bernie Innocenti [Fri, 30 Mar 2018 07:25:08 +0000 (07:25 +0000)]
Merge "Relax APF version check in ApfGenerator"

6 years agoMerge "Mark networks with OEM_PAID always restricted"
Lorenzo Colitti [Fri, 30 Mar 2018 07:00:54 +0000 (07:00 +0000)]
Merge "Mark networks with OEM_PAID always restricted"

6 years agoMark networks with OEM_PAID always restricted
Pavel Maltsev [Wed, 7 Mar 2018 22:33:22 +0000 (14:33 -0800)]
Mark networks with OEM_PAID always restricted

Bug: 68762530
Exempt-From-Owner-Approval: OWNERS have approved, but gerrit doesn't see it
Test: runtest -x frameworks/base/tests/net/ -c android.net.NetworkCapabilitiesTest
Change-Id: Ieadef7c42634d890281543226203530fb18eb0a3

6 years agoMerge "Limit the number of routes for performance"
Chalard Jean [Fri, 30 Mar 2018 06:40:29 +0000 (06:40 +0000)]
Merge "Limit the number of routes for performance"

6 years agoMerge "Clarify documentation for getActiveNetworkInfo and friends"
Chalard Jean [Fri, 30 Mar 2018 06:37:22 +0000 (06:37 +0000)]
Merge "Clarify documentation for getActiveNetworkInfo and friends"

6 years agoMerge "Disallow Reserved SPI Allocation"
Lorenzo Colitti [Fri, 30 Mar 2018 06:16:17 +0000 (06:16 +0000)]
Merge "Disallow Reserved SPI Allocation"

6 years agoAdd a droiddoc generator for hwbinder.stubs
Colin Cross [Thu, 29 Mar 2018 20:31:04 +0000 (13:31 -0700)]
Add a droiddoc generator for hwbinder.stubs

hwbinder.stubs provides stubs for @SystemAPI hwbinder classes
that doesn't depend on framework, used to break a dependency cycle
between hidl interfaces and android_system_stubs_current while
satisifying the link type checks.

Bug: 77285514
Test: m checkbuild
Change-Id: Id4093e19f607dc5b0c663e1b637012799ab110c3

6 years agoMerge "Require explicitly supplied truncation length"
Lorenzo Colitti [Fri, 30 Mar 2018 04:59:22 +0000 (04:59 +0000)]
Merge "Require explicitly supplied truncation length"

6 years agoMerge "Clarify UDP encapsulation socket API"
Lorenzo Colitti [Fri, 30 Mar 2018 04:58:47 +0000 (04:58 +0000)]
Merge "Clarify UDP encapsulation socket API"

6 years agoRelax APF version check in ApfGenerator
Bernie Innocenti [Fri, 30 Mar 2018 04:08:26 +0000 (13:08 +0900)]
Relax APF version check in ApfGenerator

Instead of requiring an *exact* version, we now require a minimum
version. This is necessary if we wish to upgrade the APF interpreter in
vendor firmware independently of the framework code. Adding new opcodes
without changing the semantics of the old ones is always possible and
usually easy, so we can at least have a backwards-compatibility horizon
wider than a single version.

Change-Id: I4f1ed661afb2ede193188eb8086fbf2a8b45b33d
Test: Change extracted from aosp/647079 and tested there

6 years agoMerge "Add the compilation reason to the dexopt dumps"
Treehugger Robot [Fri, 30 Mar 2018 01:20:26 +0000 (01:20 +0000)]
Merge "Add the compilation reason to the dexopt dumps"

6 years agoMerge "Use InterfaceSet for upstream interfaces."
Remi NGUYEN VAN [Fri, 30 Mar 2018 01:05:38 +0000 (01:05 +0000)]
Merge "Use InterfaceSet for upstream interfaces."

6 years agoHearing Aid: change get/set active device (3/3)
Hansong Zhang [Wed, 28 Mar 2018 23:53:10 +0000 (16:53 -0700)]
Hearing Aid: change get/set active device (3/3)

* setActiveDevice() returns false in error case, e.g. when the device is
not connected
* add getActiveDevices() instead of isActiveDevice(), which returns a list
that must have two elements: left and right, or empty list on error

Test: manual
Bug: 69623109
Change-Id: I48f3388c56434d0c21e09bd8b794e58848cd8794

6 years agoMerge "Dummy WorkChain class"
Treehugger Robot [Fri, 30 Mar 2018 00:17:37 +0000 (00:17 +0000)]
Merge "Dummy WorkChain class"

6 years agoHIDL: add APIs used by subclasses to SystemApi
Steven Moreland [Wed, 7 Feb 2018 18:07:03 +0000 (10:07 -0800)]
HIDL: add APIs used by subclasses to SystemApi

Two methods:
- HwBinder()
- HwBinder registerService
- HwBinder onTransact

are used by Stub classes generated by hidl-gen.

Bug: 72480743
Test: build hidl-gen generated stubs with system_current
    after manually copying stub jar to prebuilts.
Change-Id: I9b409271b683ad4769a0420e1688b14c561d39d1
Merged-In: I9b409271b683ad4769a0420e1688b14c561d39d1
(cherry picked from commit 4c0d6b62a9d60798f54de33d6cea1626cc21cc4a)

6 years agoUpdate HIDL-related documentation.
Steven Moreland [Tue, 30 Jan 2018 18:11:40 +0000 (10:11 -0800)]
Update HIDL-related documentation.

This is a followup CL to previous @SystemApi CLs.

Bug: N/A
Test: N/A
Change-Id: I9c7dcc776dcfb89fd90afa4fc5d74e40ff0a5f94
Merged-In: I9c7dcc776dcfb89fd90afa4fc5d74e40ff0a5f94
(cherry picked from commit 739811a5c53e435b3f0cfd5abf58389416be429c)

6 years agoAdd remaining missing HIDL SystemApi methods.
Steven Moreland [Thu, 25 Jan 2018 18:24:07 +0000 (10:24 -0800)]
Add remaining missing HIDL SystemApi methods.

A couple methods of Java classes which became SystemApis
but were used are still @hide.

Bug: 72480743
Test: hidl_test_java
Change-Id: I0cb82384932ab1758fa7576b2125825c48a4a6c9
Merged-In: I0cb82384932ab1758fa7576b2125825c48a4a6c9
(cherry picked from commit adcb896fd6e476f277d6f1d20e2e50b8e81c4369)

6 years agoHIDL: reportSyspropMethod -> enableInstrumentation
Steven Moreland [Thu, 25 Jan 2018 23:42:02 +0000 (15:42 -0800)]
HIDL: reportSyspropMethod -> enableInstrumentation

Renaming this method with a semantic meaning which
better explains its purpose without caring about
its implementation details.

Bug: 72480743
Test: hidl_test_java
Change-Id: I4b0577b3f61180ecfd66ae146973fa5cc2a3b244
Merged-In: I4b0577b3f61180ecfd66ae146973fa5cc2a3b244
(cherry picked from commit 36be191dfdd220e24f166b96cbdd64cfa30b4eb5)

6 years agoAllow HIDL to be used in priv-apps.
Steven Moreland [Wed, 10 Jan 2018 23:45:36 +0000 (15:45 -0800)]
Allow HIDL to be used in priv-apps.

Marking HIDL as SystemApi to allow vendor apps to talk to their own
native HIDL services. This includes implementing HIDL callback objects.

HIDL (HAL interface design language) is a language that is used to
facilitate vendor<->system communication which provides guarantees
of ABI stability. For system and vendor services alike, this can also
be used for internal communication.

Bug: 67725182
Test: boot device, hidl_test_java
Change-Id: I9d028cc43ce6f81ea619f01e18f1cd772e17cbfa
Merged-In: I9d028cc43ce6f81ea619f01e18f1cd772e17cbfa
(cherry picked from commit e8e63aae6f705cbe316a1d9a7780f9f534bc3948)

6 years agoMerge "Change shader precision because of CTS fail"
John Reck [Thu, 29 Mar 2018 21:04:05 +0000 (21:04 +0000)]
Merge "Change shader precision because of CTS fail"

6 years agoMerge "Fix seccomp filter set up in zygote"
Victor Hsieh [Thu, 29 Mar 2018 20:37:33 +0000 (20:37 +0000)]
Merge "Fix seccomp filter set up in zygote"

6 years agoAdd the compilation reason to the dexopt dumps
Calin Juravle [Thu, 29 Mar 2018 02:00:18 +0000 (19:00 -0700)]
Add the compilation reason to the dexopt dumps

Knowing why we compiled a package will make some investigations easier.

Test: adb shell dumpsys package dexopt
Bug: 76425903
Change-Id: I67b5bc980d198340aa52affb24fb3ce7e3080d67

6 years agoChange shader precision because of CTS fail
dohyunia.kim [Wed, 8 Nov 2017 06:46:56 +0000 (15:46 +0900)]
Change shader precision because of CTS fail

Change-Id: I5d8747ecf9091a251b56d3a9de4bdb8ab0260898
Merged-In: I5d8747ecf9091a251b56d3a9de4bdb8ab0260898

6 years agoMerge "Move alpha long/short to the base CellIdentity according API Review."
Treehugger Robot [Thu, 29 Mar 2018 16:45:52 +0000 (16:45 +0000)]
Merge "Move alpha long/short to the base CellIdentity according API Review."

6 years agoDummy WorkChain class
Bookatz [Wed, 28 Mar 2018 20:59:41 +0000 (13:59 -0700)]
Dummy WorkChain class

To avoid future merge conflicts, a dummy WorkChain class must be
added temporarily. It goes along with the dummy StatsLog.java class.

Bug: 71607284
Test: none
Merged-In: Iff361eb98e079c7b2146c092dc27a3618a813c94
Change-Id: I66cf0c36c1842b99a5a4dd104fc5c06c0cfbe2b5