/sdk/emulator/qtools/ |
D | read_pid.cpp | 17 PidEvent event; in main() local 18 if (trace->ReadPidEvent(&event)) in main() 20 switch (event.rec_type) { in main() 22 printf("t%lld fork tgid %d pid %d\n", event.time, event.tgid, event.pid); in main() 25 printf("t%lld clone tgid %d pid %d\n", event.time, event.tgid, event.pid); in main() 28 printf("t%lld switch %d\n", event.time, event.pid); in main() 31 printf("t%lld exit %d\n", event.time, event.pid); in main() 35 event.time, event.vstart, event.vend, event.offset, event.path); in main() 36 delete[] event.path; in main() 40 event.time, event.vstart, event.vend); in main() [all …]
|
D | parse_options-inl.h | 28 inline bool IsValidEvent(BBEvent *event, symbol_type *sym) in IsValidEvent() argument 30 if (include_some_pids && pid_include_vector.GetBit(event->pid) == 0) in IsValidEvent() 32 if (exclude_some_pids && pid_exclude_vector.GetBit(event->pid)) in IsValidEvent() 99 BBEvent *event, in GetNextValidEvent() argument 105 if (trace->ReadBB(event)) in GetNextValidEvent() 111 while (pid_include_vector.GetBit(event->pid) == 0) { in GetNextValidEvent() 113 *first_ignored_event = *event; in GetNextValidEvent() 114 if (trace->ReadBB(event)) in GetNextValidEvent() 118 while (pid_exclude_vector.GetBit(event->pid)) { in GetNextValidEvent() 120 *first_ignored_event = *event; in GetNextValidEvent() [all …]
|
D | check_trace.cpp | 39 BBEvent event; in main() local 42 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 44 if (event.bb_num == 0) in main() 47 uint64_t insn_time = trace->ReadInsnTime(event.time); in main() 48 if (insn_time != event.time) { in main() 50 event.time, insn_time, event.bb_num, event.bb_addr, in main() 51 event.num_insns, event.pid); in main() 54 for (int ii = 1; ii < event.num_insns; ++ii) { in main() 55 trace->ReadInsnTime(event.time); in main()
|
D | trace_reader.cpp | 161 bool BBReader::ReadBB(BBEvent *event) in ReadBB() argument 188 event->time = bb->next_time; in ReadBB() 189 event->bb_num = bb->bb_rec.bb_num; in ReadBB() 190 event->bb_addr = trace_->GetBBAddr(event->bb_num); in ReadBB() 191 event->insns = trace_->GetInsns(event->bb_num); in ReadBB() 192 event->num_insns = trace_->FindNumInsns(event->bb_num, event->time); in ReadBB() 193 event->pid = trace_->FindCurrentPid(event->time); in ReadBB() 194 event->is_thumb = trace_->GetIsThumb(event->bb_num); in ReadBB() 214 event->time = nextrec_.bb_rec.start_time; in ReadBB() 215 event->bb_num = nextrec_.bb_rec.bb_num; in ReadBB() [all …]
|
D | bb_dump.cpp | 37 BBEvent event; in main() local 40 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 43 event.time, event.bb_num, event.pid, event.num_insns, in main() 44 event.bb_addr, sym->name); in main()
|
D | q2dm.cpp | 168 BBEvent event; in main() local 173 if (GetNextValidEvent(trace, &event, &ignored, &function)) in main() 175 if (event.bb_num == 0) in main() 179 event.time, event.pid, function->name); in main() 196 kernelStack->popAll(event.time); in main() 200 pStack = stacks[event.pid]; in main() 204 pStack = stacks[event.pid]; in main() 209 pStack = new CallStackType(event.pid, kNumStackFrames, trace); in main() 210 stacks[event.pid] = pStack; in main() 211 const char *name = trace->GetProcessName(event.pid); in main() [all …]
|
D | callstack.h | 57 void updateStack(BBEvent *event, symbol_type *function); 79 Action getAction(BBEvent *event, symbol_type *function); 80 void doMethodAction(BBEvent *event, symbol_type *function); 81 void doMethodPop(BBEvent *event, uint32_t addr, const uint32_t flags); 85 void doPush(BBEvent *event, symbol_type *function); 86 void doPop(BBEvent *event, symbol_type *function, Action methodAction); 161 CallStack<FRAME, BASE>::updateStack(BBEvent *event, symbol_type *function) in updateStack() argument 169 doMethodAction(event, function); in updateStack() 172 Action action = getAction(event, function); in updateStack() 185 doPush(event, function); in updateStack() [all …]
|
D | q2g.cpp | 51 BBEvent event; in main() local 54 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 59 gtrace->WriteFirstHeader(qheader->start_sec, event.pid); in main() 83 gtrace->AddProcExit(prev_sym->filenum, prev_sym->procnum, event.time, in main() 84 event.pid); in main() 89 if (event.bb_num != 0) { in main() 90 gtrace->AddProcEntry(sym->filenum, sym->procnum, event.time, event.pid); in main() 95 eof = GetNextValidEvent(trace, &event, &ignored, &sym); in main()
|
D | read_trace.cpp | 65 BBEvent event; in main() local 68 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 72 event.time, event.bb_num, event.num_insns); in main() 75 uint32_t *insns = event.insns; in main() 76 uint32_t addr = event.bb_addr; in main() 108 for (int ii = 0; ii < event.num_insns; ++ii) { in main() 109 uint64_t sim_time = trace->ReadInsnTime(event.time); in main() 133 if (thumb_pair && (ii + 1 < event.num_insns)) { in main() 142 sim_time, event.pid, addr, insn, insn2, buf, disasm); in main() 145 sim_time, event.pid, addr, insn, buf, disasm); in main() [all …]
|
D | stack_dump.cpp | 117 BBEvent event; in main() local 122 if (GetNextValidEvent(trace, &event, &ignored, &function)) in main() 124 if (event.bb_num == 0) in main() 128 CallStackType *pStack = stacks[event.pid]; in main() 132 pStack = new CallStackType(event.pid, kNumStackFrames, trace); in main() 133 stacks[event.pid] = pStack; in main() 135 if (debugTime != 0 && event.time >= debugTime) in main() 139 pStack->updateStack(&event, function); in main() 143 if (dumpTime > 0 && event.time >= dumpTime) { in main() 151 stacks[ii]->popAll(event.time); in main()
|
D | hist_trace.cpp | 26 BBEvent event; in main() local 28 if (trace->ReadBB(&event)) in main() 30 int bb_diff = event.bb_num - prev_bb_num; in main() 34 prev_bb_num = event.bb_num; in main() 35 prev_time = event.time; in main()
|
D | check_stack.cpp | 106 BBEvent event; in main() local 142 if (GetNextValidEvent(etrace, &event, &ignored, &function)) in main() 144 if (event.bb_num == 0) in main() 148 CallStackType *eStack = eStacks[event.pid]; in main() 152 eStack = new CallStackType(event.pid, kNumStackFrames, etrace); in main() 153 eStacks[event.pid] = eStack; in main() 155 if (debugTime != 0 && event.time >= debugTime) in main() 156 printf("time: %llu debug time: %lld\n", event.time, debugTime); in main() 159 eStack->updateStack(&event, function); in main() 160 } while (event.time < method_record.time); in main() [all …]
|
D | coverage.cpp | 93 BBEvent event; in main() local 98 if (GetNextValidEvent(trace, &event, &ignored, &function)) in main() 100 if (event.bb_num == 0) in main() 104 CallStackType *pStack = stacks[event.pid]; in main() 108 pStack = new CallStackType(event.pid, kNumStackFrames, trace); in main() 109 stacks[event.pid] = pStack; in main() 113 pStack->updateStack(&event, function); in main() 118 stacks[ii]->popAll(event.time); in main()
|
D | post_trace.cpp | 96 BBEvent event; in main() local 98 if (trace->ReadBB(&event)) in main() 100 if (event.bb_num >= num_static_bb) { in main() 103 event.bb_num, num_static_bb); in main() 106 usedPids[event.pid] = 1; in main() 108 num_dynamic_insn += event.num_insns; in main()
|
D | trace_reader.h | 248 void HandlePidEvent(PidEvent *event); 1170 void TraceReader<T>::HandlePidEvent(PidEvent *event) in HandlePidEvent() argument 1172 switch (event->rec_type) { in HandlePidEvent() 1176 if (event->pid >= kNumPids) { in HandlePidEvent() 1177 fprintf(stderr, "Error: pid (%d) too large\n", event->pid); in HandlePidEvent() 1185 processes_[event->pid] = child; in HandlePidEvent() 1186 child->pid = event->pid; in HandlePidEvent() 1187 child->tgid = event->tgid; in HandlePidEvent() 1192 child->next = processes_[event->pid]; in HandlePidEvent() 1195 child->start_time = event->time; in HandlePidEvent() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | MoveGesture.java | 169 public void dragEnter(DropTargetEvent event) { in dragEnter() argument 170 if (DEBUG) AdtPlugin.printErrorToConsole("DEBUG", "drag enter", event); in dragEnter() 193 if (sxt.isSupportedType(event.currentDataType)) { in dragEnter() 194 mCurrentDragElements = (SimpleElement[]) sxt.nativeToJava(event.currentDataType); in dragEnter() 206 event.detail = DND.DROP_NONE; in dragEnter() 209 dragOperationChanged(event); in dragEnter() 217 public void dragOperationChanged(DropTargetEvent event) { in dragOperationChanged() argument 218 if (DEBUG) AdtPlugin.printErrorToConsole("DEBUG", "drag changed", event); in dragOperationChanged() 220 checkDataType(event); in dragOperationChanged() 221 recomputeDragType(event); in dragOperationChanged() [all …]
|
D | ControlPoint.java | 54 public static ControlPoint create(LayoutCanvas canvas, MouseEvent event) { in create() argument 57 assert event.widget == canvas : event.widget; in create() 58 return new ControlPoint(canvas, event.x, event.y); in create() 69 public static ControlPoint create(LayoutCanvas canvas, MenuDetectEvent event) { in create() argument 71 org.eclipse.swt.graphics.Point p = canvas.toControl(event.x, event.y); in create() 87 public static ControlPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() argument 90 return new ControlPoint(canvas, event.x, event.y); in create() 102 public static ControlPoint create(LayoutCanvas canvas, DropTargetEvent event) { in create() argument 105 org.eclipse.swt.graphics.Point p = canvas.toControl(event.x, event.y); in create()
|
D | DropGesture.java | 36 public void dragEnter(DropTargetEvent event) { in dragEnter() argument 45 public void dragOver(DropTargetEvent event) { in dragOver() argument 55 public void dragOperationChanged(DropTargetEvent event) { in dragOperationChanged() argument 65 public void dragLeave(DropTargetEvent event) { in dragLeave() argument 75 public void dropAccept(DropTargetEvent event) { in dropAccept() argument 85 public void drop(final DropTargetEvent event) { in drop() argument
|
D | OutlineDropListener.java | 47 public void dragEnter(DropTargetEvent event) { in dragEnter() argument 48 if (event.detail == DND.DROP_NONE && GlobalCanvasDragInfo.getInstance().isDragging()) { in dragEnter() 52 event.detail = operation; in dragEnter() 54 super.dragEnter(event); in dragEnter() 59 final DropTargetEvent event = getCurrentEvent(); in performDrop() local 60 if (event == null) { in performDrop() 63 int location = determineLocation(event); in performDrop() 70 if (sxt.isSupportedType(event.currentDataType)) { in performDrop() 84 CanvasViewInfo parent = OutlinePage.getViewInfo(event.item.getData()); in performDrop() 123 String label = MoveGesture.computeUndoLabel(targetNode, elements, event.detail); in performDrop() [all …]
|
D | LayoutPoint.java | 53 public static LayoutPoint create(LayoutCanvas canvas, MouseEvent event) { in create() argument 56 assert event.widget == canvas : event.widget; in create() 57 return ControlPoint.create(canvas, event).toLayout(); in create() 72 public static LayoutPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() argument 75 return ControlPoint.create(canvas, event).toLayout(); in create()
|
D | LintTooltipManager.java | 69 public void handleEvent(Event event) { in handleEvent() argument 70 switch(event.type) { in handleEvent() 75 List<UiViewElementNode> nodes = computeNodes(event); in handleEvent() 98 show(event); in handleEvent() 111 private void show(Event event) { in show() argument 112 List<UiViewElementNode> nodes = computeNodes(event); in show() 147 private List<UiViewElementNode> computeNodes(Event event) { in computeNodes() argument 148 LayoutPoint p = ControlPoint.create(mCanvas, event.x, event.y).toLayout(); in computeNodes()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | PointTestCases.java | 36 Event event = new Event(); in canvasMouseEvent() local 37 event.x = x; in canvasMouseEvent() 38 event.y = y; in canvasMouseEvent() 39 event.stateMask = stateMask; in canvasMouseEvent() 40 event.widget = mCanvas; in canvasMouseEvent() 41 MouseEvent mouseEvent = new MouseEvent(event); in canvasMouseEvent()
|
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
D | TestSensorsActivity.java | 175 public void onSensorChanged(SensorEvent event) { in onSensorChanged() argument 178 final int nArgs = event.values.length; in onSensorChanged() 181 val = String.format(mTextFmt, event.values[0], event.values[1], event.values[2]); in onSensorChanged() 183 val = String.format(mTextFmt, event.values[0], event.values[1]); in onSensorChanged() 185 val = String.format(mTextFmt, event.values[0]); in onSensorChanged()
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/ |
D | MultiTouchView.java | 195 public void constructEventMessage(ByteBuffer bb, MotionEvent event, int ptr_index) { in constructEventMessage() argument 196 bb.putInt(event.getPointerId(ptr_index)); in constructEventMessage() 198 bb.putInt((int) (event.getX(ptr_index) / mDx)); in constructEventMessage() 199 bb.putInt((int) (event.getY(ptr_index) / mDy)); in constructEventMessage() 201 bb.putInt((int) (event.getY(ptr_index) / mDy)); in constructEventMessage() 202 bb.putInt((int) (getWidth() - event.getX(ptr_index) / mDx)); in constructEventMessage() 206 int pressure = (int) (event.getPressure(ptr_index) * 100); in constructEventMessage()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
D | ScreenViewer.java | 23 import java.awt.event.ActionEvent; 24 import java.awt.event.ActionListener; 25 import java.awt.event.MouseAdapter; 26 import java.awt.event.MouseEvent; 27 import java.awt.event.MouseMotionAdapter; 28 import java.awt.event.MouseWheelEvent; 29 import java.awt.event.MouseWheelListener; 49 import javax.swing.event.ChangeEvent; 50 import javax.swing.event.ChangeListener; 141 public void stateChanged(ChangeEvent event) { in buildViewerAndControls() [all …]
|