diff options
author | xinhe <xinhe@google.com> | 2015-04-16 15:10:45 -0700 |
---|---|---|
committer | xinhe <xinhe@google.com> | 2015-04-16 15:34:00 -0700 |
commit | 7f61051949875edf4bfbf29b00ad6f2ede61d6cb (patch) | |
tree | 1f3aca7d5c6cc6d944ee6776c041abefca22fd52 /wifi/java | |
parent | c8769de8316562d4f047413d1740ff5ef02b9d2d (diff) | |
download | frameworks_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.java | 11 |
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) { |