OSDN Git Service
Ajay Nambi [Sat, 19 Mar 2016 16:22:25 +0000 (09:22 -0700)]
Ril Error codes: Voice related messages
This change adds new error codes for messages
related to voice
Bug:
27038563
Change-Id: Id3a212c0b12e1feb26b0836fad3f9399d6dec19c
Pavel Zhamaitsiak [Sat, 19 Mar 2016 00:24:16 +0000 (00:24 +0000)]
Merge "ims:rcs: Add UCE interface files for RCS. [DO NOT MERGE]" into mm-wireless-dev
Dheeraj Shetty [Thu, 17 Mar 2016 17:15:00 +0000 (10:15 -0700)]
ims:rcs: Add UCE interface files for RCS. [DO NOT MERGE]
Change-Id: I2ce9e60240740acfe70c4a239163fbdbedbd96e0
Jeremy Joslin [Thu, 17 Mar 2016 03:07:30 +0000 (20:07 -0700)]
Add a meteredHint to ScoredNetwork.
API changes to allow a meteredHint to be passed
from a network scorer through to the wifi subsystem.
BUG:
27702356
Change-Id: Ic466852d855af54c1754c4663388f24f54ed0691
Etan Cohen [Tue, 15 Mar 2016 01:06:46 +0000 (18:06 -0700)]
[NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT MERGE]
Bug:
27257965
Change-Id: I4d7eaa6fa1f089bed2e9185f59a37f59b530975d
Etan Cohen [Fri, 11 Mar 2016 20:50:56 +0000 (12:50 -0800)]
[NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]
All events dispatched by default - there's no reason to ignore events.
The specific identity changed events for which there are use-cases to
get or ignore is controlled through a new configuration.
Bug:
27607613
Change-Id: I289a36157b55270c58311a016ef79f8746e0e0a0
Etan Cohen [Fri, 11 Mar 2016 19:25:23 +0000 (11:25 -0800)]
[NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]
Merge onPublishFail & onSubscribeFail into onSessionConfigFail.
Merge onPublishTerminated & onSubscribeTerminated into onSessionTerminated.
A session is either publish or subscribe (never the two) so redundant.
Bug:
27610709
Change-Id: I0282d17db88754428da25ee5f064b9a4805f9736
Etan Cohen [Fri, 11 Mar 2016 18:14:21 +0000 (10:14 -0800)]
[NAN] Replace session callback configuration control [DO NOT MERGE]
Controlling session callback invocation:
- Remove event registration
- Add configurations to the subset (actually just termination) which
can be configured through the HAL
Bug:
27607613
Change-Id: I608314cc2a9b077b4d5a2d2d0d315d55c6a7724b
Etan Cohen [Wed, 9 Mar 2016 19:16:45 +0000 (11:16 -0800)]
[NAN] Expose match style configuration as public API. [DO NOT MERGE]
Match style allows apps to configure getting a single notification
or continuous notifications (for all matches).
Bug:
27568256
Change-Id: I9b7bd2e4e58af5c73188267d11c1288a93cf64ed
Tyler Gunn [Mon, 14 Mar 2016 23:06:11 +0000 (16:06 -0700)]
DO NOT MERGE Add KEY_USE_RCS_PRESENCE_BOOL carrier config option.
- New carrier config option is used to determine if presence is used
to determine whether a contact is capable of video calling.
- Also, improve logging for PhoneAccount capabilities.
Bug:
20257833
Change-Id: Ifcc7df95677eb4399f08eb8849c4004892957e90
Ajay Nambi [Fri, 11 Mar 2016 20:05:25 +0000 (12:05 -0800)]
New error codes for SMS/other messages
This change adds error codes for messages related
to SMS and set_mute, get_mute requests
Bug:
27038563
Change-Id: I9b989ae8b99da5e24f4f698f34f2c35b2a48ecbd
Paul Stewart [Mon, 14 Mar 2016 14:13:34 +0000 (14:13 +0000)]
Merge "WifiManager: Remove static objects" into mm-wireless-dev
Sanket Padawe [Fri, 11 Mar 2016 17:50:56 +0000 (09:50 -0800)]
Fix build failure.
+ Fix build failure caused by
https://partner-android-review.googlesource.com/#/c/538910/
Change-Id: I83b579f3db4c5a167b206318edcc627c6d2f4b0a
Sanket Padawe [Fri, 11 Mar 2016 17:31:55 +0000 (17:31 +0000)]
Merge "Add RIL Error code list" into mm-wireless-dev
twen.chang [Fri, 4 Mar 2016 10:25:25 +0000 (18:25 +0800)]
Add RIL Error code list
BUG:
27589497
Change-Id: Ib8d7e0ff13f72106b79210ea786020c17b0ba842
Paul Stewart [Thu, 25 Feb 2016 07:27:03 +0000 (23:27 -0800)]
WifiManager: Remove static objects
Thanks to b/
24334032, we know that there can be more than one
WifiManager object per process. Also, due to b/
19159232 we know
that holding static references to contexts within WifiManager is
not okay. This CL addresses both issues by correctly implementing
Wifimanager as the per-context CachedService as it is instantiated
in SystemServiceRegistry.
To do this, all previously static object members of WifiManager
are converted to non-static. This is primarily safe since:
- In processes which only instantiated WifiManager from a single
context, the behavior is functionally identical between the
static and non-static implementation.
- In situations where multiple WifiManager objects were created,
this is not a real issue:
+ sListenerKey is okay to be tracked per-instance since it
only tracks replies for asynchronous outgoing calls for a
single WifiManager instance (replies are not multicast to
all instances within a pid, since replies from
WifiServiceImpl are addressed to the other end of the
AsyncConnection the request message came from).
+ The same is true of sListenerMap and sListenerMapLock
+ Having a per-WifiManager-instance mAsyncChannel is at worst
a small linear increase with the number of contexts that
use WifiManager, but for the vast majority of processes will
not be an increase at all.
+ Having a thread per WifiManager is something that has been
brought up in the past (b/
25644527 comes to mind). I think
we should continue to track that particular problem there.
One static was added: an sServiceHandlerDispatchLock which ensures
that listeners from multiple ServiceHandler threads will be called
sequentially instead of interleaved. Since ServiceHandler was
previously static, this preserves the behavior where multiple
WifiManager objects would not deliver callbacks in parallel.
BUG=
19159232
BUG=
24334032
Change-Id: I24125a285f97e0c5b3ca4fd721ba8ed19aa245e9
Glen Kuhne [Tue, 8 Mar 2016 16:48:35 +0000 (16:48 +0000)]
Merge "Added EIDs for ERP, Supported & Extended Rates" into mm-wireless-dev
Roshan Pius [Mon, 7 Mar 2016 22:44:08 +0000 (22:44 +0000)]
Merge "WifiScanner: Add hidden networkIds in scan setting" into mm-wireless-dev
Lorenzo Colitti [Tue, 1 Mar 2016 03:55:58 +0000 (12:55 +0900)]
DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.
Cherry-picked from
531a34430072b9296aaeb47d9e7d04326a93fee4
Bug:
19159232
Change-Id: Ic366b53259ee5944a8e864876425a6558c0a7216
Glen Kuhne [Tue, 1 Mar 2016 22:32:28 +0000 (14:32 -0800)]
Added EIDs for ERP, Supported & Extended Rates
Added EIs to InformationElement to support the parsing of Supported
Rates, Extended Supported Rates, and ERP.
BUG=
25691077
Change-Id: Ie540e94f9aa0dca11c3b1d6a46c5a638ec958cff
Roshan Pius [Sat, 5 Mar 2016 01:33:17 +0000 (17:33 -0800)]
WifiScanner: Add hidden networkIds in scan setting
Add the hidden networkId list in scan settings to be used for
connectivity scans.
BUG:
27503786
Change-Id: Ibe7eaccd84d03a7b48728e3ea1d98ccc974377ec
TEST: Compiles & unit-test passes
Roshan Pius [Tue, 1 Mar 2016 21:18:41 +0000 (13:18 -0800)]
WifiScanner: Add PNO public API
Add the public interface for starting/stopping PNO scan.
This is the internal flow that is going to be used for PNO scan:
1. Set Pno list
2. Start background scan
This flow will not work as is for supplicant, since background scan is
done manually today. So, we'll need a flag to indicate that this
background scan is targetted for PNO.
BUG:
27167559
Change-Id: I3f6921c5d03f7d9e8ad1847e57e12fb38df6c9c9
TEST: Compiles & unit-test passes
Tyler Gunn [Fri, 4 Mar 2016 03:00:27 +0000 (03:00 +0000)]
Merge "IMS-VT: Disable multi tasking by default" into mm-wireless-dev
Omkar Kolangade [Tue, 22 Dec 2015 15:37:04 +0000 (21:07 +0530)]
IMS-VT: Disable multi tasking by default
Disable multi tasking support by default for all operators.
Enable based on MCC/MNC for required oeprators.
Bug:
27484483
Change-Id: Ib321747885435c110360370eb243eee35762dfe3
Mukesh Agrawal [Thu, 3 Mar 2016 21:15:18 +0000 (21:15 +0000)]
Merge "WifiConfiguration: show more detail in toString()" into mm-wireless-dev
Jeremy Joslin [Thu, 3 Mar 2016 16:49:27 +0000 (16:49 +0000)]
Merge "Revert "New systemapi to mark a wifi network as metered."" into mm-wireless-dev
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
Lorenzo Colitti [Thu, 3 Mar 2016 08:17:29 +0000 (17:17 +0900)]
Support 464xlat on Ethernet.
Bug:
26991160
Change-Id: I848c9e86e1ed337e95cfddda46723a9a1dcaed30
Mukesh Agrawal [Thu, 3 Mar 2016 03:09:23 +0000 (03:09 +0000)]
Merge "add configuration knob for WifiLogger ringbuffers" into mm-wireless-dev
mukesh agrawal [Thu, 3 Mar 2016 00:33:33 +0000 (16:33 -0800)]
WifiConfiguration: show more detail in toString()
When debugging WiFi issues, it's helpful to know whether
or not a network uses a hidden SSID. Update
WifiConfiguration.toString(), to provide this information.
BUG=
26836097
TEST=capture bugreport, verify "HIDDEN: false" is present for normal net
TEST=capture bugreport, verify "HIDDEN: true" is present for hidden net
Change-Id: I1f7c587fc2eda358e0868e9a7ef0bb2058e726a8
Jeremy Joslin [Wed, 2 Mar 2016 22:16:27 +0000 (22:16 +0000)]
Revert "New systemapi to mark a wifi network as metered."
This reverts commit
7a598d3d800fc47b7c2f9300411edc0ef06da493.
Change-Id: Ib6b9081ee4ded7582fb90d7a9066de95ab221f61
Erik Kline [Mon, 29 Feb 2016 07:00:01 +0000 (16:00 +0900)]
Add 464xlat notification callback
Bug:
26238390
Bug:
26991160
Change-Id: I556e779c642d19cd8d26637dd98055157d005f77
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
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
Tyler Gunn [Mon, 29 Feb 2016 18:06:25 +0000 (18:06 +0000)]
Merge "IMS Connection Capabilities Update" into mm-wireless-dev
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
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
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
Pavel Zhamaitsiak [Thu, 25 Feb 2016 19:43:31 +0000 (19:43 +0000)]
Merge "Add registrationAssociatedUriChanged to ImsRegistrationListener" into mm-wireless-dev
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
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
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
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
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
Pierre Imai [Wed, 24 Feb 2016 04:49:24 +0000 (04:49 +0000)]
Merge "Add Connectivity Metrics Logger service" into mm-wireless-dev
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
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
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
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
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
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
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
Lorenzo Colitti [Tue, 23 Feb 2016 07:43:39 +0000 (07:43 +0000)]
Merge "Add a unit test for MessageUtils." 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
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`
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
Erik Kline [Thu, 18 Feb 2016 11:06:02 +0000 (20:06 +0900)]
Delete all NetworkUtils DHCP-related code.
Bug:
26991160
Change-Id: I2c74e0161f43f65c1b6a85dc9f294b64c8f1ae6e
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
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
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
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
Glen Kuhne [Fri, 19 Feb 2016 21:35:09 +0000 (21:35 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
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
Mitchell Wills [Fri, 19 Feb 2016 18:13:58 +0000 (18:13 +0000)]
Merge "Fix FastXmlSerializerTest" 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
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
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
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
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
Wei Wang [Wed, 17 Feb 2016 07:38:41 +0000 (23:38 -0800)]
Disallow duplicate listeners for WifiScanner.
Bug:
26663377
Change-Id: I2eea0fd3532c45f493aad7c0d5c28bda07f5bfed
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
Mitchell Wills [Fri, 19 Feb 2016 07:43:30 +0000 (23:43 -0800)]
Fix FastXmlSerializerTest
Change-Id: Ie984abae588927e65bdeffa5a6f5c58bd6ba0bf1
Mitchell Wills [Fri, 19 Feb 2016 07:37:14 +0000 (23:37 -0800)]
Remove AsyncChannelTest because it does not test anything
Change-Id: I7d3fe580a8c32ef3bd10895b51a7fc436f79919f
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
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
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
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
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
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
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
Wei Wang [Thu, 18 Feb 2016 21:07:43 +0000 (13:07 -0800)]
Add Java API for secure RTT protocol.
Change-Id: I1c012f9e92e8b2af332524363f8f0c9921bf4bb5
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
Erik Kline [Thu, 18 Feb 2016 09:15:26 +0000 (18:15 +0900)]
Add Protocol.BASE_ETHERNET
Change-Id: I4e51370c0b53d9902eea8aae409f9f7cffaf28ad
Erik Kline [Thu, 18 Feb 2016 03:40:11 +0000 (12:40 +0900)]
{,Base}DhcpStateMachine is no more
Bug:
26991160
Change-Id: I21f8c30627bf2a7fbcd5b4d5f1f1ad1a2dda759b
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
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
Erik Kline [Wed, 17 Feb 2016 12:44:25 +0000 (21:44 +0900)]
Remove references to BaseDhcpStateMachine and DhcpStateMachine
Bug:
26991160
Change-Id: I3742780a4e5121c163d9d1380951e25edaba19f3
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
Nathan Harold [Wed, 17 Feb 2016 00:44:12 +0000 (00:44 +0000)]
Merge "Create BandMode Constants" 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
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
Bartosz Fabianowski [Mon, 15 Feb 2016 09:56:52 +0000 (09:56 +0000)]
Merge "Remove wifiConfiguration.isVisibleToUser()" into mm-wireless-dev
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
Nathan Harold [Fri, 12 Feb 2016 18:02:04 +0000 (10:02 -0800)]
Create BandMode Constants
Bug:
27145805
Change-Id: I733026268600f504325bc92061ee830d1448bbf5
Peter Qiu [Fri, 12 Feb 2016 00:45:44 +0000 (16:45 -0800)]
WifiConfiguration: add constants for radio band
Change-Id: I2287ffb3d93351d73659327cef37a6d3ecd588b3
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
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
Paul Stewart [Fri, 12 Feb 2016 16:07:18 +0000 (16:07 +0000)]
Merge "Properly map EAP-GTC for TTLS" into mm-wireless-dev
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
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