Home
last modified time | relevance | path

Searched refs:ImsFeature (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java49 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 …]
DImsResolverTest.java53 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 …]
DImsServiceControllerCompatTest.java39 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/
DImsServiceTest.java39 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 …]
DImsFeatureTest.java31 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 …]
DTestImsFeature.java21 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()
DImsRegistrationTests.java35 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 …]
DTestMmTelFeature.java23 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/
DImsFeatureBinderRepositoryTest.java35 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 …]
DFeatureConnectorTest.java40 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 …]
DFeatureConnectionTest.java32 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()
DMmTelFeatureConnectionTest.java27 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()
DImsFeatureContainerTest.java29 import android.telephony.ims.feature.ImsFeature;
61 final int state = ImsFeature.STATE_READY; in testParcelUnparcel()
/frameworks/base/telephony/java/android/telephony/ims/compat/
DImsService.java26 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/
DImsFeatureBinderRepository.java23 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 …]
DFeatureUpdates.java20 import android.telephony.ims.feature.ImsFeature;
63 void updateFeatureState(@ImsFeature.ImsState int state); in updateFeatureState()
DFeatureConnection.java29 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/
DImsService.java37 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/
DImsResolver.java46 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 …]
DImsServiceController.java41 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 …]
DImsServiceControllerCompat.java31 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/
DImsFeatureContainer.java28 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/
DImsFeatureConfiguration.java24 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/
DCarrierSmsUtils.java25 import android.telephony.ims.feature.ImsFeature;
86 ImsFeature.FEATURE_RCS); in getImsRcsPackage()
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/
DRcsFeature.java28 public class RcsFeature extends ImsFeature {

123