Searched refs:mockTelephonyManager (Results 1 – 2 of 2) sorted by relevance
33 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()
1203 TelephonyManager mockTelephonyManager = Mockito.mock(TelephonyManager.class); in setCarrierPrivilegesForSubId() local1204 doReturn(mockTelephonyManager).when(mTelephonyManager).createForSubscriptionId(subId); in setCarrierPrivilegesForSubId()1207 mockTelephonyManager).getCarrierPrivilegeStatus(anyInt()); in setCarrierPrivilegesForSubId()