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

1 2 3 4 5 6 7

  /frameworks/base/telephony/java/android/telephony/
ServiceState.aidl 20 parcelable ServiceState;
ServiceState.java 36 * The following phone information is included in returned ServiceState:
46 public class ServiceState implements Parcelable {
286 * Create a new ServiceState from a intent notifier Bundle
292 * @return newly created ServiceState
295 public static ServiceState newFromBundle(Bundle m) {
296 ServiceState ret;
297 ret = new ServiceState();
305 public ServiceState() {
313 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...]
AccessNetworkUtils.java 3 import static android.telephony.ServiceState.DUPLEX_MODE_FDD;
4 import static android.telephony.ServiceState.DUPLEX_MODE_TDD;
5 import static android.telephony.ServiceState.DUPLEX_MODE_UNKNOWN;
8 import android.telephony.ServiceState.DuplexMode;
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
ServiceStateTest.java 23 import android.telephony.ServiceState;
37 ServiceState ss = new ServiceState();
51 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
53 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType());
58 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
60 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType());
65 ServiceState ss = new ServiceState();
67 ss.setDataRegState(ServiceState.STATE_IN_SERVICE)
    [all...]
PhoneStateListenerTest.java 26 import android.telephony.ServiceState;
53 public void onServiceStateChanged(ServiceState serviceState) {
55 mServiceState.setVoiceRegState(serviceState.getVoiceRegState());
56 mServiceState.setDataRegState(serviceState.getDataRegState());
98 ServiceState ss = new ServiceState();
99 ss.setDataRegState(ServiceState.STATE_IN_SERVICE);
100 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY);
106 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE)
    [all...]
RatRatcheterTest.java 21 import android.telephony.ServiceState;
31 private ServiceState mServiceState;
35 mServiceState = new ServiceState();
CallManagerTest.java 22 import android.telephony.ServiceState;
103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState();
323 ServiceState mSecondServiceState = mock(ServiceState.class);
334 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState();
335 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
338 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState();
339 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState());
342 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState();
343 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState())
    [all...]
CellularNetworkServiceTest.java 36 import android.telephony.ServiceState;
97 int voiceRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA;
98 int dataRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA;
136 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial,
159 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial,
  /cts/tests/tests/telephony/src/android/telephony/cts/
ServiceStateTest.java 18 import static android.telephony.ServiceState.DUPLEX_MODE_FDD;
19 import static android.telephony.ServiceState.DUPLEX_MODE_TDD;
20 import static android.telephony.ServiceState.DUPLEX_MODE_UNKNOWN;
24 import android.telephony.ServiceState;
38 ServiceState serviceState = new ServiceState();
40 assertEquals(0, serviceState.describeContents());
42 serviceState.setStateOff();
43 assertEquals(ServiceState.STATE_POWER_OFF, serviceState.getState())
    [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/
RadioOnStateListenerTest.java 21 import android.telephony.ServiceState;
74 * Ensure that we successfully register for the ServiceState changed messages in Telephony.
95 ServiceState state = new ServiceState();
96 state.setState(ServiceState.STATE_IN_SERVICE);
116 ServiceState state = new ServiceState();
117 state.setState(ServiceState.STATE_OUT_OF_SERVICE);
139 ServiceState state = new ServiceState();
    [all...]
TelephonyConnectionServiceTest.java 41 import android.telephony.ServiceState;
103 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_IN_SERVICE,
105 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
125 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
127 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
147 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
149 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_IN_SERVICE,
171 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
173 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE,
201 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsCallTest.java 20 import android.telephony.ServiceState;
59 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + "");
69 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + "");
79 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + "");
89 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + "");
  /packages/apps/Dialer/java/com/android/voicemail/impl/
VvmPhoneStateListener.java 21 import android.telephony.ServiceState;
47 public void onServiceStateChanged(ServiceState serviceState) {
57 int state = serviceState.getState();
59 || (state != ServiceState.STATE_IN_SERVICE
60 && previousState != ServiceState.STATE_IN_SERVICE)) {
69 if (state == ServiceState.STATE_IN_SERVICE) {
  /packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
ServiceStateProviderTest.java 25 import android.telephony.ServiceState;
66 private ServiceState testServiceState;
67 private ServiceState testServiceStateForSubId1;
105 testServiceState = new ServiceState();
107 testServiceStateForSubId1 = new ServiceState();
113 public ServiceState getServiceState(int subId) {
135 // Verify that when calling query with no subId in the uri the default ServiceState is
145 // Verify that when calling with the DEFAULT_SUBSCRIPTION_ID the correct ServiceState is
160 // Verify that when calling with a specific subId the correct ServiceState is returned
166 private void verifyServiceStateForSubId(Uri uri, ServiceState ss)
    [all...]
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
ServiceStateProvider.java 27 import android.telephony.ServiceState;
74 private final HashMap<Integer, ServiceState> mServiceStates = new HashMap<>();
107 public ServiceState getServiceState(int subId) {
135 ServiceState newSS = new ServiceState();
162 ServiceState ss = getServiceState(subId);
210 ServiceState ss = getServiceState(subId);
295 * Notify interested apps that certain fields of the ServiceState have changed.
306 public static void notifyChangeForSubIdAndField(Context context, ServiceState oldSS,
307 ServiceState newSS, int subId)
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
RatRatcheter.java 26 import android.telephony.ServiceState;
55 * Updates the ServiceState with a new set of cell bandwidths IFF the new bandwidth list has a
60 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) {
65 int ssAggregateBandwidth = Arrays.stream(serviceState.getCellBandwidths()).sum();
69 serviceState.setCellBandwidths(bandwidths);
103 public void ratchet(ServiceState oldSS, ServiceState newSS, boolean locationChange) {
137 private boolean isSameRatFamily(ServiceState ss1, ServiceState ss2)
    [all...]
PhoneStateIntentReceiver.java 25 import android.telephony.ServiceState;
48 ServiceState mServiceState = new ServiceState();
86 public ServiceState getServiceState() {
186 mServiceState = ServiceState.newFromBundle(intent.getExtras());
ServiceStateTracker.java 69 import android.telephony.ServiceState;
128 public ServiceState mSS;
129 private ServiceState mNewSS;
300 ServiceState.rilRadioTechnologyToString(
586 if (mSS != null && mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE) {
591 if (mSS != null && mSS.getDataRegState() == ServiceState.STATE_IN_SERVICE) {
595 mSS = new ServiceState();
596 mNewSS = new ServiceState();
647 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN))
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
IPhoneStateListener.aidl 20 import android.telephony.ServiceState;
30 void onServiceStateChanged(in ServiceState serviceState);
  /packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
SimStatusDialogController.java 38 import android.telephony.ServiceState;
159 final ServiceState serviceState = getCurrentServiceState();
160 updateNetworkProvider(serviceState);
163 updateServiceState(serviceState);
166 updateRoamingStatus(serviceState);
208 private void updateNetworkProvider(ServiceState serviceState) {
209 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, serviceState.getOperatorAlphaLong());
254 private void updateServiceState(ServiceState serviceState)
    [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/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/tests/telephonytests/src/android/telephony/ims/
ImsRegistrationTests.java 30 import android.telephony.ServiceState;
122 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
124 verify(mCallback).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
130 mRegistration.onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
132 verify(mCallback).onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
171 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
173 verify(mCallback, never()).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);

Completed in 466 milliseconds

1 2 3 4 5 6 7