Home
last modified time | relevance | path

Searched refs:actionReceiver (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt96 private lateinit var actionReceiver: ActionReceiver variable in com.android.systemui.broadcast.ActionReceiverTest
106 actionReceiver = ActionReceiver( in setUp()
119 assertFalse(actionReceiver.registered) in testStartsUnregistered()
120 verify(registerFunction, never()).invoke(sameNotNull(actionReceiver), in testStartsUnregistered()
128 actionReceiver.addReceiverData(receiverData) in testRegistersOnFirstAdd()
130 assertTrue(actionReceiver.registered) in testRegistersOnFirstAdd()
131 verify(registerFunction).invoke(sameNotNull(actionReceiver), capture(intentFilterCaptor)) in testRegistersOnFirstAdd()
141 actionReceiver.addReceiverData(receiverData1) in testRegistersOnlyOnce()
142 actionReceiver.addReceiverData(receiverData2) in testRegistersOnlyOnce()
144 verify(registerFunction).invoke(sameNotNull(actionReceiver), any(IntentFilter::class.java)) in testRegistersOnlyOnce()
[all …]
DUserBroadcastDispatcherTest.kt114 val actionReceiver = userBroadcastDispatcher.getActionReceiver(ACTION_1, FLAG) in testSingleReceiverRegistered() constant
115 assertNotNull(actionReceiver) in testSingleReceiverRegistered()
116 verify(actionReceiver)?.addReceiverData(receiverData) in testSingleReceiverRegistered()
177 val actionReceiver = userBroadcastDispatcher.getActionReceiver(ACTION_1, FLAG) in testSingleReceiverUnregistered() constant
178 assertNotNull(actionReceiver) in testSingleReceiverUnregistered()
179 verify(actionReceiver)?.removeReceiver(broadcastReceiver) in testSingleReceiverUnregistered()
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DUserBroadcastDispatcher.kt183 actionsToActionsReceivers.forEach { (actionFlagsPerm, actionReceiver) -> in <lambda>() method
189 actionReceiver.dump(pw, args) in <lambda>()