/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | CarrierConfigCacheTest.java | 81 when(mCarrierConfigManager.getConfigForSubId(ONCE_SUB_ID)).thenReturn(mCarrierConfig); in getConfigForSubId_getOnce_onlyGetOnceFromManager() 83 PersistableBundle config = mCarrierConfigCache.getConfigForSubId(ONCE_SUB_ID); 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() 93 mCarrierConfigCache.getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager() 95 verify(mCarrierConfigManager, times(1)).getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager() 97 mCarrierConfigCache.getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager() 99 verify(mCarrierConfigManager, times(1)).getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | TelephonyUtils.java | 121 private static PersistableBundle getConfigForSubId(Context context, int subId) { in getConfigForSubId() method in TelephonyUtils 124 PersistableBundle carrierConfig = carrierConfigManager.getConfigForSubId(subId); in getConfigForSubId() 136 return getConfigForSubId(context, subId).getString( in getFcmSenderId() 147 return getConfigForSubId(context, subId).getString( in getEntitlementServerUrl() 158 return getConfigForSubId(context, subId).getBoolean( in isImsProvisioningRequired() 169 return getConfigForSubId(context, subId).getInt( in getEntitlementVersion() 180 return getConfigForSubId(context, subId).getBoolean( in getDefaultStatus()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | CarrierPreferenceControllerTest.java | 98 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() 108 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() 118 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() 129 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityFound_openCarrierSettingActivity() 150 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotFound_DoNothing() 164 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotConfigured_DoNothing()
|
D | ApnPreferenceControllerTest.java | 92 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable() 102 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable() 112 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable() 120 when(mCarrierConfigCache.getConfigForSubId(SUB_ID)).thenReturn(null); in getAvailabilityStatus_carrierConfigNull_returnUnavailable() 131 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
|
D | CarrierSettingsVersionPreferenceControllerTest.java | 58 doReturn(null).when(mCarrierConfigCache).getConfigForSubId(mSubscriptionId); in getSummary_nullConfig_noCrash() 66 .getConfigForSubId(mSubscriptionId); in getSummary_nullVersionString_noCrash() 75 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(mSubscriptionId); in getSummary_hasVersionString_correctSummary()
|
D | RoamingPreferenceControllerTest.java | 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 | 114 doReturn(config).when(mCarrierConfigManager).getConfigForSubId(SUB_ID, in setUp() 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/tests/spa_unit/src/com/android/settings/system/ |
D | ClientInitiatedActionRepositoryTest.kt | 50 on { getConfigForSubId(any(), any()) } doThrow(RuntimeException()) in onSystemUpdate_runtimeException_doNothing() 61 on { getConfigForSubId(any(), any()) } doThrow(IllegalStateException()) in onSystemUpdate_illegalStateException_doNothing() 72 on { getConfigForSubId(any(), any()) } doReturn persistableBundleOf() in onSystemUpdate_notEnabled() 83 on { getConfigForSubId(any(), any()) } doReturn persistableBundleOf( in onSystemUpdate_enabled()
|
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | SimPinReplayManagerTest.java | 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/services/Telephony/tests/src/com/android/phone/ |
D | NotificationMgrTest.java | 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() 455 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_worldMode_userSetTDSCDMA_notSupported_notifNotSent() 483 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_worldMode_userSetWCDMA_notificationSent() 504 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(config); in testUpdateNetworkSelection_worldPhone_networkSelectionNotHide_notificationSent() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoManagerTest.java | 272 when(mCarrierConfigManager.getConfigForSubId(anyInt())) in setUp() 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() 469 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in restoreAutoJoinForOobPseudonymDisabled() 471 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in restoreAutoJoinForOobPseudonymDisabled() 515 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)).thenReturn(bundle); in receivedCarrierConfigChangedAllowMergedNetworkToFalse() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | CrossSimRedialingControllerTest.java | 130 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in setUp() 212 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickStartTimerInService() 235 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickStartTimerInServiceRoaming() 253 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickStartTimerOutOfService() 271 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickStartTimerOutOfServiceRoaming() 289 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testNoNormalStartTimerInService() 308 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickWhenInServiceStartTimerOutOfService() 327 .getConfigForSubId(anyInt(), ArgumentMatchers.<String>any()); in testQuickNoNormalStartTimerInService()
|
D | EmergencyCallDomainSelectorTest.java | 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() 1454 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testVoLteOnEpsImsNotRegisteredSelectPs() 1477 when(mCarrierConfigManager.getConfigForSubId(anyInt(), anyVararg())).thenReturn(bundle); in testVoLteOffEpsImsNotRegisteredScanCsPreferred() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | CarrierConfigCache.java | 140 public PersistableBundle getConfigForSubId(int subId) { in getConfigForSubId() method in CarrierConfigCache 147 final PersistableBundle config = sCarrierConfigManager.getConfigForSubId(subId); in getConfigForSubId() 165 return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId()); in getConfig()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileDownloaderTest.java | 105 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testNullSMDPAddress() 184 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureUnresolvableError() 270 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureConnectionError() 327 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureTimeout() 384 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureOperationBusy() 441 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureInvalidResponse() 633 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testMultipleDownloadRequests() 692 .getConfigForSubId(TEST_SUB_ID); in testDownloadRequestFailures() 733 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadRequestWithPrimaryESim()
|
D | ONSProfileActivatorTest.java | 105 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_1); in setUp() 307 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_0); in testNonCBRSCarrierPSIMInserted() 368 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_0); in testOneCBRSPSIMAndOneNonCBRSESIM() 404 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_0); in testOneCBRSPSIMAndOneOpportunisticESIM() 675 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_0); in testESIMDownloadFailureAndRetry()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | CarrierConfigManagerExtTest.kt | 45 on { getConfigForSubId(any(), eq(KEY)) } doReturn persistableBundleOf(KEY to VALUE) in safeGetConfig_managerReturnKeyValue_returnNonEmptyBundle() 57 on { getConfigForSubId(any(), eq(KEY)) } doThrow IllegalStateException() in safeGetConfig_managerThrowIllegalStateException_returnEmptyBundle()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | CarrierPreferenceController.java | 52 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus() 77 final PersistableBundle config = mCarrierConfigCache.getConfigForSubId(subId); in getCarrierSettingsActivityIntent()
|
D | RoamingPreferenceController.java | 82 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in getAvailabilityStatus() 148 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId( in isDialogNeeded()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/ |
D | AutoSelectPreferenceController.kt | 73 private val getConfigForSubId: (subId: Int) -> PersistableBundle = { subId -> in <lambda>() constant 74 CarrierConfigCache.getInstance(context).getConfigForSubId(subId) in <lambda>() 146 getConfigForSubId(subId) in onlyAutoSelectInHome()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileActivator.java | 463 PersistableBundle config = mCarrierConfigMgr.getConfigForSubId(subscriptionId); in getDownloadRetryMaxAttemptsVal() 475 PersistableBundle config = mCarrierConfigMgr.getConfigForSubId(subscriptionId); in getDownloadRetryBackOffTimerVal() 519 PersistableBundle config = mCarrierConfigMgr.getConfigForSubId(pSIMSubId); in isOppDataAutoProvisioningSupported() 561 PersistableBundle config = mCarrierConfigMgr.getConfigForSubId(subscriptionId); in getESIMDownloadViaWiFiOnlyFlag()
|
/packages/services/Telephony/src/com/android/phone/satellite/entitlement/ |
D | SatelliteEntitlementController.java | 589 return new SatelliteEntitlementApi(mContext, getConfigForSubId(subId), subId); in getSatelliteEntitlementApi() 602 return getConfigForSubId(subId).getInt( in getSatelliteEntitlementStatusRefreshDays() 617 return getConfigForSubId(subId).getBoolean( in isSatelliteEntitlementSupported() 622 private PersistableBundle getConfigForSubId(int subId) { in getConfigForSubId() method in SatelliteEntitlementController 623 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(subId, in getConfigForSubId()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | RoamingPreferenceControllerTest.java | 203 when(mMockCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(bundle); in callChangeListener_toggleTrue_needsDialog_showDialog() 217 when(mMockCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(bundle); in confirmDialog_turnOnRoaming() 245 when(mMockCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(bundle); in callChangeListener_toggleTrue_doesntNeedDialog_turnOnRoaming()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | RTTSettingPreferenceController.java | 112 PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in isRttSettingSupported() 153 final PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(subId); in getBooleanCarrierConfig()
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | QnsCarrierConfigManagerTest.java | 1579 doReturn(bundle).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsHandoverAllowedByPolicyWithTestBundle() 1742 doReturn(bundle).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsMmtelCapabilityRequiredWithTestBundle() 1751 doReturn(bundle).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsMmtelCapabilityRequiredWithTestBundle() 1760 doReturn(bundle).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsMmtelCapabilityRequiredWithTestBundle() 1769 doReturn(bundle).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsMmtelCapabilityRequiredWithTestBundle() 1774 doReturn(null).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testIsMmtelCapabilityRequiredWithTestBundle() 1794 doReturn(bundleCurrent).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testCheckHandoverRuleConfigChangeWithTestBundle() 1833 doReturn(bundleNew).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testCheckHandoverRuleConfigChangeWithTestBundle() 1867 doReturn(bundleNew).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testCheckHandoverRuleConfigChangeWithTestBundle() 1871 doReturn(bundleNew).when(mMockCarrierConfigManager).getConfigForSubId(anyInt()); in testCheckHandoverRuleConfigChangeWithTestBundle() [all …]
|