Home
last modified time | relevance | path

Searched refs:mBinderCache (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DBinderCacheManagerTest.java49 private BinderCacheManager<IInterface> mBinderCache; field in BinderCacheManagerTest
55 mBinderCache = new BinderCacheManager<>(() -> mInterface); in setUp()
62 assertEquals(mInterface, mBinderCache.getBinder()); in testGetConnection()
64 assertNull(mBinderCache.getBinder()); in testGetConnection()
72 assertEquals(mInterface, mBinderCache.listenOnBinder(l, l::countDown)); in testAddListenerAndDie()
76 assertNull(mBinderCache.getBinder()); in testAddListenerAndDie()
78 assertNull(mBinderCache.listenOnBinder(l, l::countDown)); in testAddListenerAndDie()
79 assertNull(mBinderCache.removeRunnable(l)); in testAddListenerAndDie()
88 assertEquals(mInterface, mBinderCache.listenOnBinder(l, l::countDown)); in testListenerNotCalledAfterRemoved()
89 assertEquals(mInterface, mBinderCache.removeRunnable(l)); in testListenerNotCalledAfterRemoved()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsStateCallbackTest.java51 BinderCacheManager<ITelephony> mBinderCache; field in ImsStateCallbackTest
77 mBinderCache = mock(BinderCacheManager.class); in setUp()
79 doReturn(mMockTelephonyInterface).when(mBinderCache) in setUp()
81 doReturn(mMockTelephonyInterface).when(mBinderCache) in setUp()
83 doReturn(mMockTelephonyInterface).when(mBinderCache).getBinder(); in setUp()
102 replaceInstance(ImsMmTelManager.class, "mBinderCache", mmTelManager, mBinderCache); in testMmTelRegisterAndUnregisterImsStateCallbackValues()
105 verify(mBinderCache).listenOnBinder(any(), any(Runnable.class)); in testMmTelRegisterAndUnregisterImsStateCallbackValues()
123 new ImsRcsManager(mContext, SUB_ID_ONE, mRcsBinderCache, mBinderCache); in testRcsRegisterAndUnregisterImsStateCallbackValues()
125 replaceInstance(ImsRcsManager.class, "mTelephonyBinderCache", rcsManager, mBinderCache); in testRcsRegisterAndUnregisterImsStateCallbackValues()
128 verify(mBinderCache).listenOnBinder(any(), any(Runnable.class)); in testRcsRegisterAndUnregisterImsStateCallbackValues()
[all …]
DImsMmTelManagerTests.java43 BinderCacheManager<ITelephony> mBinderCache; field in ImsMmTelManagerTests
58 mBinderCache = mock(BinderCacheManager.class); in setUp()
59 doReturn(mMockTelephonyInterface).when(mBinderCache).getBinder(); in setUp()
75 ImsMmTelManager managerUT = new ImsMmTelManager(0, mBinderCache); in testDeprecatedCallbackValues()
/frameworks/base/telephony/java/android/telephony/ims/
DSipDelegateManager.java287 private final BinderCacheManager<IImsRcsController> mBinderCache; field in SipDelegateManager
301 mBinderCache = binderCache; in SipDelegateManager()
324 IImsRcsController controller = mBinderCache.getBinder(); in isSupported()
374 IImsRcsController controller = mBinderCache.listenOnBinder(wrapper, in createSipDelegate()
406 IImsRcsController c = mBinderCache.removeRunnable(w); in destroySipDelegate()
443 IImsRcsController controller = mBinderCache.getBinder(); in triggerFullNetworkRegistration()
539 IImsRcsController controller = mBinderCache.listenOnBinder( in registerSipDialogStateCallback()
571 IImsRcsController controller = mBinderCache.removeRunnable(callback); in unregisterSipDialogStateCallback()
DImsMmTelManager.java233 private final BinderCacheManager<ITelephony> mBinderCache; field in ImsMmTelManager
287 mBinderCache = binderCache; in ImsMmTelManager()
1676 ITelephony telephony = mBinderCache.listenOnBinder(callback, callback::binderDied); in registerImsStateCallback()
1701 ITelephony telephony = mBinderCache.removeRunnable(callback); in unregisterImsStateCallback()
1720 return mBinderCache.getBinder(); in getITelephony()
DImsRcsManager.java209 private final BinderCacheManager<IImsRcsController> mBinderCache; field in ImsRcsManager
223 mBinderCache = binderCache; in ImsRcsManager()
/frameworks/opt/net/ims/src/java/com/android/ims/
DRcsFeatureManager.java145 private final BinderCacheManager<IImsRcsController> mBinderCache field in RcsFeatureManager
525 IImsRcsController controller = mBinderCache.listenOnBinder(cb, () -> { in registerFeatureCallback()
561 IImsRcsController imsRcsController = mBinderCache.removeRunnable(cb); in unregisterFeatureCallback()
573 return mBinderCache.getBinder(); in getIImsRcsController()
DImsManager.java450 private BinderCacheManager<ITelephony> mBinderCache; field in ImsManager
2095 mBinderCache = new BinderCacheManager<>(ImsManager::getITelephonyInterface); in ImsManager()
2118 mBinderCache = binderCacheManager; in ImsManager()
3088 ITelephony telephony = mBinderCache.listenOnBinder(cb, () -> { in registerFeatureCallback()
3122 ITelephony telephony = mBinderCache.removeRunnable(cb); in unregisterFeatureCallback()
3150 return mBinderCache.getBinder(); in getITelephony()