Home
last modified time | relevance | path

Searched refs:serviceState (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DServiceStateTest.java65 private ServiceState serviceState; field in ServiceStateTest
69 serviceState = new ServiceState(); in setUp()
74 assertEquals(0, serviceState.describeContents()); in testDescribeContents()
79 serviceState.setStateOff(); in testSetStateOff()
80 assertEquals(STATE_POWER_OFF, serviceState.getState()); in testSetStateOff()
81 checkOffStatus(serviceState); in testSetStateOff()
86 serviceState.setStateOutOfService(); in testSetStateOutOfService()
87 assertEquals(STATE_OUT_OF_SERVICE, serviceState.getState()); in testSetStateOutOfService()
88 checkOffStatus(serviceState); in testSetStateOutOfService()
93 serviceState.setState(ServiceState.STATE_IN_SERVICE); in testSetState()
[all …]
DTestDomainSelectionService.java140 @NonNull ServiceState serviceState) { in onServiceStateUpdated() argument
143 super.onServiceStateUpdated(slotId, subId, serviceState); in onServiceStateUpdated()
DTelephonyManagerTest.java1713 ServiceState serviceState = mTelephonyManager.getServiceState(); in testGetNetworkCountryIso() local
1714 if (serviceState != null && (serviceState.getState() in testGetNetworkCountryIso()
1715 == ServiceState.STATE_IN_SERVICE || serviceState.getState() in testGetNetworkCountryIso()
1731 serviceState = mTelephonyManager.createForSubscriptionId(i).getServiceState(); in testGetNetworkCountryIso()
1733 if (serviceState != null && (serviceState.getState() in testGetNetworkCountryIso()
1734 == ServiceState.STATE_IN_SERVICE || serviceState.getState() in testGetNetworkCountryIso()
2001 public void onServiceStateChanged(ServiceState serviceState) { in testGetServiceState()
2003 mServiceState = serviceState; in testGetServiceState()
2463 public void onServiceStateChanged(ServiceState serviceState) { in testRebootRadio()
2465 if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { in testRebootRadio()
[all …]
DTelephonyManagerTestOnMockModem.java494 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
495 Log.d(TAG, "Callback: service state = " + serviceState.getVoiceRegState()); in onServiceStateChanged()
497 mServiceState = serviceState.getVoiceRegState(); in onServiceStateChanged()
498 if (serviceState.getVoiceRegState() == mExpectedRegState) { in onServiceStateChanged()
DPhoneStateListenerTest.java193 public void onServiceStateChanged(ServiceState serviceState) { in testOnServiceStateChanged()
223 public void onServiceStateChanged(ServiceState serviceState) { in testOnUnRegisterFollowedByRegister()
DTelephonyCallbackTest.java238 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
241 mServiceState = serviceState; in onServiceStateChanged()
/cts/hostsidetests/time/host/src/android/time/cts/host/
DLocationTimeZoneManagerHostTest.java255 LocationTimeZoneManagerServiceStateProto serviceState = dumpServiceState(); in testOnlyPrimary_suggestionMade() local
256 assertControllerStateHistory(serviceState, in testOnlyPrimary_suggestionMade()
260 assertProviderStates(serviceState.getPrimaryProviderStatesList(), in testOnlyPrimary_suggestionMade()
265 assertProviderStates(serviceState.getSecondaryProviderStatesList(), in testOnlyPrimary_suggestionMade()
274 LocationTimeZoneManagerServiceStateProto serviceState = dumpServiceState(); in testOnlyPrimary_suggestionMade() local
275 assertControllerStateHistory(serviceState, in testOnlyPrimary_suggestionMade()
277 assertLastEventWithSuggestion(serviceState, "Europe/London"); in testOnlyPrimary_suggestionMade()
278 assertProviderStates(serviceState.getPrimaryProviderStatesList(), in testOnlyPrimary_suggestionMade()
282 assertProviderStates(serviceState.getSecondaryProviderStatesList()); in testOnlyPrimary_suggestionMade()
413 LocationTimeZoneManagerServiceStateProto serviceState = dumpServiceState(); in assertPrimaryReportedCertain() local
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java199 final BiometricServiceState serviceState = getCurrentState(); in waitForState() local
200 if (serviceState.mState != state) { in waitForState()
201 Log.d(TAG, "Not in state " + state + " yet, current: " + serviceState.mState); in waitForState()
213 final BiometricServiceState serviceState = getCurrentState(); in waitForStateNotEqual() local
214 if (serviceState.mState == state) { in waitForStateNotEqual()
215 Log.d(TAG, "Not out of state yet, current: " + serviceState.mState); in waitForStateNotEqual()
225 final BiometricServiceState serviceState = getCurrentState(); in anyEnrollmentsExist() local
227 for (SensorState sensorState : serviceState.mSensorStates.sensorStates.values()) { in anyEnrollmentsExist()
230 Log.d(TAG, "Enrollments still exist: " + serviceState); in anyEnrollmentsExist()
538 final BiometricServiceState serviceState = getCurrentState(); in getCurrentStrength() local
[all …]
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DPhoneStateListenerTest.java90 public void onServiceStateChanged(ServiceState serviceState) { in testOnUnRegisterFollowedByRegister()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DCarrierRoamingSatelliteTestBase.java246 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
247 logd(TAG, "onServiceStateChanged: serviceState=" + serviceState); in onServiceStateChanged()
250 if (serviceState.isUsingNonTerrestrialNetwork()) { in onServiceStateChanged()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java124 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
125 logd("onServiceStateChanged: serviceState=" + serviceState); in onServiceStateChanged()
128 if (serviceState.isUsingNonTerrestrialNetwork()) { in onServiceStateChanged()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRemoteConnectionTest.java126 ServiceState serviceState = mTelephonyManager.getServiceState(); in testRemoteConnectionOutgoingEmergencyCall() local
127 if (serviceState != null) { in testRemoteConnectionOutgoingEmergencyCall()
128 NetworkRegistrationInfo nri = serviceState.getNetworkRegistrationInfo(DOMAIN_CS, in testRemoteConnectionOutgoingEmergencyCall()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java2298 final int serviceState = mPackageManager.getComponentEnabledSetting(SERVICE_COMPONENT); in setComponentEnabledSettings_disableSelf() local
2301 assertThat(serviceState).isAnyOf( in setComponentEnabledSettings_disableSelf()
2314 new ComponentEnabledSetting(SERVICE_COMPONENT, serviceState, DONT_KILL_APP)); in setComponentEnabledSettings_disableSelf()
2366 final int serviceState = mPackageManager.getComponentEnabledSetting(SERVICE_COMPONENT); in setComponentEnabledSettings_noStateChanged_noBroadcastReceived() local
2369 new ComponentEnabledSetting(SERVICE_COMPONENT, serviceState, DONT_KILL_APP)); in setComponentEnabledSettings_noStateChanged_noBroadcastReceived()
2378 final int serviceState = mPackageManager.getComponentEnabledSetting(SERVICE_COMPONENT); in setComponentEnabledSetting_disableMultiplePackagesNoKill() local
2401 new ComponentEnabledSetting(SERVICE_COMPONENT, serviceState, DONT_KILL_APP)); in setComponentEnabledSetting_disableMultiplePackagesNoKill()