Lines Matching refs:event
17 package com.android.inputmethod.event;
34 * This class will orchestrate the composing chain that starts with an event as its input. Each
93 * Process an event through the combining chain, and return a processed event to apply.
95 * @param newEvent the new event to process
96 * @return the processed event. It may be the same event, or a consumed event, or a completely
97 * new event. However it may never be null.
102 Event event = newEvent;
104 // A combiner can never return more than one event; it can return several
105 // code points, but they should be encapsulated within one event.
106 event = combiner.processEvent(modifiablePreviousEvents, event);
107 if (event.isConsumed()) {
108 // If the event is consumed, then we don't pass it to subsequent combiners:
114 return event;
118 * Apply a processed event.
119 * @param event the event to be applied
121 public void applyProcessedEvent(final Event event) {
122 if (null != event) {
124 if (Constants.CODE_DELETE == event.mKeyCode) {
131 final CharSequence textToCommit = event.getTextToCommit();