/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | CarrierConfigCacheTest.java | 51 CarrierConfigManager mCarrierConfigManager; field in CarrierConfigCacheTest 62 mCarrierConfigCache.sCarrierConfigManager = mCarrierConfigManager; in setUp() 81 when(mCarrierConfigManager.getConfigForSubId(ONCE_SUB_ID)).thenReturn(mCarrierConfig); in getConfigForSubId_getOnce_onlyGetOnceFromManager() 86 verify(mCarrierConfigManager, times(1)).getConfigForSubId(ONCE_SUB_ID); in getConfigForSubId_getOnce_onlyGetOnceFromManager() 91 when(mCarrierConfigManager.getConfigForSubId(TWICE_SUB_ID)).thenReturn(mCarrierConfig); in getConfigForSubId_getTwice_onlyGetOnceFromManager() 95 verify(mCarrierConfigManager, times(1)).getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager() 99 verify(mCarrierConfigManager, times(1)).getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager()
|
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | SimPinReplayManagerTest.java | 34 CarrierConfigManager mCarrierConfigManager; field in SimPinReplayManagerTest 43 mCarrierConfigManager = mock(CarrierConfigManager.class); in setUp() 54 return mCarrierConfigManager; in setUp() 71 when(mCarrierConfigManager.getConfigForSubId(1, CARRIER_ENABLE_SIM_PIN_STORAGE_KEY)) in prepareSimPinReplay_success() 113 when(mCarrierConfigManager.getConfigForSubId(1, CARRIER_ENABLE_SIM_PIN_STORAGE_KEY)) in prepareSimPinReplay_carrierDisableSimPin() 130 when(mCarrierConfigManager.getConfigForSubId(1, CARRIER_ENABLE_SIM_PIN_STORAGE_KEY)) in prepareSimPinReplay_carrierEnabled() 149 when(mCarrierConfigManager.getConfigForSubId(1, CARRIER_ENABLE_SIM_PIN_STORAGE_KEY)) in prepareSimPinReplay_prepareError() 168 when(mCarrierConfigManager.getConfigForSubId(1, CARRIER_ENABLE_SIM_PIN_STORAGE_KEY)) in prepareSimPinReplay_preparePinRequired()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | RoamingPreferenceControllerTest.java | 73 private CarrierConfigManager mCarrierConfigManager; field in RoamingPreferenceControllerTest 98 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp() 141 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in isDialogNeeded_roamingDisabledWithoutFlag_returnTrue() 161 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setChecked_needDialog_showDialog() 212 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_carrierConfigIsNull_shouldReturnAvailable() 221 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_forceHomeNetworkIsFalse_shouldReturnAvailable() 230 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_forceHomeNetworkIsTrue_shouldReturnConditionallyAvailable()
|
D | NetworkSelectSettingsTest.java | 73 public CarrierConfigManager mCarrierConfigManager; field in NetworkSelectSettingsTest 114 doReturn(config).when(mCarrierConfigManager).getConfigForSubId(SUB_ID, in setUp() 151 return mTestEnv.mCarrierConfigManager; in getCarrierConfigManager() 220 doReturn(config).when(mCarrierConfigManager).getConfigForSubId(eq(SUB_ID), in filterOutSatellitePlmn_filterOutSatellitePlmn_whenKeyIsTrue() 248 doReturn(config).when(mCarrierConfigManager).getConfigForSubId(eq(SUB_ID), in filterOutSatellitePlmn_filterOutSatellitePlmn_whenNoSatellitePlmnIsAvailable() 286 doReturn(config).when(mCarrierConfigManager).getConfigForSubId(eq(SUB_ID), in filterOutSatellitePlmn_filterOutSatellitePlmn_whenKeyIsFalse()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | RTTSettingPreferenceController.java | 50 private final CarrierConfigManager mCarrierConfigManager; field in RTTSettingPreferenceController 63 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in RTTSettingPreferenceController() 112 PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in isRttSettingSupported() 146 if (mCarrierConfigManager == null) { in getBooleanCarrierConfig() 153 final PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(subId); in getBooleanCarrierConfig()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | NotificationMgrTest.java | 127 @Mock CarrierConfigManager mCarrierConfigManager; field in NotificationMgrTest 172 when(mApp.getSystemService(CarrierConfigManager.class)).thenReturn(mCarrierConfigManager); in setUp() 175 when(mApp.getSystemService(CarrierConfigManager.class)).thenReturn(mCarrierConfigManager); in setUp() 304 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_oosEnoughTime_selectionVisibleToUser_notificationSent() 325 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_invalidSubscription_notificationNotSent() 340 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(null); in testUpdateNetworkSelection_nullCarrierConfig_notificationNotSent() 360 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_userNotAllowedToChooseOperator_notificationNotSent() 381 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_OverrideHideCarrierNetworkSelection_notificationNotSent() 402 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_simPreventManualSelection_notificationNotSent() 428 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_worldMode_userSetLTE_notificationNotSent() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | CrossSimRedialingControllerTest.java | 84 private CarrierConfigManager mCarrierConfigManager; field in CrossSimRedialingControllerTest 128 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in setUp() 129 doReturn(getDefaultPersistableBundle()).when(mCarrierConfigManager) in setUp() 211 doReturn(bundle).when(mCarrierConfigManager) in testQuickStartTimerInService() 234 doReturn(bundle).when(mCarrierConfigManager) in testQuickStartTimerInServiceRoaming() 252 doReturn(bundle).when(mCarrierConfigManager) in testQuickStartTimerOutOfService() 270 doReturn(bundle).when(mCarrierConfigManager) in testQuickStartTimerOutOfServiceRoaming() 288 doReturn(bundle).when(mCarrierConfigManager) in testNoNormalStartTimerInService() 307 doReturn(bundle).when(mCarrierConfigManager) in testQuickWhenInServiceStartTimerOutOfService() 326 doReturn(bundle).when(mCarrierConfigManager) in testQuickNoNormalStartTimerInService()
|
D | DataConnectionStateHelperTest.java | 79 private CarrierConfigManager mCarrierConfigManager; field in DataConnectionStateHelperTest 127 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in setUp() 155 verify(mCarrierConfigManager).registerCarrierConfigChangeListener(executorCaptor.capture(), in testInit() 166 verify(mCarrierConfigManager).registerCarrierConfigChangeListener(any(), in testCarrierConfigChanged() 206 verify(mCarrierConfigManager).registerCarrierConfigChangeListener(any(), in testSubscriptionChangedOnTheSameSlot() 251 verify(mCarrierConfigManager).registerCarrierConfigChangeListener(any(), in testDataConnectionStateChanged()
|
D | EmergencyCallDomainSelectorTest.java | 158 @Mock private CarrierConfigManager mCarrierConfigManager; field in EmergencyCallDomainSelectorTest 253 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in setUp() 254 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())) in setUp() 357 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testDomainPreferenceConfigurationError() 423 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testNoUnexpectedTransportChangeFromInitialState() 763 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testAirplaneRequiresRegCombinedImsNotRegisteredSelectPs() 792 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testNoCsCombinedImsNotRegisteredSelectPs() 1069 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testNotSupportPsEmergency() 1103 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testNotSupportPsCombinedImsRegisteredSelectCs() 1128 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testNotSupportCsCombinedImsNotRegisteredSelectPs() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | DisclaimerItem.java | 36 private final CarrierConfigManager mCarrierConfigManager; field in DisclaimerItem 41 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in DisclaimerItem() 73 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(mSubId); in getCarrierConfig()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoManagerTest.java | 150 @Mock CarrierConfigManager mCarrierConfigManager; field in WifiCarrierInfoManagerTest 204 .thenReturn(mCarrierConfigManager); in setUp() 272 when(mCarrierConfigManager.getConfigForSubId(anyInt())) in setUp() 356 verify(mCarrierConfigManager, never()).getConfig(); in receivedNonCarrierConfigChangedIntent() 384 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in receivedCarrierConfigChangedIntent() 386 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in receivedCarrierConfigChangedIntent() 401 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in receivedDefaultDataSubChangedIntent() 403 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in receivedDefaultDataSubChangedIntent() 431 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in restoreAutoJoinForOobPseudonymEnabled() 433 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in restoreAutoJoinForOobPseudonymEnabled() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | RoamingPreferenceController.java | 55 private CarrierConfigManager mCarrierConfigManager; field in RoamingPreferenceController 76 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in RoamingPreferenceController() 82 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in getAvailabilityStatus() 148 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId( in isDialogNeeded()
|
D | RoamingDialogFragment.java | 40 private CarrierConfigManager mCarrierConfigManager; field in RoamingDialogFragment 57 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in onAttach() 65 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in onCreateDialog()
|
D | SatelliteSetting.java | 69 private CarrierConfigManager mCarrierConfigManager; field in SatelliteSetting 98 mCarrierConfigManager = mActivity.getSystemService(CarrierConfigManager.class); in onCreate() 221 mConfigBundle = mCarrierConfigManager.getConfigForSubId(subId, in readSatelliteMoreInfoString() 232 PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(subId, in isSatelliteAttachSupported()
|
D | NetworkSelectSettings.java | 92 private CarrierConfigManager mCarrierConfigManager; field in NetworkSelectSettings 125 mCarrierConfigManager = getCarrierConfigManager(context); in onCreateInitialization() 126 PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(mSubId, in onCreateInitialization() 140 mCarrierConfigManager.registerCarrierConfigChangeListener(mNetworkScanExecutor, in onCreateInitialization() 359 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(subId, in handleCarrierConfigChanged()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | SimLockPreferenceController.java | 37 private final CarrierConfigManager mCarrierConfigManager; field in SimLockPreferenceController 45 mCarrierConfigManager = (CarrierConfigManager) in SimLockPreferenceController() 114 final PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId( in isHideSimLockSetting()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | EmergencyCallLimitationDisclaimerTest.java | 46 private CarrierConfigManager mCarrierConfigManager; field in EmergencyCallLimitationDisclaimerTest 56 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp() 58 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp()
|
D | LocationPolicyDisclaimerTest.java | 46 private CarrierConfigManager mCarrierConfigManager; field in LocationPolicyDisclaimerTest 56 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp() 58 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp()
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/fcm/ |
D | FcmServiceTest.java | 56 @Mock private CarrierConfigManager mCarrierConfigManager; field in FcmServiceTest 128 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(carrierConfig); in setFcmSenderIdString() 130 .thenReturn(mCarrierConfigManager); in setFcmSenderIdString()
|
D | FcmRegistrationServiceTest.java | 61 @Mock private CarrierConfigManager mCarrierConfigManager; field in FcmRegistrationServiceTest 123 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(carrierConfig); in setFcmSenderIdString() 125 .thenReturn(mCarrierConfigManager); in setFcmSenderIdString()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | RoamingPreferenceController.java | 43 private final CarrierConfigManager mCarrierConfigManager; field in RoamingPreferenceController 52 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in RoamingPreferenceController() 112 PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(getSubId()); in isDialogNeeded()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastTest.java | 52 CarrierConfigManager mCarrierConfigManager; field in CellBroadcastTest 84 doReturn(mCarrierConfigManager).when(mContext) in initContext() 112 doReturn(mBundles.get(subId)).when(mCarrierConfigManager).getConfigForSubId(eq(subId)); in carrierConfigSetStringArray()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | OpportunisticNetworkService.java | 93 @VisibleForTesting protected CarrierConfigManager mCarrierConfigManager; field in OpportunisticNetworkService 480 if (mCarrierConfigManager != null && mCarrierConfigChangeListener != null) { in onDestroy() 481 mCarrierConfigManager.unregisterCarrierConfigChangeListener( in onDestroy() 511 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in initialize() 512 if (mCarrierConfigManager != null) { in initialize() 514 mCarrierConfigManager.registerCarrierConfigChangeListener(mHandler::post, in initialize() 528 mCarrierConfigManager.registerCarrierConfigChangeListener(mHandler::post, in registerCarrierConfigChangListener()
|
D | ONSProfileConfigurator.java | 55 private final CarrierConfigManager mCarrierConfigManager; field in ONSProfileConfigurator 65 mCarrierConfigManager = carrierConfigManager; in ONSProfileConfigurator() 216 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(pSIMSubId); in getOpportunisticSubIdsofPSIMOperator() 304 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(pSIMId); in findOpportunisticSubscription()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BlockCheckerFilterTest.java | 63 @Mock private CarrierConfigManager mCarrierConfigManager; field in BlockCheckerFilterTest 150 .thenReturn(mCarrierConfigManager); in setEnhancedBlockingEnabled() 151 when(mCarrierConfigManager.getConfig()).thenReturn(bundle); in setEnhancedBlockingEnabled()
|