Skip to content

Commit 75e91f7

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Add network service discovery broadcast"
2 parents 66e69db + 6c07ba8 commit 75e91f7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/current.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12485,10 +12485,14 @@ package android.net.nsd {
1248512485
method public void resolveService(android.net.nsd.NsdManager.Channel, java.lang.String, java.lang.String, android.net.nsd.NsdManager.DnsSdResolveListener);
1248612486
method public void stopServiceDiscovery(android.net.nsd.NsdManager.Channel, android.net.nsd.NsdManager.ActionListener);
1248712487
method public void unregisterService(android.net.nsd.NsdManager.Channel, int, android.net.nsd.NsdManager.ActionListener);
12488+
field public static final java.lang.String ACTION_NSD_STATE_CHANGED = "android.net.nsd.STATE_CHANGED";
1248812489
field public static final int ALREADY_ACTIVE = 3; // 0x3
1248912490
field public static final int BUSY = 2; // 0x2
1249012491
field public static final int ERROR = 0; // 0x0
12492+
field public static final java.lang.String EXTRA_NSD_STATE = "nsd_state";
1249112493
field public static final int MAX_REGS_REACHED = 4; // 0x4
12494+
field public static final int NSD_STATE_DISABLED = 1; // 0x1
12495+
field public static final int NSD_STATE_ENABLED = 2; // 0x2
1249212496
field public static final int UNSUPPORTED = 1; // 0x1
1249312497
}
1249412498

core/java/android/net/nsd/NsdManager.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,9 @@ public class NsdManager {
141141
* information as int.
142142
*
143143
* @see #EXTRA_NSD_STATE
144-
* @hide
145144
*/
146145
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
147-
public static final String NSD_STATE_CHANGED_ACTION =
146+
public static final String ACTION_NSD_STATE_CHANGED =
148147
"android.net.nsd.STATE_CHANGED";
149148

150149
/**
@@ -153,23 +152,20 @@ public class NsdManager {
153152
*
154153
* @see #NSD_STATE_DISABLED
155154
* @see #NSD_STATE_ENABLED
156-
* @hide
157155
*/
158156
public static final String EXTRA_NSD_STATE = "nsd_state";
159157

160158
/**
161159
* Network service discovery is disabled
162160
*
163161
* @see #NSD_STATE_CHANGED_ACTION
164-
* @hide
165162
*/
166163
public static final int NSD_STATE_DISABLED = 1;
167164

168165
/**
169166
* Network service discovery is enabled
170167
*
171168
* @see #NSD_STATE_CHANGED_ACTION
172-
* @hide
173169
*/
174170
public static final int NSD_STATE_ENABLED = 2;
175171

0 commit comments

Comments
 (0)