/development/tools/winscope/src/app/ |
D | mediator.ts | 80 this.crossToolProtocol.setEmitEvent(async (event) => { 81 await this.onWinscopeEvent(event); 84 this.abtChromeExtensionProtocol.setEmitEvent(async (event) => { 85 await this.onWinscopeEvent(event); 103 this.traceViewComponent?.setEmitEvent(async (event) => { 104 await this.onWinscopeEvent(event); 112 this.timelineComponent?.setEmitEvent(async (event) => { 113 await this.onWinscopeEvent(event); 117 async onWinscopeEvent(event: WinscopeEvent) { 118 await event.visit(WinscopeEventType.APP_INITIALIZED, async (event) => { [all …]
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
D | EventScheduler.java | 55 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 …]
|
D | MidiEventScheduler.java | 42 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 …]
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | EventScheduler.java | 55 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 …]
|
D | MidiEventScheduler.java | 42 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 …]
|
/development/tools/winscope/src/viewers/viewer_transactions/ |
D | viewer_transactions.ts | 51 (event) => { 52 this.presenter.onVSyncIdFilterChanged((event as CustomEvent).detail); 58 (event) => { 59 this.presenter.onPidFilterChanged((event as CustomEvent).detail); 65 (event) => { 66 this.presenter.onUidFilterChanged((event as CustomEvent).detail); 72 (event) => { 73 this.presenter.onTypeFilterChanged((event as CustomEvent).detail); 79 (event) => { 80 this.presenter.onLayerIdFilterChanged((event as CustomEvent).detail); [all …]
|
D | viewer_transactions_component.ts | 282 onVSyncIdFilterChanged(event: MatSelectChange) { 283 this.emitEvent(ViewerEvents.VSyncIdFilterChanged, event.value); 286 onPidFilterChanged(event: MatSelectChange) { 287 this.emitEvent(ViewerEvents.PidFilterChanged, event.value); 290 onUidFilterChanged(event: MatSelectChange) { 291 this.emitEvent(ViewerEvents.UidFilterChanged, event.value); 294 onTypeFilterChanged(event: MatSelectChange) { 295 this.emitEvent(ViewerEvents.TypeFilterChanged, event.value); 298 onLayerIdFilterChanged(event: MatSelectChange) { 299 this.emitEvent(ViewerEvents.LayerIdFilterChanged, event.value); [all …]
|
D | viewer_transactions_component_test.ts | 118 (event) => { 119 if ((event as CustomEvent).detail.length === 0) { 124 (event as CustomEvent).detail.includes(entry.transactionId), 135 (event) => { 136 if ((event as CustomEvent).detail.length === 0) { 141 return (event as CustomEvent).detail.includes(`${entry.vsyncId}`); 150 htmlElement.addEventListener(ViewerEvents.PidFilterChanged, (event) => { 151 if ((event as CustomEvent).detail.length === 0) { 156 return (event as CustomEvent).detail.includes(entry.pid); 164 htmlElement.addEventListener(ViewerEvents.UidFilterChanged, (event) => { [all …]
|
/development/tools/winscope/src/viewers/viewer_protolog/ |
D | viewer_protolog.ts | 47 (event) => { 48 this.presenter.onLogLevelsFilterChanged((event as CustomEvent).detail); 53 (event) => { 54 this.presenter.onTagsFilterChanged((event as CustomEvent).detail); 59 (event) => { 61 (event as CustomEvent).detail, 67 (event) => { 69 (event as CustomEvent).detail, 73 this.htmlElement.addEventListener(ViewerEvents.LogClicked, (event) => { 74 this.presenter.onMessageClicked((event as CustomEvent).detail); [all …]
|
/development/tools/otagui/src/components/ |
D | BaseFile.vue | 36 handleFileChange(event) { 40 dragover(event) { 41 event.preventDefault() 42 if (!event.currentTarget.classList.contains('file-hover')) { 43 event.currentTarget.classList.add('file-hover') 46 dragleave(event) { 47 event.currentTarget.classList.remove('file-hover') 49 drop(event) { 50 event.preventDefault() 51 this.$refs.file.files = event.dataTransfer.files [all …]
|
/development/tools/ota_analysis/src/components/ |
D | BaseFile.vue | 36 handleFileChange(event) { 40 dragover(event) { 41 event.preventDefault() 42 if (!event.currentTarget.classList.contains('file-hover')) { 43 event.currentTarget.classList.add('file-hover') 46 dragleave(event) { 47 event.currentTarget.classList.remove('file-hover') 49 drop(event) { 50 event.preventDefault() 51 this.$refs.file.files = event.dataTransfer.files [all …]
|
/development/tools/winscope/src/app/components/timeline/mini-timeline/ |
D | mini_timeline_component.ts | 162 recordClickPosition(event: MouseEvent) { 163 event.preventDefault(); 164 event.stopPropagation(); 165 const lastRightClickPos = {x: event.offsetX, y: event.offsetY}; 221 const event = changes['expandedTimelineScrollEvent'].currentValue; constant 222 const moveDirection = this.getMoveDirection(event); 224 if (event.deltaY !== 0 && moveDirection === 'y') { 225 this.updateZoomByScrollEvent(event); 228 if (event.deltaX !== 0 && moveDirection === 'x') { 229 this.updateHorizontalScroll(event); [all …]
|
/development/tools/winscope/src/viewers/common/ |
D | abstract_hierarchy_viewer_presenter.ts | 68 htmlElement.addEventListener(ViewerEvents.HierarchyPinnedChange, (event) => 69 this.onPinnedItemChange((event as CustomEvent).detail.pinnedItem), 73 async (event) => 74 await this.onHighlightedIdChange((event as CustomEvent).detail.id), 78 (event) => 79 this.onHighlightedPropertyChange((event as CustomEvent).detail.id), 83 async (event) => 85 (event as CustomEvent).detail.userOptions, 90 async (event) => 92 (event as CustomEvent).detail.filterString, [all …]
|
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/ |
D | InputManager.java | 105 MotionEvent event = (MotionEvent) inputEvent; in sendInputEvent() local 109 sendTouchEvent(deviceType, event, displayId); in sendInputEvent() 112 sendMouseEvent(event, displayId); in sendInputEvent() 118 KeyEvent event = (KeyEvent) inputEvent; in sendInputEvent() local 119 sendKeyEvent(deviceType, event, displayId); in sendInputEvent() 165 private void sendTouchEvent(InputDeviceType deviceType, MotionEvent event, int displayId) { in sendTouchEvent() argument 167 for (int pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) { in sendTouchEvent() 171 .setTimestampMs(event.getEventTime()) in sendTouchEvent() 174 .setPointerId(event.getPointerId(pointerIndex)) in sendTouchEvent() 175 .setAction(event.getActionMasked()) in sendTouchEvent() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | TouchPaint.java | 339 public boolean onTrackballEvent(MotionEvent event) { in onTrackballEvent() argument 340 final int action = event.getActionMasked(); in onTrackballEvent() 347 final int N = event.getHistorySize(); in onTrackballEvent() 348 final float scaleX = event.getXPrecision() * TRACKBALL_SCALE; in onTrackballEvent() 349 final float scaleY = event.getYPrecision() * TRACKBALL_SCALE; in onTrackballEvent() 351 moveTrackball(event.getHistoricalX(i) * scaleX, in onTrackballEvent() 352 event.getHistoricalY(i) * scaleY); in onTrackballEvent() 354 moveTrackball(event.getX() * scaleX, event.getY() * scaleY); in onTrackballEvent() 369 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 370 return onTouchOrHoverEvent(event, true /*isTouch*/); in onTouchEvent() [all …]
|
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/ |
D | ImageDragListener.java | 34 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
|
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/ |
D | ImageDragListener.java | 40 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
|
/development/samples/SampleInputMethodAccessibilityService/src/com/example/android/sampleinputmethodaccessibilityservice/ |
D | DragToMoveTouchListener.java | 38 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument 39 final int pointId = event.getPointerId(event.getActionIndex()); in onTouch() 40 switch (event.getAction()) { in onTouch() 48 mLastTouchX = event.getRawX(); in onTouch() 49 mLastTouchY = event.getRawY(); in onTouch() 56 final float x = event.getRawX(); in onTouch() 57 final float y = event.getRawY(); in onTouch()
|
/development/tools/winscope/src/viewers/components/rects/ |
D | rects_component.ts | 317 private mouseMoveListener = (event: MouseEvent) => this.onMouseMove(event); 318 private mouseUpListener = (event: MouseEvent) => this.onMouseUp(event); 365 this.largeRectsCanvasElement.addEventListener('mousedown', (event) => 366 this.onCanvasMouseDown(event), 519 onScroll(event: WheelEvent) { 520 if ((event.target as HTMLElement).className === 'large-rects-canvas') { 521 if (event.deltaY > 0) { 531 onCanvasMouseDown(event: MouseEvent) { 536 onMouseMove(event: MouseEvent) { 537 const distance = new Distance2D(event.movementX, event.movementY); [all …]
|
/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | abstract_timeline_row_component.ts | 116 canvas.addEventListener('mousemove', (event: MouseEvent) => { 117 this.handleMouseMove(event); 119 canvas.addEventListener('mousedown', (event: MouseEvent) => { 120 this.handleMouseDown(event); 122 canvas.addEventListener('mouseout', (event: MouseEvent) => { 123 this.handleMouseOut(event); 162 updateScroll(event: WheelEvent) { 163 this.onScrollEvent.emit(event); 166 onTimelineClick(event: MouseEvent) { 167 if ((event.target as HTMLElement).id === 'canvas') { [all …]
|
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/ |
D | TouchDisplayView.java | 133 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 …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardLayout.java | 61 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()
|
/development/tools/winscope/src/app/components/timeline/ |
D | timeline_component.ts | 605 async onWinscopeEvent(event: WinscopeEvent) { 606 await event.visit(WinscopeEventType.TRACE_POSITION_UPDATE, async () => { 609 await event.visit(WinscopeEventType.ACTIVE_TRACE_CHANGED, async (event) => { 611 this.updateSelectedTraces(event.trace); 613 await event.visit(WinscopeEventType.DARK_MODE_TOGGLED, async (event) => { 658 handleFocusInEvent(event: FocusEvent) { 660 (event.target as HTMLInputElement)?.tagName === 'INPUT' && 661 (event.target as HTMLInputElement)?.type === 'text' 669 handleFocusOutEvent(event: FocusEvent) { 671 (event.target as HTMLInputElement)?.tagName === 'INPUT' && [all …]
|
/development/tools/winscope/src/viewers/viewer_screen_recording/ |
D | viewer_screen_recording.ts | 44 async onWinscopeEvent(event: WinscopeEvent) { 45 await event.visit( 47 async (event) => { 50 event.position, 57 await event.visit( 59 async (event) => { 62 ).forceMinimize = event.isTimelineExpanded;
|
D | viewer_screenshot.ts | 44 async onWinscopeEvent(event: WinscopeEvent) { 45 await event.visit( 47 async (event) => { 50 event.position, 59 await event.visit( 61 async (event) => { 64 ).forceMinimize = event.isTimelineExpanded;
|