/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 | 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 | 138 protected ServiceState mServiceState; field in TelephonyTest 383 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp() 384 doReturn(mServiceState).when(mImsPhone).getServiceState(); in setUp() 448 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS).when(mServiceState). in setUp() 460 mSST.mSS = mServiceState; in setUp()
|
D | CallManagerTest.java | 103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 347 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState(); in testGetServiceState() 352 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState(); in testGetServiceState()
|
D | GsmCdmaCallTrackerTest.java | 99 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
|
D | GsmCdmaPhoneTest.java | 357 mSST.mSS = mServiceState; in testDial() 358 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testDial()
|
/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/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 70 private ServiceState mServiceState; field in MobileSignalController 323 if (mServiceState != null) { in hasService() 330 switch (mServiceState.getVoiceRegState()) { in hasService() 335 return mServiceState.getDataRegState() == ServiceState.STATE_IN_SERVICE; in hasService() 349 return (mServiceState != null && mServiceState.isEmergencyOnly()); in isEmergencyOnly() 357 if (isCdma() && mServiceState != null) { in isRoaming() 358 final int iconMode = mServiceState.getCdmaEriIconMode(); in isRoaming() 359 return mServiceState.getCdmaEriIconIndex() != EriInfo.ROAMING_INDICATOR_OFF in isRoaming() 363 return mServiceState != null && mServiceState.getRoaming(); in isRoaming() 479 if (mCurrentState.networkName == mNetworkNameDefault && mServiceState != null in updateTelephony() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerBaseTest.java | 84 protected ServiceState mServiceState; field in NetworkControllerBaseTest 127 mServiceState = mock(ServiceState.class); in setUp() 245 when(mServiceState.getRoaming()).thenReturn(isRoaming); in setGsmRoaming() 250 when(mServiceState.getCdmaEriIconIndex()).thenReturn(isRoaming ? in setCdmaRoaming() 252 when(mServiceState.getCdmaEriIconMode()).thenReturn(isRoaming ? in setCdmaRoaming() 258 when(mServiceState.getVoiceRegState()).thenReturn(voiceRegState); in setVoiceRegState() 263 when(mServiceState.getDataRegState()).thenReturn(dataRegState); in setDataRegState() 268 when(mServiceState.isEmergencyOnly()).thenReturn(isEmergency); in setIsEmergencyOnly() 297 Log.d(TAG, "Sending Service State: " + mServiceState); in updateServiceState() 298 mPhoneStateListener.onServiceStateChanged(mServiceState); in updateServiceState() [all …]
|
D | NetworkControllerDataTest.java | 197 when(mServiceState.getDataNetworkType()) in testDataChangeWithoutConnectionState()
|
D | NetworkControllerSignalTest.java | 199 mServiceState = null; in testRoamingNoService_DoesNotCrash()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 318 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMetered() 371 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMetered() 417 doReturn(false).when(mServiceState).getDataRoaming(); in testIsIwlanMetered() 418 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN).when(mServiceState) in testIsIwlanMetered() 466 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredAnother() 502 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredAnother() 547 doReturn(true).when(mServiceState).getDataRoaming(); in testIsIwlanMeteredAnother() 548 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN).when(mServiceState) in testIsIwlanMeteredAnother() 595 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredNothingCharged() 618 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredNothingCharged() [all …]
|
D | DcTrackerTest.java | 421 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp() 622 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testDataSetup() 697 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testDataRetry() 725 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testDataRetry() 762 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testUserDisableData() 817 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testUserDisableRoaming() 823 doReturn(true).when(mServiceState).getDataRoaming(); in testUserDisableRoaming() 852 doReturn(true).when(mServiceState).getDataRoaming(); in testDataCallOnUserDisableRoaming() 878 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testDataCallOnUserDisableRoaming() 986 mServiceState.getRilDataRadioTechnology())), dpCaptor.capture(), in testCarrierActionSetMeteredApnsEnabled() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 80 private ServiceState mServiceState; field in TelephonyMetricsTest 102 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getVoiceRoamingType(); in setUp() 103 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getDataRoamingType(); in setUp() 104 doReturn("voiceshort").when(mServiceState).getVoiceOperatorAlphaShort(); in setUp() 105 doReturn("voicelong").when(mServiceState).getVoiceOperatorAlphaLong(); in setUp() 106 doReturn("datashort").when(mServiceState).getDataOperatorAlphaShort(); in setUp() 107 doReturn("datalong").when(mServiceState).getDataOperatorAlphaLong(); in setUp() 108 doReturn("123456").when(mServiceState).getVoiceOperatorNumeric(); in setUp() 109 doReturn("123456").when(mServiceState).getDataOperatorNumeric(); in setUp() 110 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilVoiceRadioTechnology(); in setUp() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneStateIntentReceiver.java | 48 ServiceState mServiceState = new ServiceState(); field in PhoneStateIntentReceiver 91 return mServiceState; in getServiceState() 186 mServiceState = ServiceState.newFromBundle(intent.getExtras()); in onReceive()
|
/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 | 158 private ServiceState[] mServiceState; field in TelephonyRegistry 330 mServiceState = new ServiceState[numPhones]; in TelephonyRegistry() 347 mServiceState[i] = new ServiceState(); in TelephonyRegistry() 517 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen() 519 new ServiceState(mServiceState[phoneId])); in listen() 809 mServiceState[phoneId] = state; in notifyServiceStateForPhoneId() 1471 pw.println("mServiceState=" + mServiceState[i]); in dump() 1805 mServiceState[phoneId]); in checkPossibleMissNotify() 1807 new ServiceState(mServiceState[phoneId])); in checkPossibleMissNotify()
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 484 mServiceState(SOUND_TRIGGER_STATE_NO_INIT) in Module() 680 if (mServiceState == SOUND_TRIGGER_STATE_DISABLED) { in startRecognition() 821 if (state == mServiceState) { in setCaptureState_l() 825 mServiceState = state; in setCaptureState_l()
|
D | SoundTriggerHwService.h | 149 sound_trigger_service_state_t mServiceState; variable
|