/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...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
TelephonyEvents.java | 23 import android.telephony.ServiceState; 208 private ServiceState mServiceState; 210 ServiceStateEvent(ServiceState serviceState, int subscriptionId) { 211 mServiceState = serviceState; 214 serviceState.getState()); 217 serviceState.isEmergencyOnly()) { 226 public ServiceState getServiceState() { 231 JSONObject serviceState = new JSONObject(); 233 serviceState.put [all...] |
TelephonyStateListeners.java | 25 import android.telephony.ServiceState; 208 public void onServiceStateChanged(ServiceState serviceState) { 211 serviceState, subscriptionId));
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneStateListenerTest.java | 20 import android.telephony.ServiceState; 42 public void onServiceStateChanged(ServiceState serviceState) { 44 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); 45 mServiceState.setDataRegState(serviceState.getDataRegState()); 72 ServiceState ss = new ServiceState(); 73 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); 74 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); 80 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE) [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
EmergencyCallStateListener.java | 23 import android.telephony.ServiceState; 73 onServiceStateChanged((ServiceState) ((AsyncResult) msg.obj).result); 145 private void onServiceStateChanged(ServiceState state) { 173 private boolean isOkToCall(int serviceState) { 182 int serviceState = mPhone.getServiceState().getState(); 184 mPhone.getState(), serviceState, mNumRetriesSoFar); 192 if (isOkToCall(serviceState)) {
|
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputManagerService.java | 284 ServiceState serviceState = userState.serviceStateMap.get(component); 285 if (serviceState == null) { 286 // New hardware input found. Create a new ServiceState and connect to the 288 serviceState = new ServiceState(component, userId); 289 userState.serviceStateMap.put(component, serviceState); 292 inputList.addAll(serviceState.hardwareInputMap.values()); 338 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()) [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
VvmPhoneStateListener.java | 21 import android.telephony.ServiceState; 48 public void onServiceStateChanged(ServiceState serviceState) { 58 int state = serviceState.getState(); 60 || (state != ServiceState.STATE_IN_SERVICE 61 && mPreviousState != ServiceState.STATE_IN_SERVICE)) { 70 if (state == ServiceState.STATE_IN_SERVICE) {
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
ConnectivityUtil.java | 25 import android.telephony.ServiceState; 31 private volatile int mCurrentServiceState = ServiceState.STATE_POWER_OFF; 43 public void onPhoneStateChanged(final Context context, int serviceState); 61 public void onServiceStateChanged(final ServiceState serviceState) { 62 if (mCurrentServiceState != serviceState.getState()) { 63 mCurrentServiceState = serviceState.getState(); 71 ServiceState.STATE_OUT_OF_SERVICE : ServiceState.STATE_IN_SERVICE; 75 private void onPhoneStateChanged(final int serviceState) { [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
IPhoneStateListener.aidl | 20 import android.telephony.ServiceState; 29 void onServiceStateChanged(in ServiceState serviceState);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
TelephonyMetrics.java | 42 import android.telephony.ServiceState; 346 + "(" + event.serviceState.dataRat + ")"); 369 + "(" + event.serviceState.dataRat + ")"); 581 * @param serviceState Service state 584 private TelephonyServiceState toServiceStateProto(ServiceState serviceState) { 587 ssProto.voiceRoamingType = serviceState.getVoiceRoamingType(); 588 ssProto.dataRoamingType = serviceState.getDataRoamingType(); 592 if (serviceState.getVoiceOperatorAlphaLong() != null) { 593 ssProto.voiceOperator.alphaLong = serviceState.getVoiceOperatorAlphaLong() [all...] |
SmsSessionEventBuilder.java | 63 mEvent.serviceState = state;
|
CallSessionEventBuilder.java | 100 mEvent.serviceState = state;
|
TelephonyEventBuilder.java | 56 mEvent.serviceState = state;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 37 import android.telephony.ServiceState; 316 private void updateServiceState(ServiceState serviceState) { 317 final int state = serviceState.getState(); 321 case ServiceState.STATE_IN_SERVICE: 324 case ServiceState.STATE_OUT_OF_SERVICE: 327 case ServiceState.STATE_EMERGENCY_ONLY: 332 case ServiceState.STATE_POWER_OFF: 341 if (serviceState.getRoaming()) { 346 setSummaryText(KEY_OPERATOR_NAME, serviceState.getOperatorAlphaLong()) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetPhoneState.java | 25 import android.telephony.ServiceState; 45 private ServiceState mServiceState; 262 public void onServiceStateChanged(ServiceState serviceState) { 263 mServiceState = serviceState; 264 int newService = (serviceState.getState() == ServiceState.STATE_IN_SERVICE) ? 267 int newRoam = serviceState.getRoaming() ? HeadsetHalConstants.SERVICE_TYPE_ROAMING 377 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 || 379 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A)) [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneStateListener.java | 57 * @see ServiceState 309 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj); 377 * @see ServiceState#STATE_EMERGENCY_ONLY 378 * @see ServiceState#STATE_IN_SERVICE 379 * @see ServiceState#STATE_OUT_OF_SERVICE 380 * @see ServiceState#STATE_POWER_OFF 382 public void onServiceStateChanged(ServiceState serviceState) { 389 * @see ServiceState#STATE_EMERGENCY_ONLY 390 * @see ServiceState#STATE_IN_SERVIC [all...] |
/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 | 45 import android.telephony.ServiceState; 603 * @param serviceState Phone service state 606 void updateNetworkSelection(int serviceState, int subId) { 625 serviceState + " new network " + networkSelection); 627 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE 639 serviceState + " not updating network due to invalid subId " + subId);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CallManager.java | 31 import android.telephony.ServiceState; 280 int resultState = ServiceState.STATE_OUT_OF_SERVICE; 283 int serviceState = phone.getServiceState().getState(); 284 if (serviceState == ServiceState.STATE_IN_SERVICE) { 286 resultState = serviceState; 288 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { 291 if ( resultState == ServiceState.STATE_EMERGENCY_ONLY || 292 resultState == ServiceState.STATE_POWER_OFF) [all...] |
/packages/apps/Settings/src/com/android/settings/network/ |
MobileNetworkPreferenceController.java | 24 import android.telephony.ServiceState; 89 public void onServiceStateChanged(ServiceState serviceState) {
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
VvmSimStateTracker.java | 28 import android.telephony.ServiceState; 68 * Waits for the account to become {@link ServiceState#STATE_IN_SERVICE} and notify the 100 public void onServiceStateChanged(ServiceState serviceState) { 101 if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { 161 if (telephonyManager.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { 230 == ServiceState.STATE_IN_SERVICE) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneBase.java | 31 import android.telephony.ServiceState; 138 public ServiceState getServiceState() { 141 ServiceState s = new ServiceState(); 142 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); 236 void notifyServiceStateChanged(ServiceState ss) { 246 int serviceState = getServiceState().getState(); 247 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); 248 if (serviceState == ServiceState.STATE_POWER_OFF) return false [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhoneBase.java | 32 import android.telephony.ServiceState; 107 public ServiceState getServiceState() { 110 ServiceState s = new ServiceState(); 111 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); 198 void notifyServiceStateChanged(ServiceState ss) { 208 int serviceState = getServiceState().getState(); 209 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); 210 if (serviceState == ServiceState.STATE_POWER_OFF) return false [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
VoicemailErrorManager.java | 26 import android.telephony.ServiceState; 185 public void onServiceStateChanged(ServiceState serviceState) {
|
/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());
|