/cts/tests/tests/telephony/src/android/telephony/cts/ |
ServiceStateTest.java | 19 import android.telephony.ServiceState; 28 ServiceState serviceState = new ServiceState(); 30 assertEquals(0, serviceState.describeContents()); 32 serviceState.setStateOff(); 33 assertEquals(ServiceState.STATE_POWER_OFF, serviceState.getState()); 34 checkOffStatus(serviceState); 36 serviceState.setStateOutOfService() [all...] |
PhoneStateListenerTest.java | 24 import android.telephony.ServiceState; 93 public void onServiceStateChanged(ServiceState serviceState) {
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
CreateConnectionTimeout.java | 27 import android.telephony.ServiceState; 105 public void onServiceStateChanged(ServiceState serviceState) { 106 long timeoutLengthMillis = getTimeoutLengthMillis(serviceState); 111 } else if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { 135 private long getTimeoutLengthMillis(ServiceState serviceState) { 138 if (serviceState.getState() == ServiceState.STATE_POWER_OFF) [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
EmergencyCallHelper.java | 27 import android.telephony.ServiceState; 73 onServiceStateChanged((ServiceState) ((AsyncResult) msg.obj).result); 152 private void onServiceStateChanged(ServiceState state) { 180 private boolean isOkToCall(int serviceState, PhoneConstants.State phoneState) { 184 || (serviceState == ServiceState.STATE_IN_SERVICE) 185 || (serviceState == ServiceState.STATE_EMERGENCY_ONLY)) || 189 serviceState == ServiceState.STATE_OUT_OF_SERVICE) [all...] |
TelecomAccountRegistry.java | 28 import android.telephony.ServiceState; 189 public void onServiceStateChanged(ServiceState serviceState) { 190 int newState = serviceState.getState(); 191 if (newState == ServiceState.STATE_IN_SERVICE && mServiceState != newState) { 205 private int mServiceState = ServiceState.STATE_POWER_OFF;
|
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputManagerService.java | 287 ServiceState serviceState = userState.serviceStateMap.get(component); 288 if (serviceState == null) { 290 // prepare the ServiceState object so that we can connect to the service and 292 serviceState = new ServiceState(component, userId); 293 userState.serviceStateMap.put(component, serviceState); 296 inputList.addAll(serviceState.inputList); 341 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()) [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
IPhoneStateListener.aidl | 20 import android.telephony.ServiceState; 29 void onServiceStateChanged(in ServiceState serviceState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetPhoneState.java | 21 import android.telephony.ServiceState; 39 private ServiceState mServiceState; 233 public void onServiceStateChanged(ServiceState serviceState) { 235 mServiceState = serviceState; 236 mService = (serviceState.getState() == ServiceState.STATE_IN_SERVICE) ? 239 setRoam(serviceState.getRoaming() ? HeadsetHalConstants.SERVICE_TYPE_ROAMING 318 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 || 320 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A)) [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 34 import android.telephony.ServiceState; 277 private void updateServiceState(ServiceState serviceState) { 278 final int state = serviceState.getState(); 282 case ServiceState.STATE_IN_SERVICE: 285 case ServiceState.STATE_OUT_OF_SERVICE: 286 case ServiceState.STATE_EMERGENCY_ONLY: 289 case ServiceState.STATE_POWER_OFF: 296 if (serviceState.getRoaming()) { 301 setSummaryText(KEY_OPERATOR_NAME, serviceState.getOperatorAlphaLong()) [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneStateListener.java | 28 import android.telephony.ServiceState; 67 * @see ServiceState 278 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj); 337 * @see ServiceState#STATE_EMERGENCY_ONLY 338 * @see ServiceState#STATE_IN_SERVICE 339 * @see ServiceState#STATE_OUT_OF_SERVICE 340 * @see ServiceState#STATE_POWER_OFF 342 public void onServiceStateChanged(ServiceState serviceState) { 349 * @see ServiceState#STATE_EMERGENCY_ONL [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastReceiver.java | 30 import android.telephony.ServiceState; 58 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras()); 59 int newState = serviceState.getState(); 61 Log.d(TAG, "Service state changed! " + newState + " Full: " + serviceState + 64 if (((newState == ServiceState.STATE_IN_SERVICE) || 65 (newState == ServiceState.STATE_EMERGENCY_ONLY)) &&
|
/packages/services/Telephony/src/com/android/phone/ |
EmergencyCallHelper.java | 33 import android.telephony.ServiceState; 192 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result; 204 boolean okToCall = (state.getState() == ServiceState.STATE_IN_SERVICE) 205 || (state.getState() == ServiceState.STATE_EMERGENCY_ONLY); 269 int serviceState = mCM.getDefaultPhone().getServiceState().getState(); 271 + ", service state " + serviceState 288 if (serviceState != ServiceState.STATE_POWER_OFF) {
|
NotificationMgr.java | 39 import android.telephony.ServiceState; 589 * @param serviceState Phone service state 591 void updateNetworkSelection(int serviceState) { 608 serviceState + " new network " + networkSelection); 610 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE 624 serviceState + " not updating network due to invalid subId " + subId);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CallManager.java | 32 import android.telephony.ServiceState; 318 int resultState = ServiceState.STATE_OUT_OF_SERVICE; 321 int serviceState = phone.getServiceState().getState(); 322 if (serviceState == ServiceState.STATE_IN_SERVICE) { 324 resultState = serviceState; 326 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { 329 if ( resultState == ServiceState.STATE_EMERGENCY_ONLY || 330 resultState == ServiceState.STATE_POWER_OFF) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneBase.java | 29 import android.telephony.ServiceState; 137 public ServiceState getServiceState() { 140 ServiceState s = new ServiceState(); 141 s.setState(ServiceState.STATE_IN_SERVICE); 233 void notifyServiceStateChanged(ServiceState ss) { 243 int serviceState = getServiceState().getState(); 244 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); 245 if (serviceState == ServiceState.STATE_POWER_OFF) return false [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhoneBase.java | 29 import android.telephony.ServiceState; 105 public ServiceState getServiceState() { 108 ServiceState s = new ServiceState(); 109 s.setState(ServiceState.STATE_IN_SERVICE); 196 void notifyServiceStateChanged(ServiceState ss) { 206 int serviceState = getServiceState().getState(); 207 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); 208 if (serviceState == ServiceState.STATE_POWER_OFF) return false [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaConnection.java | 33 import android.telephony.ServiceState; 379 int serviceState = phone.getServiceState().getState(); 384 if (serviceState == ServiceState.STATE_POWER_OFF) { 386 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE 387 || serviceState == ServiceState.STATE_EMERGENCY_ONLY) {
|
CdmaCallTracker.java | 27 import android.telephony.ServiceState; 372 int serviceState = mPhone.getServiceState().getState(); 376 ret = (serviceState != ServiceState.STATE_POWER_OFF) 386 "((serviceState=%d) != ServiceState.STATE_POWER_OFF)::=%s\n" + 393 serviceState, 394 serviceState != ServiceState.STATE_POWER_OFF, [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmConnection.java | 29 import android.telephony.ServiceState; 346 int serviceState = phone.getServiceState().getState(); 350 if (serviceState == ServiceState.STATE_POWER_OFF) { 352 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE 353 || serviceState == ServiceState.STATE_EMERGENCY_ONLY ) {
|
GsmCallTracker.java | 27 import android.telephony.ServiceState; 321 int serviceState = mPhone.getServiceState().getState(); 325 ret = (serviceState != ServiceState.STATE_POWER_OFF) [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
ComprehensiveCountryDetector.java | 26 import android.telephony.ServiceState; 118 * Number of {@link PhoneStateListener#onServiceStateChanged(ServiceState state)} events that 124 * Total number of {@link PhoneStateListener#onServiceStateChanged(ServiceState state)} events 439 public void onServiceStateChanged(ServiceState serviceState) { 446 if (DEBUG) Slog.d(TAG, "onServiceStateChanged: " + serviceState.getState());
|
/packages/apps/Settings/src/com/android/settings/ |
RadioInfo.java | 37 import android.telephony.ServiceState; 442 return phone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; 469 if ((ServiceState.STATE_OUT_OF_SERVICE == state) || 470 (ServiceState.STATE_POWER_OFF == state)) { 579 ServiceState serviceState = mPhoneStateReceiver.getServiceState(); 580 int state = serviceState.getState(); 585 case ServiceState.STATE_IN_SERVICE: 588 case ServiceState.STATE_OUT_OF_SERVICE: 589 case ServiceState.STATE_EMERGENCY_ONLY [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiverService.java | 47 import android.telephony.ServiceState; 234 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras()); 235 if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
AdapterService.java | 579 Integer serviceState = mProfileServicesState.get(serviceName); 580 if(serviceState != null && serviceState != expectedCurrentState) { 584 + ". Invalid state: " + serviceState); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalActions.java | 55 import android.telephony.ServiceState; [all...] |