/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | NativeInterface.java | 64 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged() local 65 event.valueInt = state; in onConnectionStateChanged() 66 event.valueInt2 = peer_feat; in onConnectionStateChanged() 67 event.valueInt3 = chld_feat; in onConnectionStateChanged() 68 event.device = getDevice(address); in onConnectionStateChanged() 71 Log.d(TAG, "Device addr " + event.device.getAddress() + " State " + state); in onConnectionStateChanged() 75 service.messageFromNative(event); in onConnectionStateChanged() 77 Log.w(TAG, "Ignoring message because service not available: " + event); in onConnectionStateChanged() 82 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() local 83 event.valueInt = state; in onAudioStateChanged() [all …]
|
D | HeadsetClientStateMachine.java | 824 StackEvent event = (StackEvent) message.obj; in processMessage() local 826 Log.d(TAG, "Stack event type: " + event.type); in processMessage() 828 switch (event.type) { in processMessage() 831 Log.d(TAG, "Disconnected: Connection " + event.device in processMessage() 832 + " state changed:" + event.valueInt); in processMessage() 834 processConnectionEvent(event.valueInt, event.device); in processMessage() 837 Log.e(TAG, "Disconnected: Unexpected stack event: " + event.type); in processMessage() 914 StackEvent event = (StackEvent) message.obj; in processMessage() local 916 Log.d(TAG, "Connecting: event type: " + event.type); in processMessage() 918 switch (event.type) { in processMessage() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | UserInputHandler.java | 92 try (T event = mEventConverter.apply(e)) { in onDown() argument 93 return onDown(event); in onDown() 98 boolean onDown(T event) { in onDown() argument 99 return event.isMouseEvent() in onDown() 100 ? mMouseDelegate.onDown(event) in onDown() 101 : mTouchDelegate.onDown(event); in onDown() 107 try (T event = mEventConverter.apply(e2)) { in onScroll() argument 108 return onScroll(event); in onScroll() 113 boolean onScroll(T event) { in onScroll() argument 114 return event.isMouseEvent() in onScroll() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 69 public void onSensorChanged(CarSensorManager manager, CarSensorEvent event) { 71 Log.v(TAG, "New car sensor event: " + event); 74 mEventMap.put(event.sensorType, event); 190 CarSensorEvent event = mEventMap.get(i); in refreshUi() local 193 summary.add(getCompassString(event)); in refreshUi() 197 getTimestamp(event), in refreshUi() 198 event == null ? mNaString : event.getCarSpeedData().carSpeed)); in refreshUi() 202 getTimestamp(event), in refreshUi() 203 event == null ? mNaString : event.getRpmData().rpm)); in refreshUi() 207 getTimestamp(event), in refreshUi() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 388 StackEvent event = (StackEvent) message.obj; in processMessage() local 389 log("Disconnected: event type: " + event.type); in processMessage() 390 switch (event.type) { in processMessage() 392 processConnectionEvent(event.valueInt, event.device); in processMessage() 395 Log.e(TAG, "Disconnected: unexpected stack event: " + event.type); in processMessage() 506 StackEvent event = (StackEvent) message.obj; in processMessage() local 507 log("Pending: event type: " + event.type); in processMessage() 508 switch (event.type) { in processMessage() 510 processConnectionEvent(event.valueInt, event.device); in processMessage() 513 processAtChld(event.valueInt, event.device); in processMessage() [all …]
|
/packages/services/Car/tools/emulator/ |
D | obd2_to_diagjson.py | 148 event = Event() 149 event.setTimestamp(json.timestamp) 150 event.setType(json.type) 152 event.setIntValue(intValue.id, intValue.value) 154 event.setFloatValue(floatValue.id, floatValue.value) 155 event.setStringValue(json.stringValue) 156 return event 159 event = Event() 160 event.setTimestamp(self.getTimestamp()) 161 event.setType(self.getType()) [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 43 import com.android.calendar.event.EditEventActivity; 268 void handleEvent(EventInfo event); in handleEvent() argument 432 public void sendEvent(Object sender, final EventInfo event) { in sendEvent() argument 436 Log.d(TAG, eventInfoToString(event)); in sendEvent() 440 if (filteredTypes != null && (filteredTypes.longValue() & event.eventType) != 0) { in sendEvent() 451 if (event.viewType == ViewType.DETAIL) { in sendEvent() 452 event.viewType = mDetailViewType; in sendEvent() 454 } else if (event.viewType == ViewType.CURRENT) { in sendEvent() 455 event.viewType = mViewType; in sendEvent() 456 } else if (event.viewType != ViewType.EDIT) { in sendEvent() [all …]
|
D | EventGeometry.java | 48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument 49 if (event.drawAsAllday()) { in computeEventRect() 54 int startDay = event.startDay; in computeEventRect() 55 int endDay = event.endDay; in computeEventRect() 61 int startTime = event.startTime; in computeEventRect() 62 int endTime = event.endTime; in computeEventRect() 76 int col = event.getColumn(); in computeEventRect() 77 int maxCols = event.getMaxColumns(); in computeEventRect() 87 event.top = top; in computeEventRect() 88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect() [all …]
|
D | AllInOneActivity.java | 998 private void setTitleInActionBar(EventInfo event) { in setTitleInActionBar() argument 999 if (event.eventType != EventType.UPDATE_TITLE || mActionBar == null) { in setTitleInActionBar() 1003 final long start = event.startTime.toMillis(false /* use isDst */); in setTitleInActionBar() 1005 if (event.endTime != null) { in setTitleInActionBar() 1006 end = event.endTime.toMillis(false /* use isDst */); in setTitleInActionBar() 1011 final String msg = Utils.formatDateRange(this, start, end, (int) event.extraLong); in setTitleInActionBar() 1014 updateSecondaryTitleFields(event.selectedTime != null ? event.selectedTime.toMillis(true) in setTitleInActionBar() 1088 public void handleEvent(EventInfo event) { in handleEvent() argument 1090 if (event.eventType == EventType.GO_TO) { in handleEvent() 1091 if ((event.extraLong & CalendarController.EXTRA_GOTO_BACK_TO_PREVIOUS) != 0) { in handleEvent() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 156 ICalendar.Component event = ICalendar.parseEvent(text); in testParseBareEvent() local 158 assertEquals("VEVENT", event.getName()); in testParseBareEvent() 159 assertNull(event.getComponents()); in testParseBareEvent() 160 assertEquals(0, event.getPropertyNames().size()); in testParseBareEvent() 171 ICalendar.Component event = ICalendar.parseEvent(text); in testParseEvent1() local 173 assertEquals("VEVENT", event.getName()); in testParseEvent1() 174 assertNull(event.getComponents()); in testParseEvent1() 175 assertEquals(3, event.getPropertyNames().size()); in testParseEvent1() 176 assertEquals(1, event.getProperties("DTSTART").size()); in testParseEvent1() 177 assertEquals("19970714T170000Z", event.getFirstProperty("DTSTART").getValue()); in testParseEvent1() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 140 protected boolean fillInLogContainerData(LauncherEvent event, @Nullable View v) { in fillInLogContainerData() argument 147 provider.fillInLogContainerData(v, itemInfo, event.srcTarget[0], event.srcTarget[1]); in fillInLogContainerData() 152 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logAppLaunch() local 155 if (fillInLogContainerData(event, v)) { in logAppLaunch() 156 fillIntentInfo(event.srcTarget[0], intent); in logAppLaunch() 158 dispatchUserEvent(event, intent); in logAppLaunch() 171 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logNotificationLaunch() local 173 if (fillInLogContainerData(event, v)) { in logNotificationLaunch() 174 event.srcTarget[0].packageNameHash = (mUuidStr + intent.getCreatorPackage()).hashCode(); in logNotificationLaunch() 176 dispatchUserEvent(event, null); in logNotificationLaunch() [all …]
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
D | CarSensorsProxy.java | 89 public void onGpsStatusChanged(int event) { 90 if (event == GpsStatus.GPS_EVENT_SATELLITE_STATUS) { 125 public void onSensorChanged(SensorEvent event) { 126 int type = event.sensor.getType(); 130 … System.arraycopy((Object) event.values, 0, (Object) mLastGyroscopeData, 0, 3); 135 … System.arraycopy((Object) event.values, 0, (Object) mLastMagneticFieldData, 0, 3); 140 … System.arraycopy((Object) event.values, 0, (Object) mLastAccelerometerData, 0, 3); 167 CarSensorEvent event = (CarSensorEvent) msg.obj; 168 if (event != null) { 171 listener.onSensorChanged(mCarSensorManager, event); [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateReadyForCapture.java | 31 import com.android.camera.captureintent.event.EventCameraBusy; 32 import com.android.camera.captureintent.event.EventCameraQuickExpose; 33 import com.android.camera.captureintent.event.EventCameraReady; 34 import com.android.camera.captureintent.event.EventClickOnCameraKey; 35 import com.android.camera.captureintent.event.EventFastPictureBitmapAvailable; 36 import com.android.camera.captureintent.event.EventOnSurfaceTextureUpdated; 37 import com.android.camera.captureintent.event.EventOnTextureViewLayoutChanged; 38 import com.android.camera.captureintent.event.EventPause; 39 import com.android.camera.captureintent.event.EventPictureCompressed; 40 import com.android.camera.captureintent.event.EventPictureDecoded; [all …]
|
D | StateReviewingPicture.java | 25 import com.android.camera.captureintent.event.EventOnTextureViewLayoutChanged; 26 import com.android.camera.captureintent.event.EventPause; 27 import com.android.camera.captureintent.event.EventPictureCompressed; 28 import com.android.camera.captureintent.event.EventPictureDecoded; 29 import com.android.camera.captureintent.event.EventTapOnCancelIntentButton; 30 import com.android.camera.captureintent.event.EventTapOnConfirmPhotoButton; 31 import com.android.camera.captureintent.event.EventTapOnRetakePhotoButton; 90 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 103 public Optional<State> processEvent(EventOnTextureViewLayoutChanged event) { in registerEventHandlers() 105 .setPreviewLayoutSize(event.getLayoutSize()); in registerEventHandlers() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | MoreKeysKeyboardAccessibilityDelegate.java | 63 protected void onHoverEnter(final MotionEvent event) { in onHoverEnter() argument 65 Log.d(TAG, "onHoverEnter: key=" + getHoverKeyOf(event)); in onHoverEnter() 67 super.onHoverEnter(event); in onHoverEnter() 68 final int actionIndex = event.getActionIndex(); in onHoverEnter() 69 final int x = (int)event.getX(actionIndex); in onHoverEnter() 70 final int y = (int)event.getY(actionIndex); in onHoverEnter() 71 final int pointerId = event.getPointerId(actionIndex); in onHoverEnter() 72 final long eventTime = event.getEventTime(); in onHoverEnter() 77 protected void onHoverMove(final MotionEvent event) { in onHoverMove() argument 78 super.onHoverMove(event); in onHoverMove() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTestsDeadKeys.java | 21 import com.android.inputmethod.event.Event; 31 final Event event; in addCodePoint() local 33 event = Event.createDeadEvent(codePoint, Event.NOT_A_KEY_CODE, null /* next */); in addCodePoint() 35 event = Event.createSoftwareKeypressEvent(codePoint, Event.NOT_A_KEY_CODE, in addCodePoint() 39 add(event); in addCodePoint() 58 for (final Event event : events) { in testDeadCircumflexSimple() 59 mLatinIME.onEvent(event); in testDeadCircumflexSimple() 72 for (final Event event : events) { in testDeadCircumflexBackspace() 73 mLatinIME.onEvent(event); in testDeadCircumflexBackspace() 84 for (final Event event : events) { in testDeadCircumflexFeedback() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/logging/ |
D | Logger.java | 69 final ListEvent event = new ListEvent(); in logListEvent() local 70 event.actionType = actionType; in logListEvent() 71 event.listType = listType; in logListEvent() 72 event.count = count; in logListEvent() 73 event.clickedIndex = clickedIndex; in logListEvent() 74 event.numSelected = numSelected; in logListEvent() 78 logger.logListEventImpl(event); in logListEvent() 89 final QuickContactEvent event = new QuickContactEvent(); in logQuickContactEvent() local 90 event.referrer = referrer == null ? "Unknown" : referrer; in logQuickContactEvent() 91 event.contactType = contactType; in logQuickContactEvent() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaFragment.java | 317 private void goTo(EventInfo event, boolean animate) { in goTo() argument 318 if (event.selectedTime != null) { in goTo() 319 mTime.set(event.selectedTime); in goTo() 320 } else if (event.startTime != null) { in goTo() 321 mTime.set(event.startTime); in goTo() 328 mAgendaListView.goTo(mTime, event.id, mQuery, false, in goTo() 329 ((event.extraLong & CalendarController.EXTRA_GOTO_TODAY) != 0 && in goTo() 334 showEventInfo(event, vh != null ? vh.allDay : false, mForceReplace); in goTo() 365 public void handleEvent(EventInfo event) { in handleEvent() argument 366 if (event.eventType == EventType.GO_TO) { in handleEvent() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarInputService.java | 56 boolean onKeyEvent(KeyEvent event); in onKeyEvent() argument 211 public void onKeyEvent(KeyEvent event, int targetDisplay) { in onKeyEvent() argument 215 if (handleSystemEvent(event)) { in onKeyEvent() 219 if (mCarInputListener != null && isCustomEventHandler(event, targetDisplay)) { in onKeyEvent() 221 mCarInputListener.onKeyEvent(event, targetDisplay); in onKeyEvent() 229 switch (event.getKeyCode()) { in onKeyEvent() 231 handleVoiceAssistKey(event); in onKeyEvent() 234 handleCallKey(event); in onKeyEvent() 240 handleInstrumentClusterKey(event); in onKeyEvent() 242 handleMainDisplayKey(event); in onKeyEvent() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | DialpadFragment.java | 95 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 101 switch (event.getAction()) { in onKey() 103 if (event.getRepeatCount() == 0) { in onKey() 232 /* package */ boolean onDialerKeyDown(KeyEvent event) { in onDialerKeyDown() argument 235 return mDialerKeyListener.onKeyDown(event); in onDialerKeyDown() 242 public boolean onDialerKeyUp(KeyEvent event) { in onDialerKeyUp() argument 245 return mDialerKeyListener.onKeyUp(event); in onDialerKeyUp() 333 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { in backspace() argument 342 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { in onKeyDown() argument 346 char c = (char) lookup(event, content); in onKeyDown() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | DefaultOmtpEventHandler.java | 32 OmtpEvents event) { in handleEvent() argument 33 switch (event.getType()) { in handleEvent() 35 handleConfigurationEvent(context, status, event); in handleEvent() 38 handleDataChannelEvent(context, status, event); in handleEvent() 41 handleNotificationChannelEvent(context, config, status, event); in handleEvent() 44 handleOtherEvent(context, status, event); in handleEvent() 47 VvmLog.wtf(TAG, "invalid event type " + event.getType() + " for " + event); in handleEvent() 52 Context context, VoicemailStatus.Editor status, OmtpEvents event) { in handleConfigurationEvent() argument 53 switch (event) { in handleConfigurationEvent() 85 VvmLog.wtf(TAG, "invalid configuration event " + event); in handleConfigurationEvent() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStateMachine.java | 223 StackEvent event = (StackEvent) message.obj; in processMessage() local 224 switch (event.type) { in processMessage() 226 processConnectionEvent(event.valueInt, event.device); in processMessage() 229 processAudioConfigEvent(event.audioConfig, event.device); in processMessage() 232 loge("Unexpected stack event: " + event.type); in processMessage() 328 StackEvent event = (StackEvent) message.obj; in processMessage() local 329 log("STACK_EVENT " + event.type); in processMessage() 330 switch (event.type) { in processMessage() 333 processConnectionEvent(event.valueInt, event.device); in processMessage() 336 processAudioConfigEvent(event.audioConfig, event.device); in processMessage() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | DragGestureDetector.java | 44 private void computeAveragePosition(MotionEvent event, float[] position) { in computeAveragePosition() argument 45 computeAveragePosition(event, position, -1); in computeAveragePosition() 48 private void computeAveragePosition(MotionEvent event, float[] position, int ignore) { in computeAveragePosition() argument 49 final int pointerCount = event.getPointerCount(); in computeAveragePosition() 55 position[0] += event.getX(p); in computeAveragePosition() 56 position[1] += event.getY(p); in computeAveragePosition() 64 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 65 int index = event.getActionIndex(); in onTouchEvent() 66 switch (event.getActionMasked()) { in onTouchEvent() 68 computeAveragePosition(event, mLast); in onTouchEvent() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
D | TouchPointView.java | 63 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 65 logTouchEvents(event); in onTouchEvent() 69 if (event.getActionMasked() == MotionEvent.ACTION_UP) { in onTouchEvent() 73 for (int i = 0; i < event.getPointerCount(); i++) { in onTouchEvent() 74 int pointerId = event.getPointerId(i); in onTouchEvent() 75 int pointerIndex = event.findPointerIndex(pointerId); in onTouchEvent() 77 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent() 86 private void logTouchEvents(MotionEvent event) { in logTouchEvents() argument 87 if (event.getActionMasked() != MotionEvent.ACTION_UP) { in logTouchEvents() 91 for (int i = 0; i < event.getPointerCount(); i++) { in logTouchEvents() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | DeadKeyCombiner.java | 17 package com.android.inputmethod.event; 237 public Event processEvent(final ArrayList<Event> previousEvents, final Event event) { in processEvent() argument 240 if (event.isDead()) { in processEvent() 242 mDeadSequence.appendCodePoint(event.mCodePoint); in processEvent() 243 return Event.createConsumedEvent(event); in processEvent() 248 return event; in processEvent() 250 if (Character.isWhitespace(event.mCodePoint) in processEvent() 251 || event.mCodePoint == mDeadSequence.codePointBefore(mDeadSequence.length())) { in processEvent() 254 event); in processEvent() 258 if (event.isFunctionalKeyEvent()) { in processEvent() [all …]
|