/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | RatRatcheterTest.java | 31 private ServiceState mServiceState; field in RatRatcheterTest 35 mServiceState = new ServiceState(); in setUp() 41 mServiceState.setCellBandwidths(new int[] {5000}); in testUpdateBandwidthsSuccess() 43 boolean updated = RatRatcheter.updateBandwidths(bandwidths, mServiceState); in testUpdateBandwidthsSuccess() 46 assertTrue(Arrays.equals(mServiceState.getCellBandwidths(), bandwidths)); in testUpdateBandwidthsSuccess() 53 mServiceState.setCellBandwidths(originalBandwidths); in testUpdateBandwidthsFailure() 55 boolean updated = RatRatcheter.updateBandwidths(newBandwidths, mServiceState); in testUpdateBandwidthsFailure() 58 assertTrue(Arrays.equals(mServiceState.getCellBandwidths(), originalBandwidths)); in testUpdateBandwidthsFailure() 64 mServiceState.setCellBandwidths(originalBandwidths); in testUpdateBandwidthsNull() 66 boolean updated = RatRatcheter.updateBandwidths(null, mServiceState); in testUpdateBandwidthsNull() [all …]
|
D | PhoneStateListenerExecutorTest.java | 59 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); in setUp() 60 mServiceState.setDataRegState(serviceState.getDataRegState()); in setUp() 94 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 95 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
|
D | PhoneStateListenerTest.java | 55 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); in onLooperPrepared() 56 mServiceState.setDataRegState(serviceState.getDataRegState()); in onLooperPrepared() 106 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 107 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
|
D | TelephonyTest.java | 158 protected ServiceState mServiceState; field in TelephonyTest 437 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp() 438 doReturn(mServiceState).when(mImsPhone).getServiceState(); in setUp() 507 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS).when(mServiceState). in setUp() 520 doReturn(mServiceState).when(mSST).getServiceState(); in setUp() 521 mSST.mSS = mServiceState; in setUp() 532 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in setUp()
|
D | CallManagerTest.java | 102 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 295 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState(); in testGetServiceState() 300 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState(); in testGetServiceState()
|
D | GsmCdmaPhoneTest.java | 323 mSST.mSS = mServiceState; in testDial() 324 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testDial()
|
D | GsmCdmaCallTrackerTest.java | 106 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 76 private ServiceState mServiceState; field in UtilsTest 218 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue() 219 assertThat(Utils.isInService(mServiceState)).isTrue(); in isInService_voiceInService_returnTrue() 224 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 225 when(mServiceState.getDataRegState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 226 assertThat(Utils.isInService(mServiceState)).isTrue(); in isInService_voiceOutOfServiceDataInService_returnTrue() 231 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 232 when(mServiceState.getDataNetworkType()) in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 234 when(mServiceState.getDataRegState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 235 assertThat(Utils.isInService(mServiceState)).isFalse(); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 75 private ServiceState mServiceState; field in MobileSignalController 341 return (mServiceState != null && mServiceState.isEmergencyOnly()); in isEmergencyOnly() 349 if (isCdma() && mServiceState != null) { in isRoaming() 350 final int iconMode = mServiceState.getCdmaEriIconMode(); in isRoaming() 351 return mServiceState.getCdmaEriIconIndex() != EriInfo.ROAMING_INDICATOR_OFF in isRoaming() 355 return mServiceState != null && mServiceState.getRoaming(); in isRoaming() 401 String[] operatorNames = new String[]{mServiceState.getOperatorAlphaLongRaw(), in isCarrierSpecificDataIcon() 402 mServiceState.getOperatorAlphaShortRaw()}; in isCarrierSpecificDataIcon() 462 Utils.isInService(mServiceState) + " ss=" + mSignalStrength); in updateTelephony() 464 mCurrentState.connected = Utils.isInService(mServiceState) in updateTelephony() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DataConnectionStats.java | 45 private ServiceState mServiceState; field in DataConnectionStats 82 if (mServiceState == null) { in notePhoneDataConnectionState() 90 int networkType = mServiceState.getDataNetworkType(); in notePhoneDataConnectionState() 126 return mServiceState != null in hasService() 127 && mServiceState.getState() != ServiceState.STATE_OUT_OF_SERVICE in hasService() 128 && mServiceState.getState() != ServiceState.STATE_POWER_OFF; in hasService() 139 mServiceState = state;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerBaseTest.java | 88 protected ServiceState mServiceState; field in NetworkControllerBaseTest 136 mServiceState = mock(ServiceState.class); in setUp() 260 when(mServiceState.getRoaming()).thenReturn(isRoaming); in setGsmRoaming() 265 when(mServiceState.getCdmaEriIconIndex()).thenReturn(isRoaming ? in setCdmaRoaming() 267 when(mServiceState.getCdmaEriIconMode()).thenReturn(isRoaming ? in setCdmaRoaming() 273 when(mServiceState.getVoiceRegState()).thenReturn(voiceRegState); in setVoiceRegState() 278 when(mServiceState.getDataRegState()).thenReturn(dataRegState); in setDataRegState() 283 when(mServiceState.isEmergencyOnly()).thenReturn(isEmergency); in setIsEmergencyOnly() 312 Log.d(TAG, "Sending Service State: " + mServiceState); in updateServiceState() 313 mPhoneStateListener.onServiceStateChanged(mServiceState); in updateServiceState() [all …]
|
D | NetworkControllerDataTest.java | 213 mPhoneStateListener.onServiceStateChanged(mServiceState); in testNr5GIcon_NrRestricted_showLteIcon() 272 when(mServiceState.getDataNetworkType()) in testDataChangeWithoutConnectionState() 292 when(mServiceState.getDataOperatorAlphaShort()).thenReturn(newDataName); in testUpdateDataNetworkName()
|
D | NetworkControllerSignalTest.java | 200 mServiceState = null; in testRoamingNoService_DoesNotCrash()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneStateIntentReceiver.java | 49 ServiceState mServiceState = new ServiceState(); field in PhoneStateIntentReceiver 95 return mServiceState; in getServiceState() 195 mServiceState = ServiceState.newFromBundle(intent.getExtras()); in onReceive()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 87 private ServiceState mServiceState; field in TelephonyMetricsTest 109 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getVoiceRoamingType(); in setUp() 110 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getDataRoamingType(); in setUp() 111 doReturn("voiceshort").when(mServiceState).getVoiceOperatorAlphaShort(); in setUp() 112 doReturn("voicelong").when(mServiceState).getVoiceOperatorAlphaLong(); in setUp() 113 doReturn("datashort").when(mServiceState).getDataOperatorAlphaShort(); in setUp() 114 doReturn("datalong").when(mServiceState).getDataOperatorAlphaLong(); in setUp() 115 doReturn("123456").when(mServiceState).getVoiceOperatorNumeric(); in setUp() 116 doReturn("123456").when(mServiceState).getDataOperatorNumeric(); in setUp() 117 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilVoiceRadioTechnology(); in setUp() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 330 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMetered() 376 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMetered() 415 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredAnother() 444 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredAnother() 483 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredNothingCharged() 503 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredNothingCharged()
|
D | DcTrackerTest.java | 464 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp() 857 doReturn(true).when(mServiceState).getDataRoaming(); in testUserDisableRoaming() 884 doReturn(true).when(mServiceState).getDataRoaming(); in testDataCallOnUserDisableRoaming() 1184 doReturn(true).when(mServiceState).getDataRoaming(); in testTrySetupRestrictedRoamingDisabled() 1238 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDefaultOnIWLAN() 1295 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testUpdateWaitingApnListOnDataRatChange() 1325 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testUpdateWaitingApnListOnDataRatChange() 1422 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS() 1453 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS() 1468 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS()
|
D | DataConnectionTest.java | 926 doReturn(false).when(mServiceState).getDataRoaming(); in testIsUnmeteredUseOnly()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaSmsDispatcherTest.java | 80 doReturn(mServiceState).when(mPhone).getServiceState(); in testSendSms()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 181 private ServiceState[] mServiceState; field in TelephonyRegistry 382 mServiceState = new ServiceState[numPhones]; in TelephonyRegistry() 413 mServiceState[i] = new ServiceState(); in TelephonyRegistry() 672 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen() 673 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen() 1031 mServiceState[phoneId] = state; in notifyServiceStateForPhoneId() 1973 pw.println("mServiceState=" + mServiceState[i]); in dump() 2398 mServiceState[phoneId]); 2400 new ServiceState(mServiceState[phoneId]));
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 477 mServiceState(SOUND_TRIGGER_STATE_NO_INIT) in Module() 666 if (mServiceState == SOUND_TRIGGER_STATE_DISABLED) { in startRecognition() 826 if (state == mServiceState) { in setCaptureState_l() 830 mServiceState = state; in setCaptureState_l()
|
D | SoundTriggerHwService.h | 153 sound_trigger_service_state_t mServiceState; variable
|