/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetEsimPreferenceControllerTest.java | 63 private EuiccManager mMockEuiccManager; field in ResetEsimPreferenceControllerTest 75 when(mContext.getSystemService(Context.EUICC_SERVICE)).thenReturn(mMockEuiccManager); in setUp() 99 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_disabledEuiccManager_unsupportedOnDevice() 106 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_disabledEuiccManager_unsupportedOnDevice_zoneWrite() 115 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_disabledEuiccManager_unsupportedOnDevice_zoneRead() 124 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_disabledEuiccManager_unsupportedOnDevice_zoneHidden() 133 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccNotProvisioned_unsupportedOnDevice() 140 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccNotProvisioned_unsupportedOnDevice_zoneWrite() 149 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccNotProvisioned_unsupportedOnDevice_zoneRead() 158 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccNotProvisioned_unsupportedOnDevice_zoneHidden() [all …]
|
D | FactoryResetEsimPreferenceControllerTest.java | 71 private EuiccManager mMockEuiccManager; field in FactoryResetEsimPreferenceControllerTest 81 when(mContext.getSystemService(Context.EUICC_SERVICE)).thenReturn(mMockEuiccManager); in setUp() 82 when(mMockEuiccManager.isEnabled()).thenReturn(true); in setUp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | AddMobileNetworkPreferenceControllerTest.java | 63 private EuiccManager mMockEuiccManager; field in AddMobileNetworkPreferenceControllerTest 70 when(mContext.getSystemService(EuiccManager.class)).thenReturn(mMockEuiccManager); in setUp() 84 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_euiccDisabled_isUnsupported() 91 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_euiccDisabled_isUnsupported_zoneWrite() 100 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_euiccDisabled_isUnsupported_zoneRead() 109 when(mMockEuiccManager.isEnabled()).thenReturn(false); in getAvailabilityStatus_euiccDisabled_isUnsupported_zoneHidden() 118 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable() 127 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneWrite() 138 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneRead() 149 when(mMockEuiccManager.isEnabled()).thenReturn(true); in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneHidden() [all …]
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileActivatorTest.java | 61 EuiccManager mMockEuiccManager; field in ONSProfileActivatorTest 122 doReturn(mMockEuiccManagerCard1).when(mMockEuiccManager).createForCardId(1); in setUp() 170 mMockSubManager, mMockTeleManager, mMockCarrierConfigManager, mMockEuiccManager, in testONSAutoProvisioningDisabled() 182 doReturn(false).when(mMockEuiccManager).isEnabled(); in testESIMNotSupported() 186 mMockSubManager, mMockTeleManager, mMockCarrierConfigManager, mMockEuiccManager, in testESIMNotSupported() 199 doReturn(true).when(mMockEuiccManager).isEnabled(); in testMultiSIMNotSupported() 204 mMockSubManager, mMockTeleManager, mMockCarrierConfigManager, mMockEuiccManager, in testMultiSIMNotSupported() 216 doReturn(true).when(mMockEuiccManager).isEnabled(); in testDeviceSwitchToDualSIMModeFailed() 227 mMockSubManager, mMockTeleManager, mMockCarrierConfigManager, mMockEuiccManager, in testDeviceSwitchToDualSIMModeFailed() 239 doReturn(true).when(mMockEuiccManager).isEnabled(); in testDeviceSwitchToDualSIMModeSuccess() [all …]
|
D | ONSProfileDownloaderTest.java | 57 EuiccManager mMockEuiccManager; field in ONSProfileDownloaderTest 110 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testNullSMDPAddress() 115 verify(mMockEuiccManager, never()).downloadSubscription(null, true, null); in testNullSMDPAddress() 148 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadSuccessCallback() 193 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadFailureUnresolvableError() 217 verifyZeroInteractions(mMockEuiccManager); in testDownloadFailureUnresolvableError() 231 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadFailureMemoryFullError() 281 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadFailureConnectionError() 338 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadFailureTimeout() 395 mMockCarrierConfigManager, mMockEuiccManager, mMockSubManager, in testDownloadFailureOperationBusy() [all …]
|
D | ONSProfileSelectorTest.java | 63 EuiccManager mMockEuiccManager; field in ONSProfileSelectorTest 180 doReturn(mMockEuiccManager).when(mMockEuiccManager).createForCardId(1); in testStartProfileSelectionWithNoOpportunisticSub() 181 doReturn(true).when(mMockEuiccManager).isSimPortAvailable(1); in testStartProfileSelectionWithNoOpportunisticSub() 204 mONSProfileSelector.mEuiccManager = mMockEuiccManager; in testStartProfileSelectionWithNoOpportunisticSub() 421 doReturn(mMockEuiccManager).when(mMockEuiccManager).createForCardId(1); in testStartProfileSelectionWithActivePrimarySimOnESim() 422 doReturn(true).when(mMockEuiccManager).isSimPortAvailable(1); in testStartProfileSelectionWithActivePrimarySimOnESim() 453 mONSProfileSelector.mEuiccManager = mMockEuiccManager; in testStartProfileSelectionWithActivePrimarySimOnESim() 872 doReturn(mMockEuiccManager).when(mMockEuiccManager).createForCardId(1); in testAvailablePortWhenTwoPrimarySIMsAreActive() 873 doReturn(false).when(mMockEuiccManager).isSimPortAvailable(0); in testAvailablePortWhenTwoPrimarySIMsAreActive() 874 doReturn(false).when(mMockEuiccManager).isSimPortAvailable(1); in testAvailablePortWhenTwoPrimarySIMsAreActive() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/euicc/ |
D | EuiccUiDispatcherActivityTest.java | 52 @Mock private EuiccManager mMockEuiccManager; field in EuiccUiDispatcherActivityTest 60 when(mMockEuiccManager.isEnabled()).thenReturn(true); in setUp() 61 when(mMockContext.getSystemService(Context.EUICC_SERVICE)).thenReturn(mMockEuiccManager); in setUp() 74 when(mMockEuiccManager.isEnabled()).thenReturn(false); in testResolveEuiccUiIntent_disabled()
|