Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 95) sorted by relevance

1234

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
DEvent.java38 public class Event { class
111 final public Event mNextEvent;
114 private Event(final int type, final CharSequence text, final int codePoint, final int keyCode, in Event() method in Event
116 final Event next) { in Event()
142 public static Event createSoftwareKeypressEvent(final int codePoint, final int keyCode, in createSoftwareKeypressEvent()
144 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, x, y, in createSoftwareKeypressEvent()
149 public static Event createHardwareKeypressEvent(final int codePoint, final int keyCode, in createHardwareKeypressEvent()
150 final Event next, final boolean isKeyRepeat) { in createHardwareKeypressEvent()
151 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, in createHardwareKeypressEvent()
159 public static Event createDeadEvent(final int codePoint, final int keyCode, final Event next) { in createDeadEvent()
[all …]
DDeadKeyCombiner.java219 private static Event createEventChainFromSequence(final @Nonnull CharSequence text, in createEventChainFromSequence()
220 @Nonnull final Event originalEvent) { in createEventChainFromSequence()
225 Event lastEvent = null; in createEventChainFromSequence()
228 lastEvent = Event.createHardwareKeypressEvent(codePoint, in createEventChainFromSequence()
237 public Event processEvent(final ArrayList<Event> previousEvents, final Event event) { in processEvent()
243 return Event.createConsumedEvent(event); in processEvent()
253 final Event resultEvent = createEventChainFromSequence(mDeadSequence.toString(), in processEvent()
264 return Event.createConsumedEvent(event); in processEvent()
270 return Event.createConsumedEvent(event); in processEvent()
289 final Event resultEvent = createEventChainFromSequence(normalizedString, event); in processEvent()
DHardwareKeyboardEventDecoder.java40 public Event decodeHardwareKey(final KeyEvent keyEvent) { in decodeHardwareKey()
51 return Event.createHardwareKeypressEvent(Event.NOT_A_CODE_POINT, Constants.CODE_DELETE, in decodeHardwareKey()
58 return Event.createDeadEvent( in decodeHardwareKey()
68 return Event.createHardwareKeypressEvent(Event.NOT_A_CODE_POINT, in decodeHardwareKey()
71 return Event.createHardwareKeypressEvent(Constants.CODE_ENTER, keyCode, in decodeHardwareKey()
76 return Event.createHardwareKeypressEvent(codePointAndFlags, keyCode, null /* next */, in decodeHardwareKey()
79 return Event.createNotHandledEvent(); in decodeHardwareKey()
DCombinerChain.java88 public Event processEvent(final ArrayList<Event> previousEvents, in processEvent()
89 @Nonnull final Event newEvent) { in processEvent()
90 final ArrayList<Event> modifiablePreviousEvents = new ArrayList<>(previousEvents); in processEvent()
91 Event event = newEvent; in processEvent()
110 public void applyProcessedEvent(final Event event) { in applyProcessedEvent()
DCombiner.java39 Event processEvent(ArrayList<Event> previousEvents, Event event); in processEvent()
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java41 public class Event implements Cloneable { class
151 public Event nextRight;
152 public Event nextLeft;
153 public Event nextUp;
154 public Event nextDown;
159 Event e = new Event(); in clone()
180 public final void copyTo(Event dest) { in copyTo()
199 public static final Event newInstance() { in newInstance()
200 Event e = new Event(); in newInstance()
223 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days, in loadEvents()
[all …]
DDayView.java186 private Event mClickedEvent; // The event the user clicked on
187 private Event mSavedClickedEvent;
310 private ArrayList<Event> mEvents = new ArrayList<Event>();
311 private ArrayList<Event> mAllDayEvents = new ArrayList<Event>();
322 private Event mSelectedEventForAccessibility;
326 private Event mLastSelectedEventForAccessibility;
558 private final ArrayList<Event> mSelectedEvents = new ArrayList<Event>();
561 private Event mSelectedEvent;
562 private Event mPrevSelectedEvent;
1324 Event.computePositions(mEvents, minimumDurationMillis); in remeasure()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsDeadKeys.java21 import com.android.inputmethod.event.Event;
29 static class EventList extends ArrayList<Event> {
31 final Event event; in addCodePoint()
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()
44 add(Event.createSoftwareKeypressEvent(Event.NOT_A_CODE_POINT, keyCode, in addKey()
58 for (final Event event : events) { in testDeadCircumflexSimple()
72 for (final Event event : events) { in testDeadCircumflexBackspace()
84 for (final Event event : events) { in testDeadCircumflexFeedback()
102 for (final Event event : events) { in testDeadDiaeresisSpace()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java605 private class Event { class in BluetoothMapContentObserver
638 public Event(String eventType, long handle, String folder, in Event() method in BluetoothMapContentObserver.Event
655 public Event(String eventType, long handle, String folder, TYPE msgType) { in Event() method in BluetoothMapContentObserver.Event
663 public Event(String eventType, long handle, String folder, TYPE msgType, in Event() method in BluetoothMapContentObserver.Event
680 public Event(String eventType, long handle, String folder, TYPE msgType, in Event() method in BluetoothMapContentObserver.Event
704 public Event(String eventType, String uci, TYPE msgType, String name, String priority, in Event() method in BluetoothMapContentObserver.Event
1099 private void sendEvent(Event evt) { in sendEvent()
1361 Event evt; in handleMsgListChangesSms()
1397 evt = new Event(EVENT_TYPE_NEW, id, getSmsFolderName(type), in handleMsgListChangesSms()
1400 evt = new Event(EVENT_TYPE_NEW, id, getSmsFolderName(type), in handleMsgListChangesSms()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java20 import android.provider.ContactsContract.CommonDataKinds.Event;
146 mValues1.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
147 mValues2.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
148 mValues3.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
149 mValues4.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
151 mValues1.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
152 mValues2.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
153 mValues3.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
154 mValues4.put(Event.START_DATE, date2); in testDataItemCollapsing_event()
156 mValues1.put(Event.TYPE, Event.TYPE_CUSTOM); in testDataItemCollapsing_event()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DGoogleAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
164 new DataKind(Event.CONTENT_ITEM_TYPE, R.string.eventLabelsGroup, Weight.EVENT, true)); in addDataKindEvent()
166 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
168 kind.typeColumn = Event.TYPE; in addDataKindEvent()
172 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, true).setSpecificMax(1)); in addDataKindEvent()
173 kind.typeList.add(buildEventType(Event.TYPE_ANNIVERSARY, false)); in addDataKindEvent()
174 kind.typeList.add(buildEventType(Event.TYPE_OTHER, false)); in addDataKindEvent()
176 buildEventType(Event.TYPE_CUSTOM, false).setSecondary(true).setCustomColumn(Event.LABEL)); in addDataKindEvent()
179 kind.defaultValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in addDataKindEvent()
182 kind.fieldList.add(new EditField(Event.DATA, R.string.eventLabelsGroup, FLAGS_EVENT)); in addDataKindEvent()
DSamsungAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
203 addKind(new DataKind(Event.CONTENT_ITEM_TYPE, R.string.eventLabelsGroup, 150, true)); in addDataKindEvent()
205 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
207 kind.typeColumn = Event.TYPE; in addDataKindEvent()
211 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, true).setSpecificMax(1)); in addDataKindEvent()
212 kind.typeList.add(buildEventType(Event.TYPE_ANNIVERSARY, false)); in addDataKindEvent()
213 kind.typeList.add(buildEventType(Event.TYPE_OTHER, false)); in addDataKindEvent()
215 buildEventType(Event.TYPE_CUSTOM, false).setSecondary(true).setCustomColumn(Event.LABEL)); in addDataKindEvent()
218 kind.defaultValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in addDataKindEvent()
221 kind.fieldList.add(new EditField(Event.DATA, R.string.eventLabelsGroup, FLAGS_EVENT)); in addDataKindEvent()
DExchangeAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
326 new DataKind(Event.CONTENT_ITEM_TYPE, R.string.eventLabelsGroup, Weight.EVENT, true)); in addDataKindEvent()
328 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
332 kind.typeColumn = Event.TYPE; in addDataKindEvent()
334 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, false).setSpecificMax(1)); in addDataKindEvent()
339 kind.fieldList.add(new EditField(Event.DATA, R.string.eventLabelsGroup, FLAGS_EVENT)); in addDataKindEvent()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DGoogleAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
162 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, in addDataKindEvent()
165 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
167 kind.typeColumn = Event.TYPE; in addDataKindEvent()
171 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, true).setSpecificMax(1)); in addDataKindEvent()
172 kind.typeList.add(buildEventType(Event.TYPE_ANNIVERSARY, false)); in addDataKindEvent()
173 kind.typeList.add(buildEventType(Event.TYPE_OTHER, false)); in addDataKindEvent()
174 kind.typeList.add(buildEventType(Event.TYPE_CUSTOM, false).setSecondary(true) in addDataKindEvent()
175 .setCustomColumn(Event.LABEL)); in addDataKindEvent()
178 kind.defaultValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in addDataKindEvent()
[all …]
DSamsungAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
206 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, in addDataKindEvent()
209 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
211 kind.typeColumn = Event.TYPE; in addDataKindEvent()
215 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, true).setSpecificMax(1)); in addDataKindEvent()
216 kind.typeList.add(buildEventType(Event.TYPE_ANNIVERSARY, false)); in addDataKindEvent()
217 kind.typeList.add(buildEventType(Event.TYPE_OTHER, false)); in addDataKindEvent()
218 kind.typeList.add(buildEventType(Event.TYPE_CUSTOM, false).setSecondary(true) in addDataKindEvent()
219 .setCustomColumn(Event.LABEL)); in addDataKindEvent()
222 kind.defaultValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in addDataKindEvent()
[all …]
DExchangeAccountType.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
278 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, R.string.eventLabelsGroup, in addDataKindEvent()
281 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
285 kind.typeColumn = Event.TYPE; in addDataKindEvent()
287 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, false).setSpecificMax(1)); in addDataKindEvent()
292 kind.fieldList.add(new EditField(Event.DATA, R.string.eventLabelsGroup, FLAGS_EVENT)); in addDataKindEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DWordComposer.java21 import com.android.inputmethod.event.Event;
55 private final ArrayList<Event> mEvents;
161 public Event processEvent(@Nonnull final Event event) { in processEvent()
162 final Event processedEvent = mCombinerChain.processEvent(mEvents, event); in processEvent()
178 public void applyProcessedEvent(final Event event) { in applyProcessedEvent()
261 mEvents, Event.createCursorMovedEvent(cursorPos))); in moveCursorByAndReturnIfInsideComposingWord()
278 final Event processedEvent = in setBatchInputWord()
279 processEvent(Event.createEventForCodePointFromUnknownSource(codePoint)); in setBatchInputWord()
294 final Event processedEvent = in setComposingWord()
295 processEvent(Event.createEventForCodePointFromAlreadyTypedText(codePoints[i], in setComposingWord()
DLastComposedWord.java21 import com.android.inputmethod.event.Event;
49 public final ArrayList<Event> mEvents;
61 new LastComposedWord(new ArrayList<Event>(), null, "", "",
66 public LastComposedWord(final ArrayList<Event> events, in LastComposedWord()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java23 import android.provider.ContactsContract.CommonDataKinds.Event;
929 DataKind kind = newAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testMigrateEventCommon()
933 mockNameValues.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testMigrateEventCommon()
934 mockNameValues.put(Event.START_DATE, "1972-02-08"); in testMigrateEventCommon()
935 mockNameValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in testMigrateEventCommon()
941 List<ValuesDelta> list = newState.getMimeEntries(Event.CONTENT_ITEM_TYPE); in testMigrateEventCommon()
946 assertEquals("1972-02-08", outputValues.getAsString(Event.START_DATE)); in testMigrateEventCommon()
947 assertEquals(Event.TYPE_BIRTHDAY, outputValues.getAsInteger(Event.TYPE).intValue()); in testMigrateEventCommon()
953 DataKind kind = newAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testMigrateEventFromGoogleToExchange2()
957 mockNameValues.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testMigrateEventFromGoogleToExchange2()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java36 import com.android.calendar.Event;
60 protected ArrayList<ArrayList<Event>> mEventDayList = new ArrayList<ArrayList<Event>>();
61 protected ArrayList<Event> mEvents = null;
130 public void setEvents(int firstJulianDay, int numDays, ArrayList<Event> events) { in setEvents()
143 ArrayList<ArrayList<Event>> eventDayList = new ArrayList<ArrayList<Event>>(); in setEvents()
145 eventDayList.add(new ArrayList<Event>()); in setEvents()
158 for (Event event : events) { in setEvents()
DMonthWeekEventsView.java19 import com.android.calendar.Event;
112 protected List<ArrayList<Event>> mEvents = null;
113 protected ArrayList<Event> mUnsortedEvents = null;
257 public void setEvents(List<ArrayList<Event>> sortedEvents, ArrayList<Event> unsortedEvents) { in setEvents()
269 public void createDna(ArrayList<Event> unsortedEvents) { in createDna()
302 public void setEvents(List<ArrayList<Event>> sortedEvents) { in setEvents()
726 for (ArrayList<Event> eventDay : mEvents) { in drawEvents()
745 Iterator<Event> iter = eventDay.iterator(); in drawEvents()
748 Event event = iter.next(); in drawEvents()
761 Event event = iter.next(); in drawEvents()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java33 import com.android.inputmethod.event.Event;
234 public InputTransaction onTextInput(final SettingsValues settingsValues, final Event event, in onTextInput()
285 final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually()
290 final Event event = Event.createSuggestionPickedEvent(suggestionInfo); in onPickSuggestionManually()
438 @Nonnull final Event event, final int keyboardShiftMode, in onCodeInput()
441 final Event processedEvent = mWordComposer.processEvent(event); in onCodeInput()
462 Event currentEvent = processedEvent; in onCodeInput()
616 private void handleConsumedEvent(final Event event, final InputTransaction inputTransaction) { in handleConsumedEvent()
644 private void handleFunctionalEvent(final Event event, final InputTransaction inputTransaction, in handleFunctionalEvent()
696 final Event tmpEvent = Event.createSoftwareKeypressEvent(Constants.CODE_ENTER, in handleFunctionalEvent()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DEventDataItem.java21 import android.provider.ContactsContract.CommonDataKinds.Event;
35 return getContentValues().getAsString(Event.START_DATE); in getStartDate()
39 return getContentValues().getAsString(Event.LABEL); in getLabel()
55 } else if (getKindTypeColumn(mKind) == Event.TYPE_CUSTOM in shouldCollapseWith()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DEventDataItem.java22 import android.provider.ContactsContract.CommonDataKinds.Event;
36 return getContentValues().getAsString(Event.START_DATE); in getStartDate()
40 return getContentValues().getAsString(Event.LABEL); in getLabel()
56 } else if (getKindTypeColumn(mKind) == Event.TYPE_CUSTOM && in shouldCollapseWith()
/packages/services/Car/tools/emulator/
Dobd2_to_diagjson.py90 class Event(object): class
148 event = Event()
159 event = Event()
180 if isinstance(o, Event):
224 source_event = Event.fromJson(source_json_event)

1234