OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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

6 years agoMerge "tools/bit: Avoid leak in error condition"
Treehugger Robot [Thu, 29 Mar 2018 15:22:55 +0000 (15:22 +0000)]
Merge "tools/bit: Avoid leak in error condition"

6 years agoUse InterfaceSet for upstream interfaces.
Remi NGUYEN VAN [Fri, 9 Mar 2018 05:07:18 +0000 (14:07 +0900)]
Use InterfaceSet for upstream interfaces.

Allows using different upstream interfaces for IPv4 and IPv6.

Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Bug: 64380515
Test: runtest frameworks-net, manual (with aosp/644099 applied)

Change-Id: I3db63f7aa5255a0229253187def7590a386c5133

6 years agoLimit the number of routes for performance
Chalard Jean [Thu, 29 Mar 2018 05:10:44 +0000 (14:10 +0900)]
Limit the number of routes for performance

In evaluating whether "most" of the addressing space is
covered, the list of routes are obtained from a third-party
app, so it's possbile the system service stalls unless
some limit is enforced on how much work it has to do.
This change limits the number of routes to 400, as determined
by time measurement on various devices.

Bug: 74176086
Test: runtest framework-net
Change-Id: Ie4a96098bc044ade87b188839586f14dd101c100

6 years agoClarify documentation for getActiveNetworkInfo and friends
Chalard Jean [Thu, 29 Mar 2018 08:45:24 +0000 (17:45 +0900)]
Clarify documentation for getActiveNetworkInfo and friends

For VPNs it's unobvious what these methods do, so document that.

Bug: 70917007
Test: Comment changes only. Checkdoc passes.
Change-Id: I31ec1aea356d88d969eaf9fc7d8c2ed13ce924eb

6 years agoMerge "Fixed the Premium SMS bug reported by our partner The detail is that : ==...
Treehugger Robot [Thu, 29 Mar 2018 07:40:39 +0000 (07:40 +0000)]
Merge "Fixed the Premium SMS bug reported by our partner The detail is that : ===  <shortcode country="ae" free="3214|1017"/> === As displayed above, Arab Emirates is registered in sms_short_codes.xml. There is only CATEGORY_FREE_SHORT_CODE number for the county code "ae". All other numbers which include length under 5 digits is set as CATEGORY_NOT_SHORT_CODE, and so Premium SMS pop-up does not appear for both case. pattern="\\d{1,5}"  is added to all similar entries BUG:66911380"

6 years agoMerge "DCB whitelist short code for user association"
Treehugger Robot [Thu, 29 Mar 2018 07:29:00 +0000 (07:29 +0000)]
Merge "DCB whitelist short code for user association"

6 years agoMerge "Fix network usage stats on 464xlat tethered."
Remi NGUYEN VAN [Thu, 29 Mar 2018 06:04:02 +0000 (06:04 +0000)]
Merge "Fix network usage stats on 464xlat tethered."

6 years agoRequire explicitly supplied truncation length
Benedict Wong [Wed, 28 Mar 2018 20:10:40 +0000 (13:10 -0700)]
Require explicitly supplied truncation length

Instead of providing default truncation lengths (based on RFC or
otherwise), this change imposes a restriction that the truncation length
must be supplied for all auth or aead algorithms.

Bug: 77204048
Test: Updated tests, ran on walleye
Change-Id: I4a0e2e71aa97259e56f44e7c8a2ce53135708d97

6 years agoFix seccomp filter set up in zygote
Victor Hsieh [Wed, 28 Mar 2018 23:26:28 +0000 (16:26 -0700)]
Fix seccomp filter set up in zygote

This needs to land with extra syscalls whitelisted, including capset and
setresuid.  These privileged syscalls are used in the setup after the
filter is initialized.

Test: system starts, different apps run
Bug: 63944145
Bug: 76461821
Change-Id: I49e6b292805f35baffb3530461c8741e75aceb32

6 years agoMerge "Bluetooth HIDD: Remove unplug()"
Treehugger Robot [Wed, 28 Mar 2018 23:02:57 +0000 (23:02 +0000)]
Merge "Bluetooth HIDD: Remove unplug()"

6 years agoMove alpha long/short to the base CellIdentity according API Review.
Cassie [Wed, 21 Mar 2018 23:20:34 +0000 (16:20 -0700)]
Move alpha long/short to the base CellIdentity according API Review.

Bug: 74831568
Test: Telephony sanity
Change-Id: I0ef69e3f18fca111191e1c6329ae13c0860869ba
Merged-In: I0ef69e3f18fca111191e1c6329ae13c0860869ba

6 years agoMerge "Add additional logging for EMBMS edge cases"
Hall Liu [Wed, 28 Mar 2018 22:25:44 +0000 (22:25 +0000)]
Merge "Add additional logging for EMBMS edge cases"

6 years agoMerge "Address comments from API Review."
Holly Jiuyu Sun [Wed, 28 Mar 2018 21:56:40 +0000 (21:56 +0000)]
Merge "Address comments from API Review."

6 years agoRemove duplicate definitions of utility variables
Dan Willemsen [Wed, 28 Mar 2018 21:23:25 +0000 (14:23 -0700)]
Remove duplicate definitions of utility variables

These are set by the core build system, and are becoming read-only.

Bug: 76424357
Test: diff build-aosp_arm.ninja
Change-Id: I2df878bb654db48a0f2b9956220a0367c32c7ffe

6 years agoMerge "Remove non-tombstoned ANR path."
Treehugger Robot [Wed, 28 Mar 2018 21:25:13 +0000 (21:25 +0000)]
Merge "Remove non-tombstoned ANR path."

6 years agoBluetooth HIDD: Remove unplug()
Hansong Zhang [Wed, 28 Mar 2018 19:56:05 +0000 (12:56 -0700)]
Bluetooth HIDD: Remove unplug()

Remove the hidden unplug() API because it is not used and it can cause
the remote device to be unpaired. System apps should use unbond() and
user apps should not use reflection to invoke it.

Bug: 67866553
Test: SL4A
Change-Id: I1bdc06dbb5460c9fd52230b78cbf9434a4349d24

6 years agoMerge "Clean new TelephonyManager API."
Treehugger Robot [Wed, 28 Mar 2018 18:40:17 +0000 (18:40 +0000)]
Merge "Clean new TelephonyManager API."

6 years agoMerge "MessageQueue: explicitly remove FD event listeners."
Treehugger Robot [Wed, 28 Mar 2018 18:06:31 +0000 (18:06 +0000)]
Merge "MessageQueue: explicitly remove FD event listeners."

6 years agoRemove non-tombstoned ANR path.
Elliott Hughes [Fri, 23 Mar 2018 18:06:36 +0000 (11:06 -0700)]
Remove non-tombstoned ANR path.

Bug: http://b/73140330
Test: boots with ANR
Change-Id: Ib58724a0a6b831c05cb59d053520a4169ea591fd
Merged-In: Ib58724a0a6b831c05cb59d053520a4169ea591fd

6 years agoMerge "Parse SMS locally upon error to get message ref"
Brad Ebinger [Wed, 28 Mar 2018 16:59:41 +0000 (16:59 +0000)]
Merge "Parse SMS locally upon error to get message ref"

6 years agoMerge "Use commas to separate API exemptions list, not colon."
Treehugger Robot [Wed, 28 Mar 2018 16:57:30 +0000 (16:57 +0000)]
Merge "Use commas to separate API exemptions list, not colon."

6 years agoDisallow Reserved SPI Allocation
Nathan Harold [Wed, 28 Mar 2018 15:52:51 +0000 (08:52 -0700)]
Disallow Reserved SPI Allocation

Disallow the allocation of SPIs in the range
reserved for future use by RFC 4303.

Bug: 77205120
Test: runtest frameworks-net
Change-Id: I05e26ed34b5871f1a07d5bd7b58b79a64cd74b67

6 years agoUse commas to separate API exemptions list, not colon.
Mathew Inwood [Wed, 28 Mar 2018 12:01:37 +0000 (13:01 +0100)]
Use commas to separate API exemptions list, not colon.

A colon appears in the type signature of a field, so is not safe to use in
this context.

Test: m
Test: $ adb shell settings put global hidden_api_blacklist_exemptions \
Test: > Landroid/app/Activity;->mResumed:Z,Landroid/view/RemoteAnimationDefinition\\\;

Bug: 73337509
Change-Id: Ia9171fecc9c3ed265b87921b31458de25304486e

6 years agoMerge "Allow third party cookies in the captive portal login app."
Lorenzo Colitti [Wed, 28 Mar 2018 09:17:41 +0000 (09:17 +0000)]
Merge "Allow third party cookies in the captive portal login app."

6 years agoAddress comments from API Review.
Holly Jiuyu Sun [Fri, 16 Mar 2018 01:06:42 +0000 (18:06 -0700)]
Address comments from API Review.

Bug: 74975825
Bug: 74976716
Bug: 74976875
Test: test on phone
Merged-In: I5417e5dd95c75fd3fd9fa98d7559511bd0fcd8a0
Change-Id: I5417e5dd95c75fd3fd9fa98d7559511bd0fcd8a0

6 years agoFix network usage stats on 464xlat tethered.
Remi NGUYEN VAN [Tue, 27 Feb 2018 07:47:22 +0000 (16:47 +0900)]
Fix network usage stats on 464xlat tethered.

Usage stats corrections for 464xlat in NetworkStatsFactory are not applied
to tethered traffic. Add adjustments in NetworkStatsService. After
migrating external callers off NetworkStatsFactory, we will be able to
only apply adjustments in NetworkStatsService and remove stacked
interface tracking from NetworkStatsFactory.
Bug: 72107146
Fixes: 72107146
Test: runtest frameworks-net & manual - checked corrected network usage

Change-Id: I5ce450e616b4fddf21f2a491fe5d0c9e9f969bda

6 years agoMerge "BgDexopt: Reschedule job on timeout"
Andreas Gampe [Wed, 28 Mar 2018 02:53:57 +0000 (02:53 +0000)]
Merge "BgDexopt: Reschedule job on timeout"

6 years agoClarify UDP encapsulation socket API
Benedict Wong [Tue, 27 Mar 2018 23:55:48 +0000 (16:55 -0700)]
Clarify UDP encapsulation socket API

This change updates the getSocket() methods for IPsec to improve clarity
of the return types, both for public APIs, and internal-only methods.

Bug: 72473753
Test: APIs updated, CTS + unit tests ran.
Change-Id: I0afebd432c5d04c47c93daa1ce616d712aa323d7

6 years agoClean new TelephonyManager API.
Malcolm Chen [Sat, 24 Mar 2018 01:45:42 +0000 (18:45 -0700)]
Clean new TelephonyManager API.

This is to apply API council's review opinion on a previous commit.

We are reverting previous change, which renamed isDataEnabled and
setDataEnabled to isUserMobileDataEnabled and setUserMobileDataEnabled.
So this commit will remove the new APIs isUserMobileDataEnabled and
setUserMobileDataEnabled, and also rename hidden API isMobileDataEnabled
to isDataCapable.

Bug: 71584593
Test: unittest
Change-Id: I84d65776874e7a7f6e3a9af9ff7ec7dcbd715c2c

6 years agoMerge changes I70eafe03,Ia44e16c5
Treehugger Robot [Tue, 27 Mar 2018 22:45:18 +0000 (22:45 +0000)]
Merge changes I70eafe03,Ia44e16c5

* changes:
  Hearing Aid Profile: set and get activeDevice
  Move the setActiveDevice logic from Settings to SettingsLib (1/2)

6 years agoMerge "Add documentation for TCP interactions with transforms"
Benedict Wong [Tue, 27 Mar 2018 22:19:37 +0000 (22:19 +0000)]
Merge "Add documentation for TCP interactions with transforms"

6 years agoBgDexopt: Reschedule job on timeout
Andreas Gampe [Tue, 27 Mar 2018 22:04:19 +0000 (15:04 -0700)]
BgDexopt: Reschedule job on timeout

When the background dexopt job times out, tell the scheduler to
reschedule it, as we have more work to do.

Bug: 76425903
Test: m
Test: manual
Change-Id: Ibbdb979bceb1ff0a25f8aed2b3cc26a7f30057e2

6 years agoAllow third party cookies in the captive portal login app.
Lorenzo Colitti [Sun, 25 Mar 2018 16:32:33 +0000 (01:32 +0900)]
Allow third party cookies in the captive portal login app.

Fix: 73909651
Test: Captive portal login app still works
Change-Id: I3ffda92e7d764ea9957df1a5408839cf10a26be5
Merged-In: I0174124cad9c108a26594b0ddd6162ca3ea6e68d
(cherry picked from commit c3c95bab8ec7f3ef4e7649b5d24ea6525a407c44)

6 years agoParse SMS locally upon error to get message ref
Brad Ebinger [Mon, 19 Mar 2018 21:30:32 +0000 (14:30 -0700)]
Parse SMS locally upon error to get message ref

Parse the SMS locally to get the message ref when
onSmsReceived fails due to the platform being
unavailable. This allows the correct message ref
to be sent back via acknowledgeSms, instead of
the incorrect "0" value.

Bug: 74551838
Test: Manual
Merged-In: I3b75da909f1f07125c5696f7f9e525736732f3c1
Change-Id: I2f8128d8ff4e07bb3720a344cee70fa5fd5d7535

6 years agoMerge "Add constants for reporting criteria"
Eric Schwarzenbach [Tue, 27 Mar 2018 20:59:20 +0000 (20:59 +0000)]
Merge "Add constants for reporting criteria"

6 years agoMerge "Configurable hidden API exemptions."
Treehugger Robot [Tue, 27 Mar 2018 20:49:45 +0000 (20:49 +0000)]
Merge "Configurable hidden API exemptions."

6 years agoMerge "Tell the user to toggle Bluetooth when enabling HCI logs"
Treehugger Robot [Tue, 27 Mar 2018 18:30:12 +0000 (18:30 +0000)]
Merge "Tell the user to toggle Bluetooth when enabling HCI logs"

6 years agoTell the user to toggle Bluetooth when enabling HCI logs
Myles Watson [Mon, 26 Mar 2018 21:28:46 +0000 (14:28 -0700)]
Tell the user to toggle Bluetooth when enabling HCI logs

Bug: 67634644
Test: Manually inspect the new text in developer settings
Change-Id: Ic8b08c8d6d0c7727a03a265fb6b10a3c55fd96cb