Searched refs:hasAnyListeners (Results 1 – 4 of 4) sorted by relevance
41 assertThat(mTelephonyCallback.hasAnyListeners()).isFalse(); in testAddListener_ActiveDataSubscriptionIdListener()43 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener()45 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener()50 assertThat(mTelephonyCallback.hasAnyListeners()).isFalse(); in testAddListener_CallStateListener()52 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_CallStateListener()54 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_CallStateListener()59 assertThat(mTelephonyCallback.hasAnyListeners()).isFalse(); in testAddListener_ServiceStateListener()61 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ServiceStateListener()63 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ServiceStateListener()71 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testRemoveListener_ActiveDataSubscriptionIdListener()[all …]
64 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_ActiveDataSubscriptionIdListener()76 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_CallStateListener()88 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_ServiceStateListener()100 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_mixed()114 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener()123 when(mTelephonyCallback.hasAnyListeners()).thenReturn(false); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener()134 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testRemoveListenerUnregisters_CallStateListener()143 when(mTelephonyCallback.hasAnyListeners()).thenReturn(false); in testRemoveListenerUnregisters_CallStateListener()154 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testRemoveListenerUnregisters_ServiceStateListener()163 when(mTelephonyCallback.hasAnyListeners()).thenReturn(false); in testRemoveListenerUnregisters_ServiceStateListener()[all …]
97 if (!mListening && mTelephonyCallback.hasAnyListeners()) { in updateListening()100 } else if (mListening && !mTelephonyCallback.hasAnyListeners()) { in updateListening()
49 boolean hasAnyListeners() { in hasAnyListeners() method in TelephonyCallback