/frameworks/support/compat/src/main/java/androidx/core/view/ |
H A D | AccessibilityDelegateCompat.java | 58 AccessibilityEvent event) { 59 return mCompat.dispatchPopulateAccessibilityEvent(host, event); 63 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { argument 64 mCompat.onInitializeAccessibilityEvent(host, event); 75 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) { argument 76 mCompat.onPopulateAccessibilityEvent(host, event); 81 AccessibilityEvent event) { 82 return mCompat.onRequestSendAccessibilityEvent(host, child, event); 91 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) { argument 92 mCompat.sendAccessibilityEventUnchecked(host, event); 57 dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) argument 80 onRequestSendAccessibilityEvent(ViewGroup host, View child, AccessibilityEvent event) argument 164 sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) argument 185 dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) argument 205 onPopulateAccessibilityEvent(View host, AccessibilityEvent event) argument 225 onInitializeAccessibilityEvent(View host, AccessibilityEvent event) argument 268 onRequestSendAccessibilityEvent(ViewGroup host, View child, AccessibilityEvent event) argument [all...] |
/frameworks/base/core/java/com/android/internal/globalactions/ |
H A D | ActionsDialog.java | 66 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 67 if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { 72 event.getText().add(label); 76 return super.dispatchPopulateAccessibilityEvent(event); 80 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 81 if (mAlert.onKeyDown(keyCode, event)) { 84 return super.onKeyDown(keyCode, event); 88 public boolean onKeyUp(int keyCode, KeyEvent event) { argument 89 if (mAlert.onKeyUp(keyCode, event)) { 92 return super.onKeyUp(keyCode, event); [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_FileObserver.cpp | 54 struct inotify_event* event; local 61 if (num_bytes < (int)sizeof(*event)) 66 ALOGE("***** ERROR! android_os_fileobserver_observe() got a short event!"); 70 while (num_bytes >= (int)sizeof(*event)) 73 event = (struct inotify_event *)(event_buf + event_pos); 77 if (event->len > 0) 79 path = env->NewStringUTF(event->name); 82 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path); 92 event_size = sizeof(*event) [all...] |
H A D | android_view_InputEventSender.cpp | 60 status_t sendKeyEvent(uint32_t seq, const KeyEvent* event); 61 status_t sendMotionEvent(uint32_t seq, const MotionEvent* event); 89 ALOGD("channel '%s' ~ Initializing input event sender.", getInputChannelName().c_str()); 106 ALOGD("channel '%s' ~ Disposing input event sender.", getInputChannelName().c_str()); 112 status_t NativeInputEventSender::sendKeyEvent(uint32_t seq, const KeyEvent* event) { argument 114 ALOGD("channel '%s' ~ Sending key event, seq=%u.", getInputChannelName().c_str(), seq); 119 event->getDeviceId(), event->getSource(), event->getAction(), event 131 sendMotionEvent(uint32_t seq, const MotionEvent* event) argument 279 KeyEvent event; local 289 MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); local [all...] |
H A D | android_view_MotionEvent.cpp | 77 MotionEvent* event) { 79 reinterpret_cast<jlong>(event)); 82 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument 86 ALOGE("An exception occurred while obtaining a motion event."); 98 destEvent->copyFrom(event, true); 105 ALOGW("An exception occurred while recycling a motion event."); 348 MotionEvent* event; local 350 event = reinterpret_cast<MotionEvent*>(nativePtr); 352 event = new MotionEvent(); 375 event 76 android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, MotionEvent* event) argument 390 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 397 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 422 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 445 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 458 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 478 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 502 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 512 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 522 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 537 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 556 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 587 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 592 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 597 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 602 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 607 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 612 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 617 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 622 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 627 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 632 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 637 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 642 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 647 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 652 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 657 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 663 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 668 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 673 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 678 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 683 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 688 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 693 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 698 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 703 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 708 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 713 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 718 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | SecurityEventTest.java | 20 SecurityEvent event = buildSecurityEvents(1 /* generate a single event */, ID).get(0); 21 assertEquals(ID, event.getId()); 22 event.setId(20); 23 assertEquals(20, event.getId()); 27 // GIVEN an event. 28 SecurityEvent event = buildSecurityEvents(1 /* generate a single event */, ID).get(0); 29 // WHEN parceling the event. 31 p.writeParcelable(event, [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NoisyVelocityTracker.java | 59 public void addMovement(MotionEvent event) { argument 63 mEventBuf.add(new MotionEventCopy(event.getX(), event.getY(), event.getEventTime())); 77 final MotionEventCopy event = iter.next(); 79 final float dt = (float) (event.t - last.t) / units; 80 final float dx = (event.x - last.x); 81 final float dy = (event.y - last.y); 85 i, event.t, event [all...] |
H A D | NavigationBarGestureHelper.java | 109 public boolean onInterceptTouchEvent(MotionEvent event) { argument 110 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { 117 boolean result = mQuickStepController.onInterceptTouchEvent(event); 119 result |= interceptDockWindowEvent(event); 124 public boolean onTouchEvent(MotionEvent event) { argument 128 boolean result = mQuickStepController.onTouchEvent(event); 130 result |= handleDockWindowEvent(event); 151 private boolean interceptDockWindowEvent(MotionEvent event) { argument 152 switch (event.getActionMasked()) { 154 handleDragActionDownEvent(event); 166 handleDockWindowEvent(MotionEvent event) argument 182 handleDragActionDownEvent(MotionEvent event) argument 202 handleDragActionMoveEvent(MotionEvent event) argument 257 handleDragActionUpEvent(MotionEvent event) argument [all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipWakeupTimer.java | 63 * Stops the timer. No event can be scheduled after this method is called. 113 // Determines the period and the trigger time of the new event and insert it 115 private void insertEvent(MyEvent event) { argument 118 event.mTriggerTime = now + event.mPeriod; 119 mEventQueue.add(event); 124 if (minPeriod <= event.mMaxPeriod) { 125 event.mPeriod = event.mMaxPeriod / minPeriod * minPeriod; 126 int interval = event [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | KeyboardInterceptor.java | 66 public void onKeyEvent(KeyEvent event, int policyFlags) { argument 71 long eventDelay = getEventDelay(event, policyFlags); 76 addEventToQueue(event, policyFlags, eventDelay); 80 mAms.notifyKeyEvent(event, policyFlags); 96 private void addEventToQueue(KeyEvent event, int policyFlags, long delay) { argument 100 KeyEventHolder.obtain(event, policyFlags, dispatchTime); 104 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); 113 Slog.e(LOG_TAG, "Failed to schedule key event"); 120 final long eventDelay = getEventDelay(mEventQueueEnd.event, mEventQueueEnd.policyFlags); 122 // Reschedule the event 142 getEventDelay(KeyEvent event, int policyFlags) argument 157 public KeyEvent event; field in class:KeyboardInterceptor.KeyEventHolder 161 obtain(KeyEvent event, int policyFlags, long dispatchTime) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
H A D | WifiAwareNativeCallback.java | 352 public void eventClusterEvent(NanClusterEventInd event) { argument 354 Log.v(TAG, "eventClusterEvent: eventType=" + event.eventType + ", addr=" 355 + String.valueOf(HexEncoding.encode(event.addr))); 359 if (event.eventType == NanClusterEventType.DISCOVERY_MAC_ADDRESS_CHANGED) { 360 mWifiAwareStateManager.onInterfaceAddressChangeNotification(event.addr); 361 } else if (event.eventType == NanClusterEventType.STARTED_CLUSTER) { 363 WifiAwareClientState.CLUSTER_CHANGE_EVENT_STARTED, event.addr); 364 } else if (event.eventType == NanClusterEventType.JOINED_CLUSTER) { 366 WifiAwareClientState.CLUSTER_CHANGE_EVENT_JOINED, event.addr); 368 Log.e(TAG, "eventClusterEvent: invalid eventType=" + event 403 eventMatch(NanMatchInd event) argument 437 eventFollowupReceived(NanFollowupReceivedInd event) argument 466 eventDataPathRequest(NanDataPathRequestInd event) argument 480 eventDataPathConfirm(NanDataPathConfirmInd event) argument 498 eventDataPathConfirm_1_2(android.hardware.wifi.V1_2.NanDataPathConfirmInd event) argument 518 eventDataPathScheduleUpdate(NanDataPathScheduleUpdateInd event) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 52 * True if the delegate had been targeted on a down event (intersected mBounds). 95 * Will forward touch events to the delegate view if the event is within the bounds 98 * @param event The touch event to forward 99 * @return True if the event was forwarded to the delegate, false otherwise. 101 public boolean onTouchEvent(MotionEvent event) { argument 102 int x = (int)event.getX(); 103 int y = (int)event.getY(); 108 switch (event.getActionMasked()) { 134 // Offset event coordinate [all...] |
H A D | WindowCallbackWrapper.java | 42 public boolean dispatchKeyEvent(KeyEvent event) { argument 43 return mWrapped.dispatchKeyEvent(event); 47 public boolean dispatchKeyShortcutEvent(KeyEvent event) { argument 48 return mWrapped.dispatchKeyShortcutEvent(event); 52 public boolean dispatchTouchEvent(MotionEvent event) { argument 53 return mWrapped.dispatchTouchEvent(event); 57 public boolean dispatchTrackballEvent(MotionEvent event) { argument 58 return mWrapped.dispatchTrackballEvent(event); 62 public boolean dispatchGenericMotionEvent(MotionEvent event) { argument 63 return mWrapped.dispatchGenericMotionEvent(event); 67 dispatchPopulateAccessibilityEvent(AccessibilityEvent event) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | MouseUiController.java | 60 public boolean injectKeyEvent(KeyEvent event) throws InjectEventSecurityException { argument 61 return mUiController.injectKeyEvent(event); 65 public boolean injectMotionEvent(MotionEvent event) throws InjectEventSecurityException { argument 66 // Modify the event to mimic mouse event. 67 event.setSource(InputDevice.SOURCE_MOUSE); 68 if (event.getActionMasked() != MotionEvent.ACTION_UP) { 69 event.setButtonState(mButton); 71 return mUiController.injectMotionEvent(event);
|
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/ |
H A D | EmojiKeyListener.java | 48 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { argument 49 final boolean result = EmojiCompat.handleOnKeyDown(content, keyCode, event); 50 return result || mKeyListener.onKeyDown(view, content, keyCode, event); 54 public boolean onKeyUp(View view, Editable text, int keyCode, KeyEvent event) { argument 55 return mKeyListener.onKeyUp(view, text, keyCode, event); 59 public boolean onKeyOther(View view, Editable text, KeyEvent event) { argument 60 return mKeyListener.onKeyOther(view, text, event);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
H A D | MockPriorityJobService.java | 48 int event = TestEnvironment.EVENT_STOP_JOB; 51 event = TestEnvironment.EVENT_PREEMPT_JOB; 55 .add(new TestEnvironment.Event(event, params.getJobId())); 77 public int event; field in class:MockPriorityJobService.TestEnvironment.Event 83 public Event(int event, int jobId) { argument 84 this.event = event; 92 return otherEvent.event == event && otherEvent.jobId == jobId;
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
H A D | BasicGLSurfaceView.java | 62 public boolean onGenericMotionEvent(MotionEvent event) { argument 64 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { 65 if (event.getAction() == MotionEvent.ACTION_MOVE) { 66 float x = event.getAxisValue(MotionEvent.AXIS_X); 67 float y = event.getAxisValue(MotionEvent.AXIS_Y); 72 return super.onGenericMotionEvent(event); 76 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 77 mRenderer.onKeyDown(keyCode, event); 78 return super.onKeyDown(keyCode, event);
|
/frameworks/base/cmds/statsd/tests/ |
H A D | LogEntryMatcher_test.cpp | 49 LogEvent event(TAG_ID, 0); 50 EXPECT_TRUE(event.write(11)); 51 event.init(); 54 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); 58 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); 77 // Set up the event 78 LogEvent event(TAG_ID, 0); 79 event.write(attribution_nodes); 80 event.write("some value"); 82 event [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | KeyListener.java | 64 int keyCode, KeyEvent event); 72 int keyCode, KeyEvent event); 79 public boolean onKeyOther(View view, Editable text, KeyEvent event); argument 63 onKeyDown(View view, Editable text, int keyCode, KeyEvent event) argument 71 onKeyUp(View view, Editable text, int keyCode, KeyEvent event) argument
|
/frameworks/base/media/tests/NativeMidiDemo/java/com/example/android/nativemididemo/ |
H A D | TouchableScrollView.java | 20 public boolean onTouchEvent(MotionEvent event) { argument 21 switch (event.getAction()) { 30 return super.onTouchEvent(event);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | AutoScrollView.java | 31 public boolean onDragEvent(DragEvent event) { argument 32 switch (event.getAction()) { 34 int y = (int) event.getY();
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NativeDaemonConnectorException.java | 37 public NativeDaemonConnectorException(String cmd, NativeDaemonEvent event) { argument 38 super("command '" + cmd + "' failed with '" + event + "'"); 40 mEvent = event;
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
H A D | AccessibleLinearLayout.java | 39 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 40 super.onInitializeAccessibilityEvent(event); 41 event.setClassName(Button.class.getName());
|
H A D | AccessibleTextView.java | 39 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 40 super.onInitializeAccessibilityEvent(event); 41 event.setClassName(Button.class.getName());
|
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/ |
H A D | CompositeGeneratedAdaptersObserver.java | 35 public void onStateChanged(LifecycleOwner source, Lifecycle.Event event) { argument 38 mGenerated.callMethods(source, event, false, logger); 41 mGenerated.callMethods(source, event, true, logger);
|