Home
last modified time | relevance | path

Searched refs:receiverCaptor (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/
DPowerRepositoryImplTest.kt58 @Captor private lateinit var receiverCaptor: ArgumentCaptor<BroadcastReceiver> variable in com.android.systemui.power.data.repository.PowerRepositoryImplTest
100 verify(dispatcher).unregisterReceiver(receiverCaptor.value) in isInteractive_unregistersFromBroadcasts()
137 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_ON)) in isInteractive_emitsTrueWhenTheScreenTurnsOn()
151 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsFalseWhenTheScreenTurnsOff()
165 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
167 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_ON)) in isInteractive_emitsCorrectlyOverTime()
169 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
235 capture(receiverCaptor), in verifyRegistered()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogBufferFreezerTest.kt53 lateinit var receiverCaptor: ArgumentCaptor<BroadcastReceiver> variable in com.android.systemui.dump.LogBufferFreezerTest
68 capture(receiverCaptor), in setUp()
74 receiver = receiverCaptor.value in setUp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/statusbar/notification/data/repository/
DNotificationsSoundPolicyRepositoryTest.kt52 @Captor private lateinit var receiverCaptor: ArgumentCaptor<BroadcastReceiver> variable in com.android.settingslib.statusbar.notification.data.repository.NotificationsSoundPolicyRepositoryTest
110 verify(context).registerReceiver(receiverCaptor.capture(), any()) in triggerIntent()
111 receiverCaptor.value.onReceive(context, Intent(action)) in triggerIntent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DHeaderPrivacyIconsControllerTest.kt195 val receiverCaptor = argumentCaptor<BroadcastReceiver>() in eq() constant
197 verify(broadcastDispatcher).registerReceiver(capture(receiverCaptor), in eq()
199 receiverCaptor.value.onReceive( in eq()
216 val receiverCaptor = argumentCaptor<BroadcastReceiver>() in eq() constant
218 verify(broadcastDispatcher).registerReceiver(capture(receiverCaptor), in eq()
220 receiverCaptor.value.onReceive( in eq()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/shared/
DAudioManagerEventsReceiverTest.kt55 @Captor private lateinit var receiverCaptor: ArgumentCaptor<BroadcastReceiver> variable in com.android.settingslib.volume.shared.AudioManagerEventsReceiverTest
136 verify(context).registerReceiver(receiverCaptor.capture(), any()) in triggerIntent()
137 receiverCaptor.value.onReceive(context, intent) in triggerIntent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDreamTileTest.java239 final ArgumentCaptor<BroadcastReceiver> receiverCaptor = ArgumentCaptor.forClass( in testIconDockState() local
242 verify(mBroadcastDispatcher).registerReceiver(receiverCaptor.capture(), any()); in testIconDockState()
243 final BroadcastReceiver receiver = receiverCaptor.getValue(); in testIconDockState()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBackgroundJobsControllerTest.java135 ArgumentCaptor<BroadcastReceiver> receiverCaptor = in setUp() local
142 verify(mContext).registerReceiverAsUser(receiverCaptor.capture(), any(), in setUp()
147 mStoppedReceiver = receiverCaptor.getValue(); in setUp()
DFlexibilityControllerTest.java206 ArgumentCaptor<BroadcastReceiver> receiverCaptor = in setup() local
224 verify(mContext).registerReceiver(receiverCaptor.capture(), in setup()
227 mBroadcastReceiver = receiverCaptor.getValue(); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/
DControlsStartableTest.kt267 val receiverCaptor = argumentCaptor<BroadcastReceiver>() in testPreferredSelectionIsPanel_userNotUnlocked_broadcastRegistered_broadcastSentBinds() constant
271 capture(receiverCaptor), in testPreferredSelectionIsPanel_userNotUnlocked_broadcastRegistered_broadcastSentBinds()
282 receiverCaptor.value.onReceive(mock(), Intent(Intent.ACTION_USER_UNLOCKED)) in testPreferredSelectionIsPanel_userNotUnlocked_broadcastRegistered_broadcastSentBinds()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java157 ArgumentCaptor<BroadcastReceiver> receiverCaptor = in setUp() local
164 receiverCaptor.capture(), eq(UserHandle.ALL), any(), any(), any()); in setUp()
165 mReceiver = receiverCaptor.getValue(); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java267 ArgumentCaptor<BroadcastReceiver> receiverCaptor = in callStart() local
288 receiverCaptor.capture(), any(IntentFilter.class)); in callStart()
295 mReceiver = receiverCaptor.getValue(); in callStart()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java301 final ArgumentCaptor<BroadcastReceiver> receiverCaptor = in setUp() local
303 verify(mContext).registerReceiver(receiverCaptor.capture(), any()); in setUp()
304 mBroadcastReceiver = receiverCaptor.getValue(); in setUp()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java3095 ArgumentCaptor<BroadcastReceiver> receiverCaptor =
3099 verify(mContext).registerReceiver(receiverCaptor.capture(), argThat(matchesFilter));
3100 BroadcastReceiver receiver = receiverCaptor.getValue();