Home
last modified time | relevance | path

Searched refs:dispatcher (Results 1 – 25 of 52) sorted by relevance

123

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
H A DDeviceVolumeBehaviorTest.java99 TestDeviceVolumeBehaviorDispatcherStub dispatcher = in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher() local
101 mAudioService.registerDeviceVolumeBehaviorDispatcher(true, dispatcher); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
108 dispatcher.reset(); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
112 assertThat(dispatcher.mTimesCalled).isEqualTo(1); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
113 assertThat(dispatcher.mDevice).isEqualTo(DEVICE_SPEAKER_OUT); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
115 + " but was instead " + dispatcher.mVolumeBehavior) in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
116 .that(dispatcher.mVolumeBehavior).isEqualTo(behavior); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher()
126 TestDeviceVolumeBehaviorDispatcherStub dispatcher = in setToSameBehavior_doesNotTriggerDeviceVolumeBehaviorDispatcher() local
133 assertThat(dispatcher.mTimesCalled).isEqualTo(0); in setToSameBehavior_doesNotTriggerDeviceVolumeBehaviorDispatcher()
142 TestDeviceVolumeBehaviorDispatcherStub dispatcher = in unregisterDeviceVolumeBehaviorDispatcher_noLongerTriggered() local
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DPhoneFallbackEventHandler.java113 if (isNotInstantAppAndKeyguardRestricted(dispatcher)) { in onKeyDown()
117 dispatcher.startTracking(event, this); in onKeyDown()
119 dispatcher.performedLongPress(event); in onKeyDown()
139 if (isNotInstantAppAndKeyguardRestricted(dispatcher)) { in onKeyDown()
143 dispatcher.startTracking(event, this); in onKeyDown()
145 dispatcher.performedLongPress(event); in onKeyDown()
163 if (isNotInstantAppAndKeyguardRestricted(dispatcher)) { in onKeyDown()
167 dispatcher.startTracking(event, this); in onKeyDown()
183 dispatcher.performedLongPress(event); in onKeyDown()
211 if (dispatcher != null) { in onKeyUp()
[all …]
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java38 AudioPlaybackQueueItem(UtteranceProgressDispatcher dispatcher, in AudioPlaybackQueueItem() argument
41 super(dispatcher, callerIdentity); in AudioPlaybackQueueItem()
53 final UtteranceProgressDispatcher dispatcher = getDispatcher(); in run() local
55 dispatcher.dispatchOnStart(); in run()
62 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
93 dispatcher.dispatchOnSuccess(); in run()
95 dispatcher.dispatchOnStop(); in run()
H A DSynthesisPlaybackQueueItem.java80 int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, in SynthesisPlaybackQueueItem() argument
82 super(dispatcher, callerIdentity); in SynthesisPlaybackQueueItem()
102 final UtteranceProgressDispatcher dispatcher = getDispatcher(); in run() local
103 dispatcher.dispatchOnStart(); in run()
106 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
138 final UtteranceProgressDispatcher dispatcher = getDispatcher(); in dispatchEndStatus() local
141 dispatcher.dispatchOnSuccess(); in dispatchEndStatus()
143 dispatcher.dispatchOnStop(); in dispatchEndStatus()
145 dispatcher.dispatchOnError(mStatusCode); in dispatchEndStatus()
H A DPlaybackQueueItem.java11 PlaybackQueueItem(TextToSpeechService.UtteranceProgressDispatcher dispatcher, in PlaybackQueueItem() argument
13 mDispatcher = dispatcher; in PlaybackQueueItem()
H A DSilencePlaybackQueueItem.java25 SilencePlaybackQueueItem(UtteranceProgressDispatcher dispatcher, in SilencePlaybackQueueItem() argument
27 super(dispatcher, callerIdentity); in SilencePlaybackQueueItem()
/aosp14/frameworks/base/media/java/android/media/midi/
H A DMidiDeviceServer.java160 MidiDispatcher dispatcher = mOutputPortDispatchers[portNumber]; in close() local
161 synchronized (dispatcher) { in close()
162 dispatcher.getSender().disconnect(mInputPort); in close()
163 int openCount = dispatcher.getReceiverCount(); in close()
254 MidiDispatcher dispatcher = mOutputPortDispatchers[portNumber];
255 synchronized (dispatcher) {
256 dispatcher.getSender().connect(inputPort);
257 int openCount = dispatcher.getReceiverCount();
307 synchronized (dispatcher) {
308 dispatcher.getSender().connect(inputPort);
[all …]
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Dbroadcasts.md3 ## What is this dispatcher?
5 This is an internal dispatcher class for global broadcasts that SystemUI components want to receive…
7 ## Why use the dispatcher?
16 ## Should I use the dispatcher?
18 The dispatcher supports `BroadcastReceiver` dynamic subscriptions in the following cases:
26 Additionally, the dispatcher supports the following:
33 …ed in `AndroidManifest`) that satisfies the constraints above, use the dispatcher to reduce the lo…
47 * Do not use the dispatcher to obtain the last broadcast (by passing a null `BroadcastReceiver`). `…
50 ## How do I use the dispatcher?
52 Acquire the dispatcher by using `@Inject` to obtain a `BroadcastDispatcher`. Then, use the followin…
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/
H A DFakeBluetoothRepository.kt35 private val dispatcher = StandardTestDispatcher(scheduler) regex
36 private val testScope = TestScope(dispatcher)
39 BluetoothRepositoryImpl(testScope.backgroundScope, dispatcher, localBluetoothManager)
H A DBluetoothRepositoryImplTest.kt43 private lateinit var dispatcher: TestDispatcher
55 dispatcher = StandardTestDispatcher(scheduler)
56 testScope = TestScope(dispatcher)
59 BluetoothRepositoryImpl(testScope.backgroundScope, dispatcher, localBluetoothManager)
78 dispatcher,
/aosp14/frameworks/base/media/java/android/media/
H A DIAudioService.aidl442 IStrategyPreferredDevicesDispatcher dispatcher); in unregisterStrategyPreferredDevicesDispatcher() argument
445 IStrategyNonDefaultDevicesDispatcher dispatcher); in registerStrategyNonDefaultDevicesDispatcher() argument
448 IStrategyNonDefaultDevicesDispatcher dispatcher); in unregisterStrategyNonDefaultDevicesDispatcher() argument
477 ICapturePresetDevicesRoleDispatcher dispatcher); in unregisterCapturePresetDevicesRoleDispatcher() argument
501 void registerCommunicationDeviceDispatcher(ICommunicationDeviceDispatcher dispatcher); in registerCommunicationDeviceDispatcher() argument
504 ICommunicationDeviceDispatcher dispatcher); in unregisterCommunicationDeviceDispatcher() argument
529 void registerModeDispatcher(IAudioModeDispatcher dispatcher); in registerModeDispatcher() argument
531 oneway void unregisterModeDispatcher(IAudioModeDispatcher dispatcher); in unregisterModeDispatcher() argument
642 in IDeviceVolumeBehaviorDispatcher dispatcher); in registerDeviceVolumeBehaviorDispatcher() argument
685 IPreferredMixerAttributesDispatcher dispatcher); in registerPreferredMixerAttributesDispatcher() argument
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/power/data/repository/
H A DPowerRepository.kt51 dispatcher: BroadcastDispatcher,
66 dispatcher.registerReceiver(
75 awaitClose { dispatcher.unregisterReceiver(receiver) }
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/
H A DTaskSwitcherNotificationCoordinatorTest.kt54 private val dispatcher = UnconfinedTestDispatcher() regex
55 private val testScope = TestScope(dispatcher)
64 backgroundDispatcher = dispatcher
83 dispatcher,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/data/repository/
H A DActivityTaskManagerTasksRepositoryTest.kt41 private val dispatcher = UnconfinedTestDispatcher() regex
42 private val testScope = TestScope(dispatcher)
48 backgroundDispatcher = dispatcher
H A DMediaProjectionManagerRepositoryTest.kt43 private val dispatcher = StandardTestDispatcher() regex
44 private val testScope = TestScope(dispatcher)
53 backgroundDispatcher = dispatcher
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
H A DConditionalRestarterTest.kt42 val dispatcher = StandardTestDispatcher() regex
43 val testScope = TestScope(dispatcher)
57 dispatcher
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
H A DCoroutinesModule.kt20 @Main dispatcher: CoroutineDispatcher,
21 ): CoroutineScope = CoroutineScope(dispatcher)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/
H A DPowerRepositoryImplTest.kt57 @Mock private lateinit var dispatcher: BroadcastDispatcher
76 dispatcher,
100 verify(dispatcher).unregisterReceiver(receiverCaptor.value)
200 verify(dispatcher)
/aosp14/frameworks/base/libs/dream/lowlight/src/com/android/dream/lowlight/dagger/
H A DLowLightDreamModule.kt76 fun providesApplicationScope(@Main dispatcher: CoroutineDispatcher): CoroutineScope {
77 return CoroutineScope(dispatcher)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/domain/interactor/
H A DTaskSwitchInteractorTest.kt45 private val dispatcher = UnconfinedTestDispatcher() regex
46 private val testScope = TestScope(dispatcher)
55 backgroundDispatcher = dispatcher
/aosp14/frameworks/base/core/java/android/window/
H A DImeOnBackInvokedDispatcher.java58 WindowOnBackInvokedDispatcher dispatcher = getReceivingDispatcher(); in ImeOnBackInvokedDispatcher()
59 if (dispatcher != null) { in ImeOnBackInvokedDispatcher()
60 receive(resultCode, resultData, dispatcher); in ImeOnBackInvokedDispatcher()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/
H A DTaskSwitcherNotificationViewModelTest.kt47 private val dispatcher = UnconfinedTestDispatcher() regex
48 private val testScope = TestScope(dispatcher)
57 backgroundDispatcher = dispatcher
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/data/repository/
H A DKeyboardRepositoryTest.kt65 private lateinit var dispatcher: CoroutineDispatcher
76 dispatcher = StandardTestDispatcher()
77 testScope = TestScope(dispatcher)
78 underTest = KeyboardRepositoryImpl(testScope.backgroundScope, dispatcher, inputManager)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
H A DIconLoaderLibAppIconLoaderTest.kt48 private val dispatcher = Dispatchers.Unconfined regex
52 backgroundDispatcher = dispatcher,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DCredentialViewModelTest.kt32 private val dispatcher = UnconfinedTestDispatcher() regex
43 PromptCredentialInteractor(dispatcher, promptRepository, credentialInteractor)
172 runTest(dispatcher) {

123