Skip to content

Commit 6ec0c6a

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Expose NO_SERVICE_REQUESTS error condition"
2 parents 661f362 + 232ebad commit 6ec0c6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13081,6 +13081,7 @@ package android.net.wifi.p2p {
1308113081
field public static final java.lang.String EXTRA_WIFI_P2P_DEVICE = "wifiP2pDevice";
1308213082
field public static final java.lang.String EXTRA_WIFI_P2P_INFO = "wifiP2pInfo";
1308313083
field public static final java.lang.String EXTRA_WIFI_STATE = "wifi_p2p_state";
13084+
field public static final int NO_SERVICE_REQUESTS = 3; // 0x3
1308413085
field public static final int P2P_UNSUPPORTED = 1; // 0x1
1308513086
field public static final java.lang.String WIFI_P2P_CONNECTION_CHANGED_ACTION = "android.net.wifi.p2p.CONNECTION_STATE_CHANGE";
1308613087
field public static final java.lang.String WIFI_P2P_DISCOVERY_CHANGED_ACTION = "android.net.wifi.p2p.DISCOVERY_STATE_CHANGE";

wifi/java/android/net/wifi/p2p/WifiP2pManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ public WifiP2pManager(IWifiP2pManager service) {
415415
/**
416416
* Passed with {@link ActionListener#onFailure}.
417417
* Indicates that the {@link #discoverServices} failed because no service
418-
* requests are set.
419-
* @hide
418+
* requests are added. Use {@link #addServiceRequest} to add a service
419+
* request.
420420
*/
421421
public static final int NO_SERVICE_REQUESTS = 3;
422422

0 commit comments

Comments
 (0)