Home
last modified time | relevance | path

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

12

/sdk/testapps/testSensors/src/com/android/tests/testsensors/
DTestSensorsActivity.java175 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/
DMultiTouchView.java195 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/
DScreenViewer.java23 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 …]
DLayoutRenderer.java28 import java.awt.event.MouseAdapter;
29 import java.awt.event.MouseEvent;
52 public void mousePressed(MouseEvent event) { in LayoutRenderer()
53 selectChild(event.getX(), event.getY()); in LayoutRenderer()
DWorkspace.java69 import java.awt.event.ActionEvent;
70 import java.awt.event.ActionListener;
71 import java.awt.event.MouseAdapter;
72 import java.awt.event.MouseEvent;
73 import java.awt.event.MouseWheelEvent;
74 import java.awt.event.MouseWheelListener;
114 import javax.swing.event.ChangeEvent;
115 import javax.swing.event.ChangeListener;
116 import javax.swing.event.DocumentEvent;
117 import javax.swing.event.DocumentListener;
[all …]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/action/
DDumpDisplayListAction.java21 import java.awt.event.KeyEvent;
22 import java.awt.event.ActionEvent;
DRefreshWindowsAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DStartServerAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DStopServerAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DRequestLayoutAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DCaptureLayersAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DCaptureNodeAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DInvalidateAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DSaveSceneAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DShowDevicesAction.java23 import java.awt.event.KeyEvent;
24 import java.awt.event.ActionEvent;
DLoadGraphAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DExitAction.java24 import java.awt.event.KeyEvent;
25 import java.awt.event.ActionEvent;
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/
DMultiTouchActivity.java166 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument
168 final int action = event.getAction(); in onTouch()
179 event.getPointerCount() * ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()
181 for (int n = 0; n < event.getPointerCount(); n++) { in onTouch()
182 mImageView.constructEventMessage(bb, event, n); in onTouch()
191 mImageView.constructEventMessage(bb, event, action_pid_index); in onTouch()
199 bb.putInt(event.getPointerId(action_pid_index)); in onTouch()
207 mImageView.constructEventMessage(bb, event, action_pid_index); in onTouch()
215 bb.putInt(event.getPointerId(action_pid_index)); in onTouch()
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/
DNotificationStudioActivity.java225 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument
227 boolean ret = super.dispatchTouchEvent(event); in dispatchTouchEvent()
233 float x = event.getRawX() + currentFocus.getLeft() - screenCoords[0]; in dispatchTouchEvent()
234 float y = event.getRawY() + currentFocus.getTop() - screenCoords[1]; in dispatchTouchEvent()
236 if (event.getAction() == MotionEvent.ACTION_UP in dispatchTouchEvent()
/sdk/eventanalyzer/src/com/android/eventanalyzer/
DEventAnalyzer.java420 private void processEvent(EventContainer event) { in processEvent() argument
421 if (event != null && event.mTag == TAG_ACTIVITY_LAUNCH_TIME) { in processEvent()
424 String name = event.getValueAsString(0); in processEvent()
427 Object value = event.getValue(1); in processEvent()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/
DViewsTreeModel.java23 import javax.swing.event.TreeModelListener;
/sdk/templates/docs/
Djquery-1.8.0.min.js2event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!=…
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/
DIconEditor.java72 public boolean onTouch(View v, MotionEvent event) { in bindEditor()
73 if (event.getAction() == MotionEvent.ACTION_UP) { in bindEditor()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/
DSensorChannel.java584 public void onSensorChanged(SensorEvent event) { in onSensorChanged() argument
597 float[] values = event.values; in onSensorChanged()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
DChannel.java742 protected void notifyUiHandlers(int event) { in notifyUiHandlers() argument
744 uiHandler.sendEmptyMessage(event); in notifyUiHandlers()

12