Home
last modified time | relevance | path

Searched refs:receiverData (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt126 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnFirstAdd() constant
128 actionReceiver.addReceiverData(receiverData) in testRegistersOnFirstAdd()
149 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRemovingLastReceiverUnregisters() constant
151 actionReceiver.addReceiverData(receiverData) in testRemovingLastReceiverUnregisters()
178 val receiverData = ReceiverData(receiver1, filter, directExecutor, USER) in testReceiverHasCategories() constant
180 actionReceiver.addReceiverData(receiverData) in testReceiverHasCategories()
188 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION2), directExecutor, USER) in testNotRegisteredWithWrongAction_throwsException() constant
190 actionReceiver.addReceiverData(receiverData) in testNotRegisteredWithWrongAction_throwsException()
195 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testReceiverGetsBroadcast() constant
196 actionReceiver.addReceiverData(receiverData) in testReceiverGetsBroadcast()
[all …]
DUserBroadcastDispatcherTest.kt109 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testSingleReceiverRegistered() constant
111 userBroadcastDispatcher.registerReceiver(receiverData, FLAG) in testSingleReceiverRegistered()
116 verify(actionReceiver)?.addReceiverData(receiverData) in testSingleReceiverRegistered()
122 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testDifferentActionReceiversForDifferentFlags() constant
127 userBroadcastDispatcher.registerReceiver(receiverData, flag1) in testDifferentActionReceiversForDifferentFlags()
128 userBroadcastDispatcher.registerReceiver(receiverData, flag2) in testDifferentActionReceiversForDifferentFlags()
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DUserBroadcastDispatcher.kt91 fun registerReceiver(receiverData: ReceiverData, flags: Int) { in <lambda>()
92 handleRegisterReceiver(receiverData, flags) in <lambda>()
103 private fun handleRegisterReceiver(receiverData: ReceiverData, flags: Int) { in <lambda>()
107 .getOrPut(receiverData.receiver, { ArraySet() }) in <lambda>()
108 .addAll(receiverData.filter.actionsIterator()?.asSequence() ?: emptySequence()) in <lambda>()
109 receiverData.filter.actionsIterator().forEach { in <lambda>()
112 ReceiverProperties(it, flags, receiverData.permission), in <lambda>()
113 { createActionReceiver(it, receiverData.permission, flags) }) in <lambda>()
114 .addReceiverData(receiverData) in <lambda>()
116 logger.logReceiverRegistered(userId, receiverData.receiver, flags) in <lambda>()
DActionReceiver.kt70 fun addReceiverData(receiverData: ReceiverData) { in addReceiverData()
71 if (!receiverData.filter.hasAction(action)) { in addReceiverData()
76 .addAll(receiverData.filter.categoriesIterator()?.asSequence() ?: emptySequence()) in addReceiverData()
78 if (receiverDatas.add(receiverData) && receiverDatas.size == 1) { in addReceiverData()