/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/ |
D | PowerRepositoryImplTest.kt | 58 @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/ |
D | LogBufferFreezerTest.kt | 53 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/ |
D | NotificationsSoundPolicyRepositoryTest.kt | 52 @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/ |
D | HeaderPrivacyIconsControllerTest.kt | 195 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/ |
D | AudioManagerEventsReceiverTest.kt | 55 @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/ |
D | DreamTileTest.java | 239 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/ |
D | BackgroundJobsControllerTest.java | 135 ArgumentCaptor<BroadcastReceiver> receiverCaptor = in setUp() local 142 verify(mContext).registerReceiverAsUser(receiverCaptor.capture(), any(), in setUp() 147 mStoppedReceiver = receiverCaptor.getValue(); in setUp()
|
D | FlexibilityControllerTest.java | 206 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/ |
D | ControlsStartableTest.kt | 267 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/ |
D | CountQuotaTrackerTest.java | 157 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/ |
D | AppStateTrackerTest.java | 267 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/ |
D | ImsPhoneCallTrackerTest.java | 301 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/ |
D | DisplayManagerServiceTest.java | 3095 ArgumentCaptor<BroadcastReceiver> receiverCaptor = 3099 verify(mContext).registerReceiver(receiverCaptor.capture(), argThat(matchesFilter)); 3100 BroadcastReceiver receiver = receiverCaptor.getValue();
|