Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/
DEventScheduler.java55 FastEventQueue(SchedulableEvent event) { in FastEventQueue() argument
56 mFirst = event; in FastEventQueue()
74 SchedulableEvent event = mFirst; in remove() local
75 mFirst = event.mNext; in remove()
76 return event; in remove()
82 public void add(SchedulableEvent event) { in add() argument
83 event.mNext = null; in add()
84 mLast.mNext = event; in add()
85 mLast = event; in add()
126 SchedulableEvent event = null; in removeEventfromPool() local
[all …]
DMidiEventScheduler.java42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend() local
43 if (event != null) { in onSend()
44 add(event); in onSend()
80 MidiEvent event; in createScheduledEvent() local
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
84 event = (MidiEvent) removeEventfromPool(); in createScheduledEvent()
85 if (event == null) { in createScheduledEvent()
86 event = new MidiEvent(POOL_EVENT_SIZE); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
89 event.count = count; in createScheduledEvent()
[all …]
DMidiEventThread.java37 MidiEvent event = (MidiEvent) waitNextEvent(); in run() local
39 Log.i(TAG, "Fire event " + event.data[0] + " at " in run()
40 + event.getTimestamp()); in run()
41 mDispatcher.send(event.data, 0, in run()
42 event.count, event.getTimestamp()); in run()
47 addEventToPool(event); in run()
/developers/samples/android/common/src/java/com/example/android/common/midi/
DEventScheduler.java55 FastEventQueue(SchedulableEvent event) { in FastEventQueue() argument
56 mFirst = event; in FastEventQueue()
74 SchedulableEvent event = mFirst; in remove() local
75 mFirst = event.mNext; in remove()
76 return event; in remove()
82 public void add(SchedulableEvent event) { in add() argument
83 event.mNext = null; in add()
84 mLast.mNext = event; in add()
85 mLast = event; in add()
126 SchedulableEvent event = null; in removeEventfromPool() local
[all …]
DMidiEventScheduler.java42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend() local
43 if (event != null) { in onSend()
44 add(event); in onSend()
80 MidiEvent event; in createScheduledEvent() local
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
84 event = (MidiEvent) removeEventfromPool(); in createScheduledEvent()
85 if (event == null) { in createScheduledEvent()
86 event = new MidiEvent(POOL_EVENT_SIZE); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
89 event.count = count; in createScheduledEvent()
[all …]
DMidiEventThread.java37 MidiEvent event = (MidiEvent) waitNextEvent(); in run() local
39 Log.i(TAG, "Fire event " + event.data[0] + " at " in run()
40 + event.getTimestamp()); in run()
41 mDispatcher.send(event.data, 0, in run()
42 event.count, event.getTimestamp()); in run()
47 addEventToPool(event); in run()
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/
DEventScheduler.java55 FastEventQueue(SchedulableEvent event) { in FastEventQueue() argument
56 mFirst = event; in FastEventQueue()
74 SchedulableEvent event = mFirst; in remove() local
75 mFirst = event.mNext; in remove()
76 return event; in remove()
82 public void add(SchedulableEvent event) { in add() argument
83 event.mNext = null; in add()
84 mLast.mNext = event; in add()
85 mLast = event; in add()
126 SchedulableEvent event = null; in removeEventfromPool() local
[all …]
DMidiEventScheduler.java42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend() local
43 if (event != null) { in onSend()
44 add(event); in onSend()
80 MidiEvent event; in createScheduledEvent() local
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
84 event = (MidiEvent) removeEventfromPool(); in createScheduledEvent()
85 if (event == null) { in createScheduledEvent()
86 event = new MidiEvent(POOL_EVENT_SIZE); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
89 event.count = count; in createScheduledEvent()
[all …]
DMidiEventThread.java37 MidiEvent event = (MidiEvent) waitNextEvent(); in run() local
39 Log.i(TAG, "Fire event " + event.data[0] + " at " in run()
40 + event.getTimestamp()); in run()
41 mDispatcher.send(event.data, 0, in run()
42 event.count, event.getTimestamp()); in run()
47 addEventToPool(event); in run()
/developers/build/prebuilts/gradle/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
DImageDragListener.java34 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
35 switch (event.getAction()) { in onDrag()
45 processLocation(event.getX(), event.getY()); in onDrag()
53 return processDrop(view, event); in onDrag()
70 private boolean processDrop(View view, DragEvent event) { in processDrop() argument
71 ClipData clipData = event.getClipData(); in processDrop()
83 return setImageUri(view, event, uri); in processDrop()
89 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
DDropTargetFragment.java107 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
109 Log.d(TAG, "ClipDescription extra: " + getExtra(event)); in setImageUri()
117 .requestDragAndDropPermissions(getActivity(), event); in setImageUri()
126 final boolean result = super.setImageUri(view, event, uri); in setImageUri()
144 return super.setImageUri(view, event, uri); in setImageUri()
149 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
153 ClipDescription clipDescription = event.getClipDescription(); in onDrag()
158 return super.onDrag(view, event); in onDrag()
167 private String getExtra(DragEvent event) { in getExtra() argument
169 ClipDescription clipDescription = event.getClipDescription(); in getExtra()
/developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
DImageDragListener.java34 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
35 switch (event.getAction()) { in onDrag()
45 processLocation(event.getX(), event.getY()); in onDrag()
53 return processDrop(view, event); in onDrag()
70 private boolean processDrop(View view, DragEvent event) { in processDrop() argument
71 ClipData clipData = event.getClipData(); in processDrop()
83 return setImageUri(view, event, uri); in processDrop()
89 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
DDropTargetFragment.java107 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
109 Log.d(TAG, "ClipDescription extra: " + getExtra(event)); in setImageUri()
117 .requestDragAndDropPermissions(getActivity(), event); in setImageUri()
126 final boolean result = super.setImageUri(view, event, uri); in setImageUri()
144 return super.setImageUri(view, event, uri); in setImageUri()
149 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
153 ClipDescription clipDescription = event.getClipDescription(); in onDrag()
158 return super.onDrag(view, event); in onDrag()
167 private String getExtra(DragEvent event) { in getExtra() argument
169 ClipDescription clipDescription = event.getClipDescription(); in getExtra()
/developers/build/prebuilts/gradle/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
DImageDragListener.java40 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
43 switch (event.getAction()) { in onDrag()
53 processLocation(event.getX(), event.getY()); in onDrag()
61 return processDrop(view, event); in onDrag()
78 private boolean processDrop(View view, DragEvent event) { in processDrop() argument
79 ClipData clipData = event.getClipData(); in processDrop()
91 return setImageUri(view, event, uri); in processDrop()
97 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
DImageDragListener.java40 public boolean onDrag(View view, DragEvent event) { in onDrag() argument
43 switch (event.getAction()) { in onDrag()
53 processLocation(event.getX(), event.getY()); in onDrag()
61 return processDrop(view, event); in onDrag()
78 private boolean processDrop(View view, DragEvent event) { in processDrop() argument
79 ClipData clipData = event.getClipData(); in processDrop()
91 return setImageUri(view, event, uri); in processDrop()
97 protected boolean setImageUri(View view, DragEvent event, Uri uri) { in setImageUri() argument
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DCardLayout.java61 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
62 switch(event.getAction()){ in onTouchEvent()
68 return super.onTouchEvent(event); in onTouchEvent()
72 public boolean onInterceptTouchEvent(MotionEvent event) { in onInterceptTouchEvent() argument
74 switch(event.getAction()){ in onInterceptTouchEvent()
77 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop; in onInterceptTouchEvent()
81 mDownX = event.getX(); in onInterceptTouchEvent()
82 mDownY = event.getY(); in onInterceptTouchEvent()
/developers/build/prebuilts/gradle/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DTouchDisplayView.java133 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
135 final int action = event.getAction(); in onTouchEvent()
152 int id = event.getPointerId(0); in onTouchEvent()
154 TouchHistory data = TouchHistory.obtain(event.getX(0), event.getY(0), in onTouchEvent()
155 event.getPressure(0)); in onTouchEvent()
181 int index = event.getActionIndex(); in onTouchEvent()
182 int id = event.getPointerId(index); in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent()
185 event.getPressure(index)); in onTouchEvent()
210 int id = event.getPointerId(0); in onTouchEvent()
[all …]
/developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DTouchDisplayView.java133 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
135 final int action = event.getAction(); in onTouchEvent()
152 int id = event.getPointerId(0); in onTouchEvent()
154 TouchHistory data = TouchHistory.obtain(event.getX(0), event.getY(0), in onTouchEvent()
155 event.getPressure(0)); in onTouchEvent()
181 int index = event.getActionIndex(); in onTouchEvent()
182 int id = event.getPointerId(index); in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent()
185 event.getPressure(index)); in onTouchEvent()
210 int id = event.getPointerId(0); in onTouchEvent()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCardLayout.java.ftl61 public boolean onTouchEvent(MotionEvent event) {
62 switch(event.getAction()){
68 return super.onTouchEvent(event);
72 public boolean onInterceptTouchEvent(MotionEvent event) {
74 switch(event.getAction()){
77 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop;
81 mDownX = event.getX();
82 mDownY = event.getY();
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualViewCompatMode.java111 AccessibilityEvent event = AccessibilityEvent.obtain(); in sendAccessibilityEvent() local
112 event.setEventType(eventType); in sendAccessibilityEvent()
113 event.setSource(this, virtualId); in sendAccessibilityEvent()
114 event.setEnabled(true); in sendAccessibilityEvent()
115 event.setPackageName(getContext().getPackageName()); in sendAccessibilityEvent()
117 Log.v(TAG, "sendAccessibilityEvent(" + eventType + ", " + virtualId + "): " + event); in sendAccessibilityEvent()
119 getContext().getSystemService(AccessibilityManager.class).sendAccessibilityEvent(event); in sendAccessibilityEvent()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualViewCompatMode.java111 AccessibilityEvent event = AccessibilityEvent.obtain(); in sendAccessibilityEvent() local
112 event.setEventType(eventType); in sendAccessibilityEvent()
113 event.setSource(this, virtualId); in sendAccessibilityEvent()
114 event.setEnabled(true); in sendAccessibilityEvent()
115 event.setPackageName(getContext().getPackageName()); in sendAccessibilityEvent()
117 Log.v(TAG, "sendAccessibilityEvent(" + eventType + ", " + virtualId + "): " + event); in sendAccessibilityEvent()
119 getContext().getSystemService(AccessibilityManager.class).sendAccessibilityEvent(event); in sendAccessibilityEvent()
/developers/build/prebuilts/gradle/BasicAccessibility/Application/src/main/java/com/example/android/basicaccessibility/
DDialView.java137 public void onPopulateAccessibilityEvent(AccessibilityEvent event) { in onPopulateAccessibilityEvent() argument
138 super.onPopulateAccessibilityEvent(event); in onPopulateAccessibilityEvent()
141 int eventType = event.getEventType(); in onPopulateAccessibilityEvent()
150 event.getText().add("Mode selected: " + Integer.toString(mActiveSelection + 1) + "."); in onPopulateAccessibilityEvent()
151 event.setItemCount(SELECTION_COUNT); in onPopulateAccessibilityEvent()
152 event.setCurrentItemIndex(mActiveSelection); in onPopulateAccessibilityEvent()
158 event.getText().add("Tap to change."); in onPopulateAccessibilityEvent()
/developers/samples/android/ui/accessibility/BasicAccessibility/Application/src/main/java/com/example/android/basicaccessibility/
DDialView.java137 public void onPopulateAccessibilityEvent(AccessibilityEvent event) { in onPopulateAccessibilityEvent() argument
138 super.onPopulateAccessibilityEvent(event); in onPopulateAccessibilityEvent()
141 int eventType = event.getEventType(); in onPopulateAccessibilityEvent()
150 event.getText().add("Mode selected: " + Integer.toString(mActiveSelection + 1) + "."); in onPopulateAccessibilityEvent()
151 event.setItemCount(SELECTION_COUNT); in onPopulateAccessibilityEvent()
152 event.setCurrentItemIndex(mActiveSelection); in onPopulateAccessibilityEvent()
158 event.getText().add("Tap to change."); in onPopulateAccessibilityEvent()
/developers/build/prebuilts/gradle/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
DSoundAlarmListenerService.java70 for (DataEvent event : dataEvents) { in onDataChanged()
71 if (event.getType() == DataEvent.TYPE_DELETED) { in onDataChanged()
72 Log.i(TAG, event + " deleted"); in onDataChanged()
73 } else if (event.getType() == DataEvent.TYPE_CHANGED) { in onDataChanged()
75 DataMap.fromByteArray(event.getDataItem().getData()).get(FIELD_ALARM_ON); in onDataChanged()
/developers/samples/android/deprecated/wearable/wear/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
DSoundAlarmListenerService.java70 for (DataEvent event : dataEvents) { in onDataChanged()
71 if (event.getType() == DataEvent.TYPE_DELETED) { in onDataChanged()
72 Log.i(TAG, event + " deleted"); in onDataChanged()
73 } else if (event.getType() == DataEvent.TYPE_CHANGED) { in onDataChanged()
75 DataMap.fromByteArray(event.getDataItem().getData()).get(FIELD_ALARM_ON); in onDataChanged()

12345678910>>...14