summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2015-04-22 15:36:29 -0700
committerxin He <xinhe@google.com>2015-04-24 22:17:48 +0000
commitebc5ced56e474e48777194fd6ca349a6cedb1e6f (patch)
tree2522d5544df70ee3c385b14f359a26d7a72ed2aa
parente87e4f077c8f5dc8dc7b1b5cd68cbe8ca51f2396 (diff)
downloadframeworks_base-ebc5ced56e474e48777194fd6ca349a6cedb1e6f.zip
frameworks_base-ebc5ced56e474e48777194fd6ca349a6cedb1e6f.tar.gz
frameworks_base-ebc5ced56e474e48777194fd6ca349a6cedb1e6f.tar.bz2
No Permission check for WiFi RTT
Bug:19918231 Change-Id: I98aea756cc15683596096e46da48efe0737ae1d1
-rw-r--r--api/system-current.txt1
-rw-r--r--wifi/java/android/net/wifi/RttManager.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/api/system-current.txt b/api/system-current.txt
index 21a1f7f..d94bdcb 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -19306,6 +19306,7 @@ package android.net.wifi {
field public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd
field public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc
field public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe
+ field public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb
field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff
field public static final int RTT_BW_10_SUPPORT = 2; // 0x2
field public static final int RTT_BW_160_SUPPORT = 32; // 0x20
diff --git a/wifi/java/android/net/wifi/RttManager.java b/wifi/java/android/net/wifi/RttManager.java
index d2fb0dd..dde8dba 100644
--- a/wifi/java/android/net/wifi/RttManager.java
+++ b/wifi/java/android/net/wifi/RttManager.java
@@ -134,6 +134,8 @@ public class RttManager {
public static final int REASON_NOT_AVAILABLE = -2;
public static final int REASON_INVALID_LISTENER = -3;
public static final int REASON_INVALID_REQUEST = -4;
+ /** Do not have required permission */
+ public static final int REASON_PERMISSION_DENIED = -5;
public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description";