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

1 2 3 4 5 6

  /frameworks/base/telephony/java/android/telephony/
ServiceState.aidl 20 parcelable ServiceState;
RadioAccessFamily.java 32 public static final int RAF_UNKNOWN = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN);
33 public static final int RAF_GPRS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GPRS);
34 public static final int RAF_EDGE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EDGE);
35 public static final int RAF_UMTS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UMTS);
36 public static final int RAF_IS95A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95A);
37 public static final int RAF_IS95B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95B);
38 public static final int RAF_1xRTT = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
39 public static final int RAF_EVDO_0 = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
40 public static final int RAF_EVDO_A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A);
41 public static final int RAF_HSDPA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSDPA)
    [all...]
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...]
  /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;
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...]
ServiceStateTrackerTest.java 33 import android.telephony.ServiceState;
124 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_HOME);
125 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA);
126 mSimulatedCommands.setDataRegState(ServiceState.RIL_REG_STATE_HOME);
127 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA);
263 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA,
342 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
350 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD);
422 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_ROAMING);
423 mSimulatedCommands.setDataRegState(ServiceState.RIL_REG_STATE_ROAMING)
    [all...]
CallManagerTest.java 22 import android.telephony.ServiceState;
103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState();
320 ServiceState mSecondServiceState = mock(ServiceState.class);
331 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState();
332 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
335 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState();
336 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
339 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState();
340 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState())
    [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...]
  /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...]
  /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;
111 public ServiceState mSS;
112 private ServiceState mNewSS;
305 ServiceState.rilRadioTechnologyToString(
549 mSS = new ServiceState();
550 mNewSS = new ServiceState();
610 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN));
667 ServiceState.rilRadioTechnologyToString(rat));
690 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 557 milliseconds

1 2 3 4 5 6