summaryrefslogtreecommitdiffstats
path: root/wifi/java
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2015-04-16 15:10:45 -0700
committerxinhe <xinhe@google.com>2015-04-16 15:34:00 -0700
commit7f61051949875edf4bfbf29b00ad6f2ede61d6cb (patch)
tree1f3aca7d5c6cc6d944ee6776c041abefca22fd52 /wifi/java
parentc8769de8316562d4f047413d1740ff5ef02b9d2d (diff)
downloadframeworks_base-7f61051949875edf4bfbf29b00ad6f2ede61d6cb.zip
frameworks_base-7f61051949875edf4bfbf29b00ad6f2ede61d6cb.tar.gz
frameworks_base-7f61051949875edf4bfbf29b00ad6f2ede61d6cb.tar.bz2
enable RTT capability exception
Bug:20299517 Change-Id: I497cc08b90f720d1717e107f93f75fda4212c8a8
Diffstat (limited to 'wifi/java')
-rw-r--r--wifi/java/android/net/wifi/RttManager.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/RttManager.java b/wifi/java/android/net/wifi/RttManager.java
index b156d0c..ca169f8 100644
--- a/wifi/java/android/net/wifi/RttManager.java
+++ b/wifi/java/android/net/wifi/RttManager.java
@@ -808,7 +808,7 @@ public class RttManager {
if (mRttCapabilities == null) {
if(getRttCapabilities() == null) {
Log.e(TAG, "Can not get RTT capabilities");
- //throw new IllegalStateException("RTT chip is not working");
+ throw new IllegalStateException("RTT chip is not working");
}
}
@@ -866,6 +866,15 @@ public class RttManager {
return true;
}
+ /**
+ * Request to start an RTT ranging
+ *
+ * @param params -- RTT request Parameters
+ * @param listener -- Call back to inform RTT result
+ * @exception throw IllegalArgumentException when params are illegal
+ * throw IllegalStateException when RttCapabilities do not exist
+ */
+
public void startRanging(RttParams[] params, RttListener listener) {
int index = 0;
for(RttParams rttParam : params) {