OSDN Git Service

android-x86/frameworks-base.git
8 years agoHave ConnectivityService install packet filters when possible
Paul Jensen [Thu, 14 Jan 2016 19:54:39 +0000 (14:54 -0500)]
Have ConnectivityService install packet filters when possible

Listen for ICMP6 router advertisements on networks that support
packet filters.  Construct packet filters and install them to
ignore redundant future ICMP6 router advertisements.

Bug: 26238573
Change-Id: If78300b9fda257c21f3ee6533e1da7de9f897cb4

8 years agoSupport 464xlat on Ethernet.
Lorenzo Colitti [Thu, 3 Mar 2016 08:17:29 +0000 (17:17 +0900)]
Support 464xlat on Ethernet.

Bug: 26991160
Change-Id: I848c9e86e1ed337e95cfddda46723a9a1dcaed30

8 years agoMerge "add configuration knob for WifiLogger ringbuffers" into mm-wireless-dev
Mukesh Agrawal [Thu, 3 Mar 2016 03:09:23 +0000 (03:09 +0000)]
Merge "add configuration knob for WifiLogger ringbuffers" into mm-wireless-dev

8 years agoAdd 464xlat notification callback
Erik Kline [Mon, 29 Feb 2016 07:00:01 +0000 (16:00 +0900)]
Add 464xlat notification callback

Bug: 26238390
Bug: 26991160
Change-Id: I556e779c642d19cd8d26637dd98055157d005f77

8 years agoadd configuration knob for WifiLogger ringbuffers
mukesh agrawal [Wed, 2 Mar 2016 01:33:43 +0000 (17:33 -0800)]
add configuration knob for WifiLogger ringbuffers

Different builds may want to allow more or less memory
for WifiLogger ringbuffers. Provide a configuration
knob, accordingly.

BUG=27264418
TEST=build

Change-Id: I7c9dd2d061f760105995525e6b0d9edd22d7bd92

8 years agoAdd constructor with more inputs for dependency injection.
Erik Kline [Tue, 1 Mar 2016 01:37:50 +0000 (10:37 +0900)]
Add constructor with more inputs for dependency injection.

Bug: 26991160
Bug: 27406552
Change-Id: If4a0a2f1afb1da4ad59df9eb31c540047c84659b

8 years agoMerge "IMS Connection Capabilities Update" into mm-wireless-dev
Tyler Gunn [Mon, 29 Feb 2016 18:06:25 +0000 (18:06 +0000)]
Merge "IMS Connection Capabilities Update" into mm-wireless-dev

8 years agoIMS: ImsCallProfile Extra For Call Pull
Omkar Kolangade [Fri, 26 Feb 2016 17:45:04 +0000 (09:45 -0800)]
IMS: ImsCallProfile Extra For Call Pull

Adding an extra that will be used by IMS
Service to specify whether a call has been
pulled from another device.

BUG=27340495
Change-Id: Ic3b5a07404d63bfadcaa8bf88d6f077165251b92

8 years agoIMS: Reason Codes For Call Pull Scenarios
Omkar Kolangade [Wed, 24 Feb 2016 19:53:06 +0000 (11:53 -0800)]
IMS: Reason Codes For Call Pull Scenarios

Adding reason codes for call pull success
and failure scenarios.

BUG=27340495
Change-Id: I775316f52ed13862981500ebe035ee626adc934f

8 years agoMerge "Modify WakeupMessage to only send the message if not canceled" into mm-wireles...
Mitchell Wills [Thu, 25 Feb 2016 23:36:29 +0000 (23:36 +0000)]
Merge "Modify WakeupMessage to only send the message if not canceled" into mm-wireless-dev

8 years agoMerge "Add registrationAssociatedUriChanged to ImsRegistrationListener" into mm-wirel...
Pavel Zhamaitsiak [Thu, 25 Feb 2016 19:43:31 +0000 (19:43 +0000)]
Merge "Add registrationAssociatedUriChanged to ImsRegistrationListener" into mm-wireless-dev

8 years agoModify WakeupMessage to only send the message if not canceled
Mitchell Wills [Fri, 19 Feb 2016 02:01:33 +0000 (18:01 -0800)]
Modify WakeupMessage to only send the message if not canceled

Change-Id: I9ca6d3726fe25c706b644bf61119837a7cbe6db1

8 years agoRetire ScanResult.autoJoinStatus
Randy Pan [Wed, 24 Feb 2016 22:43:09 +0000 (14:43 -0800)]
Retire ScanResult.autoJoinStatus

This attribute is no longer in use.

Bug: 27340037
Change-Id: I2e5dfdc266673388a55ef34a4d088352d2e1723c

8 years agoAdd registrationAssociatedUriChanged to ImsRegistrationListener
Pavel Zhamaitsiak [Fri, 12 Feb 2016 01:19:09 +0000 (17:19 -0800)]
Add registrationAssociatedUriChanged to ImsRegistrationListener

This callback will be used to pass list of associated URIs.
It is needed in case SIM doesn't have line1Number populated.

Bug: 24613146
Change-Id: I698ce58dbedb858dc59836069e6f10fec6d02ae6

8 years agoMerge "Adding Error Codes for IWLAN/EPDG Connection" into mm-wireless-dev
Nathan Harold [Wed, 24 Feb 2016 19:55:52 +0000 (19:55 +0000)]
Merge "Adding Error Codes for IWLAN/EPDG Connection" into mm-wireless-dev

8 years agoMerge "DO NOT MERGE: Multi-SIM - Fixing inconsistent naming in CarrierConfigManager...
Shishir Agrawal [Wed, 24 Feb 2016 17:33:11 +0000 (17:33 +0000)]
Merge "DO NOT MERGE: Multi-SIM - Fixing inconsistent naming in CarrierConfigManager." into mm-wireless-dev

8 years agoMerge "Add Connectivity Metrics Logger service" into mm-wireless-dev
Pierre Imai [Wed, 24 Feb 2016 04:49:24 +0000 (04:49 +0000)]
Merge "Add Connectivity Metrics Logger service" into mm-wireless-dev

8 years agoDO NOT MERGE: Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.
Shishir Agrawal [Wed, 17 Feb 2016 23:52:09 +0000 (15:52 -0800)]
DO NOT MERGE: Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.

All MSIM specific calls should not use a suffix/prefix.

Bug: 26772894
Change-Id: I49488dfc41bb7996a1a44447968ec11132e4dac7

8 years agoMerge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wirel...
Shishir Agrawal [Tue, 23 Feb 2016 22:59:23 +0000 (22:59 +0000)]
Merge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wireless-dev

8 years agoMerge changes from topic 'notification' into mm-wireless-dev
Pankaj Kanwar [Tue, 23 Feb 2016 21:32:15 +0000 (21:32 +0000)]
Merge changes from topic 'notification' into mm-wireless-dev

* changes:
  Changing string in notification when data is blocked. b/25209821
  Changing string in notification when data is blocked. b/25209821

8 years agoAdding Error Codes for IWLAN/EPDG Connection
Nathan Harold [Tue, 23 Feb 2016 21:25:12 +0000 (13:25 -0800)]
Adding Error Codes for IWLAN/EPDG Connection

-Error codes related to tunnel maintenance
-Error code for DPD

Bug: 26014044
Bug: 26014458
Change-Id: Ic00a14e0502fa47e20e79a3c6ce91b3170f53a50

8 years ago[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
Etan Cohen [Thu, 18 Feb 2016 02:27:43 +0000 (18:27 -0800)]
[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]

Per API guidelines - non-overlapping constants can be (should be)
named with "FLAG".

Bug: 27122760
Change-Id: If8b2c0f9b2818215a64b5635e76731c8fdfd3b8d

8 years agoMerge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev
Roshan Pius [Tue, 23 Feb 2016 16:08:25 +0000 (16:08 +0000)]
Merge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev

8 years agoAdd Connectivity Metrics Logger service
Pavel Zhamaitsiak [Wed, 3 Feb 2016 18:39:44 +0000 (10:39 -0800)]
Add Connectivity Metrics Logger service

This service can be used to pass events to metrics collection service

Change-Id: I213874300693cd121f2c8676f70893315de4c4c0

8 years agoMerge "Add a unit test for MessageUtils." into mm-wireless-dev
Lorenzo Colitti [Tue, 23 Feb 2016 07:43:39 +0000 (07:43 +0000)]
Merge "Add a unit test for MessageUtils." into mm-wireless-dev

8 years agoMerge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev
Wei Wang [Tue, 23 Feb 2016 05:09:38 +0000 (05:09 +0000)]
Merge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev

8 years agoIpConfigStore: New constructor to accept writer
Roshan Pius [Tue, 23 Feb 2016 01:06:47 +0000 (17:06 -0800)]
IpConfigStore: New constructor to accept writer

Add a new constructor to accept a DelayeDiskWrite object from the
caller.

BUG: 27293150
Change-Id: I13fb86c76ee5a0d05b45fec0c42b7e1b2233ee76
TEST: `runtest frameworks-wifi`

8 years agoChanging string in notification when data is blocked.
pkanwar [Mon, 22 Feb 2016 19:17:10 +0000 (11:17 -0800)]
Changing string in notification when data is blocked.
b/25209821

Change-Id: I8b0a4614c7052a1203f5d225e1977c7e358a0dbc

8 years agoDelete all NetworkUtils DHCP-related code.
Erik Kline [Thu, 18 Feb 2016 11:06:02 +0000 (20:06 +0900)]
Delete all NetworkUtils DHCP-related code.

Bug: 26991160
Change-Id: I2c74e0161f43f65c1b6a85dc9f294b64c8f1ae6e

8 years agoGive bluetooth sufficient capabilities to run DhcpClient
Erik Kline [Thu, 18 Feb 2016 12:59:31 +0000 (21:59 +0900)]
Give bluetooth sufficient capabilities to run DhcpClient

Specifically:
    CAP_NET_RAW
    CAP_NET_BIND_SERVICE

Bug: 26991160
Change-Id: I2afddc9efa3b613d974afb0ea33703948203d99a

8 years agoAdd WaitForProvisioningCallback
Erik Kline [Fri, 19 Feb 2016 06:48:22 +0000 (15:48 +0900)]
Add WaitForProvisioningCallback

This centralizes code that is shared by both bluetooth and ethernet
transport layers.

Bug: 26991160
Change-Id: I8e2dd8580c29c86394119768e3a5529850b4b859

8 years agoSupport setting TCP buffer sizes and HTTP Proxy config
Erik Kline [Wed, 17 Feb 2016 13:53:03 +0000 (22:53 +0900)]
Support setting TCP buffer sizes and HTTP Proxy config

This allows IpManager to send callback recipients a more satisfying
LinkProperties.

Bug: 26991160
Change-Id: I2eb60dc633e5be38dad9410a1096d0095ddf57a0

8 years agoAdd a unit test for MessageUtils.
Lorenzo Colitti [Sat, 20 Feb 2016 07:17:50 +0000 (16:17 +0900)]
Add a unit test for MessageUtils.

Also fix a couple of issues in the code:

1. Check that fields are static before attempting to read them.
   Currently, if a non-static field's name starts with one of the
   specified constant prefixes (by default, "CMD_" and "EVENT_")
   we'd get an NPE.
2. Only read final fields.

Change-Id: I0e07c4c27a66180cbaf7f2b1c235daafc080863b

8 years agoMerge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
Glen Kuhne [Fri, 19 Feb 2016 21:35:09 +0000 (21:35 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev

8 years agoAdd EID_TIM to ScanResult.InformationElement
Glen Kuhne [Wed, 10 Feb 2016 23:08:33 +0000 (15:08 -0800)]
Add EID_TIM to ScanResult.InformationElement

Added EID_TIM to enable parsing of TrafficIndicationMap
InformationElements.

BUG=25691077
Change-Id: I99450f0b720175660486da15d6b13affbdb61adc

8 years agoMerge "Fix FastXmlSerializerTest" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:13:58 +0000 (18:13 +0000)]
Merge "Fix FastXmlSerializerTest" into mm-wireless-dev

8 years agoMerge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:11:20 +0000 (18:11 +0000)]
Merge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev

8 years agoMerge "DO NOT MERGE Disable failing test case" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:10:54 +0000 (18:10 +0000)]
Merge "DO NOT MERGE Disable failing test case" into mm-wireless-dev

8 years agoModify the wake reasons data structure(2/2)
Roshan Pius [Thu, 18 Feb 2016 21:57:10 +0000 (13:57 -0800)]
Modify the wake reasons data structure(2/2)

Changes in the android framework to use the modifed HAL API to
fetch the host wakeup reasons from the driver.

BUG: 26902794

Change-Id: I4df53c00b6b4ffd9f9ddb45577f6bccf150c43e4

8 years agoProperly map EAP-GTC for TTLS
Paul Stewart [Sat, 16 Jan 2016 02:56:52 +0000 (18:56 -0800)]
Properly map EAP-GTC for TTLS

The "auth=GTC" method was never valid for the TTLS outer
authentication for wpa_supplicant.  Instead, to perform
GTC authentication within TTLS, we should use EAP-GTC.

This CL performs this mapping within WifiEnterpriseConfig.
It accomplishes this by making the EAP Method and Phase 2
Method parameters a part of the internal object state
instead of maintaining this value within the mFields
hashmap.

Further, the problematic "getFields" method is removed
since as this actually provided read/write access to the
entirety of the WifiEnterpriseConfig's internal state.
This was understandably suboptimal.  All callers have
been updated to either use getFieldValue() or to call
a newly added getSupplicantFields() / setSupplicantFields()
methods which make the WifiEnterpriseConfig object a sole
arbiter for the mapping between its internal state and
wpa_supplicant.

In the future it might be good to change this logic to
strip WifiEnterpriseConfig of all of the string hashmap
entirely, leaving WifiEnterpriseConfig as a "struct"
and move supplicant mappings to WifiConfigStore.

Bug:26400915
Change-Id: I866e2f77ad53d9a51c5f61acb9adef522661f721
Test:runtest frameworks-wifi # New unit test in the same topic
Test:cts-tradefed run cts -d --class android.net.wifi.cts.WifiEnterpriseConfigTest

8 years agoMerge "Add Java API for secure RTT protocol." into mm-wireless-dev
Wei Wang [Fri, 19 Feb 2016 09:22:44 +0000 (09:22 +0000)]
Merge "Add Java API for secure RTT protocol." into mm-wireless-dev

8 years agoDisallow duplicate listeners for WifiScanner.
Wei Wang [Wed, 17 Feb 2016 07:38:41 +0000 (23:38 -0800)]
Disallow duplicate listeners for WifiScanner.

Bug:26663377

Change-Id: I2eea0fd3532c45f493aad7c0d5c28bda07f5bfed

8 years agoDO NOT MERGE Disable failing test case
Mitchell Wills [Fri, 19 Feb 2016 06:57:10 +0000 (22:57 -0800)]
DO NOT MERGE Disable failing test case

Bug: 27258801

Change-Id: I832505e0feca9f0abbf627d009d5982a4437bf83

8 years agoFix FastXmlSerializerTest
Mitchell Wills [Fri, 19 Feb 2016 07:43:30 +0000 (23:43 -0800)]
Fix FastXmlSerializerTest

Change-Id: Ie984abae588927e65bdeffa5a6f5c58bd6ba0bf1

8 years agoRemove AsyncChannelTest because it does not test anything
Mitchell Wills [Fri, 19 Feb 2016 07:37:14 +0000 (23:37 -0800)]
Remove AsyncChannelTest because it does not test anything

Change-Id: I7d3fe580a8c32ef3bd10895b51a7fc436f79919f

8 years agoMerge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev
Lorenzo Colitti [Fri, 19 Feb 2016 06:04:25 +0000 (06:04 +0000)]
Merge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev

8 years agoMove tests for com.android.internal.util out of coretests
Lorenzo Colitti [Fri, 19 Feb 2016 04:32:30 +0000 (13:32 +0900)]
Move tests for com.android.internal.util out of coretests

These are very simple tests with no dependencies, and moving them
out of FrameworksCoreTests makes it possible to iterate much more
quickly.  "runtest frameworks-core" takes almost a minute just to
push to the device, before any tests even start running.

Bug: 25691379
Change-Id: I8d99316a5940e0171883b97c578f9a6882b699a0

8 years agoMerge "DO NOT MERGE Add a new WakeupMessage class" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 05:33:36 +0000 (05:33 +0000)]
Merge "DO NOT MERGE Add a new WakeupMessage class" into mm-wireless-dev

8 years agoDO NOT MERGE Add a new WakeupMessage class
Lorenzo Colitti [Wed, 2 Dec 2015 08:51:28 +0000 (17:51 +0900)]
DO NOT MERGE Add a new WakeupMessage class

This is useful when using the new AlarmManager direct callback
interface to wake up the system and request that an object whose
API consists of messages (such as a StateMachine) perform some
action.

In this situation, using AlarmManager.onAlarmListener by itself
will wake up the system to send the message, but does not
guarantee that the system will be awake until the target object
has processed it. This is because as soon as the onAlarmListener
sends the message and returns, the system is free to go to sleep
again.

Bug: 20157436
Bug: 25823676
Cherry-picked WakeupMessage.java from 9d3aadb24778cc36a350a04b088d2ed7ee3790e1
Change-Id: Idff20029d287f26347441a2523b7fb20eda6a8b0

8 years agoAdd a MessageUtils class to convert int constants to strings.
Lorenzo Colitti [Wed, 17 Feb 2016 15:32:44 +0000 (00:32 +0900)]
Add a MessageUtils class to convert int constants to strings.

This class uses reflection to find accessible static integer
members in a specified list of classes and returns a SparseArray
mapping the integers to their names. This will allow us to
replace various 400-line switch statements with a simple
array access.

Change-Id: I3607e6389a423cde0bd83270c00b3c863ae1bb29

8 years ago[NAN] Renamed listeners to callback per API guidelines [DO NOT MERGE]
Etan Cohen [Thu, 18 Feb 2016 00:01:49 +0000 (16:01 -0800)]
[NAN] Renamed listeners to callback per API guidelines [DO NOT MERGE]

The interfaces had multiple functions and are hence callback
and not a listener.

Note: purely a rename operation.

Bug: 27122760
Change-Id: Ib12711f56a64052455843859125d72268c465fc0

8 years ago[NAN]: API update - consolidate Puslish|Subscribe Data+Subscribe -> Config [DO NOT...
Etan Cohen [Wed, 17 Feb 2016 22:25:41 +0000 (14:25 -0800)]
[NAN]: API update - consolidate Puslish|Subscribe Data+Subscribe -> Config [DO NOT MERGE]

Simplify configuration and consolidate structures whose difference
wasn't very clear.

Bug: 27122760
Change-Id: I0651cade71eb146d9ea9219baf6d2253588db3de

8 years agoAdd Java API for secure RTT protocol.
Wei Wang [Thu, 18 Feb 2016 21:07:43 +0000 (13:07 -0800)]
Add Java API for secure RTT protocol.

Change-Id: I1c012f9e92e8b2af332524363f8f0c9921bf4bb5

8 years agoNAN: Support multiple instantiation per UID - introduce a client ID. [DO NOT MERGE]
Etan Cohen [Tue, 16 Feb 2016 23:50:21 +0000 (15:50 -0800)]
NAN: Support multiple instantiation per UID - introduce a client ID. [DO NOT MERGE]

Add the concept of a client ID which is used to identify a specific
(one of several) clients in all API calls.

Bug: 26962024
Change-Id: I43f13d51bee8b57c6d0ba1174168288b8d6c21c5

8 years agoAdd Protocol.BASE_ETHERNET
Erik Kline [Thu, 18 Feb 2016 09:15:26 +0000 (18:15 +0900)]
Add Protocol.BASE_ETHERNET

Change-Id: I4e51370c0b53d9902eea8aae409f9f7cffaf28ad

8 years ago{,Base}DhcpStateMachine is no more
Erik Kline [Thu, 18 Feb 2016 03:40:11 +0000 (12:40 +0900)]
{,Base}DhcpStateMachine is no more

Bug: 26991160
Change-Id: I21f8c30627bf2a7fbcd5b4d5f1f1ad1a2dda759b

8 years agoDO NOT MERGE: Add subscription specific TelephonyManager calls.
Shishir Agrawal [Wed, 17 Feb 2016 19:36:15 +0000 (11:36 -0800)]
DO NOT MERGE: Add subscription specific TelephonyManager calls.

SubId specific version of the following functions are being added.
  - hasCarrierPrivileges
  - iccCloseLogicalChannel
  - iccExchangeSimIO
  - iccOpenLogicalChannel
  - iccTransmitApduBasicChannel
  - iccTransmitApduLogicalChannel
  - sendEnvelopeWithStatus
  - setOperatorBrandOverride
  - setPreferredNetworkTypeToGlobal

Bug: 26772894

Change-Id: I8c9e6d9bfe73f530e6f91c86211103fdfb1520bf

8 years agoMerge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev
Mitchell Wills [Wed, 17 Feb 2016 20:30:55 +0000 (20:30 +0000)]
Merge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev

8 years agoRemove references to BaseDhcpStateMachine and DhcpStateMachine
Erik Kline [Wed, 17 Feb 2016 12:44:25 +0000 (21:44 +0900)]
Remove references to BaseDhcpStateMachine and DhcpStateMachine

Bug: 26991160
Change-Id: I3742780a4e5121c163d9d1380951e25edaba19f3

8 years agoAdd IpManager#shutdown() to terminate the state machine.
Erik Kline [Wed, 17 Feb 2016 09:02:51 +0000 (18:02 +0900)]
Add IpManager#shutdown() to terminate the state machine.

Additionally, remove IpManager.Callback#usingIpReachabilityMonitor()
now that this is now longer used.

Bug: 26991160
Change-Id: I9a17497c82238a9fb37a20d01aeca7bc4913ae2c

8 years agoMerge "Create BandMode Constants" into mm-wireless-dev
Nathan Harold [Wed, 17 Feb 2016 00:44:12 +0000 (00:44 +0000)]
Merge "Create BandMode Constants" into mm-wireless-dev

8 years agoMerge "WifiConfiguration: add constants for radio band" into mm-wireless-dev
Peter Qiu [Tue, 16 Feb 2016 18:04:13 +0000 (18:04 +0000)]
Merge "WifiConfiguration: add constants for radio band" into mm-wireless-dev

8 years agoAdd IpManager.ProvisioningRequest class
Erik Kline [Thu, 11 Feb 2016 11:36:41 +0000 (20:36 +0900)]
Add IpManager.ProvisioningRequest class

This class captures provisioning request parameters to be passed to
IpManager#startProvisioning().

Bug: 26991160
Change-Id: I56652bbc4b9ae6cfca3f225a8d99cdfc01bb54d9

8 years agoMerge "Remove wifiConfiguration.isVisibleToUser()" into mm-wireless-dev
Bartosz Fabianowski [Mon, 15 Feb 2016 09:56:52 +0000 (09:56 +0000)]
Merge "Remove wifiConfiguration.isVisibleToUser()" into mm-wireless-dev

8 years agoChanging string in notification when data is blocked.
pkanwar [Sat, 13 Feb 2016 00:18:43 +0000 (16:18 -0800)]
Changing string in notification when data is blocked.
b/25209821

Change-Id: Iaedc7315fd95a7b9a173a4101865ff5047417ed5

8 years agoCreate BandMode Constants
Nathan Harold [Fri, 12 Feb 2016 18:02:04 +0000 (10:02 -0800)]
Create BandMode Constants

Bug: 27145805
Change-Id: I733026268600f504325bc92061ee830d1448bbf5

8 years agoWifiConfiguration: add constants for radio band
Peter Qiu [Fri, 12 Feb 2016 00:45:44 +0000 (16:45 -0800)]
WifiConfiguration: add constants for radio band

Change-Id: I2287ffb3d93351d73659327cef37a6d3ecd588b3

8 years agoMerge "Revert "Properly map EAP-GTC for TTLS"" into mm-wireless-dev
Paul Stewart [Fri, 12 Feb 2016 16:23:43 +0000 (16:23 +0000)]
Merge "Revert "Properly map EAP-GTC for TTLS"" into mm-wireless-dev

8 years agoRevert "Properly map EAP-GTC for TTLS"
Paul Stewart [Fri, 12 Feb 2016 16:21:01 +0000 (16:21 +0000)]
Revert "Properly map EAP-GTC for TTLS"

This reverts commit be5084b87aa6a5e97becac6a43b448fee34196c2.

Reverting to re-land after test team does their thing

Change-Id: Ia236b77f08d15f47efb5469478000ded3b0d7954

8 years agoMerge "Properly map EAP-GTC for TTLS" into mm-wireless-dev
Paul Stewart [Fri, 12 Feb 2016 16:07:18 +0000 (16:07 +0000)]
Merge "Properly map EAP-GTC for TTLS" into mm-wireless-dev

8 years agoRemove wifiConfiguration.isVisibleToUser()
Bartosz Fabianowski [Thu, 11 Feb 2016 10:13:55 +0000 (11:13 +0100)]
Remove wifiConfiguration.isVisibleToUser()

This method seemed like a good idea at the time (quickly check whether a
network configuration is visible to a given user). However, once managed
profiles come into play, this simple method is no longer appropriate.
There is a more comprehensive replacement at
com.android.server.wifi.WifiConfigurationUtil.isVisibleToAnyProfile()
now and this method here can go.

BUG:26867426

Change-Id: Ia66aa6f74003a16eca24c5088d3aba8e0c9f8140

8 years agoDuplicate DhcpStateMachine public constants into DhcpClient
Erik Kline [Thu, 11 Feb 2016 15:17:02 +0000 (00:17 +0900)]
Duplicate DhcpStateMachine public constants into DhcpClient

This is so we can ultimately delete DhcpStateMachine altogether.

Bug: 24837343
Bug: 26991160
Change-Id: If116639e5f72c97cfc67f748dc5f6433dccd9cf0

8 years agoMerge "IMS RAT Reporting in Registration Unsol" into mm-wireless-dev
Tyler Gunn [Fri, 12 Feb 2016 03:40:08 +0000 (03:40 +0000)]
Merge "IMS RAT Reporting in Registration Unsol" into mm-wireless-dev

8 years agoIMS RAT Reporting in Registration Unsol
Omkar Kolangade [Tue, 5 May 2015 00:49:14 +0000 (17:49 -0700)]
IMS RAT Reporting in Registration Unsol

Adding a parameter to the IMS registration complete
and progressing callbacks, allowing frameworks to be
notified of the radio access technology over which
IMS is registered.

Bug: 21902225
Change-Id: I271f2fca299585302a67d0f5476f6fac3e7099dd

8 years agoNAN: Disable all DBG flags.
Etan Cohen [Thu, 11 Feb 2016 22:57:00 +0000 (14:57 -0800)]
NAN: Disable all DBG flags.

Change-Id: Ib60cf3c9fd4c8dbf973e118d94340fbfd890a738

8 years agoProperly map EAP-GTC for TTLS
Paul Stewart [Sat, 16 Jan 2016 02:56:52 +0000 (18:56 -0800)]
Properly map EAP-GTC for TTLS

The "auth=GTC" method was never valid for the TTLS outer
authentication for wpa_supplicant.  Instead, to perform
GTC authentication within TTLS, we should use EAP-GTC.

This CL performs this mapping within WifiEnterpriseConfig.
It accomplishes this by making the EAP Method and Phase 2
Method parameters a part of the internal object state
instead of maintaining this value within the mFields
hashmap.

Further, the problematic "getFields" method is removed
since as this actually provided read/write access to the
entirety of the WifiEnterpriseConfig's internal state.
This was understandably suboptimal.  All callers have
been updated to either use getFieldValue() or to call
a newly added getSupplicantFields() / setSupplicantFields()
methods which make the WifiEnterpriseConfig object a sole
arbiter for the mapping between its internal state and
wpa_supplicant.

In the future it might be good to change this logic to
strip WifiEnterpriseConfig of all of the string hashmap
entirely, leaving WifiEnterpriseConfig as a "struct"
and move supplicant mappings to WifiConfigStore.

Bug:26400915
Test:runtest frameworks-wifi # New unit test in the same topic
Test:cts-tradefed run cts -d --class android.net.wifi.cts.WifiEnterpriseConfigTest
Change-Id: I1e09fb3f1f27b2ba844acbed14ec0f570e915b80

8 years agoMerge "WifiManager: Return empty scan list on remote exception" into mm-wireless-dev
Paul Stewart [Thu, 11 Feb 2016 20:01:18 +0000 (20:01 +0000)]
Merge "WifiManager: Return empty scan list on remote exception" into mm-wireless-dev

8 years agoWifiManager: Return empty scan list on remote exception
Paul Stewart [Thu, 11 Feb 2016 19:08:24 +0000 (11:08 -0800)]
WifiManager: Return empty scan list on remote exception

In the (hopefully rare) situation where there is a remote exception
from a call to getScanResults(), do not pass null back to callers.
Nobody expects this, and failures that occur as a result can distract
from the real problem (e.g., the system server crashing).  This CL
now returns an empty list.

BUG=27139097
TEST=None

Change-Id: I637eae1fa8ac1a1bc2b76dea8628359b5dec06e1

8 years agoMerge "New systemapi to mark a wifi network as metered." into mm-wireless-dev
Jeremy Joslin [Thu, 11 Feb 2016 15:03:52 +0000 (15:03 +0000)]
Merge "New systemapi to mark a wifi network as metered." into mm-wireless-dev

8 years agoUse IpManager.ifname as the tag in log messages.
Erik Kline [Thu, 11 Feb 2016 08:47:39 +0000 (17:47 +0900)]
Use IpManager.ifname as the tag in log messages.

Bug: 26991160
Change-Id: Idc9231819298b65da3cc3baa88f1f0cd18ab6df7

8 years agoNew systemapi to mark a wifi network as metered.
Jeremy Joslin [Wed, 10 Feb 2016 18:09:29 +0000 (10:09 -0800)]
New systemapi to mark a wifi network as metered.

The implementation will come after the wifi code base has stablized.

BUG:27120794
Change-Id: I6a8140dae45dcd7ec70ac0c51b9513b907a41b63

8 years agoMerge "Add OEM specific error code space which can by used to replace Generic errors...
Sanket Padawe [Thu, 11 Feb 2016 00:04:00 +0000 (00:04 +0000)]
Merge "Add OEM specific error code space which can by used to replace Generic errors." into mm-wireless-dev

8 years agoRemove REPORT_EVENT_CONTEXT_HUB gscan option
Mitchell Wills [Wed, 10 Feb 2016 21:35:04 +0000 (13:35 -0800)]
Remove REPORT_EVENT_CONTEXT_HUB gscan option

Since all scan results will now be reported to the context hub this flag
is no longer needed.

Change-Id: I21c157a31fe26169606f6f53e8e0ce44d57c5ca5

8 years agoMerge "Incorporate historical WifiStateMachine notions of provisioning." into mm...
Erik Kline [Wed, 10 Feb 2016 21:15:11 +0000 (21:15 +0000)]
Merge "Incorporate historical WifiStateMachine notions of provisioning." into mm-wireless-dev

8 years agoMerge "Enabled Network Policy Backup/Restore." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 19:37:17 +0000 (19:37 +0000)]
Merge "Enabled Network Policy Backup/Restore." into mm-wireless-dev

8 years agoIncorporate historical WifiStateMachine notions of provisioning.
Erik Kline [Wed, 3 Feb 2016 12:47:34 +0000 (21:47 +0900)]
Incorporate historical WifiStateMachine notions of provisioning.

Also: considerably expand logging capabilities.

Bug: 26991160
Change-Id: I36c3c1d2158ffd178e8ce163b8799d62938f39c7

8 years agoMerge "Enabling SoftAP Configuration Backup." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 17:48:31 +0000 (17:48 +0000)]
Merge "Enabling SoftAP Configuration Backup." into mm-wireless-dev

8 years agoExpose measurement results to interested callers.
Erik Kline [Wed, 3 Feb 2016 05:12:23 +0000 (14:12 +0900)]
Expose measurement results to interested callers.

With this it's possible for callers to:

    Network network = ...
    LinkProperties lp = ...

    NetworkDiagnostics netdiag = new NetworkDiagnostics(network, lp, 5000);
    netdiag.startMeasurements();
    netdiag.waitForMeasurements();

    boolean result = true;
    for (Measurement m : netdiag.getMeasurements()) {
        if (!m.checkSucceeded()) {
            result = false;
            // Additional error handling here.
        }
    }

    return result;

Bug: 21832299
Bug: 26780890
Change-Id: Iaf7ff029e2c6a998b574c23d0dcde8d57a467a22

8 years agoMerge "Add RSN Information Element ID" into mm-wireless-dev
Randy Pan [Tue, 9 Feb 2016 19:13:32 +0000 (19:13 +0000)]
Merge "Add RSN Information Element ID" into mm-wireless-dev

8 years agoMerge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev
Samuel Tan [Tue, 9 Feb 2016 18:18:04 +0000 (18:18 +0000)]
Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev

8 years agoAdd OEM specific error code space which can by used to replace Generic errors.
Sanket Padawe [Tue, 9 Feb 2016 18:02:02 +0000 (10:02 -0800)]
Add OEM specific error code space which can by used to replace Generic errors.

BUG=27038563

Change-Id: I125e083e0a3145ac09806a84ea8b53864c04dc22

8 years agoMerge "Fixed bad auto-generated method name." into mm-wireless-dev
Jan Nordqvist [Tue, 9 Feb 2016 17:24:20 +0000 (17:24 +0000)]
Merge "Fixed bad auto-generated method name." into mm-wireless-dev

8 years agoMerge "Enable RTT Responder Role (1/4)." into mm-wireless-dev
Wei Wang [Tue, 9 Feb 2016 01:07:33 +0000 (01:07 +0000)]
Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev

8 years agoEnabled Network Policy Backup/Restore.
Ritesh Reddy [Thu, 4 Feb 2016 18:33:30 +0000 (18:33 +0000)]
Enabled Network Policy Backup/Restore.

Added Backup Restore specific NetworkPolicySerializer
to NetworkPolicy Class and related classes.

Change-Id: I2a11e2afae8dd9e0ee0c3356e669a73f6a1361af

8 years agoEnabling SoftAP Configuration Backup.
Ritesh Reddy [Tue, 26 Jan 2016 19:40:48 +0000 (19:40 +0000)]
Enabling SoftAP Configuration Backup.

SoftAp Conf is backed up as a serialized WifiConfiguration
object.

Change-Id: Ib7f4d130600313a67b710b45df274e15f0baad24

8 years agoFix FrameworksServicesTests.apk to include libc++.so
Paul Jensen [Mon, 8 Feb 2016 02:55:45 +0000 (21:55 -0500)]
Fix FrameworksServicesTests.apk to include libc++.so

libc++.so is no longer accessible to the app, so it must be
bundled in the app. This should get ApfTest passing again.

Change-Id: Ide004cb84f7f50feffb8f5acb46b7001dcffd208

8 years agoMerge "IMS: Constants For Audio Quality, Supp. Services" into mm-wireless-dev
Tyler Gunn [Fri, 5 Feb 2016 22:13:32 +0000 (22:13 +0000)]
Merge "IMS: Constants For Audio Quality, Supp. Services" into mm-wireless-dev

8 years agoMerge "NAN: for failed configurations - added configuration which failed." into mm...
Etan Cohen [Fri, 5 Feb 2016 18:27:08 +0000 (18:27 +0000)]
Merge "NAN: for failed configurations - added configuration which failed." into mm-wireless-dev

8 years agoFixed bad auto-generated method name.
Jan Nordqvist [Thu, 4 Feb 2016 23:41:53 +0000 (15:41 -0800)]
Fixed bad auto-generated method name.

Change-Id: Ic60b0658f0b6a6e06dc9cf82299fe95bbd308972

8 years agoAdd RSN Information Element ID
Randy Pan [Thu, 4 Feb 2016 22:54:03 +0000 (14:54 -0800)]
Add RSN Information Element ID

Bug: 26908033
Change-Id: I9d7aa7642c51ea59a58e8facc8ad7af681c32b23