Merge "Change signalStrength to int."

This commit is contained in:
Hall Liu
2017-05-15 22:01:20 +00:00
committed by Gerrit Code Review
4 changed files with 15 additions and 13 deletions

View File

@@ -17,7 +17,6 @@
package android.telephony.mbms;
import android.net.Uri;
import android.telephony.SignalStrength;
import android.telephony.mbms.StreamingService;
/**
@@ -27,5 +26,5 @@ oneway interface IStreamingServiceCallback {
void error(int errorCode, String message);
void streamStateChanged(in StreamingService service, int state);
void uriUpdated(in Uri uri);
void signalStrengthUpdated(in SignalStrength signalStrength);
void broadcastSignalStrengthUpdated(int signalStrength);
}

View File

@@ -19,7 +19,6 @@ package android.telephony.mbms;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.telephony.SignalStrength;
/**
* @hide

View File

@@ -17,7 +17,6 @@
package android.telephony.mbms;
import android.net.Uri;
import android.telephony.SignalStrength;
/**
* A Callback class for use when the applicaiton is actively streaming content.
@@ -25,6 +24,15 @@ import android.telephony.SignalStrength;
*/
public class StreamingServiceCallback extends IStreamingServiceCallback.Stub {
/**
* Indicates broadcast signal strength is not available for this service.
*
* This may be due to the service no longer being available due to geography
* or timing (end of service) or because lack of demand has caused the service
* to be delivered via unicast.
*/
public static final int SIGNAL_STRENGTH_UNAVAILABLE = -1;
public void error(int errorCode, String message) {
// default implementation empty
@@ -51,19 +59,16 @@ public class StreamingServiceCallback extends IStreamingServiceCallback.Stub {
}
/**
* Signal Strength updated.
* Broadcast Signal Strength updated.
*
* This signal strength is the BROADCAST signal strength which,
* depending on technology in play and it's deployment, may be
* stronger or weaker than the traditional UNICAST signal
* strength.
*
* A {@link android.telephony.SignalStrength#getLevel} result of 0 means
* you don't have coverage for this stream, either due to geographic
* restrictions, poor tower coverage or something (yards of concrete?)
* interferring with the signal.
* strength. It a simple int from 0-4 for valid levels or
* {@link #SIGNAL_STRENGTH_UNAVAILABLE} if broadcast is not available
* for this service due to timing, geography or popularity.
*/
public void signalStrengthUpdated(SignalStrength signalStrength) {
public void broadcastSignalStrengthUpdated(int signalStrength) {
// default implementation empty
}
}

View File

@@ -21,7 +21,6 @@ import android.telephony.mbms.IMbmsStreamingManagerCallback;
import android.telephony.mbms.IStreamingServiceCallback;
import android.telephony.mbms.StreamingService;
import android.telephony.mbms.StreamingServiceInfo;
import android.telephony.SignalStrength;
/**
* The interface the opaque MbmsStreamingService will satisfy.