/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 1355 StackEvent event = (StackEvent) message.obj; in processMessage() local 1357 Log.d(TAG, "Stack event type: " + event.type); in processMessage() 1359 switch (event.type) { in processMessage() 1361 Log.d(TAG, "Disconnected: Connection " + event.device in processMessage() 1362 + " state changed:" + event.valueInt); in processMessage() 1363 processConnectionEvent(event.valueInt, event.device); in processMessage() 1366 Log.e(TAG, "Disconnected: Unexpected stack event: " + event.type); in processMessage() 1436 StackEvent event = (StackEvent) message.obj; in processMessage() local 1438 Log.d(TAG, "Connecting: event type: " + event.type); in processMessage() 1440 switch (event.type) { in processMessage() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 373 StackEvent event = (StackEvent) message.obj; in processMessage() local 375 log("event type: " + event.type); in processMessage() 377 switch (event.type) { in processMessage() 379 processConnectionEvent(event.valueInt, event.device); in processMessage() 382 Log.e(TAG, "Unexpected stack event: " + event.type); in processMessage() 509 StackEvent event = (StackEvent) message.obj; in processMessage() local 511 log("event type: " + event.type); in processMessage() 513 switch (event.type) { in processMessage() 516 if (device1 != null && device1.equals(event.device)) { in processMessage() 520 processConnectionEvent(event.valueInt, event.device); in processMessage() [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 …]
|
D | DayView.java | 1468 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 1470 long duration = event.getEventTime() - event.getDownTime(); in onKeyUp() 1506 return super.onKeyUp(keyCode, event); in onKeyUp() 1510 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 1553 if (event.getRepeatCount() == 0) { in onKeyDown() 1554 event.startTracking(); in onKeyDown() 1557 return super.onKeyDown(keyCode, event); in onKeyDown() 1615 return super.onKeyDown(keyCode, event); in onKeyDown() 1653 return super.onKeyDown(keyCode, event); in onKeyDown() 1658 public boolean onHoverEvent(MotionEvent event) { in onHoverEvent() argument [all …]
|
D | Utils.java | 968 Event event = new Event(); in createDNAStrands() local 980 currEvent.copyTo(event); in createDNAStrands() 981 if (event.startDay < firstJulianDay) { in createDNAStrands() 982 event.startDay = firstJulianDay; in createDNAStrands() 983 event.startTime = 0; in createDNAStrands() 987 if (event.startTime > DAY_IN_MINUTES - minOtherMinutes) { in createDNAStrands() 988 event.startTime = DAY_IN_MINUTES - minOtherMinutes; in createDNAStrands() 990 if (event.endDay > lastJulianDay) { in createDNAStrands() 991 event.endDay = lastJulianDay; in createDNAStrands() 992 event.endTime = DAY_IN_MINUTES - 1; in createDNAStrands() [all …]
|
D | SearchActivity.java | 187 private void showEventInfo(EventInfo event) { in showEventInfo() argument 192 mEventInfoFragment = new EventInfoFragment(this, event.id, in showEventInfo() 193 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo() 194 event.getResponse(), false, EventInfoFragment.DIALOG_WINDOW_STYLE, in showEventInfo() 200 Uri eventUri = ContentUris.withAppendedId(Events.CONTENT_URI, event.id); in showEventInfo() 204 event.startTime != null ? event.startTime.toMillis(true) : -1); in showEventInfo() 206 … EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); in showEventInfo() 209 mCurrentEventId = event.id; in showEventInfo() 356 public void handleEvent(EventInfo event) { in handleEvent() argument 357 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); 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 …]
|
D | CalendarSyncTestingBase.java | 95 protected Uri insertEvent(EventInfo event) throws Exception { in insertEvent() argument 96 return insertEvent(getDefaultCalendarId(), event); in insertEvent() 106 protected Uri insertEvent(int calendarId, EventInfo event) throws Exception{ in insertEvent() argument 109 m.put(CalendarContract.Events.TITLE, event.mTitle); in insertEvent() 110 m.put(CalendarContract.Events.DTSTART, event.mDtstart); in insertEvent() 111 m.put(CalendarContract.Events.ALL_DAY, event.mAllDay ? 1 : 0); in insertEvent() 113 if (event.mRrule == null) { in insertEvent() 115 m.put(CalendarContract.Events.DTEND, event.mDtend); in insertEvent() 118 m.put(CalendarContract.Events.RRULE, event.mRrule); in insertEvent() 119 m.put(CalendarContract.Events.DURATION, event.mDuration); in insertEvent() [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/apps/InCallUI/src/com/android/incallui/ |
D | DialpadFragment.java | 144 KeyEvent event) { in backspace() argument 170 int keyCode, KeyEvent event) { in onKeyDown() argument 174 char c = (char) lookup(event, content); in onKeyDown() 177 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 200 int keyCode, KeyEvent event) { in onKeyUp() argument 203 super.onKeyUp(view, content, keyCode, event); in onKeyUp() 206 char c = (char) lookup(event, content); in onKeyUp() 222 public boolean onKeyDown(KeyEvent event) { in onKeyDown() argument 223 char c = lookup(event); in onKeyDown() 227 if (event.getRepeatCount() == 0 && c != 0) { in onKeyDown() [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/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/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 …]
|
D | KeyboardAccessibilityDelegate.java | 160 protected final Key getHoverKeyOf(final MotionEvent event) { in getHoverKeyOf() argument 161 final int actionIndex = event.getActionIndex(); in getHoverKeyOf() 162 final int x = (int)event.getX(actionIndex); in getHoverKeyOf() 163 final int y = (int)event.getY(actionIndex); in getHoverKeyOf() 173 public boolean onHoverEvent(final MotionEvent event) { in onHoverEvent() argument 174 switch (event.getActionMasked()) { in onHoverEvent() 176 onHoverEnter(event); in onHoverEvent() 179 onHoverMove(event); in onHoverEvent() 182 onHoverExit(event); in onHoverEvent() 185 Log.w(getClass().getSimpleName(), "Unknown hover event: " + event); in onHoverEvent() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpSinkStateMachine.java | 205 StackEvent event = (StackEvent) message.obj; in processMessage() local 206 switch (event.type) { in processMessage() 208 processConnectionEvent(event.valueInt, event.device); in processMessage() 211 processAudioConfigEvent(event.audioConfig, event.device); in processMessage() 214 loge("Unexpected stack event: " + event.type); in processMessage() 322 StackEvent event = (StackEvent) message.obj; in processMessage() local 323 switch (event.type) { in processMessage() 326 processConnectionEvent(event.valueInt, event.device); in processMessage() 329 processAudioConfigEvent(event.audioConfig, event.device); in processMessage() 332 loge("Unexpected stack event: " + event.type); in processMessage() [all …]
|
D | A2dpStateMachine.java | 199 StackEvent event = (StackEvent) message.obj; in processMessage() local 200 switch (event.type) { in processMessage() 202 processConnectionEvent(event.valueInt, event.device); in processMessage() 205 loge("Unexpected stack event: " + event.type); in processMessage() 313 StackEvent event = (StackEvent) message.obj; in processMessage() local 314 switch (event.type) { in processMessage() 317 processConnectionEvent(event.valueInt, event.device); in processMessage() 320 loge("Unexpected stack event: " + event.type); in processMessage() 542 StackEvent event = (StackEvent) message.obj; in processMessage() local 543 switch (event.type) { in processMessage() [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | GlowPadView.java | 801 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 802 final int action = event.getActionMasked(); in onTouchEvent() 808 handleDown(event); in onTouchEvent() 809 handleMove(event); in onTouchEvent() 815 handleMove(event); in onTouchEvent() 822 handleMove(event); in onTouchEvent() 823 handleUp(event); in onTouchEvent() 829 handleMove(event); in onTouchEvent() 830 handleCancel(event); in onTouchEvent() 835 return handled ? true : super.onTouchEvent(event); in onTouchEvent() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SearchActivityView.java | 313 public boolean dispatchKeyEventPreIme(KeyEvent event) { in dispatchKeyEventPreIme() argument 315 if (activity != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK in dispatchKeyEventPreIme() 319 if (event.getAction() == KeyEvent.ACTION_DOWN in dispatchKeyEventPreIme() 320 && event.getRepeatCount() == 0) { in dispatchKeyEventPreIme() 321 state.startTracking(event, this); in dispatchKeyEventPreIme() 323 } else if (event.getAction() == KeyEvent.ACTION_UP in dispatchKeyEventPreIme() 324 && !event.isCanceled() && state.isTracking(event)) { in dispatchKeyEventPreIme() 331 return super.dispatchKeyEventPreIme(event); in dispatchKeyEventPreIme() 367 long suggestionId, int keyCode, KeyEvent event) { in onSuggestionKeyDown() argument 422 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 33 import com.android.inputmethod.event.Event; 34 import com.android.inputmethod.event.InputTransaction; 234 public InputTransaction onTextInput(final SettingsValues settingsValues, final Event event, in onTextInput() argument 236 final String rawText = event.getTextToCommit().toString(); in onTextInput() 237 final InputTransaction inputTransaction = new InputTransaction(settingsValues, event, in onTextInput() 285 final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually() local 286 return onCodeInput(settingsValues, event, keyboardShiftState, in onPickSuggestionManually() 290 final Event event = Event.createSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually() local 292 event, SystemClock.uptimeMillis(), mSpaceState, keyboardShiftState); in onPickSuggestionManually() 438 @Nonnull final Event event, final int keyboardShiftMode, in onCodeInput() argument [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 …]
|
/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/apps/Settings/src/com/android/settings/widget/ |
D | ExploreByTouchHelper.java | 134 public boolean dispatchHoverEvent(MotionEvent event) { in dispatchHoverEvent() argument 139 switch (event.getAction()) { in dispatchHoverEvent() 142 final int virtualViewId = getVirtualViewAt(event.getX(), event.getY()); in dispatchHoverEvent() 183 final AccessibilityEvent event = createEvent(virtualViewId, eventType); in sendEventForVirtualView() local 184 return parent.requestSendAccessibilityEvent(mView, event); in sendEventForVirtualView() 270 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); in createEventForHost() local 271 mView.onInitializeAccessibilityEvent(event); in createEventForHost() 272 return event; in createEventForHost() 286 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); in createEventForChild() local 287 event.setEnabled(true); in createEventForChild() [all …]
|