Home
last modified time | relevance | path

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

12345678910>>...13

/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/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/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/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/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/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/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/samples/android/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()
/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/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
DCalendarQueryService.java117 for (Event event : events) { in onHandleIntent()
118 final PutDataMapRequest putDataMapRequest = event.toPutDataMapRequest(); in onHandleIntent()
154 Event event = new Event(); in queryEvents() local
155 event.id = cursor.getLong(idIdx); in queryEvents()
156 event.eventId = cursor.getLong(eventIdIdx); in queryEvents()
157 event.title = cursor.getString(titleIdx); in queryEvents()
158 event.begin = cursor.getLong(beginIdx); in queryEvents()
159 event.end = cursor.getLong(endIdx); in queryEvents()
160 event.allDay = cursor.getInt(allDayIdx) != 0; in queryEvents()
161 event.description = cursor.getString(descIdx); in queryEvents()
[all …]
/developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
DCalendarQueryService.java117 for (Event event : events) { in onHandleIntent()
118 final PutDataMapRequest putDataMapRequest = event.toPutDataMapRequest(); in onHandleIntent()
154 Event event = new Event(); in queryEvents() local
155 event.id = cursor.getLong(idIdx); in queryEvents()
156 event.eventId = cursor.getLong(eventIdIdx); in queryEvents()
157 event.title = cursor.getString(titleIdx); in queryEvents()
158 event.begin = cursor.getLong(beginIdx); in queryEvents()
159 event.end = cursor.getLong(endIdx); in queryEvents()
160 event.allDay = cursor.getInt(allDayIdx) != 0; in queryEvents()
161 event.description = cursor.getString(descIdx); in queryEvents()
[all …]
/developers/samples/android/wearable/wear/WatchViewStub/Wearable/src/main/java/com/example/android/google/wearable/watchviewstub/
DMainActivity.java75 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument
76 return mGestureDetector.onTouchEvent(event) || super.dispatchTouchEvent(event); in dispatchTouchEvent()
81 public void onLongPress(MotionEvent event) { in onLongPress() argument
/developers/build/prebuilts/gradle/WatchViewStub/Wearable/src/main/java/com/example/android/google/wearable/watchviewstub/
DMainActivity.java75 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument
76 return mGestureDetector.onTouchEvent(event) || super.dispatchTouchEvent(event); in dispatchTouchEvent()
81 public void onLongPress(MotionEvent event) { in onLongPress() argument
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
DMainActivity.java150 for (DataEvent event : dataEvents) { in onDataChanged()
151 if (event.getType() == DataEvent.TYPE_CHANGED) { in onDataChanged()
152 String path = event.getDataItem().getUri().getPath(); in onDataChanged()
154 DataMapItem dataMapItem = DataMapItem.fromDataItem(event.getDataItem()); in onDataChanged()
162 mDataFragment.appendItem("DataItem Changed", event.getDataItem().toString()); in onDataChanged()
167 } else if (event.getType() == DataEvent.TYPE_DELETED) { in onDataChanged()
168 mDataFragment.appendItem("DataItem Deleted", event.getDataItem().toString()); in onDataChanged()
170 mDataFragment.appendItem("Unknown data event type", "Type = " + event.getType()); in onDataChanged()
247 public void onMessageReceived(MessageEvent event) { in onMessageReceived() argument
248 LOGD(TAG, "onMessageReceived: " + event); in onMessageReceived()
[all …]
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
DMainActivity.java150 for (DataEvent event : dataEvents) { in onDataChanged()
151 if (event.getType() == DataEvent.TYPE_CHANGED) { in onDataChanged()
152 String path = event.getDataItem().getUri().getPath(); in onDataChanged()
154 DataMapItem dataMapItem = DataMapItem.fromDataItem(event.getDataItem()); in onDataChanged()
162 mDataFragment.appendItem("DataItem Changed", event.getDataItem().toString()); in onDataChanged()
167 } else if (event.getType() == DataEvent.TYPE_DELETED) { in onDataChanged()
168 mDataFragment.appendItem("DataItem Deleted", event.getDataItem().toString()); in onDataChanged()
170 mDataFragment.appendItem("Unknown data event type", "Type = " + event.getType()); in onDataChanged()
247 public void onMessageReceived(MessageEvent event) { in onMessageReceived() argument
248 LOGD(TAG, "onMessageReceived: " + event); in onMessageReceived()
[all …]
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/synth/
DSynthEngine.java170 MidiEvent event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents() local
171 while (event != null) { in processMidiEvents()
172 mFramer.send(event.data, 0, event.count, event.getTimestamp()); in processMidiEvents()
173 mEventScheduler.addEventToPool(event); in processMidiEvents()
174 event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/synth/
DSynthEngine.java170 MidiEvent event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents() local
171 while (event != null) { in processMidiEvents()
172 mFramer.send(event.data, 0, event.count, event.getTimestamp()); in processMidiEvents()
173 mEventScheduler.addEventToPool(event); in processMidiEvents()
174 event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()

12345678910>>...13