Home
last modified time | relevance | path

Searched refs:onEvent (Results 1 – 25 of 134) sorted by relevance

123456

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/property/
DCarPropertyServiceClientUnitTest.java195 mCarPropertyServiceClient.onEvent(events); in testOnEvent_listenerNotCalledIfNoPropertyAdded()
197 verify(mICarPropertyEventListener, never()).onEvent(any()); in testOnEvent_listenerNotCalledIfNoPropertyAdded()
206 mCarPropertyServiceClient.onEvent(events); in testOnEvent_listenerNotCalledIfBinderDead()
208 verify(mICarPropertyEventListener, never()).onEvent(any()); in testOnEvent_listenerNotCalledIfBinderDead()
217 mCarPropertyServiceClient.onEvent(events); in testOnEvent_listenerCalledForErrorEvents()
219 verify(mICarPropertyEventListener).onEvent(mCarPropertyEventListCaptor.capture()); in testOnEvent_listenerCalledForErrorEvents()
229 mCarPropertyServiceClient.onEvent(events); in testOnEvent_listenerCalledForChangeEvents()
231 verify(mICarPropertyEventListener).onEvent(mCarPropertyEventListCaptor.capture()); in testOnEvent_listenerCalledForChangeEvents()
244 mCarPropertyServiceClient.onEvent(events); in testOnEvent_listenerCalledForMultipleProperties()
246 verify(mICarPropertyEventListener).onEvent(mCarPropertyEventListCaptor.capture()); in testOnEvent_listenerCalledForMultipleProperties()
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConference.java88 onEvent(new Event(Event.CALL_AUDIO_STATE_CHANGED)); in onCallAudioStateChanged()
94 onEvent( in onConnectionAdded()
103 onEvent(new Event(Event.DISCONNECT)); in onDisconnect()
109 onEvent(new Event(Event.HOLD)); in onHold()
115 onEvent(new Event(Event.MERGE, SimulatorSimCallManager.getConnectionTag(connection), null)); in onMerge()
121 onEvent(new Event(Event.MERGE)); in onMerge()
127 onEvent(new Event(Event.DTMF, Character.toString(c), null)); in onPlayDtmfTone()
133 onEvent(new Event(Event.SEPARATE, SimulatorSimCallManager.getConnectionTag(connection), null)); in onSeparate()
144 onEvent(new Event(Event.SWAP)); in onSwap()
150 onEvent(new Event(Event.UNHOLD)); in onUnhold()
[all …]
DSimulatorConnection.java90 onEvent(new Event(Event.ANSWER, Integer.toString(videoState), null)); in onAnswer()
97 onEvent(new Event(Event.REJECT)); in onReject()
103 onEvent(new Event(Event.HOLD)); in onHold()
109 onEvent(new Event(Event.UNHOLD)); in onUnhold()
116 onEvent(new Event(Event.DISCONNECT)); in onDisconnect()
133 onEvent(new Event(Event.STATE_CHANGE, stateToString(oldState), stateToString(newState))); in onStateChanged()
139 onEvent(new Event(Event.DTMF, Character.toString(c), null)); in onPlayDtmfTone()
151 onEvent(new Event(Event.START_RTT)); in onStartRtt()
160 onEvent(new Event(Event.STOP_RTT)); in onStopRtt()
166 onEvent(new Event(Event.HANDLE_RTT_UPGRADE_RESPONSE)); in handleRttUpgradeResponse()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/property/
DCarPropertyEventCallbackControllerUnitTest.java198 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_doesNothingIfNoPropertiesAdded()
211 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_forwardsToCallback()
226 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_forwardsMultipleEvents()
229 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_forwardsMultipleEvents()
243 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_skipsStaleCarPropertyValues()
246 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_skipsStaleCarPropertyValues()
260 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_skipsCarPropertyValuesWithNonZeroUpdateRate()
263 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_skipsCarPropertyValuesWithNonZeroUpdateRate()
277 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_forwardsFreshCarPropertyValues()
280 mCarPropertyEventCallbackController.onEvent( in testOnEvent_changeEvent_forwardsFreshCarPropertyValues()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsDeadKeys.java59 mLatinIME.onEvent(event); in testDeadCircumflexSimple()
73 mLatinIME.onEvent(event); in testDeadCircumflexBackspace()
85 mLatinIME.onEvent(event); in testDeadCircumflexFeedback()
103 mLatinIME.onEvent(event); in testDeadDiaeresisSpace()
118 mLatinIME.onEvent(event); in testDeadAcuteLetterBackspace()
121 mLatinIME.onEvent(Event.createSoftwareKeypressEvent(Event.NOT_A_CODE_POINT, in testDeadAcuteLetterBackspace()
137 mLatinIME.onEvent(event); in testFinnishStroke()
160 mLatinIME.onEvent(event); in testDoubleDeadOgonek()
176 mLatinIME.onEvent(event); in testDeadCircumflexDeadDiaeresis()
193 mLatinIME.onEvent(event); in testDeadCircumflexDeadDiaeresisBackspace()
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DMediaQualityAnalyzerTest.cpp120 virtual void onEvent(int32_t /* type */, uint64_t /* param1 */, uint64_t /* param2 */) {} in onEvent() function in FakeMediaQualityCallback
208 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
214 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(8); in TEST_F()
276 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
305 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
336 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
366 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
391 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(1); in TEST_F()
421 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(3); in TEST_F()
449 EXPECT_CALL(mCallback, onEvent(kAudioCallQualityChangedInd, _, _)).Times(3); in TEST_F()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisherTest.java415 mCarPropertyCallbackCaptor.getValue().onEvent(Collections.singletonList(PROP_INT_EVENT)); in testOnNewCarPropertyEvent_pushesValueToDataSubscriber()
442 eventListener.onEvent(Collections.singletonList(PROP_STRING_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
443 eventListener.onEvent(Collections.singletonList(PROP_BOOLEAN_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
444 eventListener.onEvent(Collections.singletonList(PROP_INT_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
445 eventListener.onEvent(Collections.singletonList(PROP_INT_VEC_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
446 eventListener.onEvent(Collections.singletonList(PROP_LONG_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
447 eventListener.onEvent(Collections.singletonList(PROP_LONG_VEC_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
448 eventListener.onEvent(Collections.singletonList(PROP_FLOAT_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
449 eventListener.onEvent(Collections.singletonList(PROP_FLOAT_VEC_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
450 eventListener.onEvent(Collections.singletonList(PROP_BYTES_EVENT)); in testOnNewCarPropertyEvent_parsesValueCorrectly()
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/tests/src/com/android/car/portraitlauncher/common/test/
DUserEventReceiverTest.java110 listener.onEvent(event); in onUserSwitch_notPreviousUser_noCallback()
123 listener.onEvent(event); in onUserSwitch_wasPreviousUser_triggersCallback()
136 listener.onEvent(event); in onUserUnlock_otherUser_noCallback()
149 listener.onEvent(event); in onUserUnlock_currentUser_triggersCallback()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserEventManagerTest.java122 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers()
123 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers()
124 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers()
160 mUserEventManager.mUserLifecycleListener.onEvent( in checkStopUser_requestStopUser_stopUser()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHalAidlImplTest.java327 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STARTED); in testTetheringOffloadCallback()
333 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_ERROR); in testTetheringOffloadCallback()
338 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_UNSUPPORTED); in testTetheringOffloadCallback()
343 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_SUPPORT_AVAILABLE); in testTetheringOffloadCallback()
348 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_LIMIT_REACHED); in testTetheringOffloadCallback()
353 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_WARNING_REACHED); in testTetheringOffloadCallback()
DOffloadHalHidlImplTest.java296 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STARTED); in testTetheringOffloadCallback()
300 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_ERROR); in testTetheringOffloadCallback()
304 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_UNSUPPORTED); in testTetheringOffloadCallback()
308 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_SUPPORT_AVAILABLE); in testTetheringOffloadCallback()
312 mTetheringOffloadCallback.onEvent(OffloadCallbackEvent.OFFLOAD_STOPPED_LIMIT_REACHED); in testTetheringOffloadCallback()
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/include/
DMockBaseSessionCallback.h32 MOCK_METHOD(void, onEvent, (int32_t type, uint64_t param1, uint64_t param2), (override));
36 ON_CALL(*this, onEvent) in DelegateToFake()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DEvsHalServiceTest.java112 }).when(mListener).onEvent(anyInt(), anyBoolean()); in requestToStartRearviewViaEvsServiceRequest()
129 }).when(mListener).onEvent(anyInt(), anyBoolean()); in requestToStopRearviewViaEvsServiceRequest()
145 verify(mListener, never()).onEvent(anyInt(), anyBoolean()); in handleInvalidHalEvents()
151 verify(mListener, never()).onEvent(anyInt(), anyBoolean()); in handleInvalidHalEvents()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/
DBaseSessionCallback.h43 onEvent(type, param1, param2);
47 virtual void onEvent(int32_t type, uint64_t param1, uint64_t param2) = 0;
/packages/apps/Car/Settings/src/com/android/car/settings/common/rotary/
DDirectManipulationHandler.java166 return mCenterButtonDelegate.onEvent(inDirectManipulationMode); in onKey()
177 return mBackDelegate.onEvent(inDirectManipulationMode); in onKey()
222 boolean onEvent(boolean inDirectManipulationMode); in onEvent() method
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
DUsageStatistics.java51 public static void onEvent(String category, String action, String label) {}; in onEvent() method in UsageStatistics
52 … public static void onEvent(String category, String action, String label, long optional_value) {}; in onEvent() method in UsageStatistics
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBluetoothHciVendorSpecificNativeInterface.java76 private void onEvent(int code, byte[] data) { in onEvent() method in BluetoothHciVendorSpecificNativeInterface
77 mDispatcher.broadcastEvent(code, (cb) -> cb.onEvent(code, data)); in onEvent()
/packages/apps/TV/common/src/com/android/tv/common/compat/
DTvRecordingClientCompat.java80 public void onEvent(String inputId, String eventType, Bundle eventArgs) { in onEvent() method in TvRecordingClientCompat.RecordingCallbackCompat
83 super.onEvent(inputId, eventType, eventArgs); in onEvent()
DTvViewCompat.java80 public void onEvent(String inputId, String eventType, Bundle eventArgs) { in onEvent() method in TvViewCompat.TvInputCallbackCompat
83 super.onEvent(inputId, eventType, eventArgs); in onEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systemui/keyguard/
DExperimentalCarKeyguardServiceTest.java160 mExperimentalCarKeyguardService.mUserLifecycleListener.onEvent(event); in onSystemUserVisible_doNothing()
172 mExperimentalCarKeyguardService.mUserLifecycleListener.onEvent(event); in onForegroundUserVisible_doNothing()
198 mExperimentalCarKeyguardService.mUserLifecycleListener.onEvent(event); in onUserInvisible_removeKeyguard()
287 mExperimentalCarKeyguardService.mUserLifecycleListener.onEvent(event); in startKeyguardForSecondaryUser()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/keyguard/passenger/
DPassengerKeyguardLoadingDialogTest.java162 mUserLifecycleListener.onEvent( in onUserStart_nonSecureUser_presentationNotCreated()
176 mUserLifecycleListener.onEvent( in onUserStart_secureUser_presentationCreated()
228 mUserLifecycleListener.onEvent( in onUserUnlocked_presentationRemoved()
244 mUserLifecycleListener.onEvent( in onUserStopped_presentationRemoved()
/packages/apps/Car/systemlibs/car-scalable-ui-lib/src/com/android/car/scalableui/model/
DTransition.java58 @Nullable Event onEvent, in Transition() argument
65 mOnEvent = onEvent; in Transition()
/packages/services/Car/service/src/com/android/car/property/
DCarPropertyServiceClient.java164 public void onEvent(List<CarPropertyEvent> events) throws RemoteException { in onEvent() method in CarPropertyServiceClient
197 mListener.onEvent(events); in onFilteredEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java630 userLifecycleListeners[0].onEvent(event); in testOccupantZoneStateChanged()
641 userLifecycleListeners[0].onEvent(event); in testOccupantZoneStateChanged()
684 userLifecycleListeners[0].onEvent(event); in testUserStarting()
707 userLifecycleListeners[0].onEvent(event); in testUserBecameVisible()
730 userLifecycleListeners[0].onEvent(event); in testUserSwitching()
753 userLifecycleListeners[0].onEvent(event); in testUserAssigned()
777 userLifecycleListeners[0].onEvent(event); in testUserUnassigned()
804 userLifecycleListeners[0].onEvent(event); in testUserSwitched()
/packages/services/Car/service/src/com/android/car/hal/
DEvsHalService.java82 void onEvent(@CarEvsServiceType int id, boolean on); in onEvent() method
212 listener.onEvent(type, on); in dispatchHalEvents()

123456