HomeSort by relevance Sort by last modified time
    Searched refs:serviceState (Results 1 - 25 of 52) sorted by null

1 2 3

  /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;
210 private ServiceState mServiceState;
212 ServiceStateEvent(ServiceState serviceState, int subscriptionId) {
213 mServiceState = serviceState;
216 serviceState.getState());
219 serviceState.isEmergencyOnly()) {
228 public ServiceState getServiceState() {
233 JSONObject serviceState = new JSONObject();
235 serviceState.put
    [all...]
TelephonyStateListeners.java 27 import android.telephony.ServiceState;
210 public void onServiceStateChanged(ServiceState serviceState) {
213 serviceState, subscriptionId));
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
PhoneStateListenerTest.java 20 import android.telephony.ServiceState;
41 public void onServiceStateChanged(ServiceState serviceState) {
43 mServiceState.setVoiceRegState(serviceState.getVoiceRegState());
44 mServiceState.setDataRegState(serviceState.getDataRegState());
69 ServiceState ss = new ServiceState();
70 ss.setDataRegState(ServiceState.STATE_IN_SERVICE);
71 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY);
77 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE)
    [all...]
TelephonyEventLogTest.java 27 import android.telephony.ServiceState;
115 ServiceState serviceState = new ServiceState();
116 serviceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
117 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE);
118 serviceState.setVoiceRoamingType(ServiceState.ROAMING_TYPE_NOT_ROAMING)
    [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 36 import android.telephony.ServiceState;
356 public void onServiceStateChanged(ServiceState serviceState) {
357 int newState = serviceState.getState();
358 if (newState == ServiceState.STATE_IN_SERVICE && mServiceState != newState) {
372 private int mServiceState = ServiceState.STATE_POWER_OFF;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
TelephonyEventLog.java 18 import android.telephony.ServiceState;
207 public void writeServiceStateChanged(ServiceState serviceState) {
210 if (mVoiceRegState != serviceState.getVoiceRegState()) {
211 mVoiceRegState = serviceState.getVoiceRegState();
215 if (mDataRegState != serviceState.getDataRegState()) {
216 mDataRegState = serviceState.getDataRegState();
220 if (mVoiceRoamingType != serviceState.getVoiceRoamingType()) {
221 mVoiceRoamingType = serviceState.getVoiceRoamingType();
225 if (mDataRoamingType != serviceState.getDataRoamingType())
    [all...]
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...]
GsmCdmaConnection.java 31 import android.telephony.ServiceState;
488 int serviceState = phone.getServiceState().getState();
492 if (serviceState == ServiceState.STATE_POWER_OFF) {
494 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE
495 || serviceState == ServiceState.STATE_EMERGENCY_ONLY ) {
    [all...]
  /frameworks/base/services/core/java/com/android/server/tv/
TvInputManagerService.java 320 ServiceState serviceState = userState.serviceStateMap.get(component);
321 if (serviceState == null) {
322 // New hardware input found. Create a new ServiceState and connect to the
324 serviceState = new ServiceState(component, userId);
325 userState.serviceStateMap.put(component, serviceState);
328 inputList.addAll(serviceState.hardwareInputList);
374 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent())
    [all...]
  /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);
  /packages/services/Telephony/src/com/android/phone/vvm/omtp/
VvmPhoneStateListener.java 23 import android.telephony.ServiceState;
49 public void onServiceStateChanged(ServiceState serviceState) {
50 int state = serviceState.getState();
51 if (state == mPreviousState || (state != ServiceState.STATE_IN_SERVICE
52 && mPreviousState != ServiceState.STATE_IN_SERVICE)) {
59 if (state == ServiceState.STATE_IN_SERVICE) {
  /packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
HeadsetPhoneState.java 21 import android.telephony.ServiceState;
39 private ServiceState mServiceState;
236 public void onServiceStateChanged(ServiceState serviceState) {
238 mServiceState = serviceState;
239 mService = (serviceState.getState() == ServiceState.STATE_IN_SERVICE) ?
242 setRoam(serviceState.getRoaming() ? HeadsetHalConstants.SERVICE_TYPE_ROAMING
321 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 ||
323 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A))
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastReceiver.java 30 import android.telephony.ServiceState;
59 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras());
60 if (serviceState != null) {
61 int newState = serviceState.getState();
63 Log.d(TAG, "Service state changed! " + newState + " Full: " + serviceState +
66 if (((newState == ServiceState.STATE_IN_SERVICE) ||
67 (newState == ServiceState.STATE_EMERGENCY_ONLY)) &&
  /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...]
  /frameworks/base/telephony/java/android/telephony/
PhoneStateListener.java 28 import android.telephony.ServiceState;
65 * @see ServiceState
283 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj);
345 * @see ServiceState#STATE_EMERGENCY_ONLY
346 * @see ServiceState#STATE_IN_SERVICE
347 * @see ServiceState#STATE_OUT_OF_SERVICE
348 * @see ServiceState#STATE_POWER_OFF
350 public void onServiceStateChanged(ServiceState serviceState) {
357 * @see ServiceState#STATE_EMERGENCY_ONL
    [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 41 import android.telephony.ServiceState;
570 * @param serviceState Phone service state
572 void updateNetworkSelection(int serviceState) {
589 serviceState + " new network " + networkSelection);
591 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE
603 serviceState + " not updating network due to invalid subId " + subId);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
ImsPhoneBase.java 28 import android.telephony.ServiceState;
136 public ServiceState getServiceState() {
139 ServiceState s = new ServiceState();
140 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
232 void notifyServiceStateChanged(ServiceState ss) {
242 int serviceState = getServiceState().getState();
243 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState);
244 if (serviceState == ServiceState.STATE_POWER_OFF) return false
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
SipPhoneBase.java 28 import android.telephony.ServiceState;
104 public ServiceState getServiceState() {
107 ServiceState s = new ServiceState();
108 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
195 void notifyServiceStateChanged(ServiceState ss) {
205 int serviceState = getServiceState().getState();
206 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState);
207 if (serviceState == ServiceState.STATE_POWER_OFF) return false
    [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 51 import android.telephony.ServiceState;
268 public void onServiceStateChanged(ServiceState serviceState) {
269 log("onServiceStateChanged: ServiceState=" + serviceState);
270 updateServiceState(serviceState);
769 updateServiceState(ServiceState serviceState) {
770 int state = serviceState.getState();
775 case ServiceState.STATE_IN_SERVICE
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
ProcessPendingMessagesAction.java 26 import android.telephony.ServiceState;
122 public void onPhoneStateChanged(final Context context, final int serviceState) {
123 if (serviceState == ServiceState.STATE_IN_SERVICE) {

Completed in 1908 milliseconds

1 2 3