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

1 2 3 4 5 6

  /frameworks/base/telephony/java/android/telephony/
ServiceState.aidl 20 parcelable ServiceState;
ServiceState.java 27 * The following phone information is included in returned ServiceState:
36 public class ServiceState implements Parcelable {
269 * Create a new ServiceState from a intent notifier Bundle
275 * @return newly created ServiceState
278 public static ServiceState newFromBundle(Bundle m) {
279 ServiceState ret;
280 ret = new ServiceState();
288 public ServiceState() {
296 public ServiceState(ServiceState s)
    [all...]
RadioAccessFamily.java 33 public static final int RAF_UNKNOWN = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN);
34 public static final int RAF_GSM = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GSM);
35 public static final int RAF_GPRS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GPRS);
36 public static final int RAF_EDGE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EDGE);
37 public static final int RAF_IS95A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95A);
38 public static final int RAF_IS95B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95B);
39 public static final int RAF_1xRTT = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
41 public static final int RAF_EVDO_0 = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
42 public static final int RAF_EVDO_A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A);
43 public static final int RAF_EVDO_B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B)
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
ServiceStateTest.java 20 import android.telephony.ServiceState;
33 ServiceState ss = new ServiceState();
47 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
49 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType());
54 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
56 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType());
61 ServiceState ss = new ServiceState();
63 ss.setDataRegState(ServiceState.STATE_IN_SERVICE)
    [all...]
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...]
ServiceStateTrackerTest.java 34 import android.telephony.ServiceState;
125 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_HOME);
126 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA);
127 mSimulatedCommands.setDataRegState(ServiceState.RIL_REG_STATE_HOME);
128 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA);
267 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA,
347 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
355 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD);
427 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_ROAMING);
428 mSimulatedCommands.setDataRegState(ServiceState.RIL_REG_STATE_ROAMING)
    [all...]
CallManagerTest.java 22 import android.telephony.ServiceState;
103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState();
321 ServiceState mSecondServiceState = mock(ServiceState.class);
332 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState();
333 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
336 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState();
337 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
340 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState();
341 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState())
    [all...]
  /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/ims/rcs/rcsservice/src/com/android/service/ims/presence/
PresenceInfoParser.java 44 import com.android.ims.RcsPresenceInfo.ServiceState;
72 int ipVoiceCallState = RcsPresenceInfo.ServiceState.UNKNOWN;
77 int ipVideoCallState = RcsPresenceInfo.ServiceState.UNKNOWN;
96 ipVoiceCallState = RcsPresenceInfo.ServiceState.ONLINE;
97 ipVideoCallState = RcsPresenceInfo.ServiceState.ONLINE;
105 ipVoiceCallState = RcsPresenceInfo.ServiceState.OFFLINE;
106 ipVideoCallState = RcsPresenceInfo.ServiceState.ONLINE;
118 ipVoiceCallState = RcsPresenceInfo.ServiceState.ONLINE;
120 if(RcsPresenceInfo.ServiceState.UNKNOWN == ipVideoCallState) {
121 ipVideoCallState = RcsPresenceInfo.ServiceState.OFFLINE
    [all...]
  /packages/services/Telephony/tests/src/com/android/services/telephony/
EmergencyCallStateListenerTest.java 21 import android.telephony.ServiceState;
82 ServiceState state = new ServiceState();
83 state.setState(ServiceState.STATE_IN_SERVICE);
97 ServiceState state = new ServiceState();
98 state.setState(ServiceState.STATE_OUT_OF_SERVICE);
114 ServiceState state = new ServiceState();
115 state.setState(ServiceState.STATE_OUT_OF_SERVICE)
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsCallTest.java 22 import android.telephony.ServiceState;
61 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + "");
71 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + "");
81 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + "");
91 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + "");
  /packages/services/Telephony/src/com/android/phone/vvm/omtp/
VvmPhoneStateListener.java 21 import android.telephony.ServiceState;
50 public void onServiceStateChanged(ServiceState serviceState) {
58 int state = serviceState.getState();
59 if (state == mPreviousState || (state != ServiceState.STATE_IN_SERVICE
60 && mPreviousState != ServiceState.STATE_IN_SERVICE)) {
69 if (state == ServiceState.STATE_IN_SERVICE) {
  /frameworks/base/telephony/java/com/android/internal/telephony/
IPhoneStateListener.aidl 20 import android.telephony.ServiceState;
29 void onServiceStateChanged(in ServiceState serviceState);
  /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/services/core/java/com/android/server/connectivity/
DataConnectionStats.java 26 import android.telephony.ServiceState;
45 private ServiceState mServiceState;
127 && mServiceState.getState() != ServiceState.STATE_OUT_OF_SERVICE
128 && mServiceState.getState() != ServiceState.STATE_POWER_OFF;
138 public void onServiceStateChanged(ServiceState state) {
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
PhoneStateIntentReceiver.java 25 import android.telephony.ServiceState;
48 ServiceState mServiceState = new ServiceState();
86 public ServiceState getServiceState() {
186 mServiceState = ServiceState.newFromBundle(intent.getExtras());
ServiceStateTracker.java 60 import android.telephony.ServiceState;
113 public ServiceState mSS;
114 private ServiceState mNewSS;
312 ServiceState.rilRadioTechnologyToString(
555 mSS = new ServiceState();
556 mNewSS = new ServiceState();
616 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN));
682 ServiceState.rilRadioTechnologyToString(rat));
705 boolean isRegistered = mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE |
    [all...]
RatRatcheter.java 25 import android.telephony.ServiceState;
78 public void ratchetRat(ServiceState oldSS, ServiceState newSS) {
  /packages/services/Telephony/src/com/android/phone/
HfaLogic.java 28 import android.telephony.ServiceState;
144 private void onServiceStateChange(ServiceState state) {
145 final boolean radioIsOff = state.getVoiceRegState() == ServiceState.STATE_POWER_OFF;
216 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result;
OtaStartupReceiver.java 30 import android.telephony.ServiceState;
81 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result;
93 if (state.getState() == ServiceState.STATE_IN_SERVICE) {
143 if (app.mCM.getServiceState() != ServiceState.STATE_IN_SERVICE) {
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) {
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
BatteryCellParser.java 18 import android.telephony.ServiceState;
36 == ServiceState.STATE_POWER_OFF) {
  /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...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DataConnection.java 48 import android.telephony.ServiceState;
404 ServiceState ss = mPhone.getServiceState();
518 == ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN )) {
766 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_LTE_CA) {
769 rilRat = ServiceState.RIL_RADIO_TECHNOLOGY_LTE;
771 String ratName = ServiceState.rilRadioTechnologyToString(rilRat).toLowerCase(Locale.ROOT);
772 // ServiceState gives slightly different names for EVDO tech ("evdo-rev.0" for ex)
774 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 ||
775 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A ||
776 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B)
    [all...]
  /frameworks/base/core/java/com/android/internal/app/procstats/
ServiceState.java 46 public final class ServiceState {
82 public ServiceState(ProcessStats processStats, String pkg, String name,
203 public void add(ServiceState other) {
364 mRunCount, ServiceState.SERVICE_RUN, mRunState,
367 mStartedCount, ServiceState.SERVICE_STARTED, mStartedState,
370 mBoundCount, ServiceState.SERVICE_BOUND, mBoundState,
373 mExecCount, ServiceState.SERVICE_EXEC, mExecState,
447 ServiceState.SERVICE_RUN, mRunCount, mRunState, mRunStartTime, now);
449 ServiceState.SERVICE_STARTED, mStartedCount, mStartedState, mStartedStartTime, now);
451 ServiceState.SERVICE_BOUND, mBoundCount, mBoundState, mBoundStartTime, now)
    [all...]

Completed in 2704 milliseconds

1 2 3 4 5 6