/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 24 import android.telephony.ServiceState; 38 ServiceState ss = new ServiceState(); in testRoaming() 52 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() 54 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType()); in testRoaming() 59 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() 61 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType()); in testRoaming() 66 ServiceState ss = new ServiceState(); in testRegState() 68 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testRegState() 69 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegistrationState()); in testRegState() 71 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testRegState() [all …]
|
D | RatRatcheterTest.java | 26 import android.telephony.ServiceState; 38 private ServiceState mServiceState; 44 mServiceState = new ServiceState(); in setUp() 110 private void setNetworkRegistrationInfo(ServiceState ss, int accessNetworkTechnology) { in setNetworkRegistrationInfo() 132 ServiceState oldSS = new ServiceState(); in testRatchetIsFamily() 133 ServiceState newSS = new ServiceState(); in testRatchetIsFamily() 150 ServiceState oldSS = new ServiceState(); in testRatchetIsNotFamily() 151 ServiceState newSS = new ServiceState(); in testRatchetIsNotFamily()
|
D | PhysicalChannelConfigTest.java | 26 import android.telephony.ServiceState; 69 CHANNEL_NUMBER, CHANNEL_NUMBER, ServiceState.FREQUENCY_RANGE_MID); in testDownlinkFrequencyForNrArfcn() 80 CHANNEL_NUMBER, 19500, ServiceState.FREQUENCY_RANGE_MID); in testDownlinkandUplinkFrequencyForEarfcn() 93 CHANNEL_NUMBER, 940, ServiceState.FREQUENCY_RANGE_MID); in testDownlinkandUplinkFrequencyForUarfcn() 107 270, 270, ServiceState.FREQUENCY_RANGE_LOW); in testDownlinkFrequencyForArfcn() 120 900, 900, ServiceState.FREQUENCY_RANGE_MID); in testDownlinkandUplinkFrequencyForEarfcnWithIncorrectRange() 129 ServiceState.FREQUENCY_RANGE_UNKNOWN); in testFrequencyRangeWithoutBand() 138 4500, 4500, ServiceState.FREQUENCY_RANGE_HIGH); in testFrequencyRangeForNrArfcn() 141 ServiceState.FREQUENCY_RANGE_HIGH); in testFrequencyRangeForNrArfcn() 147 CHANNEL_NUMBER, CHANNEL_NUMBER_UNKNOWN, ServiceState.FREQUENCY_RANGE_MID); in testUplinkFrequencyForNrArfcnWithUnknownChannelNumber() [all …]
|
D | PhoneStateListenerExecutorTest.java | 23 import android.telephony.ServiceState; 52 public void onServiceStateChanged(ServiceState serviceState) { in setUp() 76 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged() 77 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 78 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged() 82 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 83 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
|
D | CallManagerTest.java | 37 import android.telephony.ServiceState; 69 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 237 ServiceState mSecondServiceState = mock(ServiceState.class); in testGetServiceState() 245 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() 246 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 249 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState() 250 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 253 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState() 254 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 257 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() [all …]
|
D | PhoneStateListenerTest.java | 24 import android.telephony.ServiceState; 53 public void onServiceStateChanged(ServiceState serviceState) { in setUp() 89 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged() 90 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 91 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged() 96 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 97 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
|
D | LocaleTrackerTest.java | 35 import android.telephony.ServiceState; 101 ServiceState ss = new ServiceState(); in sendServiceState() 149 sendServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testNoSim() 156 sendServiceState(ServiceState.STATE_EMERGENCY_ONLY); in testNoSim() 167 sendServiceState(ServiceState.STATE_POWER_OFF); in testBootupInAirplaneModeOn() 177 sendServiceState(ServiceState.STATE_IN_SERVICE); in testToggleAirplaneModeOn() 191 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOn() 207 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOff() 215 sendServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testToggleAirplaneModeOff() 225 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOosPlmn() [all …]
|
D | ServiceStateTrackerTest.java | 85 import android.telephony.ServiceState; 244 doReturn(new ServiceState()).when(mPhone).getServiceState(); in setUp() 259 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp() 261 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp() 560 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA, in testSpnUpdateShowPlmnOnly() 669 ServiceState ss = new ServiceState(); in testOnImsServiceStateChanged() 670 ss.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testOnImsServiceStateChanged() 677 verify(mPhone).notifyServiceStateChanged(any(ServiceState.class)); in testOnImsServiceStateChanged() 680 ss = new ServiceState(); in testOnImsServiceStateChanged() 681 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testOnImsServiceStateChanged() [all …]
|
D | CellularNetworkServiceTest.java | 36 import android.telephony.ServiceState; 105 int voiceRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationInfo() 106 int dataRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationInfo() 142 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationInfo() 167 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationInfo() 184 int radioTech = ServiceState.RIL_RADIO_TECHNOLOGY_LTE; in testGetNetworkRegistrationInfoV1_5() 241 regState, ServiceState.rilRadioTechnologyToNetworkType(radioTech), reasonForDenial, in testGetNetworkRegistrationInfoV1_5() 260 regState, ServiceState.rilRadioTechnologyToNetworkType(radioTech), reasonForDenial, in testGetNetworkRegistrationInfoV1_5() 277 int radioTech = ServiceState.RIL_RADIO_TECHNOLOGY_LTE; in testGetNetworkRegistrationInfoV1_6WithLte() 334 regState, ServiceState.rilRadioTechnologyToNetworkType(radioTech), reasonForDenial, in testGetNetworkRegistrationInfoV1_6WithLte() [all …]
|
D | GsmCdmaPhoneTest.java | 66 import android.telephony.ServiceState; 117 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_GSM); in switchToGsm() 119 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_GSM}, null))); in switchToGsm() 125 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A); in switchToCdma() 127 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_IS95A}, null))); in switchToCdma() 169 ServiceState serviceState = new ServiceState(); in testGetServiceState() 177 ServiceState imsServiceState = new ServiceState(); in testGetMergedServiceState() 200 imsServiceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 201 imsServiceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 207 ServiceState serviceState = new ServiceState(); in testGetMergedServiceState() [all …]
|
D | NetworkTypeControllerTest.java | 35 import android.telephony.ServiceState; 150 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa() 156 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa() 201 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrSaMmwave() 242 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkType() 393 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedMmwave() 406 doReturn(ServiceState.FREQUENCY_RANGE_HIGH).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedMmwaveWithAdditionalBandAndNoMmwave() 429 doReturn(ServiceState.FREQUENCY_RANGE_HIGH).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedWithNoAdditionalBandAndNoMmwave() 451 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedWithNrAdvancedCapable() 466 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedWithPcoAndNoNrAdvancedCapable() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | ServiceStateStatsTest.java | 33 import android.telephony.ServiceState; 128 assertEquals(ServiceState.ROAMING_TYPE_NOT_ROAMING, state.voiceRoamingType); in conclude_inService() 129 assertEquals(ServiceState.ROAMING_TYPE_NOT_ROAMING, state.dataRoamingType); in conclude_inService() 141 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getVoiceRegState(); in conclude_outOfService() 142 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getDataRegState(); in conclude_outOfService() 159 assertEquals(ServiceState.ROAMING_TYPE_NOT_ROAMING, state.voiceRoamingType); in conclude_outOfService() 160 assertEquals(ServiceState.ROAMING_TYPE_NOT_ROAMING, state.dataRoamingType); in conclude_outOfService() 172 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getVoiceRegState(); in conclude_airplaneMode() 173 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getDataRegState(); in conclude_airplaneMode() 190 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getVoiceRegState(); in conclude_airplaneModeWithWifiCalling() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RatRatcheter.java | 30 import android.telephony.ServiceState; 64 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) { in updateBandwidths() 99 int oldRat = ServiceState.networkTypeToRilRadioTechnology(oldNetworkType); in ratchetRat() 100 int newRat = ServiceState.networkTypeToRilRadioTechnology(newNetworkType); in ratchetRat() 115 return ServiceState.rilRadioTechnologyToNetworkType( in ratchetRat() 125 public void ratchet(@NonNull ServiceState oldSS, @NonNull ServiceState newSS) { in ratchet() 151 private boolean isSameRatFamily(ServiceState ss1, ServiceState ss2) { in isSameRatFamily() 155 int dataRat1 = ServiceState.networkTypeToRilRadioTechnology( in isSameRatFamily() 159 int dataRat2 = ServiceState.networkTypeToRilRadioTechnology( in isSameRatFamily() 168 if (dataRat1 == ServiceState.RIL_RADIO_TECHNOLOGY_LTE in isSameRatFamily() [all …]
|
D | ServiceStateTracker.java | 78 import android.telephony.ServiceState; 79 import android.telephony.ServiceState.RilRadioTechnology; 168 public ServiceState mSS; 170 private ServiceState mNewSS; 174 private final ServiceState mOutOfServiceSS; 685 mOutOfServiceSS = new ServiceState(); in ServiceStateTracker() 775 if (mSS != null && mSS.getState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType() 791 mSS = new ServiceState(); in updatePhoneType() 793 mNewSS = new ServiceState(); in updatePhoneType() 841 setDataNetworkTypeForPhone(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN); in updatePhoneType() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 40 import android.telephony.ServiceState; 74 private ServiceState mServiceState; 215 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue() 222 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 223 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 234 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 239 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 246 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse() 248 ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse() 255 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in isInService_ServiceStatePowerOff_returnFalse() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | ServiceState.java | 63 public class ServiceState implements Parcelable { class 238 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN, 239 ServiceState.RIL_RADIO_TECHNOLOGY_GPRS, 240 ServiceState.RIL_RADIO_TECHNOLOGY_EDGE, 241 ServiceState.RIL_RADIO_TECHNOLOGY_UMTS, 242 ServiceState.RIL_RADIO_TECHNOLOGY_IS95A, 243 ServiceState.RIL_RADIO_TECHNOLOGY_IS95B, 244 ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, 245 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0, 246 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A, [all …]
|
D | 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; 15 import android.telephony.ServiceState.DuplexMode; 372 return ServiceState.FREQUENCY_RANGE_LOW; in getFrequencyRangeGroupFromGeranBand() 375 return ServiceState.FREQUENCY_RANGE_MID; in getFrequencyRangeGroupFromGeranBand() 377 return ServiceState.FREQUENCY_RANGE_UNKNOWN; in getFrequencyRangeGroupFromGeranBand() 395 return ServiceState.FREQUENCY_RANGE_LOW; in getFrequencyRangeGroupFromUtranBand() 412 return ServiceState.FREQUENCY_RANGE_MID; in getFrequencyRangeGroupFromUtranBand() 414 return ServiceState.FREQUENCY_RANGE_HIGH; in getFrequencyRangeGroupFromUtranBand() [all …]
|
D | PhysicalChannelConfig.java | 97 @ServiceState.FrequencyRange 194 @ServiceState.FrequencyRange 367 if (mFrequencyRange != ServiceState.FREQUENCY_RANGE_UNKNOWN) { in setFrequencyRange() 392 mFrequencyRange = ServiceState.FREQUENCY_RANGE_UNKNOWN; in setFrequencyRange() 396 if (mFrequencyRange == ServiceState.FREQUENCY_RANGE_UNKNOWN) { in setFrequencyRange() 459 .append(ServiceState.frequencyRangeToString(mFrequencyRange)) in toString() 532 mFrequencyRange = ServiceState.FREQUENCY_RANGE_UNKNOWN; in Builder() 573 if (!ServiceState.isFrequencyRangeValid(frequencyRange) in setFrequencyRange() 574 && frequencyRange != ServiceState.FREQUENCY_RANGE_UNKNOWN) { in setFrequencyRange()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 59 import android.telephony.ServiceState; 538 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldSendNotificationWhenServiceStateIsChanged() 541 mImsPhoneUT.setServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testShouldSendNotificationWhenServiceStateIsChanged() 547 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged() 550 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged() 670 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testImsRegistered() 684 mImsPhoneUT.setServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testImsDeregistered() 719 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingDuplicateMessages() 742 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingToAirplanModeIwlanInService() 752 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, ServiceState.STATE_IN_SERVICE, false)); in testRoamingToAirplanModeIwlanInService() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsCallSessionListenerTests.java | 26 import android.telephony.ServiceState; 56 mTestListener.callSessionMayHandover(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerMayHandoverDeprecated() 57 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN); in testListenerMayHandoverDeprecated() 67 mTestListener.callSessionHandover(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerHandoverDeprecated() 68 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, imsReasonInfo); in testListenerHandoverDeprecated() 79 mTestListener.callSessionHandoverFailed(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerHandoverFailedDeprecated() 80 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, imsReasonInfo); in testListenerHandoverFailedDeprecated()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ServiceStateStats.java | 25 import android.telephony.ServiceState; 62 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() 129 private static ServiceState getServiceStateForPhone(Phone phone) { in getServiceStateForPhone() 139 ServiceState serviceState = getServiceStateForPhone(phone); in getBand() 147 static int getBand(@Nullable ServiceState serviceState, @NetworkType int rat) { in getBand() 197 private static boolean isModemOff(ServiceState state) { in isModemOff() 200 return state.getVoiceRegState() == ServiceState.STATE_POWER_OFF; in isModemOff() 203 private static @NetworkType int getVoiceRat(Phone phone, ServiceState state) { in getVoiceRat() 211 private static @NetworkType int getDataRat(ServiceState state) { in getDataRat() 221 private static boolean isEndc(ServiceState state) { in isEndc()
|
D | DataCallSessionStats.java | 31 import android.telephony.ServiceState; 32 import android.telephony.ServiceState.RilRadioTechnology; 93 mDataCallSession.ratAtEnd = ServiceState.rilRadioTechnologyToNetworkType(radioTechnology); in onSetupDataCallResponse() 176 ServiceState.rilRadioTechnologyToNetworkType(radioTechnology); in onDrsOrRatChanged() 214 ServiceState serviceState = in getIsRoaming() 226 ServiceState serviceState = in getIsOos() 229 ? serviceState.getDataRegistrationState() == ServiceState.STATE_OUT_OF_SERVICE in getIsOos()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ServiceState.java | 33 public final class ServiceState { class 74 public ServiceState(ProcessStats processStats, String pkg, String name, in ServiceState() method in ServiceState 214 public void add(ServiceState other) { in add() 404 mRunCount, ServiceState.SERVICE_RUN, mRunState, in dumpStats() 407 mStartedCount, ServiceState.SERVICE_STARTED, mStartedState, in dumpStats() 410 mForegroundCount, ServiceState.SERVICE_FOREGROUND, mForegroundState, in dumpStats() 413 mBoundCount, ServiceState.SERVICE_BOUND, mBoundState, in dumpStats() 416 mExecCount, ServiceState.SERVICE_EXEC, mExecState, in dumpStats() 505 ServiceState.SERVICE_RUN, mRunCount, mRunState, mRunStartTime, now); 507 ServiceState.SERVICE_STARTED, mStartedCount, mStartedState, mStartedStartTime, now); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 68 import android.telephony.ServiceState; 228 .thenReturn(new ServiceState()); in setup() 344 ServiceState state = new ServiceState(); in testTelephonyCapable_SimInvalid_ServiceState_InService() 345 state.setState(ServiceState.STATE_IN_SERVICE); in testTelephonyCapable_SimInvalid_ServiceState_InService() 361 ServiceState state = new ServiceState(); in testTelephonyCapable_SimValid_ServiceState_PowerOff() 362 state.setState(ServiceState.STATE_POWER_OFF); in testTelephonyCapable_SimValid_ServiceState_PowerOff() 381 ServiceState state = new ServiceState(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService() 382 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testTelephonyCapable_BootInitState_ServiceState_OutOfService() 394 ServiceState state = new ServiceState(); in testTelephonyCapable_BootInitState_SimState_NotReady() 395 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testTelephonyCapable_BootInitState_SimState_NotReady() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | DataConnectionStats.java | 31 import android.telephony.ServiceState; 53 private ServiceState mServiceState; 145 && mServiceState.getState() != ServiceState.STATE_OUT_OF_SERVICE in hasService() 146 && mServiceState.getState() != ServiceState.STATE_POWER_OFF; in hasService() 175 public void onServiceStateChanged(ServiceState state) { in onServiceStateChanged()
|