- Apr 18, 2017
-
-
Nathan Harold authored
These methods do not currently work for IPv4 sockets, so they need to be hidden until the underlying kernel code can be made to work properly in a dual-stack environment. Bug: 36073210 Test: compilation Change-Id: Idce367f638a42da374a7f1dc5ebb8931c9555e06
-
Nathan Harold authored
Bug: 36073210 Test: api-update Change-Id: Ia3825e85b09b6330f1326a26cf9e1cadf9dacf71
-
- Apr 17, 2017
-
-
Yifan Hong authored
* changes: Update for removing mount arg to VintfObject::CheckCompatibility Add Java API for libvintf.
-
Treehugger Robot authored
-
Rebecca Silberstein authored
-
- Apr 15, 2017
-
-
Yifan Hong authored
It is default to false. Test: pass Bug: 36814503 Change-Id: Ib06850d3355f54996b17cc6c2980a7d17af132e5
-
Treehugger Robot authored
-
Tyler Gunn authored
These were previously @SystemApi. Retaining the existing SystemAPI behavior which sends the intents to those with a private permission. Extending to ALSO send these intents to the default dialer app as well using an explicit intent. Test: Manual Bug: 37106957 Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab
-
Treehugger Robot authored
-
- Apr 14, 2017
-
-
Jordan Liu authored
ServiceStateProvider defines public constants in Telephony.ServiceStateTable so update the api. Test: flashed onto device locally Bug: 33756364 Change-Id: I62b6b8bcfdf909aa36e44441f8672f98f581f896 Merged-In: I62b6b8bcfdf909aa36e44441f8672f98f581f896
-
Nathan Harold authored
For whatever reason when I chose the permission for this API I chose the internal READ_PRIVILEGED_PHONE_STATE. Updating this to use the equivalent public permission (since this is a public API) requires me to use READ_PHONE_STATE Bug: 35261110 Test: docstring only change. Compilation Change-Id: I3647271798b33040751905c13b20da727eacfd9b
-
Hall Liu authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Hugo Benichi authored
This patch changes how callback unregistration works in order to be consistent with undocumented use cases currently de-facto supported by the API (although in a buggy way): - callback recycling: releasing then reregistering a callback again. - multiple request registrations with the same callback. The second use case is not desirable but needs to be taken into account for now for the purpose of correctly releasing NetworkRequests registered in ConnectivityService. In order to support request release in both use cases with minimal amount of complexity for the time being the following changes are done: - request to callback unmapping is done synchronously at callback release time. - all requests associated to a callback are unmapped at callback release time. This fixes the following issues: - a callback stops being triggered as soon as it is released. Otherwise when recycling the callback immediately, it is possible the previous request associated with it triggers it, confusing the app. - when a callback is registered multiple times, the requests are not leaked. - when a callback is registered multiple times and then released, the N-1 first registrations do not trigger the callback anymore. In the future it would be desirable to enforce the intended 1:1 mapping between callbacks and requests at registration time. Bug: 35921499, 35955593, 20701525 Test: - added new tests in ConnectivityManagerTest to test releasing, recycling, and a disabled test for no multiple regristration. - new tests catch regression causing b/35921499, b/35955593. Change-Id: Ia0917ac322fc049f76adb4743bc745989fed6d26
-
Treehugger Robot authored
-
Rebecca Silberstein authored
-
Yifan Hong authored
android.os.VintfObject has two methods: - report: return device info that can be reported to OTA server - verify: verify that metadata for a given OTA package is compatible. Test: pass Test: adb shell am instrument -w -e class android.os.VintfObjectTest \ com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Bug: 36814503 Change-Id: Iff8fae289eec8ae9cfc327d0d0d36a1cdd5e6800
-
- Apr 13, 2017
-
-
Hugo Benichi authored
This patch introduces a new settings value to specify more than one url for the fallback http probe in addition to the existing settings value. If more than one url exists, a network will rotate urls for the fallback probe one by one everytime the fallback probe is sent. (not like commit 0908daaa, this patch uses a comma to separate fallback urls, which works as expected with Java's String.split()) Test: built, flashed, tested manually with various portal networks. Bug: 36532213 Change-Id: I3c010bfee5b99db03a500776fbf47959a29d0578
-
Hugo Benichi authored
-
Treehugger Robot authored
-
Hugo Benichi authored
After discussion in the cl we agreed to use "|" as a separator. However String.split() input arg is a regex and not a literal string, so that "|" will actually split the urls characters per characters. Will revert and resubmit with a comma. This reverts commit 0908daaa. Change-Id: Ifab25e41bec806fbc1d2c13ffd81d4ad91598c89
-
Treehugger Robot authored
* changes: Captive portal: regroup hardcoded http response codes. Captive portal: rotate fallback urls
-
Treehugger Robot authored
-
Hugo Benichi authored
This patch regroups various hardcoded http codes into well defined constants. This reduces risk of errors and makes the captive portal logic clearer. This patch also fixes the logging when a captive portal detection probe fails, to take into account https ssl handshake failures: for well-behaved portals it is expected that the https probe will fail, however the error message was written before the introduction of the https probe and had become ambiguous. Test: built, flashed, tested manually with various portal networks Bug: 36532213 Change-Id: Ia15f77e268cb414816fc52f92835289f9a9ce92b
-
Hugo Benichi authored
This patch introduces a new settings value to specify more than one url for the fallback http probe in addition to the existing settings value. If more than one url exists, a network will rotate urls for the fallback probe one by one everytime the fallback probe is sent. Test: built, flashed, tested manually with various portal networks. Bug: 36532213 Change-Id: Icaa1f95c5914e8840c83ccdf071047358a5b760f
-
Rebecca Silberstein authored
Add two new methods to start/stop softap in WifiService. These are internal calls that allow WifiService and ConnectivityService to coordinate the switch to and from softap mode. These calls will not be callable by apps and are protected by the NETWORK_STACK permission. The calls are added in this CL, but are not used at this time. Bug: 36540346 Test: compiles Change-Id: Idabdba7f779cbac999ff88d8993b2f4b1f4a1624
-
Rebecca Silberstein authored
Add a default prefix for local only hotspot that will be used to generate WifiConfiguration objects. This prefix will have random digits appended to reduce AP name collisions. Bug: 36704909 Test: compiles Change-Id: I2b9478a12de27cabe13ece2973bce7cd4976ba2f
-
Treehugger Robot authored
-
Lorenzo Colitti authored
-
Erik Kline authored
Test: as follows - built - flashed - booted - "runtest frameworks-net" passes Bug: 33308258 Bug: 36249702 Change-Id: I76ae853ceb61b7b900f36f9c3cd67b2d2284aab0
-
- Apr 12, 2017
-
-
Lorenzo Colitti authored
* changes: [CM] Unhide the NetworkSpecifier as object API Make the NetworkSpecifier a class instead of a string.
-
Jakub Pawlowski authored
-
Shuo Qian authored
-
Brad Ebinger authored
Test: Telecom Unit Tests Change-Id: Ie619850bd6a0a0bb599dc6d69c43757604723ee0
-
nharold authored
* changes: Add FileDescriptor Versions of applyTransportModeTransform() IpSecManager and IpSecAlgorithm API Tweaks
-
Jakub Pawlowski authored
Having PHY_LE_* constants defined in four different places, with one value being different than others is misleading. Leave just PHY_LE_* definitions in BluetoothDevice, and add PHY_LE*_MASK for the mask used in PHY update API. This patch also removes need to translate PHY value between PHY update request and event, as mask is used for request, and the value is returned in event. Bug: 30622771 Test: manual Change-Id: I897effa1204a024465d55501c83c542566c4d37c
-
Lorenzo Colitti authored
This groups them together with the rest of the networking unit tests. It also speeds up compile/test cycles ("runtest -x" of one file goes from 1m15s to 30s). Test: runtest frameworks-net passes on internal tree Change-Id: I53cb0c51355fe4b4b30e451fa09fbbf58da39efd
-
Robert Greenwalt authored
-
Orion Hodson authored
Bug: 33192564 Test: m -j32 Change-Id: Ic80c9fa8bd81173220f4a1615e35d89b0ed621c2
-