Home
last modified time | relevance | path

Searched refs:mockTelephonyManager (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileTelephonyHelpers.kt33 fun getTelephonyCallbacks(mockTelephonyManager: TelephonyManager): List<TelephonyCallback> { in getTelephonyCallbacks()
35 verify(mockTelephonyManager).registerTelephonyCallback(any(), callbackCaptor.capture()) in getTelephonyCallbacks()
55 inline fun <reified T> getTelephonyCallbackForType(mockTelephonyManager: TelephonyManager): T { in telephonyDisplayInfo()
56 val cbs = getTelephonyCallbacks(mockTelephonyManager).filterIsInstance<T>() in telephonyDisplayInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java1203 TelephonyManager mockTelephonyManager = Mockito.mock(TelephonyManager.class); in setCarrierPrivilegesForSubId() local
1204 doReturn(mockTelephonyManager).when(mTelephonyManager).createForSubscriptionId(subId); in setCarrierPrivilegesForSubId()
1207 mockTelephonyManager).getCarrierPrivilegeStatus(anyInt()); in setCarrierPrivilegesForSubId()