/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | VideoCallingPreferenceControllerTest.java | 49 private ImsManager mImsManager; field in VideoCallingPreferenceControllerTest 76 mController.mImsManager = mImsManager; in setUp() 79 doReturn(true).when(mImsManager).isVtEnabledByPlatform(); in setUp() 80 doReturn(true).when(mImsManager).isVtProvisionedOnDevice(); in setUp() 81 doReturn(ImsFeature.STATE_READY).when(mImsManager).getImsServiceState(); in setUp() 87 assertThat(mController.isVideoCallEnabled(SUB_ID, mImsManager)).isTrue(); in isVideoCallEnabled_allFlagsOn_returnTrue() 92 doReturn(false).when(mImsManager).isVtEnabledByPlatform(); in isVideoCallEnabled_disabledByPlatform_returnFalse() 94 assertThat(mController.isVideoCallEnabled(SUB_ID, mImsManager)).isFalse(); in isVideoCallEnabled_disabledByPlatform_returnFalse() 103 assertThat(mController.isVideoCallEnabled(SUB_ID, mImsManager)).isFalse(); in isVideoCallEnabled_dataDisabled_returnFalse() 108 doReturn(false).when(mImsManager).isEnhanced4gLteModeSettingEnabledByUser(); in updateState_4gLteOff_disabled() [all …]
|
D | WifiCallingPreferenceControllerTest.java | 61 private ImsManager mImsManager; field in WifiCallingPreferenceControllerTest 84 mController.mImsManager = mImsManager; in setUp() 101 when(mImsManager.isWfcEnabledByUser()).thenReturn(true); in updateState_noSimCallManager_setCorrectSummary() 102 when(mImsManager.getWfcMode(anyBoolean())).thenReturn( in updateState_noSimCallManager_setCorrectSummary() 135 mController.mImsManager = mImsManager; in updateState_wfcNonRoaming() 137 when(mImsManager.getWfcMode(true)).thenReturn( in updateState_wfcNonRoaming() 139 when(mImsManager.getWfcMode(false)).thenReturn( in updateState_wfcNonRoaming() 141 when(mImsManager.isWfcEnabledByUser()).thenReturn(true); in updateState_wfcNonRoaming() 153 when(mImsManager.getWfcMode(true)).thenReturn( in updateState_wfcRoaming() 155 when(mImsManager.getWfcMode(false)).thenReturn( in updateState_wfcRoaming() [all …]
|
D | Enhanced4gLtePreferenceControllerTest.java | 58 private ImsManager mImsManager; field in Enhanced4gLtePreferenceControllerTest 83 mController.mImsManager = mImsManager; in setUp() 97 doReturn(false).when(mImsManager).isVolteEnabledByPlatform(); in getAvailabilityStatus_volteDisabled_returnUnavailable() 98 doReturn(true).when(mImsManager).isVolteProvisionedOnDevice(); in getAvailabilityStatus_volteDisabled_returnUnavailable() 166 doReturn(true).when(mImsManager).isNonTtyOrTtyOnVolteEnabled(); in updateState_configEnabled_prefEnabled() 177 doReturn(true).when(mImsManager).isEnhanced4gLteModeSettingEnabledByUser(); in updateState_configOn_prefChecked() 178 doReturn(true).when(mImsManager).isNonTtyOrTtyOnVolteEnabled(); in updateState_configOn_prefChecked()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | Enhanced4gLtePreferenceController.java | 52 ImsManager mImsManager; field in Enhanced4gLtePreferenceController 77 && mImsManager != null && carrierConfig != null in getAvailabilityStatus() 78 && mImsManager.isVolteEnabledByPlatform() in getAvailabilityStatus() 79 && mImsManager.isVolteProvisionedOnDevice() in getAvailabilityStatus() 80 && MobileNetworkUtils.isImsServiceStateReady(mImsManager) in getAvailabilityStatus() 119 switchPreference.setChecked(mImsManager.isEnhanced4gLteModeSettingEnabledByUser() in updateState() 120 && mImsManager.isNonTtyOrTtyOnVolteEnabled()); in updateState() 125 mImsManager.setEnhanced4gLteModeSetting(isChecked); in setChecked() 134 return mImsManager.isEnhanced4gLteModeSettingEnabledByUser(); in isChecked() 142 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init() [all …]
|
D | VideoCallingPreferenceController.java | 52 ImsManager mImsManager; field in VideoCallingPreferenceController 94 final boolean videoCallEnabled = isVideoCallEnabled(mSubId, mImsManager); in updateState() 97 final boolean is4gLteEnabled = mImsManager.isEnhanced4gLteModeSettingEnabledByUser() in updateState() 98 && mImsManager.isNonTtyOrTtyOnVolteEnabled(); in updateState() 101 switchPreference.setChecked(is4gLteEnabled && mImsManager.isVtEnabledByUser()); in updateState() 107 mImsManager.setVtSetting(isChecked); in setChecked() 113 return mImsManager.isVtEnabledByUser(); in isChecked() 120 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
|
D | WifiCallingPreferenceController.java | 59 ImsManager mImsManager; field in WifiCallingPreferenceController 131 if (mImsManager.isWfcEnabledByUser()) { in updateState() 134 int wfcMode = mImsManager.getWfcMode(isRoaming && wfcRoamingEnabled); in updateState() 159 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | Enhanced4gLtePreferenceController.java | 52 ImsManager mImsManager; field in Enhanced4gLtePreferenceController 77 && mImsManager != null && carrierConfig != null in getAvailabilityStatus() 78 && mImsManager.isVolteEnabledByPlatform() in getAvailabilityStatus() 79 && mImsManager.isVolteProvisionedOnDevice() in getAvailabilityStatus() 80 && MobileNetworkUtils.isImsServiceStateReady(mImsManager) in getAvailabilityStatus() 119 switchPreference.setChecked(mImsManager.isEnhanced4gLteModeSettingEnabledByUser() in updateState() 120 && mImsManager.isNonTtyOrTtyOnVolteEnabled()); in updateState() 125 mImsManager.setEnhanced4gLteModeSetting(isChecked); in setChecked() 134 return mImsManager.isEnhanced4gLteModeSettingEnabledByUser(); in isChecked() 142 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init() [all …]
|
D | VideoCallingPreferenceController.java | 52 ImsManager mImsManager; field in VideoCallingPreferenceController 95 final boolean videoCallEnabled = isVideoCallEnabled(mSubId, mImsManager); in updateState() 98 final boolean is4gLteEnabled = mImsManager.isEnhanced4gLteModeSettingEnabledByUser() in updateState() 99 && mImsManager.isNonTtyOrTtyOnVolteEnabled(); in updateState() 102 switchPreference.setChecked(is4gLteEnabled && mImsManager.isVtEnabledByUser()); in updateState() 108 mImsManager.setVtSetting(isChecked); in setChecked() 114 return mImsManager.isVtEnabledByUser(); in isChecked() 121 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
|
D | WifiCallingPreferenceController.java | 59 ImsManager mImsManager; field in WifiCallingPreferenceController 129 if (mImsManager.isWfcEnabledByUser()) { in updateState() 132 int wfcMode = mImsManager.getWfcMode(isRoaming && wfcRoamingEnabled); in updateState() 157 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSub.java | 100 private ImsManager mImsManager; field in WifiCallingSettingsForSub 113 boolean isNonTtyOrTtyOnVolteEnabled = mImsManager.isNonTtyOrTtyOnVolteEnabled(); 263 mImsManager = getImsManager(); in onCreate() 303 if (!mImsManager.isWfcProvisionedOnDevice()) { in updateBody() 344 boolean wfcEnabled = mImsManager.isWfcEnabledByUser() in updateBody() 345 && mImsManager.isNonTtyOrTtyOnVolteEnabled(); in updateBody() 347 int wfcMode = mImsManager.getWfcMode(false); in updateBody() 348 int wfcRoamingMode = mImsManager.getWfcMode(true); in updateBody() 362 if (mImsManager.isWfcEnabledByPlatform()) { in onResume() 379 mImsManager.getConfigInterface().addConfigCallback(mProvisioningCallback); in onResume() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettingsForSub.java | 100 private ImsManager mImsManager; field in WifiCallingSettingsForSub 113 boolean isNonTtyOrTtyOnVolteEnabled = mImsManager.isNonTtyOrTtyOnVolteEnabled(); 262 mImsManager = getImsManager(); in onCreate() 302 if (!mImsManager.isWfcProvisionedOnDevice()) { in updateBody() 343 boolean wfcEnabled = mImsManager.isWfcEnabledByUser() in updateBody() 344 && mImsManager.isNonTtyOrTtyOnVolteEnabled(); in updateBody() 346 int wfcMode = mImsManager.getWfcMode(false); in updateBody() 347 int wfcRoamingMode = mImsManager.getWfcMode(true); in updateBody() 361 if (mImsManager.isWfcEnabledByPlatform()) { in onResume() 378 mImsManager.getConfigInterface().addConfigCallback(mProvisioningCallback); in onResume() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSubTest.java | 85 @Mock private ImsManager mImsManager; field in WifiCallingSettingsForSubTest 126 doReturn(mImsManager).when(mFragment).getImsManager(); in setUp() 127 doReturn(mImsConfig).when(mImsManager).getConfigInterface(); in setUp() 128 doReturn(true).when(mImsManager).isWfcProvisionedOnDevice(); in setUp() 129 doReturn(true).when(mImsManager).isWfcEnabledByUser(); in setUp() 130 doReturn(true).when(mImsManager).isNonTtyOrTtyOnVolteEnabled(); in setUp() 132 .when(mImsManager).getWfcMode(anyBoolean()); in setUp() 174 doReturn(false).when(mImsManager).isWfcProvisionedOnDevice(); in onResume_provisioningDisallowed_shouldFinish() 254 verify(mImsManager, times(1)).setWfcMode( in onPreferenceChange_useWfcHomeModeConfigFalse_shouldNotSetWfcRoaming() 257 verify(mImsManager, never()).setWfcMode( in onPreferenceChange_useWfcHomeModeConfigFalse_shouldNotSetWfcRoaming() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RadioInfo.java | 226 private ImsManager mImsManager = null; field in RadioInfo 411 mImsManager = ImsManager.getInstance(getApplicationContext(), in onCreate() 1283 if (phone != null && mImsManager != null) { in setImsConfigProvisionedState() 1287 mImsManager.getConfigInterface().setProvisionedValue( in setImsConfigProvisionedState() 1307 if (phone != null && mImsManager != null) { in isImsVolteProvisioned() 1308 return mImsManager.isVolteEnabledByPlatform(phone.getContext()) in isImsVolteProvisioned() 1309 && mImsManager.isVolteProvisionedOnDevice(phone.getContext()); in isImsVolteProvisioned() 1322 if (phone != null && mImsManager != null) { in isImsVtProvisioned() 1323 return mImsManager.isVtEnabledByPlatform(phone.getContext()) in isImsVtProvisioned() 1324 && mImsManager.isVtProvisionedOnDevice(phone.getContext()); in isImsVtProvisioned() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 238 private ImsManager mImsManager = null; field in RadioInfo 373 mImsManager = ImsManager.getInstance(getApplicationContext(), phoneIndex); in updatePhoneIndex() 439 mImsManager = ImsManager.getInstance(getApplicationContext(), in onCreate() 1378 if (mPhone != null && mImsManager != null) { in setImsConfigProvisionedState() 1382 mImsManager.getConfigInterface().setProvisionedValue( in setImsConfigProvisionedState() 1402 if (mPhone != null && mImsManager != null) { in isImsVolteProvisioned() 1403 return mImsManager.isVolteEnabledByPlatform(mPhone.getContext()) in isImsVolteProvisioned() 1404 && mImsManager.isVolteProvisionedOnDevice(mPhone.getContext()); in isImsVolteProvisioned() 1417 if (mPhone != null && mImsManager != null) { in isImsVtProvisioned() 1418 return mImsManager.isVtEnabledByPlatform(mPhone.getContext()) in isImsVtProvisioned() [all …]
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | ImsCallingActivity.java | 130 private ImsMmTelManager mImsManager; field in ImsCallingActivity 166 mImsManager = ImsMmTelManager.createForSubscriptionId( in onResume() 169 mImsManager.registerMmTelCapabilityCallback(getMainExecutor(), mCapabilityCallback); in onResume() 178 mImsManager.unregisterMmTelCapabilityCallback(mCapabilityCallback); in onPause() 179 mImsManager = null; in onPause()
|
D | ImsRegistrationActivity.java | 166 private ImsMmTelManager mImsManager; field in ImsRegistrationActivity 182 mImsManager = ImsMmTelManager.createForSubscriptionId( in onResume() 184 mImsManager.registerImsRegistrationCallback(getMainExecutor(), mRegistrationCallback); in onResume() 224 mImsManager.unregisterImsRegistrationCallback(mRegistrationCallback); in onPause() 225 mImsManager = null; in onPause()
|