HomeSort by relevance Sort by last modified time
    Searched refs:event (Results 51 - 75 of 6832) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
cycles_test.c 17 struct event event; local
21 event_init_named(&event, 0x1001e, "cycles");
22 event_leader_ebb_init(&event);
24 event.attr.exclude_kernel = 1;
25 event.attr.exclude_hv = 1;
26 event.attr.exclude_idle = 1;
28 FAIL_IF(event_open(&event));
33 FAIL_IF(ebb_event_enable(&event));
49 event_close(&event);
    [all...]
no_handler_test.c 18 struct event event; local
24 event_init_named(&event, 0x1001e, "cycles");
25 event_leader_ebb_init(&event);
27 event.attr.exclude_kernel = 1;
28 event.attr.exclude_hv = 1;
29 event.attr.exclude_idle = 1;
31 FAIL_IF(event_open(&event));
32 FAIL_IF(ebb_event_enable(&event));
41 /* Spin to make sure the event has time to overflow *
    [all...]
cpu_event_vs_ebb_test.c 18 * Tests a cpu event vs an EBB - in that order. The EBB should force the cpu
19 * event off the PMU.
22 static int setup_cpu_event(struct event *event, int cpu)
24 event_init_named(event, 0x400FA, "PM_RUN_INST_CMPL");
26 event->attr.exclude_kernel = 1;
27 event->attr.exclude_hv = 1;
28 event->attr.exclude_idle = 1;
31 FAIL_IF(event_open_with_cpu(event, cpu));
32 FAIL_IF(event_enable(event));
40 struct event event; local
    [all...]
task_event_vs_ebb_test.c 18 * Tests a per-task event vs an EBB - in that order. The EBB should push the
19 * per-task event off the PMU.
22 static int setup_child_event(struct event *event, pid_t child_pid)
24 event_init_named(event, 0x400FA, "PM_RUN_INST_CMPL");
26 event->attr.exclude_kernel = 1;
27 event->attr.exclude_hv = 1;
28 event->attr.exclude_idle = 1;
30 FAIL_IF(event_open_with_pid(event, child_pid));
31 FAIL_IF(event_enable(event));
39 struct event event; local
    [all...]
  /external/guava/guava/src/com/google/common/eventbus/
DeadEvent.java 24 * Wraps an event that was posted, but which had no subscribers and thus could
28 * it can detect misconfigurations in a system's event distribution.
37 private final Object event; field in class:DeadEvent
44 * @param event the event that could not be delivered.
46 public DeadEvent(Object source, Object event) {
48 this.event = checkNotNull(event);
52 * Returns the object that originated this event (<em>not</em> the object that
53 * originated the wrapped event). This is generally an {@link EventBus}
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/view/accessibility/
AccessibilityEventCompat.java 28 * Represents the event of a hover enter over a {@link android.view.View}.
35 * Represents the event of a hover exit over a {@link android.view.View}.
42 * Represents the event of starting a touch exploration gesture.
50 * Represents the event of ending a touch exploration gesture.
58 * Represents the event of changing the content of a window.
66 * Represents the event of scrolling a view.
73 * Represents the event of changing the selection in an {@link android.widget.EditText}.
81 * Represents the event of an application making an announcement.
86 * Represents the event of gaining accessibility focus.
91 * Represents the event of clearing accessibility focus
    [all...]
  /system/connectivity/wificond/net/
mlme_event_handler.h 33 virtual void OnConnect(std::unique_ptr<MlmeConnectEvent> event) = 0;
34 virtual void OnRoam(const std::unique_ptr<MlmeRoamEvent> event) = 0;
35 virtual void OnAssociate(std::unique_ptr<MlmeAssociateEvent> event) = 0;
36 virtual void OnDisconnect(std::unique_ptr<MlmeDisconnectEvent> event) = 0;
37 virtual void OnDisassociate(std::unique_ptr<MlmeDisassociateEvent> event) = 0;
  /external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
PropertyChangeEventTest.java 40 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", local
42 assertSame(src, event.getSource());
43 assertEquals("myPropName", event.getPropertyName());
44 assertSame(oldValue, event.getOldValue());
45 assertSame(newValue, event.getNewValue());
46 assertNull(event.getPropagationId());
54 PropertyChangeEvent event = new PropertyChangeEvent(src, null, null, local
56 assertSame(src, event.getSource());
57 assertNull(event.getPropertyName());
58 assertSame(null, event.getOldValue())
71 PropertyChangeEvent event = new PropertyChangeEvent(src, null, local
100 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", local
122 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", local
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowMotionEventTest.java 15 private MotionEvent event; field in class:ShadowMotionEventTest
20 event = MotionEvent.obtain(100, 200, MotionEvent.ACTION_MOVE, 5.0f, 10.0f, 0);
21 shadowMotionEvent = shadowOf(event);
26 assertThat(event.getX(0)).isEqualTo(5.0f);
27 assertThat(event.getY(0)).isEqualTo(10.0f);
28 assertThat(event.getPointerCount()).isEqualTo(1);
30 shadowOf(event).setPointer2( 20.0f, 30.0f );
32 assertThat(event.getX(1)).isEqualTo(20.0f);
33 assertThat(event.getY(1)).isEqualTo(30.0f);
34 assertThat(event.getPointerCount()).isEqualTo(2)
    [all...]
  /prebuilts/misc/windows/sdl2/test/
testwm2.c 5 warranty. In no event will the authors be held liable for any damages
47 SDL_Event event; local
83 while (SDL_PollEvent(&event)) {
84 SDLTest_CommonEvent(state, &event, &done);
86 if (event.type == SDL_WINDOWEVENT) {
87 if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
88 SDL_Window *window = SDL_GetWindowFromID(event.window.windowID);
91 event.window.windowID,
92 event.window.data1
    [all...]
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityTextTraversalTest.java 71 // Move to the next character and wait for an event.
81 public boolean accept(AccessibilityEvent event) {
83 (event.getEventType() ==
85 && event.getAction() ==
87 && event.getPackageName().equals(getActivity().getPackageName())
88 && event.getClassName().equals(View.class.getName())
89 && event.getContentDescription().toString().equals(
91 && event.getFromIndex() == 0
92 && event.getToIndex() == 1
93 && event.getMovementGranularity() =
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
MockViewForListPopupWindow.java 41 public boolean onKeyPreIme(int keyCode, KeyEvent event) {
43 return mListPopupWindow.onKeyPreIme(keyCode, event);
45 return super.onKeyPreIme(keyCode, event);
49 public boolean onKeyDown(int keyCode, KeyEvent event) {
51 return mListPopupWindow.onKeyDown(keyCode, event);
53 return super.onKeyDown(keyCode, event);
57 public boolean onKeyUp(int keyCode, KeyEvent event) {
59 return mListPopupWindow.onKeyUp(keyCode, event);
61 return super.onKeyUp(keyCode, event);
  /external/perfetto/infra/perfetto-ci.appspot.com/static/
service_worker.js 22 async function FetchAndCacheIfJob(event) {
23 if (!event.request.url.startsWith(JOBS_URL)) {
24 return fetch(event.request);
28 const cachedResponse = await caches.match(event.request);
34 const response = await fetch(event.request);
48 cache.put(event.request, responseToCache);
54 self.addEventListener('fetch', event => {
55 event.respondWith(FetchAndCacheIfJob(event));
  /frameworks/base/cmds/statsd/benchmark/
filter_value_benchmark.cpp 29 static void createLogEventAndMatcher(LogEvent* event, FieldMatcher *field_matcher) {
35 event->write(nodes);
36 event->write(3.2f);
37 event->write("LOCATION");
38 event->write((int64_t)990);
39 event->init();
49 LogEvent event(1, 100000);
51 createLogEventAndMatcher(&event, &field_matcher);
58 filterValues(matchers, event.getValues(), &output);
  /frameworks/base/core/java/android/view/textclassifier/
TextClassificationSession.java 74 public void onSelectionEvent(SelectionEvent event) {
76 Preconditions.checkNotNull(event);
77 if (mEventHelper.sanitizeEvent(event)) {
78 mDelegate.onSelectionEvent(event);
126 * Updates the necessary fields in the event for the current session.
128 * @return true if the event should be reported. false if the event should be ignored
130 boolean sanitizeEvent(SelectionEvent event) {
131 updateInvocationMethod(event);
132 modifyAutoSelectionEventType(event);
    [all...]
  /system/bt/btif/include/
btif_util.h 47 const char* dump_dm_search_event(uint16_t event);
48 const char* dump_dm_event(uint16_t event);
49 const char* dump_hf_event(uint16_t event);
50 const char* dump_hf_client_event(uint16_t event);
51 const char* dump_hh_event(uint16_t event);
52 const char* dump_hd_event(uint16_t event);
56 const char* dump_av_conn_state(uint16_t event);
57 const char* dump_av_audio_state(uint16_t event);
58 const char* dump_rc_event(uint8_t event);
  /packages/apps/Launcher3/src/com/android/launcher3/
StylusEventHelper.java 20 * @param event The MotionEvent that the button press occurred for.
21 * @return Whether the event was handled.
23 public boolean onPressed(MotionEvent event);
27 * the event is canceled or the stylus is lifted off the screen.
29 * @param event The MotionEvent the button release occurred for.
30 * @return Whether the event was handled.
32 public boolean onReleased(MotionEvent event);
58 public boolean onMotionEvent(MotionEvent event) {
59 final boolean stylusButtonPressed = isStylusButtonPressed(event);
60 switch (event.getAction())
    [all...]
  /external/ltp/testcases/kernel/syscalls/fanotify/
fanotify05.c 22 * Check that fanotify overflow event is properly generated
26 * event is generated.
50 struct fanotify_event_metadata event; variable in typeref:struct:fanotify_event_metadata
70 len = read(fd_notify, &event, sizeof(event));
73 tst_res(TFAIL, "Overflow event not "
78 "read of notification event failed");
81 if (event.fd != FAN_NOFD)
82 close(event.fd);
87 if (event.mask != FAN_OPEN &
    [all...]
  /packages/services/Car/service/src/com/android/car/
CarSensorEventFactory.java 29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); local
30 event.intValues[0] = value ? 1 : 0;
31 return event;
35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); local
36 event.intValues[0] = value;
37 return event;
41 * Create int64 vector event
50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); local
52 event.longValues[i] = value.get(i);
54 return event;
58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); local
68 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, numFloats, numInts, local
    [all...]
  /external/droiddriver/src/io/appium/droiddriver/instrumentation/
InstrumentationInputInjector.java 35 public boolean injectInputEvent(InputEvent event) {
36 if (event instanceof MotionEvent) {
37 instrumentation.sendPointerSync((MotionEvent) event);
38 } else if (event instanceof KeyEvent) {
39 instrumentation.sendKeySync((KeyEvent) event);
41 throw new ActionException("Unknown input event type: " + event);
  /external/replicaisland/src/com/replica/replicaisland/
SingleTouchFilter.java 7 public void updateTouch(MotionEvent event) {
9 if (event.getAction() == MotionEvent.ACTION_UP) {
10 sSystemRegistry.inputSystem.touchUp(0, event.getRawX() * (1.0f / params.viewScaleX),
11 event.getRawY() * (1.0f / params.viewScaleY));
13 sSystemRegistry.inputSystem.touchDown(0, event.getRawX() * (1.0f / params.viewScaleX),
14 event.getRawY() * (1.0f / params.viewScaleY));
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
MotionEventTest.java 16 private MotionEvent event; field in class:MotionEventTest
21 event = MotionEvent.obtain(100, 200, MotionEvent.ACTION_MOVE, 5.0f, 10.0f, 0);
22 shadowMotionEvent = shadowOf(event);
27 assertThat(event.getX(0), equalTo(5.0f));
28 assertThat(event.getY(0), equalTo(10.0f));
29 assertThat(event.getPointerCount(), equalTo(1));
31 shadowOf(event).setPointer2( 20.0f, 30.0f );
33 assertThat(event.getX(1), equalTo(20.0f));
34 assertThat(event.getY(1), equalTo(30.0f));
35 assertThat(event.getPointerCount(), equalTo(2))
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/view/
MotionEventCompat.java 464 public static int getActionMasked(MotionEvent event) {
465 return event.getActionMasked();
476 public static int getActionIndex(MotionEvent event) {
477 return event.getActionIndex();
487 public static int findPointerIndex(MotionEvent event, int pointerId) {
488 return event.findPointerIndex(pointerId);
498 public static int getPointerId(MotionEvent event, int pointerIndex) {
499 return event.getPointerId(pointerIndex);
509 public static float getX(MotionEvent event, int pointerIndex) {
510 return event.getX(pointerIndex)
    [all...]
  /external/wayland-protocols/flinger_headers/
ArcInputBridgeProtocol.h 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
79 // event for reporting the state of a switch, such as a lid switch
82 // event for reporting dimensions and properties of the display
170 // Union-like class describing an event. The InputEventType describes which
171 // of member of the union contains the data of this event.
199 BridgeInputEvent event{timestamp, -1, 0, InputEventType::KEY, {}};
200 event.key = {keyCode, scanCode, state, serial};
201 return event;
205 BridgeInputEvent event{timestamp, -1, 0, InputEventType::KEY_MODIFIERS, {}};
206 event.meta = {modifiers}
    [all...]
  /external/webrtc/webrtc/modules/audio_coding/neteq/
dtmf_buffer.cc 42 // | event |E|R| volume | duration |
46 // - event: The event field is a number between 0 and 255 identifying a
47 // specific telephony event. The buffer will not accept any event
50 // packet contains the end of the event. For long-lasting events
59 // - duration: The duration field indicates the duration of the event or segment
61 // integer in network byte order. For a non-zero value, the event
64 // The event may or may not have ended. If the event duratio
    [all...]

Completed in 870 milliseconds

1 23 4 5 6 7 8 91011>>