/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
H A D | DeviceVolumeBehaviorTest.java | 99 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 D | PhoneFallbackEventHandler.java | 113 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 D | AudioPlaybackQueueItem.java | 38 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 D | SynthesisPlaybackQueueItem.java | 80 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 D | PlaybackQueueItem.java | 11 PlaybackQueueItem(TextToSpeechService.UtteranceProgressDispatcher dispatcher, in PlaybackQueueItem() argument 13 mDispatcher = dispatcher; in PlaybackQueueItem()
|
H A D | SilencePlaybackQueueItem.java | 25 SilencePlaybackQueueItem(UtteranceProgressDispatcher dispatcher, in SilencePlaybackQueueItem() argument 27 super(dispatcher, callerIdentity); in SilencePlaybackQueueItem()
|
/aosp14/frameworks/base/media/java/android/media/midi/ |
H A D | MidiDeviceServer.java | 160 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 D | broadcasts.md | 3 ## 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 D | FakeBluetoothRepository.kt | 35 private val dispatcher = StandardTestDispatcher(scheduler) regex 36 private val testScope = TestScope(dispatcher) 39 BluetoothRepositoryImpl(testScope.backgroundScope, dispatcher, localBluetoothManager)
|
H A D | BluetoothRepositoryImplTest.kt | 43 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 D | IAudioService.aidl | 442 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 D | PowerRepository.kt | 51 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 D | TaskSwitcherNotificationCoordinatorTest.kt | 54 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 D | ActivityTaskManagerTasksRepositoryTest.kt | 41 private val dispatcher = UnconfinedTestDispatcher() regex 42 private val testScope = TestScope(dispatcher) 48 backgroundDispatcher = dispatcher
|
H A D | MediaProjectionManagerRepositoryTest.kt | 43 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 D | ConditionalRestarterTest.kt | 42 val dispatcher = StandardTestDispatcher() regex 43 val testScope = TestScope(dispatcher) 57 dispatcher
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
H A D | CoroutinesModule.kt | 20 @Main dispatcher: CoroutineDispatcher, 21 ): CoroutineScope = CoroutineScope(dispatcher)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/ |
H A D | PowerRepositoryImplTest.kt | 57 @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 D | LowLightDreamModule.kt | 76 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 D | TaskSwitchInteractorTest.kt | 45 private val dispatcher = UnconfinedTestDispatcher() regex 46 private val testScope = TestScope(dispatcher) 55 backgroundDispatcher = dispatcher
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | ImeOnBackInvokedDispatcher.java | 58 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 D | TaskSwitcherNotificationViewModelTest.kt | 47 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 D | KeyboardRepositoryTest.kt | 65 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 D | IconLoaderLibAppIconLoaderTest.kt | 48 private val dispatcher = Dispatchers.Unconfined regex 52 backgroundDispatcher = dispatcher,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
H A D | CredentialViewModelTest.kt | 32 private val dispatcher = UnconfinedTestDispatcher() regex 43 PromptCredentialInteractor(dispatcher, promptRepository, credentialInteractor) 172 runTest(dispatcher) {
|