/frameworks/support/compat/src/main/java/androidx/core/view/ |
AccessibilityDelegateCompat.java | 58 AccessibilityEvent event) { 59 return mCompat.dispatchPopulateAccessibilityEvent(host, event); 63 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { 64 mCompat.onInitializeAccessibilityEvent(host, event); 75 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) { 76 mCompat.onPopulateAccessibilityEvent(host, event); 81 AccessibilityEvent event) { 82 return mCompat.onRequestSendAccessibilityEvent(host, child, event); 91 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) { 92 mCompat.sendAccessibilityEventUnchecked(host, event); [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
DefaultOmtpEventHandler.java | 32 OmtpEvents event) { 33 switch (event.getType()) { 35 handleConfigurationEvent(context, status, event); 38 handleDataChannelEvent(context, status, event); 41 handleNotificationChannelEvent(context, config, status, event); 44 handleOtherEvent(context, status, event); 47 VvmLog.wtf(TAG, "invalid event type " + event.getType() + " for " + event); 52 Context context, VoicemailStatus.Editor status, OmtpEvents event) { [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
ListenerStatus.java | 44 * <b>Note:</b>This event is only the service added event. The service info associated with this event does not include resolution information.<br/> 48 * ServiceInfo info = event.getDNS().getServiceInfo(event.getType(), event.getName()) 54 * @param event 57 void serviceAdded(ServiceEvent event) { 58 String qualifiedName = event.getName() + "." + event.getType() [all...] |
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
MovementDetectorHelper.java | 35 * dT - event delivery rate 83 public void onSensorChanged(SensorEvent event) { 87 mGravity[0] = event.values[0]; 88 mGravity[1] = event.values[1]; 89 mGravity[2] = event.values[2]; 92 mGravity[0] = ALPHA * mGravity[0] + (1 - ALPHA) * event.values[0]; 93 mGravity[1] = ALPHA * mGravity[1] + (1 - ALPHA) * event.values[1]; 94 mGravity[2] = ALPHA * mGravity[2] + (1 - ALPHA) * event.values[2]; 98 linearAcceleration[0] = event.values[0] - mGravity[0]; 99 linearAcceleration[1] = event.values[1] - mGravity[1] [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
cycles_with_freeze_test.c | 16 * hardware when the event overflows. We may take the EBB after we have set FC, 55 struct event event; local 61 event_init_named(&event, 0x1001e, "cycles"); 62 event_leader_ebb_init(&event); 64 event.attr.exclude_kernel = 1; 65 event.attr.exclude_hv = 1; 66 event.attr.exclude_idle = 1; 68 FAIL_IF(event_open(&event)); 72 FAIL_IF(ebb_event_enable(&event)); [all...] |
/external/python/cpython2/Demo/tkinter/matt/ |
canvas-moving-w-mouse.py | 7 ###### Event callbacks for THE CANVAS (not the stuff drawn on it) 9 def mouseDown(self, event): 11 self.lastx = event.x 12 self.lasty = event.y 14 def mouseMove(self, event): 16 self.draw.move(CURRENT, event.x - self.lastx, event.y - self.lasty) 17 self.lastx = event.x 18 self.lasty = event.y 21 ###### Event callbacks for canvas ITEMS (stuff drawn on the canvas [all...] |
/frameworks/base/core/java/com/android/internal/globalactions/ |
ActionsDialog.java | 66 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { 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) { 81 if (mAlert.onKeyDown(keyCode, event)) { 84 return super.onKeyDown(keyCode, event); 88 public boolean onKeyUp(int keyCode, KeyEvent event) { 89 if (mAlert.onKeyUp(keyCode, event)) { 92 return super.onKeyUp(keyCode, event); [all...] |
/frameworks/base/core/jni/ |
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) + event->len [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
SecurityEventTest.java | 20 SecurityEvent event = buildSecurityEvents(1 /* generate a single event */, ID).get(0); local 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); local 29 // WHEN parceling the event. 31 p.writeParcelable(event, 0) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
CombinerChain.java | 17 package com.android.inputmethod.event; 31 * Event sources are multiple. It may be a hardware keyboard, a D-PAD, a software keyboard, 33 * This class will orchestrate the composing chain that starts with an event as its input. Each 81 * Process an event through the combining chain, and return a processed event to apply. 83 * @param newEvent the new event to process 84 * @return the processed event. It may be the same event, or a consumed event, or a completely 85 * new event. However it may never be null 91 Event event = newEvent; local [all...] |
/prebuilts/misc/windows/sdl2/test/ |
testhotplug.c | 5 warranty. In no event will the authors be held liable for any damages 50 /* Initialize SDL (Note: video is required to start event loop) */ 64 SDL_Event event; local 65 while(SDL_PollEvent(&event)) 67 switch(event.type) 79 joystick = SDL_JoystickOpen(event.jdevice.which); 81 SDL_Log("Joy Added : %d : %s\n", event.jdevice.which, SDL_JoystickName(joystick)); 108 if (instance == event.jdevice.which) 110 SDL_Log("Joy Removed: %d\n", event.jdevice.which); 124 // SDL_Log("Axis Move: %d\n", event.jaxis.axis) [all...] |
testgesture.c | 5 warranty. In no event will the authors be held liable for any damages 162 const SDL_Event *event = &events[i&(EVENT_BUF_SIZE-1)]; local 167 if(event->type == SDL_FINGERMOTION || 168 event->type == SDL_FINGERDOWN || 169 event->type == SDL_FINGERUP) { 170 x = event->tfinger.x; 171 y = event->tfinger.y; 174 c = colors[event->tfinger.fingerId%7]; 177 if(event->type == SDL_FINGERMOTION) 179 else if(event->type == SDL_FINGERDOWN 206 SDL_Event event; local [all...] |
testjoystick.c | 5 warranty. In no event will the authors be held liable for any damages 47 SDL_Event event; local 85 while (SDL_PollEvent(&event)) { 86 switch (event.type) { 89 event.jaxis.which, 90 event.jaxis.axis, event.jaxis.value); 94 event.jhat.which, event.jhat.hat); 95 if (event.jhat.value == SDL_HAT_CENTERED 253 SDL_Event event; local [all...] |
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
ImeEventStreamTestUtils.java | 61 * Wait until an event that matches the given {@code condition} is found in the stream. 63 * <p>When this method succeeds to find an event that matches the given {@code condition}, the 64 * stream position will be set to the next to the found object then the event found is returned. 73 * @param condition the event condition to be matched 76 * @throws TimeoutException when the no event is matched to the given condition within 86 * Wait until an event that matches the given {@code condition} is found in the stream. 88 * <p>When this method succeeds to find an event that matches the given {@code condition}, the 89 * stream position will be set to the next to the found object then the event found is returned. 93 * @param condition the event condition to be matched 97 * @throws TimeoutException when the no event is matched to the given condition withi 132 final ImeEvent event = result.get(); local [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
BaseMovementMethodTest.java | 92 MotionEvent event = createScrollEvent(1, 0); local 93 assertTrue(mMovementMethod.onGenericMotionEvent(mTextView, text, event)); 96 event.recycle(); 99 event = createScrollEvent(-1, 0); 100 assertTrue(mMovementMethod.onGenericMotionEvent(mTextView, text, event)); 103 event.recycle(); 106 event = createScrollEvent(-1, 0); 107 assertFalse(mMovementMethod.onGenericMotionEvent(mTextView, text, event)); 108 event.recycle(); 113 event = createScrollEvent(1, 0) 154 MotionEvent event = createScrollEvent(0, -1); local [all...] |
/tools/test/connectivity/acts/tests/google/ble/gatt/ |
GattWriteTest.py | 71 event = self._server_wait(gatt_event['char_write_req']) 73 request_id = event['data']['requestId'] 74 self.assertEqual(True, event['data']['responseNeeded'], 76 self.assertEqual(char_value, event['data']['value']) 77 self.assertEqual(0, event['data']['offset']) 87 event = self._client_wait(gatt_event['char_write']) 88 self.assertEqual(status, event["data"]["Status"], 126 event = self._server_wait(gatt_event['desc_write_req']) 128 request_id = event['data']['requestId'] 129 self.assertEqual(True, event['data']['responseNeeded'] [all...] |
/external/autotest/server/cros/ |
stress_unittest.py | 27 event = threading.Event() 29 event.set() 36 self.assertTrue(event.is_set(), 'The stress event did not run') 43 event = threading.Event() 45 event.set() 50 self.assertTrue(event.is_set()) 57 event = threading.Event( [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowAccessibilityEventTest.java | 20 private AccessibilityEvent event; field in class:ShadowAccessibilityEventTest 27 event = ShadowAccessibilityEvent.obtain(); 28 shadow = shadowOf(event); 40 event.setParcelableData(notification); 41 AccessibilityEvent anotherEvent = AccessibilityEvent.obtain(event); 50 AccessibilityEvent newEvent = ShadowAccessibilityEvent.obtain(event); 51 assertThat(event.equals(newEvent)).isEqualTo(true); 58 event.setContentDescription("test"); 59 event.writeToParcel(p, 0); 62 assertThat(event).isEqualTo(anotherEvent) [all...] |
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
UsMotionEvent.java | 44 * @param event - MotionEvent as received by the handler. 47 public UsMotionEvent(MotionEvent event, long baseTime) { 51 kernelTime = getEventTimeMicro(event) - baseTime; 52 x = event.getX(); 53 y = event.getY(); 54 action = event.getAction(); 57 public UsMotionEvent(MotionEvent event, long baseTime, int pos) { 63 kernelTime = getHistoricalEventTimeMicro(event, pos) - baseTime; 64 x = event.getHistoricalX(pos); 65 y = event.getHistoricalY(pos) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NoisyVelocityTracker.java | 59 public void addMovement(MotionEvent event) { 63 mEventBuf.add(new MotionEventCopy(event.getX(), event.getY(), event.getEventTime())); 77 final MotionEventCopy event = iter.next(); local 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.x, event.y [all...] |
/packages/apps/Terminal/src/com/android/terminal/ |
TerminalKeys.java | 74 public static int getModifiers(KeyEvent event) { 76 if (event.isCtrlPressed()) { 79 if (event.isAltPressed()) { 82 if (event.isShiftPressed()) { 88 public static int getKey(KeyEvent event) { 89 switch(event.getKeyCode()) { 160 public int getCharacter(KeyEvent event) { 161 int c = event.getUnicodeChar(); 170 public boolean onKey(View v, int keyCode, KeyEvent event) { 171 if (mTerm == null || event.getAction() == KeyEvent.ACTION_UP) return false [all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
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) { 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.mMaxPeriod 155 MyEvent event = new MyEvent(period, callback, now); local 184 MyEvent event = iter.next(); local 214 MyEvent event = mEventQueue.first(); local [all...] |
/external/libevent/include/event2/ |
event.h | 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 35 Libevent is an event notification library for developing scalable network 37 function when a specific event occurs on a file descriptor or after a 41 Libevent is meant to replace the event loop found in event driven network 43 remove events dynamically without having to change the event loop. 47 epoll(4), and evports. The internal event mechanism is completely 48 independent of the exposed event API, and a simple update of Libevent can 51 the most scalable event notification mechanism available on an operating 57 Every program that uses Libevent must include the <event2/event.h 276 struct event struct [all...] |
/external/ltp/testcases/kernel/syscalls/fanotify/ |
fanotify01.c | 45 /* size of the event structure, not counting name */ 134 /* This event should be ignored */ 145 /* Generate modify event to clear ignore mask */ 151 * This event shouldn't be ignored because previous modification 182 /* This event should be ignored */ 189 /* This event should be still ignored */ 192 /* This event should still be ignored */ 231 struct fanotify_event_metadata *event; local 233 event = (struct fanotify_event_metadata *)&event_buf[i]; 236 "get unnecessary event: mask=%llx [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
UserEventDispatcher.java | 96 void modifyUserEvent(LauncherEvent event); 157 * Fills in the container data on the given event if the given view is not null. 160 protected boolean fillInLogContainerData(LauncherEvent event, @Nullable View v) { 167 provider.fillInLogContainerData(v, itemInfo, event.srcTarget[0], event.srcTarget[1]); 172 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), local 175 if (fillInLogContainerData(event, v)) { 177 mDelegate.modifyUserEvent(event); 179 fillIntentInfo(event.srcTarget[0], intent); 181 dispatchUserEvent(event, intent) 189 LauncherEvent event = newLauncherEvent(newTouchAction(action), \/\/ TAP or SWIPE or FLING local 215 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), local 233 LauncherEvent event = newLauncherEvent(newCommandAction(command), srcTarget); local 253 LauncherEvent event = newLauncherEvent(newCommandAction(command), local 279 LauncherEvent event = newLauncherEvent(newTouchAction(action), local 288 final LauncherEvent event = (controlInContainer == null && parentContainerType < 0) local 306 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Type.TOUCH), local 313 LauncherEvent event = newLauncherEvent(newAction(Action.Type.TIP), local 324 LauncherEvent event = newLauncherEvent(newTouchAction(action), local 341 LauncherEvent event; local 363 LauncherEvent event = newLauncherEvent(newTouchAction(action), itemTarget); local 374 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.LONGPRESS), local 385 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.DRAGDROP), local 392 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.DRAGDROP), local [all...] |