/packages/services/Car/tests/carservice_unit_test/src/com/android/car/property/ |
D | CarPropertyServiceClientUnitTest.java | 195 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/ |
D | SimulatorConference.java | 88 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 …]
|
D | SimulatorConnection.java | 90 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 …]
|
D | SimulatorConferenceCreator.java | 170 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent() method in SimulatorConferenceCreator 191 public void onEvent(@NonNull SimulatorConference conference, @NonNull Event event) { in onEvent() method in SimulatorConferenceCreator
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/ |
D | CarPropertyEventCallbackControllerUnitTest.java | 198 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/ |
D | InputLogicTestsDeadKeys.java | 59 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/ |
D | MediaQualityAnalyzerTest.cpp | 120 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/ |
D | VehiclePropertyPublisherTest.java | 415 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/ |
D | UserEventReceiverTest.java | 110 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/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/include/ |
D | MockBaseSessionCallback.h | 32 MOCK_METHOD(void, onEvent, (int32_t type, uint64_t param1, uint64_t param2), (override)); 36 ON_CALL(*this, onEvent) in DelegateToFake()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/ |
D | BaseSessionCallback.h | 43 onEvent(type, param1, param2); 47 virtual void onEvent(int32_t type, uint64_t param1, uint64_t param2) = 0;
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadHalAidlImplTest.java | 327 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()
|
D | OffloadHalHidlImplTest.java | 296 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/apps/Car/Settings/src/com/android/car/settings/common/rotary/ |
D | DirectManipulationHandler.java | 166 return mCenterButtonDelegate.onEvent(inDirectManipulationMode); in onKey() 177 return mBackDelegate.onEvent(inDirectManipulationMode); in onKey() 222 boolean onEvent(boolean inDirectManipulationMode); in onEvent() method
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | EvsHalServiceTest.java | 112 }).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/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
D | UsageStatistics.java | 51 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/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/ |
D | UserEventManagerTest.java | 115 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers() 116 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers() 117 mUserEventManager.mUserLifecycleListener.onEvent(event); in onUserLifecycleEvent_sendEvents_updateUsers()
|
/packages/apps/TV/common/src/com/android/tv/common/compat/ |
D | TvRecordingClientCompat.java | 80 public void onEvent(String inputId, String eventType, Bundle eventArgs) { in onEvent() method in TvRecordingClientCompat.RecordingCallbackCompat 83 super.onEvent(inputId, eventType, eventArgs); in onEvent()
|
D | TvViewCompat.java | 80 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/ |
D | ExperimentalCarKeyguardServiceTest.java | 160 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/services/Car/service/src/com/android/car/property/ |
D | CarPropertyServiceClient.java | 165 public void onEvent(List<CarPropertyEvent> events) throws RemoteException { in onEvent() method in CarPropertyServiceClient 198 mListener.onEvent(events); in onFilteredEvents()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPropertyServiceUnitTest.java | 636 verify(mMockHandler1, timeout(5000)).onEvent(any()); in testRegisterUnregisterForContinuousProperty() 649 verify(mMockHandler2, timeout(5000)).onEvent(any()); in testRegisterUnregisterForContinuousProperty() 690 verify(mMockHandler1, timeout(5000)).onEvent(any()); in testRegisterForMultipleProperties() 731 verify(mMockHandler1, timeout(5000)).onEvent(any()); in testRegisterUnregisterForOnChangeProperty() 745 verify(mMockHandler2, timeout(5000)).onEvent(any()); in testRegisterUnregisterForOnChangeProperty() 785 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription() 826 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription_enableVurAndResolution() 852 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription_VurFeatureOff() 880 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription_ResolutionFeatureOff() 1174 verify(mockEventListener).onEvent(mPropertyEventCaptor.capture()); in testOnPropertySetError() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 630 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/ |
D | EvsHalService.java | 82 void onEvent(@CarEvsServiceType int id, boolean on); in onEvent() method 212 listener.onEvent(type, on); in dispatchHalEvents()
|
/packages/services/Car/tools/keventreader/common/com/android/car/keventreader/ |
D | IEventCallback.aidl | 22 void onEvent(in KeypressEvent event); in onEvent() method
|