/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsFeatureTest.java | 28 import android.telephony.ims.feature.ImsFeature; 47 private ImsFeature.CapabilityCallback mCapabilityCallback; 58 mCapabilityCallback = Mockito.spy(new ImsFeature.CapabilityCallback()); in setUp() 74 verify(mTestStatusCallback).notifyImsFeatureStatus(eq(ImsFeature.STATE_UNAVAILABLE)); in testSetCallbackAndNotify() 75 verify(mTestStatusCallback2).notifyImsFeatureStatus(eq(ImsFeature.STATE_UNAVAILABLE)); in testSetCallbackAndNotify() 84 mTestImsFeature.testSetFeatureState(ImsFeature.STATE_READY); in testSetFeatureAndCheckCallback() 86 verify(mTestStatusCallback).notifyImsFeatureStatus(eq(ImsFeature.STATE_READY)); in testSetFeatureAndCheckCallback() 87 verify(mTestStatusCallback2).notifyImsFeatureStatus(eq(ImsFeature.STATE_READY)); in testSetFeatureAndCheckCallback() 88 assertEquals(ImsFeature.STATE_READY, mTestImsFeature.getFeatureState()); in testSetFeatureAndCheckCallback() 94 ImsFeature.Capabilities c = new ImsFeature.Capabilities(); in testCapabilityConfigAdd() [all …]
|
D | ImsServiceTest.java | 35 import android.telephony.ims.feature.ImsFeature; 86 mTestImsService.mTestMmTelFeature.sendSetFeatureState(ImsFeature.STATE_READY); in testCreateMMTelFeature() 88 SparseArray<ImsFeature> features = mTestImsService.getFeatures(TEST_SLOT_0); in testCreateMMTelFeature() 89 ImsFeature featureToVerify = features.get(ImsFeature.FEATURE_MMTEL); in testCreateMMTelFeature() 100 assertEquals(ImsFeature.STATE_READY, f.getFeatureState()); in testCreateMMTelFeature() 108 mTestImsServiceBinder.removeImsFeature(TEST_SLOT_0, ImsFeature.FEATURE_MMTEL, in testRemoveMMTelFeature() 113 SparseArray<ImsFeature> features = mTestImsService.getFeatures(TEST_SLOT_0); in testRemoveMMTelFeature() 114 assertNull(features.get(ImsFeature.FEATURE_MMTEL)); in testRemoveMMTelFeature() 136 mTestImsService.mSpyMmTelFeature.sendSetFeatureState(ImsFeature.STATE_READY); in testImsServiceUpSentCompat() 158 mTestImsService.mSpyMmTelFeature.sendSetFeatureState(ImsFeature.STATE_INITIALIZING); in testImsServiceDownSentCompatInitializing() [all …]
|
D | TestImsFeature.java | 21 import android.telephony.ims.feature.ImsFeature; 23 public class TestImsFeature extends ImsFeature { 29 public int setCapabilitiesResult = ImsFeature.CAPABILITY_SUCCESS; 46 if (setCapabilitiesResult != ImsFeature.CAPABILITY_SUCCESS) { in changeEnabledCapabilities() 51 ImsFeature.CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
|
D | ImsRegistrationTests.java | 33 import android.telephony.ims.feature.ImsFeature; 71 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigParcel() 72 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigParcel() 88 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigPermutationEqual() 89 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigPermutationEqual() 94 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigPermutationEqual() 95 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigPermutationEqual() 106 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_MMTEL) in testRegistrationConfigConstructorsEqual() 107 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigConstructorsEqual() 112 .addFeature(/*slotId*/ 0, ImsFeature.FEATURE_RCS) in testRegistrationConfigConstructorsEqual() [all …]
|
D | TestMmTelFeature.java | 22 import android.telephony.ims.feature.ImsFeature; 33 public int setCapabilitiesResult = ImsFeature.CAPABILITY_SUCCESS; 104 if (setCapabilitiesResult != ImsFeature.CAPABILITY_SUCCESS) { in changeEnabledCapabilities() 109 ImsFeature.CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
|
D | MmTelFeatureTests.java | 34 import android.telephony.ims.feature.ImsFeature; 63 private ImsFeature.CapabilityCallback mCapabilityCallback; 95 mCapabilityCallback = spy(new ImsFeature.CapabilityCallback()); in setup()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/ |
D | ImsService.java | 25 import android.telephony.ims.compat.feature.ImsFeature; 84 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 130 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures() 138 setupFeature(f, slotId, ImsFeature.EMERGENCY_MMTEL, c); in createEmergencyMMTelFeatureInternal() 149 setupFeature(f, slotId, ImsFeature.MMTEL, c); in createMMTelFeatureInternal() 160 setupFeature(f, slotId, ImsFeature.RCS, c); in createRcsFeatureInternal() 167 private void setupFeature(ImsFeature f, int slotId, int featureType, in setupFeature() 177 private void addImsFeature(int slotId, int featureType, ImsFeature f) { in addImsFeature() 180 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature() 194 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeature() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsService.java | 31 import android.telephony.ims.feature.ImsFeature; 109 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 202 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures() 210 setupFeature(f, slotId, ImsFeature.FEATURE_MMTEL, c); in createMmTelFeatureInternal() 222 setupFeature(f, slotId, ImsFeature.FEATURE_RCS, c); in createRcsFeatureInternal() 230 private void setupFeature(ImsFeature f, int slotId, int featureType, in setupFeature() 237 private void addImsFeature(int slotId, int featureType, ImsFeature f) { in addImsFeature() 240 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature() 254 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeature() 260 ImsFeature f = features.get(featureType); in removeImsFeature()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | MmTelFeatureConnection.java | 35 import android.telephony.ims.feature.ImsFeature; 215 extends CallbackAdapterManager<ImsFeature.CapabilityCallback> { 218 private class CapabilityCallbackAdapter extends ImsFeature.CapabilityCallback { 221 public void onCapabilitiesStatusChanged(ImsFeature.Capabilities config) { in onCapabilitiesStatusChanged() 320 case ImsFeature.FEATURE_MMTEL: { 327 case ImsFeature.FEATURE_EMERGENCY_MMTEL: { 344 case ImsFeature.FEATURE_MMTEL: { 349 case ImsFeature.FEATURE_EMERGENCY_MMTEL : { 363 if (mSlotId == slotId && feature == ImsFeature.FEATURE_MMTEL) { 408 ? tm.getImsRegistration(mSlotId, ImsFeature.FEATURE_MMTEL) : null; in getRegistration() [all …]
|
D | ImsConnectionStateListener.java | 21 import android.telephony.ims.feature.ImsFeature; 72 ImsFeature.Capabilities c) { in onFeatureCapabilityChangedAdapter()
|
D | ImsManager.java | 42 import android.telephony.ims.feature.ImsFeature; 217 int status = ImsFeature.STATE_UNAVAILABLE; 225 case ImsFeature.STATE_READY: { 229 case ImsFeature.STATE_INITIALIZING: 231 case ImsFeature.STATE_UNAVAILABLE: { 1537 addCapabilitiesCallback(new ImsFeature.CapabilityCallback() { in addRegistrationListener() 1539 public void onCapabilitiesStatusChanged(ImsFeature.Capabilities config) { in addRegistrationListener() 1596 public void addCapabilitiesCallback(ImsFeature.CapabilityCallback callback) in addCapabilitiesCallback()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsResolverTest.java | 50 import android.telephony.ims.feature.ImsFeature; 178 features.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_MMTEL)); in testCarrierPackageBind() 179 features.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_RCS)); in testCarrierPackageBind() 206 features.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_MMTEL)); in testCarrierPackageBindWithEmergencyCalling() 207 features.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_RCS)); in testCarrierPackageBindWithEmergencyCalling() 230 features.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_MMTEL)); in testCarrierPackageChangeEmergencyCalling() 244 ImsFeature.FEATURE_MMTEL)); in testCarrierPackageChangeEmergencyCalling() 246 ImsFeature.FEATURE_EMERGENCY_MMTEL)); in testCarrierPackageChangeEmergencyCalling() 324 carrierFeatures.add(new ImsFeatureConfiguration.FeatureSlotPair(0, ImsFeature.FEATURE_RCS)); in testDeviceAndCarrierPackageBind() 363 mTestImsResolver.imsServiceFeatureCreated(1, ImsFeature.FEATURE_MMTEL, deviceController); in testGetDeviceCarrierFeatures() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | ImsServiceInterfaceAdapter.java | 24 import android.telephony.ims.compat.feature.ImsFeature; 41 private static final int SERVICE_ID = ImsFeature.MMTEL; 49 return getInterface().open(mSlotId, ImsFeature.MMTEL, incomingCallIntent, listener); in startSession() 65 return ImsFeature.STATE_READY; in getFeatureState() 69 getInterface().addRegistrationListener(mSlotId, ImsFeature.MMTEL, listener); in addRegistrationListener()
|
D | ImsServiceControllerCompat.java | 29 import android.telephony.ims.compat.feature.ImsFeature; 139 case ImsFeature.MMTEL: { in createImsFeature() 142 case ImsFeature.RCS: { in createImsFeature() 153 if (featureType == ImsFeature.MMTEL) { in removeImsFeature()
|
D | ImsServiceController.java | 36 import android.telephony.ims.feature.ImsFeature; 523 ImsFeatureContainer f = getImsFeatureContainer(slotId, ImsFeature.FEATURE_MMTEL); in getMmTelFeature() 537 ImsFeatureContainer f = getImsFeatureContainer(slotId, ImsFeature.FEATURE_RCS); in getRcsFeature() 684 if (featurePair.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL) { in addImsServiceFeature() 709 if (featurePair.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL) { in removeImsServiceFeature() 738 case ImsFeature.FEATURE_MMTEL: { in createImsFeature() 741 case ImsFeature.FEATURE_RCS: { in createImsFeature() 783 if (feature.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL) { in notifyAllFeaturesRemoved()
|
D | ImsResolver.java | 42 import android.telephony.ims.feature.ImsFeature; 549 ImsFeature.FEATURE_MMTEL, callback); in getMmTelFeatureAndListen() 565 ImsFeature.FEATURE_RCS, callback); in getRcsFeatureAndListen() 665 if (slotId < 0 || slotId >= mNumSlots || feature <= ImsFeature.FEATURE_INVALID in putImsController() 666 || feature >= ImsFeature.FEATURE_MAX) { in putImsController() 684 if (slotId < 0 || slotId >= mNumSlots || feature <= ImsFeature.FEATURE_INVALID in removeImsController() 685 || feature >= ImsFeature.FEATURE_MAX) { in removeImsController() 995 .filter(f -> f.featureType != ImsFeature.FEATURE_EMERGENCY_MMTEL).count(); in shouldFeaturesCauseBind() 1200 info.addFeatureForAllSlots(ImsFeature.FEATURE_EMERGENCY_MMTEL); in getStaticImsService() 1201 info.addFeatureForAllSlots(ImsFeature.FEATURE_MMTEL); in getStaticImsService() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsFeatureConfiguration.java | 22 import android.telephony.ims.feature.ImsFeature; 49 public final @ImsFeature.FeatureType int featureType; 58 public FeatureSlotPair(int slotId, @ImsFeature.FeatureType int featureType) { in FeatureSlotPair() 109 public Builder addFeature(int slotId, @ImsFeature.FeatureType int featureType) { in addFeature()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/ |
D | ImsFeature.java | 40 public abstract class ImsFeature { class 174 case ImsFeature.STATE_NOT_AVAILABLE: in sendImsServiceIntent() 175 case ImsFeature.STATE_INITIALIZING: in sendImsServiceIntent() 178 case ImsFeature.STATE_READY: in sendImsServiceIntent()
|
D | RcsFeature.java | 28 public class RcsFeature extends ImsFeature {
|
D | MMTelFeature.java | 46 public class MMTelFeature extends ImsFeature {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTrackerTest.java | 57 import android.telephony.ims.feature.ImsFeature; 88 private ImsFeature.CapabilityCallback mCapabilityCallback; 185 doReturn(ImsFeature.STATE_READY).when(mImsManager).getImsServiceState(); in setUp() 221 mCapabilityCallback = (ImsFeature.CapabilityCallback) invocation.getArguments()[0]; in setUp() 224 }).when(mImsManager).addCapabilitiesCallback(any(ImsFeature.CapabilityCallback.class)); in setUp() 285 ImsFeature.Capabilities caps = new ImsFeature.Capabilities(); in testVowifiDisabledOnLte() 303 ImsFeature.Capabilities caps = new ImsFeature.Capabilities(); in testVowifiDisabledOnIwlan() 321 ImsFeature.Capabilities caps = new ImsFeature.Capabilities(); in testImsFeatureCapabilityChange() 333 ImsFeature.Capabilities capsVideo = new ImsFeature.Capabilities(); in testImsFeatureCapabilityChange()
|
/frameworks/base/telephony/java/android/telephony/ims/feature/ |
D | ImsFeature.java | 49 public abstract class ImsFeature { class 450 case ImsFeature.STATE_UNAVAILABLE: in sendImsServiceIntent() 451 case ImsFeature.STATE_INITIALIZING: in sendImsServiceIntent() 454 case ImsFeature.STATE_READY: in sendImsServiceIntent()
|
D | RcsFeature.java | 28 public class RcsFeature extends ImsFeature {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ImsSmsDispatcher.java | 24 import android.telephony.ims.feature.ImsFeature; 93 private ImsFeature.CapabilityCallback mCapabilityCallback = 94 new ImsFeature.CapabilityCallback() { 96 public void onCapabilitiesStatusChanged(ImsFeature.Capabilities config) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTracker.java | 61 import android.telephony.ims.feature.ImsFeature; 2901 private final ImsFeature.CapabilityCallback mImsCapabilityCallback = 2902 new ImsFeature.CapabilityCallback() { 2904 public void onCapabilitiesStatusChanged(ImsFeature.Capabilities config) { 3109 ImsFeature.Capabilities capabilities = (ImsFeature.Capabilities) args.arg1; in handleMessage() 3796 private void handleFeatureCapabilityChanged(ImsFeature.Capabilities capabilities) { in handleFeatureCapabilityChanged()
|