Merge "API Review: ServiceState.isSearching documentation" am: ec5c5b57ef
Change-Id: I880f5198b4f81ba5eba98d64df0b2ac7bde8724b
This commit is contained in:
@@ -2046,11 +2046,18 @@ public class ServiceState implements Parcelable {
|
|||||||
public boolean isIwlanPreferred() {
|
public boolean isIwlanPreferred() {
|
||||||
return mIsIwlanPreferred;
|
return mIsIwlanPreferred;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @return {@code true}Returns True whenever the modem is searching for service.
|
|
||||||
* To check both CS and PS domain
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This indicates whether the device is searching for service.
|
||||||
|
*
|
||||||
|
* This API reports the modem searching status for
|
||||||
|
* {@link AccessNetworkConstants#TRANSPORT_TYPE_WWAN} (cellular) service in either
|
||||||
|
* {@link NetworkRegistrationInfo#DOMAIN_CS} or {@link NetworkRegistrationInfo#DOMAIN_PS}.
|
||||||
|
* This API will not report searching status for
|
||||||
|
* {@link AccessNetworkConstants#TRANSPORT_TYPE_WLAN}.
|
||||||
|
*
|
||||||
|
* @return {@code true} whenever the modem is searching for service.
|
||||||
|
*/
|
||||||
public boolean isSearching() {
|
public boolean isSearching() {
|
||||||
NetworkRegistrationInfo psRegState = getNetworkRegistrationInfo(
|
NetworkRegistrationInfo psRegState = getNetworkRegistrationInfo(
|
||||||
NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
|
NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
|
||||||
|
|||||||
Reference in New Issue
Block a user