/developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/ |
ImageDragListener.java | 34 public boolean onDrag(View view, DragEvent event) { 35 switch (event.getAction()) { 45 processLocation(event.getX(), event.getY()); 53 return processDrop(view, event); 70 private boolean processDrop(View view, DragEvent event) { 71 ClipData clipData = event.getClipData(); 83 return setImageUri(view, event, uri); 89 protected boolean setImageUri(View view, DragEvent event, Uri uri) {
|
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/ |
ImageDragListener.java | 40 public boolean onDrag(View view, DragEvent event) { 43 switch (event.getAction()) { 53 processLocation(event.getX(), event.getY()); 61 return processDrop(view, event); 78 private boolean processDrop(View view, DragEvent event) { 79 ClipData clipData = event.getClipData(); 91 return setImageUri(view, event, uri); 97 protected boolean setImageUri(View view, DragEvent event, Uri uri) {
|
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/ |
ImageDragListener.java | 34 public boolean onDrag(View view, DragEvent event) { 35 switch (event.getAction()) { 45 processLocation(event.getX(), event.getY()); 53 return processDrop(view, event); 70 private boolean processDrop(View view, DragEvent event) { 71 ClipData clipData = event.getClipData(); 83 return setImageUri(view, event, uri); 89 protected boolean setImageUri(View view, DragEvent event, Uri uri) {
|
/external/autotest/frontend/client/src/autotest/common/ui/ |
ToolTip.java | 3 import com.google.gwt.event.dom.client.MouseOverHandler; 4 import com.google.gwt.event.dom.client.MouseOverEvent; 5 import com.google.gwt.event.dom.client.MouseOutHandler; 6 import com.google.gwt.event.dom.client.MouseOutEvent; 36 public void onMouseOver(MouseOverEvent event) { 37 showAtWindow(event.getClientX(), event.getClientY()); 40 public void onMouseOut(MouseOutEvent event) {
|
RightClickTable.java | 3 import com.google.gwt.event.dom.client.ContextMenuEvent; 4 import com.google.gwt.event.dom.client.ContextMenuHandler; 5 import com.google.gwt.event.dom.client.DomEvent; 6 import com.google.gwt.event.dom.client.HasContextMenuHandlers; 7 import com.google.gwt.event.shared.HandlerRegistration; 10 import com.google.gwt.user.client.Event; 39 public void onContextMenu(ContextMenuEvent event) { 40 event.preventDefault(); 43 public HTMLTable.Cell getCellForDomEvent(DomEvent<?> event) { 45 final Element td = getEventTargetCell(Event.as(event.getNativeEvent())) [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
event.cpp | 16 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 23 #include "core/event.hpp" 28 event::event(clover::context &ctx, const ref_vector<event> &deps, function in class:event 36 event::~event() { 39 std::vector<intrusive_ref<event>> 40 event::trigger_self() { 42 std::vector<intrusive_ref<event>> evs [all...] |
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
AccessibilityEventTest.java | 54 AccessibilityEvent event = AccessibilityEvent.obtain(); local 55 event.setImportantForAccessibility(true); 56 assertTrue(copyEventViaParcel(event).isImportantForAccessibility()); 58 event.setImportantForAccessibility(false); 59 assertFalse(copyEventViaParcel(event).isImportantForAccessibility()); 65 AccessibilityEvent event = AccessibilityEvent.obtain(); local 66 event.setSourceNodeId(sourceNodeId); 67 assertEquals(sourceNodeId, copyEventViaParcel(event).getSourceNodeId()); 75 AccessibilityEvent event = AccessibilityEvent.obtain(); local 76 event.setWindowChanges(windowChanges) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
ClassifierData.java | 37 public void update(MotionEvent event) { 39 int action = event.getActionMasked(); 44 for (int i = 0; i < event.getPointerCount(); i++) { 45 int id = event.getPointerId(i); 47 mCurrentStrokes.put(id, new Stroke(event.getEventTimeNano(), mDpi)); 49 mCurrentStrokes.get(id).addPoint(event.getX(i), event.getY(i), 50 event.getEventTimeNano()); 53 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) { 59 public void cleanUp(MotionEvent event) { [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
ClassifierData.java | 39 public void update(MotionEvent event) { 41 int action = event.getActionMasked(); 46 for (int i = 0; i < event.getPointerCount(); i++) { 47 int id = event.getPointerId(i); 49 // TODO (keyboardr): See if there's a way to use event.getEventTimeNanos() instead 51 id, new Stroke(TimeUnit.MILLISECONDS.toNanos(event.getEventTime()), dpi)); 56 event.getX(i), event.getY(i), TimeUnit.MILLISECONDS.toNanos(event.getEventTime())); 60 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) [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...] |
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/receiver/ |
EventReceiver.java | 46 final DeviceEvent event = DeviceEvent.newEvent(intent); local 48 Log.d(TAG, "onReceive: event=" + event); 50 final ContentValues values = DeviceEvent.buildContentValues(event);
|
/cts/tests/tests/location/src/android/location/cts/ |
GnssMeasurementsEventCallbackTest.java | 32 GnssMeasurementsEvent event = new GnssMeasurementsEvent( local 34 callback.onGnssMeasurementsReceived(event);
|
/device/google/contexthub/util/nanotool/ |
apptohostevent.cpp | 28 auto event = std::unique_ptr<AppToHostEvent>(new AppToHostEvent()); local 29 event->Populate(buffer); 30 if (!event->IsValid()) { 34 return event; 133 // dataLen should specify the amount of data that follows the event type 137 LOGW("Invalid/short AppToHost event of size %zu", event_data.size()); 145 // After the event type header (uint32_t), we should have struct 148 LOGW("Invalid/short AppToHost event of size %zu", event_data.size());
|
/device/google/cuttlefish_common/guest/commands/vsoc_input_service/ |
virtual_device_base.cpp | 71 SLOGE("Error setting event type: %" PRIu32, evt_type); 112 struct input_event event {}; struct 113 event.type = type; 114 event.code = code; 115 event.value = value; 117 if (write(fd_, &event, sizeof(event)) < static_cast<ssize_t>(sizeof(event))) { 118 SLOGE("Event write failed (%s): aborting", strerror(errno)); 124 // By default devices have no event types, keys, properties or absolutes [all...] |
/external/ImageMagick/MagickWand/ |
conjure.c | 204 event; 211 event=ParseCommandOption(MagickLogEventOptions,MagickFalse,argv[i]); 212 if (event < 0) 202 event; local
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
BreakpointTest.java | 37 * JDWP Unit test for BREAKPOINT event. 46 * This testcase is for BREAKPOINT event. 48 * method, then verifies that requested BREAKPOINT event occurs. 64 CommandPacket event = null; local 65 event = debuggeeWrapper.vmMirror.receiveEvent(); 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); 69 assertEquals("Invalid event kind,",
|
ThreadEndTest.java | 37 * JDWP Unit test for THREAD_END event. 41 * This testcase is for THREAD_END event. 43 * THREAD_END event occurs. 53 checkReplyPacket(reply, "Set THREAD_END event"); 64 CommandPacket event = debuggeeWrapper.vmMirror.receiveEvent(); local 66 assertNotNull("Invalid (null) event received", event); 67 logWriter.println("=> Event received!"); 69 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); 74 assertEquals("Invalid event kind," [all...] |
ThreadStartTest.java | 38 * JDWP Unit test for THREAD_START event. 43 * This testcase is for THREAD_START event. 45 * THREAD_START event occurs. 55 checkReplyPacket(reply, "Set THREAD_START event"); 66 // We loop until receiving a THREAD_START event for our thread. 70 CommandPacket event = debuggeeWrapper.vmMirror.receiveEvent(); local 72 assertNotNull("Invalid (null) event received", event); 73 logWriter.println("=> Event received!"); 75 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); [all...] |
VMDeathTest.java | 36 * JDWP Unit test for automatic VM_DEATH event. 40 * This testcase is for automatic VM_DEATH event.<BR> 42 * automatic VM_DEATH event occurs. 51 CommandPacket event = debuggeeWrapper.vmMirror.receiveEvent(); local 52 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); 56 assertEquals("Invalid event kind,",
|
/external/guava/guava/src/com/google/common/eventbus/ |
SubscriberExceptionContext.java | 29 private final Object event; field in class:SubscriberExceptionContext 34 * @param eventBus The {@link EventBus} that handled the event and the 35 * subscriber. Useful for broadcasting a a new event based on the error. 36 * @param event The event object that caused the subscriber to throw. 40 SubscriberExceptionContext(EventBus eventBus, Object event, Object subscriber, 43 this.event = checkNotNull(event); 49 * @return The {@link EventBus} that handled the event and the subscriber. 50 * Useful for broadcasting a a new event based on the error [all...] |
/external/libmojo/mojo/public/cpp/bindings/lib/ |
pipe_control_message_handler.cc | 74 const auto& event = local 78 if (event->disconnect_reason) { 79 reason.emplace(event->disconnect_reason->custom_reason, 80 event->disconnect_reason->description); 82 return delegate_->OnPeerAssociatedEndpointClosed(event->id, reason);
|
pipe_control_message_proxy.cc | 55 auto event = pipe_control::PeerAssociatedEndpointClosedEvent::New(); local 56 event->id = id; 58 event->disconnect_reason = pipe_control::DisconnectReason::New(); 59 event->disconnect_reason->custom_reason = reason->custom_reason; 60 event->disconnect_reason->description = reason->description; 64 input->set_peer_associated_endpoint_closed_event(std::move(event));
|
/external/libusb/libusb/ |
hotplug.h | 50 /** Event(s) that will trigger this callback */ 53 /** Callback function to invoke for matching event/device */ 72 /** The hotplug event that occurred */ 73 libusb_hotplug_event event; member in struct:libusb_hotplug_message 75 /** The device for which this hotplug event occurred */ 86 libusb_hotplug_event event); 88 libusb_hotplug_event event);
|
/external/libxcam/modules/ocl/ |
cl_event.cpp | 2 * cl_event.cpp - CL event 49 "cl event wait failed, there's no event id"); 57 "cl event wait failed with error cod:%d", error_code); 73 "cl event wait failed, there's no event id"); 100 SmartPtr<CLEvent> &event = *iter; local 101 XCAM_ASSERT (event->get_event_id ()); 102 event_ids[event_count++] = event->get_event_id ();
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
instruction_count_test.c | 25 static int do_count_loop(struct event *event, uint64_t instructions, 45 event->result.value = ebb_state.stats.pmc_count[4-1]; 47 difference = event->result.value - expected; 48 percentage = (double)difference / event->result.value * 100; 53 printf("Actual %llu\n", event->result.value); 63 if (difference / event->result.value) 70 static uint64_t determine_overhead(struct event *event) 75 do_count_loop(event, 0, 0, false) 111 struct event event; local [all...] |