/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerTest.java | 49 import android.telephony.ims.feature.ImsFeature; 193 ImsFeature.FEATURE_MMTEL)); in testBindService() 195 ImsFeature.FEATURE_RCS)); in testBindService() 219 ImsFeature.FEATURE_MMTEL)); in testBindFailureWhenBound() 239 ImsFeature.FEATURE_MMTEL)); in testBindServiceAndConnected() 241 ImsFeature.FEATURE_RCS)); in testBindServiceAndConnected() 249 eq(ImsFeature.FEATURE_MMTEL), any()); in testBindServiceAndConnected() 252 eq(ImsFeature.FEATURE_RCS), any()); in testBindServiceAndConnected() 253 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_MMTEL), in testBindServiceAndConnected() 255 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_RCS), in testBindServiceAndConnected() [all …]
|
D | ImsResolverTest.java | 53 import android.telephony.ims.feature.ImsFeature; 226 ImsFeature.FEATURE_MMTEL); in testIsDeviceImsServiceConfigured() 229 ImsFeature.FEATURE_RCS); in testIsDeviceImsServiceConfigured() 255 ImsFeature.FEATURE_MMTEL); in testGetConfiguredImsServiceDevice() 258 ImsFeature.FEATURE_RCS); in testGetConfiguredImsServiceDevice() 279 ImsFeature.FEATURE_MMTEL); in testGetConfiguredImsServiceNoDeviceOrCarrier() 282 ImsFeature.FEATURE_RCS); in testGetConfiguredImsServiceNoDeviceOrCarrier() 308 ImsFeature.FEATURE_MMTEL); in testGetConfiguredImsServiceNoDeviceConfig() 311 ImsFeature.FEATURE_RCS); in testGetConfiguredImsServiceNoDeviceConfig() 340 ImsFeature.FEATURE_MMTEL)); in testGetConfiguredImsServiceCarrier() [all …]
|
D | ImsServiceControllerCompatTest.java | 39 import android.telephony.ims.feature.ImsFeature; 148 eq(ImsFeature.FEATURE_MMTEL), any()); in testBindServiceAndCrashCleanUp() 149 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_MMTEL), in testBindServiceAndCrashCleanUp() 158 eq(ImsFeature.FEATURE_MMTEL)); in testBindServiceAndCrashCleanUp() 164 mRepo.getIfExists(slotId, ImsFeature.FEATURE_MMTEL).orElse(null); in validateMmTelFeatureContainerExists() 174 mRepo.getIfExists(slotId, ImsFeature.FEATURE_MMTEL).orElse(null); in validateMmTelFeatureContainerDoesntExist() 181 ImsFeature.FEATURE_MMTEL)); in bindAndConnectService()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsServiceTest.java | 39 import android.telephony.ims.feature.ImsFeature; 104 mTestImsServiceCompatBinder.addFeatureStatusCallback(TEST_SLOT_0, ImsFeature.FEATURE_MMTEL, in testCreateMMTelFeatureCompat() 106 mTestImsServiceCompat.mTestMmTelFeature.sendSetFeatureState(ImsFeature.STATE_READY); in testCreateMMTelFeatureCompat() 108 ImsFeature featureToVerify = mTestImsServiceCompat.getImsFeature(TEST_SLOT_0, in testCreateMMTelFeatureCompat() 109 ImsFeature.FEATURE_MMTEL); in testCreateMMTelFeatureCompat() 117 ImsFeature.FEATURE_MMTEL)); in testCreateMMTelFeatureCompat() 123 assertEquals(ImsFeature.STATE_READY, f.getFeatureState()); in testCreateMMTelFeatureCompat() 131 mTestImsServiceCompatBinder.addFeatureStatusCallback(TEST_SLOT_0, ImsFeature.FEATURE_MMTEL, in testNotCreateMMTelFeatureCompat() 133 mTestImsServiceCompat.mTestMmTelFeature.sendSetFeatureState(ImsFeature.STATE_READY); in testNotCreateMMTelFeatureCompat() 135 ImsFeature featureToVerify = mTestImsServiceCompat.getImsFeature(TEST_SLOT_0, in testNotCreateMMTelFeatureCompat() [all …]
|
D | ImsFeatureTest.java | 31 import android.telephony.ims.feature.ImsFeature; 102 verify(mTestStatusCallback).notifyImsFeatureStatus(eq(ImsFeature.STATE_UNAVAILABLE)); in testSetCallbackAndNotify() 103 verify(mTestStatusCallback2).notifyImsFeatureStatus(eq(ImsFeature.STATE_UNAVAILABLE)); in testSetCallbackAndNotify() 112 mTestImsFeature.testSetFeatureState(ImsFeature.STATE_READY); in testSetFeatureAndCheckCallback() 114 verify(mTestStatusCallback).notifyImsFeatureStatus(eq(ImsFeature.STATE_READY)); in testSetFeatureAndCheckCallback() 115 verify(mTestStatusCallback2).notifyImsFeatureStatus(eq(ImsFeature.STATE_READY)); in testSetFeatureAndCheckCallback() 116 assertEquals(ImsFeature.STATE_READY, mTestImsFeature.getFeatureState()); in testSetFeatureAndCheckCallback() 122 ImsFeature.Capabilities c = new ImsFeature.Capabilities(); in testCapabilityConfigAdd() 131 ImsFeature.Capabilities c = new ImsFeature.Capabilities(); in testCapabilityConfigAddMultiple() 141 ImsFeature.Capabilities c = new ImsFeature.Capabilities(); in testCapabilityConfigHasMultiple() [all …]
|
D | TestImsFeature.java | 21 import android.telephony.ims.feature.ImsFeature; 23 public class TestImsFeature extends ImsFeature { 29 public int setCapabilitiesResult = ImsFeature.CAPABILITY_SUCCESS; 51 if (setCapabilitiesResult != ImsFeature.CAPABILITY_SUCCESS) { in changeEnabledCapabilities() 56 ImsFeature.CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
|
D | ImsRegistrationTests.java | 35 import android.telephony.ims.feature.ImsFeature; 77 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigParcel() 78 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigParcel() 94 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigPermutationEqual() 95 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigPermutationEqual() 100 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigPermutationEqual() 101 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigPermutationEqual() 112 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigConstructorsEqual() 113 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigConstructorsEqual() 118 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigConstructorsEqual() [all …]
|
D | TestMmTelFeature.java | 23 import android.telephony.ims.feature.ImsFeature; 37 public int setCapabilitiesResult = ImsFeature.CAPABILITY_SUCCESS; 125 if (setCapabilitiesResult != ImsFeature.CAPABILITY_SUCCESS) { in changeEnabledCapabilities() 130 ImsFeature.CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
D | ImsFeatureBinderRepositoryTest.java | 35 import android.telephony.ims.feature.ImsFeature; 91 mRepository.addConnection(TEST_PHONE_ID_1, TEST_SUB_ID_3, ImsFeature.FEATURE_MMTEL, fc); in testGetInterfaceExists() 93 mRepository.getIfExists(TEST_PHONE_ID_1, ImsFeature.FEATURE_MMTEL).orElse(null); in testGetInterfaceExists() 104 ImsFeature.FEATURE_MMTEL).orElse(null); in testGetInterfaceDoesntExist() 113 mRepository.addConnection(TEST_PHONE_ID_1, TEST_SUB_ID_3, ImsFeature.FEATURE_MMTEL, fc); in testGetInterfaceRemoveDoesntExist() 114 mRepository.addConnection(TEST_PHONE_ID_1, TEST_SUB_ID_3, ImsFeature.FEATURE_MMTEL, null); in testGetInterfaceRemoveDoesntExist() 117 ImsFeature.FEATURE_MMTEL).orElse(null); in testGetInterfaceRemoveDoesntExist() 128 mRepository.addConnection(TEST_PHONE_ID_1, TEST_SUB_ID_3, ImsFeature.FEATURE_MMTEL, fcA); in testGetInterfaceUpdateExists() 129 mRepository.addConnection(TEST_PHONE_ID_1, TEST_SUB_ID_3, ImsFeature.FEATURE_MMTEL, fcB); in testGetInterfaceUpdateExists() 132 ImsFeature.FEATURE_MMTEL).orElse(null); in testGetInterfaceUpdateExists() [all …]
|
D | FeatureConnectorTest.java | 40 import android.telephony.ims.feature.ImsFeature; 163 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnect() 190 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnectReadyNotReady() 194 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_UNAVAILABLE, SUB_ID); in testConnectReadyNotReady() 206 filterList.add(ImsFeature.STATE_READY); in testConnectReadyAndInitializing() 207 filterList.add(ImsFeature.STATE_INITIALIZING); in testConnectReadyAndInitializing() 216 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_INITIALIZING, SUB_ID); in testConnectReadyAndInitializing() 223 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnectReadyAndInitializing() 236 filterList.add(ImsFeature.STATE_READY); in testConnectReadyAndUnavailable() 237 filterList.add(ImsFeature.STATE_INITIALIZING); in testConnectReadyAndUnavailable() [all …]
|
D | FeatureConnectionTest.java | 32 import android.telephony.ims.feature.ImsFeature; 49 private Integer mFeatureState = ImsFeature.STATE_READY; 53 public int mNewStatus = ImsFeature.STATE_UNAVAILABLE; 115 mTestFeatureConnection.setFeatureState(ImsFeature.STATE_READY); in testServiceIsReady() 142 mTestFeatureConnection.setFeatureState(ImsFeature.STATE_UNAVAILABLE); in testServiceIsNotReady()
|
D | MmTelFeatureConnectionTest.java | 27 import android.telephony.ims.feature.ImsFeature; 87 && mFeatureConnection.getFeatureState() == ImsFeature.STATE_READY; in isBinderReady() 104 when(mFeatureConnection.getFeatureState()).thenReturn(ImsFeature.STATE_READY); in setUp() 200 when(mFeatureConnection.getFeatureState()).thenReturn(ImsFeature.STATE_UNAVAILABLE); in testCallbackAdapter_removeCallbackSuccessAfterImsFeatureStateChangeToUnavailable() 234 when(mFeatureConnection.getFeatureState()).thenReturn(ImsFeature.STATE_UNAVAILABLE); in testCallbackAdapter_addCallbackFailedAfterBinderIsNotReady()
|
D | ImsFeatureContainerTest.java | 29 import android.telephony.ims.feature.ImsFeature; 61 final int state = ImsFeature.STATE_READY; in testParcelUnparcel()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/ |
D | ImsService.java | 26 import android.telephony.ims.compat.feature.ImsFeature; 85 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 146 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures() 153 setupFeature(f, slotId, ImsFeature.EMERGENCY_MMTEL); in createEmergencyMMTelFeatureInternal() 163 setupFeature(f, slotId, ImsFeature.MMTEL); in createMMTelFeatureInternal() 173 setupFeature(f, slotId, ImsFeature.RCS); in createRcsFeatureInternal() 180 private void setupFeature(ImsFeature f, int slotId, int featureType) { in setupFeature() 187 private void addImsFeature(int slotId, int featureType, ImsFeature f) { in addImsFeature() 190 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature() 204 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeatureStatusCallback() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsFeatureBinderRepository.java | 23 import android.telephony.ims.feature.ImsFeature; 136 public final @ImsFeature.FeatureType int imsFeatureType; 142 public UpdateMapper(int pId, @ImsFeature.FeatureType int t) { in UpdateMapper() 256 + ImsFeature.FEATURE_LOG_MAP.get(imsFeatureType) + ", container=" in toString() 282 int phoneId, @ImsFeature.FeatureType int type) { in getIfExists() 283 if (type < 0 || type >= ImsFeature.FEATURE_MAX) { in getIfExists() 289 logVerboseLineLocked(phoneId, "getIfExists, type= " + ImsFeature.FEATURE_LOG_MAP.get(type) in getIfExists() 306 @ImsFeature.FeatureType int type, @NonNull IImsServiceFeatureCallback callback, in registerForConnectionUpdates() 308 if (type < 0 || type >= ImsFeature.FEATURE_MAX || callback == null || executor == null) { in registerForConnectionUpdates() 313 + ImsFeature.FEATURE_LOG_MAP.get(type) +", conn= " + container); in registerForConnectionUpdates() [all …]
|
D | FeatureUpdates.java | 20 import android.telephony.ims.feature.ImsFeature; 63 void updateFeatureState(@ImsFeature.ImsState int state); in updateFeatureState()
|
D | FeatureConnection.java | 29 import android.telephony.ims.feature.ImsFeature; 165 return isBinderAlive() && getFeatureState() == ImsFeature.STATE_READY; in isBinderReady() 218 return ImsFeature.STATE_UNAVAILABLE; in getFeatureState() 224 + ImsFeature.STATE_LOG_MAP.get(state)); in getFeatureState()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsService.java | 37 import android.telephony.ims.feature.ImsFeature; 224 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 296 MmTelFeature f = (MmTelFeature) getImsFeature(slotId, ImsFeature.FEATURE_MMTEL); 307 MmTelFeature f = (MmTelFeature) getImsFeature(slotId, ImsFeature.FEATURE_MMTEL); 318 RcsFeature f = (RcsFeature) getImsFeature(slotId, ImsFeature.FEATURE_RCS); 471 setupFeature(f, slotId, ImsFeature.FEATURE_MMTEL); in createMmTelFeatureInternal() 483 setupFeature(f, slotId, ImsFeature.FEATURE_MMTEL); in createEmergencyOnlyMmTelFeatureInternal() 496 setupFeature(f, slotId, ImsFeature.FEATURE_RCS); in createRcsFeatureInternal() 504 private void setupFeature(ImsFeature f, int slotId, int featureType) { in setupFeature() 513 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeatureStatusCallback() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | ImsResolver.java | 46 import android.telephony.ims.feature.ImsFeature; 602 setDeviceConfiguration(defaultMmTelPackageName, ImsFeature.FEATURE_EMERGENCY_MMTEL); in ImsResolver() 603 setDeviceConfiguration(defaultMmTelPackageName, ImsFeature.FEATURE_MMTEL); in ImsResolver() 604 setDeviceConfiguration(defaultRcsPackageName, ImsFeature.FEATURE_RCS); in ImsResolver() 712 for (int f = ImsFeature.FEATURE_EMERGENCY_MMTEL; f < ImsFeature.FEATURE_MAX; f++) { in bindCarrierServicesIfAvailable() 849 private String getDeviceConfiguration(@ImsFeature.FeatureType int featureType) { in getDeviceConfiguration() 855 private void setDeviceConfiguration(String name, @ImsFeature.FeatureType int featureType) { in setDeviceConfiguration() 863 @ImsFeature.FeatureType int featureType) { in setCarrierConfiguredPackageName() 869 @ImsFeature.FeatureType int featureType) { in getCarrierConfiguredPackageName() 885 for (int f = ImsFeature.FEATURE_EMERGENCY_MMTEL; f < ImsFeature.FEATURE_MAX; f++) { in removeOverridePackageName() [all …]
|
D | ImsServiceController.java | 41 import android.telephony.ims.feature.ImsFeature; 316 + ImsFeature.FEATURE_LOG_MAP.get(mFeatureType) + ", status=" 317 + ImsFeature.STATE_LOG_MAP.get(featureStatus)); 464 .filter(feature -> feature.featureType == ImsFeature.FEATURE_EMERGENCY_MMTEL) in sanitizeFeatureConfig() 468 ImsFeature.FEATURE_MMTEL))) { in sanitizeFeatureConfig() 748 if (featureTypes.contains(ImsFeature.FEATURE_EMERGENCY_MMTEL)) { in modifyCapabiltiesForSlot() 755 if (!featureTypes.contains(ImsFeature.FEATURE_MMTEL) in modifyCapabiltiesForSlot() 756 || !featureTypes.contains(ImsFeature.FEATURE_RCS)) { in modifyCapabiltiesForSlot() 799 if (featurePair.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL) { in addImsServiceFeature() 822 if (featurePair.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL) { in removeImsServiceFeature() [all …]
|
D | ImsServiceControllerCompat.java | 31 import android.telephony.ims.compat.feature.ImsFeature; 184 case ImsFeature.MMTEL: { in createImsFeature() 187 case ImsFeature.RCS: { in createImsFeature() 215 if (featureType == ImsFeature.MMTEL) { in removeImsFeature()
|
/frameworks/base/telephony/java/com/android/ims/ |
D | ImsFeatureContainer.java | 28 import android.telephony.ims.feature.ImsFeature; 61 private @ImsFeature.ImsState int mState = ImsFeature.STATE_UNAVAILABLE; 115 public @ImsFeature.ImsState int getState() { in getState() 123 public void setState(@ImsFeature.ImsState int state) { in setState() 153 ", state=" + ImsFeature.STATE_LOG_MAP.get(mState) + in toString()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsFeatureConfiguration.java | 24 import android.telephony.ims.feature.ImsFeature; 50 public final @ImsFeature.FeatureType int featureType; 59 public FeatureSlotPair(int slotId, @ImsFeature.FeatureType int featureType) { in FeatureSlotPair() 85 return "{s=" + slotId + ", f=" + ImsFeature.FEATURE_LOG_MAP.get(featureType) + "}"; in toString() 111 public Builder addFeature(int slotId, @ImsFeature.FeatureType int featureType) { in addFeature()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierSmsUtils.java | 25 import android.telephony.ims.feature.ImsFeature; 86 ImsFeature.FEATURE_RCS); in getImsRcsPackage()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/ |
D | RcsFeature.java | 28 public class RcsFeature extends ImsFeature {
|