/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 1358 StackEvent event = (StackEvent) message.obj; in processMessage() local 1360 Log.d(TAG, "Stack event type: " + event.type); in processMessage() 1362 switch (event.type) { in processMessage() 1364 Log.d(TAG, "Disconnected: Connection " + event.device in processMessage() 1365 + " state changed:" + event.valueInt); in processMessage() 1366 processConnectionEvent(event.valueInt, event.device); in processMessage() 1369 Log.e(TAG, "Disconnected: Unexpected stack event: " + event.type); in processMessage() 1439 StackEvent event = (StackEvent) message.obj; in processMessage() local 1441 Log.d(TAG, "Connecting: event type: " + event.type); in processMessage() 1443 switch (event.type) { in processMessage() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 372 StackEvent event = (StackEvent) message.obj; in processMessage() local 374 log("event type: " + event.type); in processMessage() 376 switch (event.type) { in processMessage() 378 processConnectionEvent(event.valueInt, event.device); in processMessage() 381 Log.e(TAG, "Unexpected stack event: " + event.type); in processMessage() 508 StackEvent event = (StackEvent) message.obj; in processMessage() local 510 log("event type: " + event.type); in processMessage() 512 switch (event.type) { in processMessage() 515 if (device1 != null && device1.equals(event.device)) { in processMessage() 519 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/InCallUI/src/com/android/incallui/ |
D | DialpadFragment.java | 105 public boolean onHoverEvent(MotionEvent event) { in onHoverEvent() argument 170 KeyEvent event) { in backspace() argument 196 int keyCode, KeyEvent event) { in onKeyDown() argument 200 char c = (char) lookup(event, content); in onKeyDown() 203 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 226 int keyCode, KeyEvent event) { in onKeyUp() argument 229 super.onKeyUp(view, content, keyCode, event); in onKeyUp() 232 char c = (char) lookup(event, content); in onKeyUp() 248 public boolean onKeyDown(KeyEvent event) { in onKeyDown() argument 249 char c = lookup(event); 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/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 | 193 StackEvent event = (StackEvent) message.obj; in processMessage() local 194 switch (event.type) { in processMessage() 196 processConnectionEvent(event.valueInt, event.device); in processMessage() 199 loge("Unexpected stack event: " + event.type); in processMessage() 307 StackEvent event = (StackEvent) message.obj; in processMessage() local 308 switch (event.type) { in processMessage() 311 processConnectionEvent(event.valueInt, event.device); in processMessage() 314 loge("Unexpected stack event: " + event.type); in processMessage() 511 StackEvent event = (StackEvent) message.obj; in processMessage() local 512 switch (event.type) { in processMessage() [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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 36 import com.android.inputmethod.event.Event; 37 import com.android.inputmethod.event.InputTransaction; 233 public InputTransaction onTextInput(final SettingsValues settingsValues, final Event event, in onTextInput() argument 237 final String rawText = event.getTextToCommit().toString(); in onTextInput() 238 final InputTransaction inputTransaction = new InputTransaction(settingsValues, event, in onTextInput() 296 final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually() local 297 return onCodeInput(settingsValues, event, keyboardShiftState, in onPickSuggestionManually() 301 final Event event = Event.createSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually() local 303 event, SystemClock.uptimeMillis(), mSpaceState, keyboardShiftState); in onPickSuggestionManually() 445 public InputTransaction onCodeInput(final SettingsValues settingsValues, final Event event, in onCodeInput() argument [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | GlowPadView.java | 781 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 782 final int action = event.getActionMasked(); in onTouchEvent() 788 handleDown(event); in onTouchEvent() 789 handleMove(event); in onTouchEvent() 795 handleMove(event); in onTouchEvent() 802 handleMove(event); in onTouchEvent() 803 handleUp(event); in onTouchEvent() 809 handleMove(event); in onTouchEvent() 810 handleCancel(event); in onTouchEvent() 815 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/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/Browser/src/com/android/browser/ |
D | BrowserActivity.java | 237 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 238 return mController.onKeyDown(keyCode, event) || in onKeyDown() 239 super.onKeyDown(keyCode, event); in onKeyDown() 243 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument 244 return mController.onKeyLongPress(keyCode, event) || in onKeyLongPress() 245 super.onKeyLongPress(keyCode, event); in onKeyLongPress() 249 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 250 return mController.onKeyUp(keyCode, event) || in onKeyUp() 251 super.onKeyUp(keyCode, event); in onKeyUp() 278 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() argument [all …]
|
/packages/apps/Terminal/src/com/android/terminal/ |
D | TerminalKeys.java | 74 public static int getModifiers(KeyEvent event) { in getModifiers() argument 76 if (event.isCtrlPressed()) { in getModifiers() 79 if (event.isAltPressed()) { in getModifiers() 82 if (event.isShiftPressed()) { in getModifiers() 88 public static int getKey(KeyEvent event) { in getKey() argument 89 switch(event.getKeyCode()) { in getKey() 160 public int getCharacter(KeyEvent event) { in getCharacter() argument 161 int c = event.getUnicodeChar(); in getCharacter() 170 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 171 if (mTerm == null || event.getAction() == KeyEvent.ACTION_UP) return false; in onKey() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | SecondLevelIndicatorControlBar.java | 90 private void dispatchRelativeTouchEvent(View view, MotionEvent event) { in dispatchRelativeTouchEvent() argument 91 event.offsetLocation(-view.getLeft(), -view.getTop()); in dispatchRelativeTouchEvent() 92 view.dispatchTouchEvent(event); in dispatchRelativeTouchEvent() 93 event.offsetLocation(view.getLeft(), view.getTop()); in dispatchRelativeTouchEvent() 97 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument 98 if (!onFilterTouchEventForSecurity(event)) return false; in dispatchTouchEvent() 100 int action = event.getAction(); in dispatchTouchEvent() 103 double x = (double) event.getX(); in dispatchTouchEvent() 114 int oldAction = event.getAction(); in dispatchTouchEvent() 115 event.setAction(MotionEvent.ACTION_CANCEL); in dispatchTouchEvent() [all …]
|
D | InLineSettingKnob.java | 62 public boolean onTouch(View v, MotionEvent event) { 64 if (event.getAction() == MotionEvent.ACTION_DOWN) { 70 } else if (event.getAction() == MotionEvent.ACTION_UP 71 || event.getAction() == MotionEvent.ACTION_CANCEL) { 79 public boolean onTouch(View v, MotionEvent event) { 81 if (event.getAction() == MotionEvent.ACTION_DOWN) { 87 } else if (event.getAction() == MotionEvent.ACTION_UP 88 || event.getAction() == MotionEvent.ACTION_CANCEL) { 136 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent() argument 137 onPopulateAccessibilityEvent(event); in dispatchPopulateAccessibilityEvent() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageDraw.java | 139 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 140 if (event.getPointerCount() > 1) { in onTouchEvent() 141 boolean ret = super.onTouchEvent(event); in onTouchEvent() 148 if (event.getAction() != MotionEvent.ACTION_DOWN) { in onTouchEvent() 150 return super.onTouchEvent(event); in onTouchEvent() 154 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 156 mTmpPoint[0] = event.getX(); in onTouchEvent() 157 mTmpPoint[1] = event.getY(); in onTouchEvent() 162 if (event.getAction() == MotionEvent.ACTION_MOVE) { in onTouchEvent() 164 int historySize = event.getHistorySize(); in onTouchEvent() [all …]
|