Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
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()
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()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConference.java27 import com.android.dialer.simulator.Simulator.Event;
40 private final List<Event> events = new ArrayList<>();
81 public List<Event> getEvents() { in getEvents()
88 onEvent(new Event(Event.CALL_AUDIO_STATE_CHANGED)); in onCallAudioStateChanged()
95 new Event( in onConnectionAdded()
96 Event.CONNECTION_ADDED, SimulatorSimCallManager.getConnectionTag(connection), null)); in onConnectionAdded()
103 onEvent(new Event(Event.DISCONNECT)); in onDisconnect()
109 onEvent(new Event(Event.HOLD)); in onHold()
115 onEvent(new Event(Event.MERGE, SimulatorSimCallManager.getConnectionTag(connection), null)); in onMerge()
121 onEvent(new Event(Event.MERGE)); in onMerge()
[all …]
DSimulatorConnection.java30 import com.android.dialer.simulator.Simulator.Event;
40 private final List<Event> events = new ArrayList<>();
83 public List<Event> getEvents() { in getEvents()
90 onEvent(new Event(Event.ANSWER, Integer.toString(videoState), null)); in onAnswer()
97 onEvent(new Event(Event.REJECT)); in onReject()
103 onEvent(new Event(Event.HOLD)); in onHold()
109 onEvent(new Event(Event.UNHOLD)); in onUnhold()
116 onEvent(new Event(Event.DISCONNECT)); in onDisconnect()
133 onEvent(new Event(Event.STATE_CHANGE, stateToString(oldState), stateToString(newState))); in onStateChanged()
139 onEvent(new Event(Event.DTMF, Character.toString(c), null)); in onPlayDtmfTone()
[all …]
DNonSimulatorConnectionListener.java25 import com.android.dialer.simulator.Simulator.Event;
31 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent()
33 case Event.STATE_CHANGE: in onEvent()
38 case Event.REJECT: in onEvent()
41 case Event.HOLD: in onEvent()
44 case Event.ANSWER: in onEvent()
45 case Event.UNHOLD: in onEvent()
48 case Event.DISCONNECT: in onEvent()
51 case Event.SESSION_MODIFY_REQUEST: in onEvent()
54 case Event.START_RTT: in onEvent()
[all …]
DSimulatorRttCall.java28 import com.android.dialer.simulator.Simulator.Event;
104 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent()
106 case Event.NONE: in onEvent()
108 case Event.REJECT: in onEvent()
111 case Event.HOLD: in onEvent()
114 case Event.ANSWER: in onEvent()
115 case Event.UNHOLD: in onEvent()
118 case Event.DISCONNECT: in onEvent()
122 case Event.SESSION_MODIFY_REQUEST: in onEvent()
125 case Event.STATE_CHANGE: in onEvent()
DSimulatorVideoCall.java30 import com.android.dialer.simulator.Simulator.Event;
115 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent()
117 case Event.NONE: in onEvent()
119 case Event.ANSWER: in onEvent()
123 case Event.REJECT: in onEvent()
126 case Event.HOLD: in onEvent()
129 case Event.UNHOLD: in onEvent()
132 case Event.DISCONNECT: in onEvent()
135 case Event.SESSION_MODIFY_REQUEST: in onEvent()
DSimulatorConferenceCreator.java28 import com.android.dialer.simulator.Simulator.Event;
170 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent()
172 case Event.NONE: in onEvent()
174 case Event.HOLD: in onEvent()
177 case Event.UNHOLD: in onEvent()
180 case Event.DISCONNECT: in onEvent()
191 public void onEvent(@NonNull SimulatorConference conference, @NonNull Event event) { in onEvent()
193 case Event.MERGE: in onEvent()
198 case Event.SEPARATE: in onEvent()
203 case Event.DISCONNECT: in onEvent()
DSimulatorVoiceCall.java34 import com.android.dialer.simulator.Simulator.Event;
193 public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) { in onEvent()
195 case Event.NONE: in onEvent()
197 case Event.REJECT: in onEvent()
200 case Event.HOLD: in onEvent()
203 case Event.ANSWER: in onEvent()
204 case Event.UNHOLD: in onEvent()
207 case Event.DISCONNECT: in onEvent()
213 case Event.SESSION_MODIFY_REQUEST: in onEvent()
216 case Event.START_RTT: in onEvent()
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/
DHistoryItemActionModulesBuilder.java89 Event.ADD_TO_CONTACT,
90 Event.BLOCK_NUMBER,
91 Event.BLOCK_NUMBER_AND_REPORT_SPAM,
92 Event.REPORT_NOT_SPAM,
93 Event.REQUEST_CARRIER_VIDEO_CALL,
94 Event.REQUEST_DUO_VIDEO_CALL,
95 Event.REQUEST_DUO_VIDEO_CALL_FOR_NON_CONTACT,
96 Event.SEND_TEXT_MESSAGE,
97 Event.UNBLOCK_NUMBER
99 @interface Event { annotation in HistoryItemActionModulesBuilder
[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/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java47 import android.app.usage.UsageEvents.Event;
118 private UsageEvents getUsageEvents(List<Event> events) { in getUsageEvents()
137 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_onlyNotificationEvents()
138 Event good = new Event(); in testGetAggregatedUsageEvents_onlyNotificationEvents()
139 good.mEventType = Event.NOTIFICATION_INTERRUPTION; in testGetAggregatedUsageEvents_onlyNotificationEvents()
143 Event bad = new Event(); in testGetAggregatedUsageEvents_onlyNotificationEvents()
144 bad.mEventType = Event.CHOOSER_ACTION; in testGetAggregatedUsageEvents_onlyNotificationEvents()
159 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_multipleEventsAgg()
160 Event good = new Event(); in testGetAggregatedUsageEvents_multipleEventsAgg()
161 good.mEventType = Event.NOTIFICATION_INTERRUPTION; in testGetAggregatedUsageEvents_multipleEventsAgg()
[all …]
/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 …]
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/
DEventsLiveData.java62 public class EventsLiveData extends LiveData<ImmutableList<Event>> {
71 private static final Comparator<Event> EVENT_COMPARATOR =
72 Comparator.comparing(Event::getDayStartInstant).thenComparing(Event::getTitle);
105 ImmutableList<Event> latest = getEventsUntilTomorrow(); in updateIfChanged()
106 ImmutableList<Event> current = getValue(); in updateIfChanged()
117 private ImmutableList<Event> getEventsUntilTomorrow() { in getEventsUntilTomorrow()
139 List<Event> events = new ArrayList<>(); in getEventsUntilTomorrow()
141 List<Event> eventsForRow = createEventsForRow(mEventsCursor, mEventDescriptions); in getEventsUntilTomorrow()
142 for (Event event : eventsForRow) { in getEventsUntilTomorrow()
206 private List<Event> createEventsForRow( in createEventsForRow()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DServiceLifecycleDispatcher.java44 private void postDispatchRunnable(Lifecycle.Event event) { in postDispatchRunnable()
56 postDispatchRunnable(Lifecycle.Event.ON_CREATE); in onServicePreSuperOnCreate()
64 postDispatchRunnable(Lifecycle.Event.ON_START); in onServicePreSuperOnBind()
65 postDispatchRunnable(Lifecycle.Event.ON_RESUME); in onServicePreSuperOnBind()
74 postDispatchRunnable(Lifecycle.Event.ON_START); in onServicePreSuperOnStart()
82 postDispatchRunnable(Lifecycle.Event.ON_STOP); in onServicePreSuperOnUnbind()
90 postDispatchRunnable(Lifecycle.Event.ON_STOP); in onServicePreSuperOnDestroy()
91 postDispatchRunnable(Lifecycle.Event.ON_DESTROY); in onServicePreSuperOnDestroy()
104 final Lifecycle.Event mEvent;
107 DispatchRunnable(@NonNull LifecycleRegistry registry, Lifecycle.Event event) { in DispatchRunnable()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java86 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
97 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
108 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary()
120 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNone_visibilityIsSetToFalse()
134 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onChangePassword_updatesPassword()
150 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onChangePassword_savesNewPassword()
169 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onSecurityChangedToNone_visibilityIsFalse()
177 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onSecurityChangedToNone_visibilityIsFalse()
188 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onSecurityChangedToWPA2PSK_visibilityIsTrue()
196 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onSecurityChangedToWPA2PSK_visibilityIsTrue()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiWakeMetrics.java224 Event mUnlockEvent;
227 Event mInitEvent;
230 Event mWakeupEvent;
233 Event mResetEvent;
253 mInitEvent = new Event(numScans, timestamp - mStartTimestamp); in recordInitializeEvent()
267 mUnlockEvent = new Event(numScans, timestamp - mStartTimestamp); in recordUnlockEvent()
281 mWakeupEvent = new Event(numScans, timestamp - mStartTimestamp); in recordWakeupEvent()
302 mResetEvent = new Event(numScans, timestamp - mStartTimestamp); in recordResetEvent()
343 public static class Event { class in WifiWakeMetrics
350 public Event(int numScans, long elapsedTime) { in Event() method in WifiWakeMetrics.Event
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTestHelper.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
132 public void sendLifecycleEvent(Lifecycle.Event event) { in sendLifecycleEvent()
170 private void dispatchEvent(Lifecycle.Event event) { in dispatchEvent()
199 private static Lifecycle.State getStateAfter(Lifecycle.Event event) { in getStateAfter()
217 private static Lifecycle.Event downEvent(Lifecycle.State state) { in downEvent()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java123 List<UsageEvents.Event> events = new ArrayList<>(); in areEvents_showValidRecents()
124 UsageEvents.Event app1 = createUsageEvent("a", System.currentTimeMillis()); in areEvents_showValidRecents()
125 UsageEvents.Event app2 = createUsageEvent("com.android.settings", in areEvents_showValidRecents()
127 UsageEvents.Event app3 = createUsageEvent("pkg.class2", in areEvents_showValidRecents()
164 List<UsageEvents.Event> events = new ArrayList<>(); in areEvents_showMaximumRecents()
165 UsageEvents.Event app1 = createUsageEvent("a", System.currentTimeMillis()); in areEvents_showMaximumRecents()
166 UsageEvents.Event app2 = createUsageEvent("com.android.settings", in areEvents_showMaximumRecents()
168 UsageEvents.Event app3 = createUsageEvent("pkg.class2", in areEvents_showMaximumRecents()
170 UsageEvents.Event app4 = createUsageEvent("pkg.class3", in areEvents_showMaximumRecents()
211 private UsageEvents getUsageEvents(String[] pkgs, List<UsageEvents.Event> events) { in getUsageEvents()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java20 import android.provider.ContactsContract.CommonDataKinds.Event;
135 mValues1.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
136 mValues2.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
137 mValues3.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
138 mValues4.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
140 mValues1.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
141 mValues2.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
142 mValues3.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
143 mValues4.put(Event.START_DATE, date2); in testDataItemCollapsing_event()
145 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()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DGoogleAccountType.java25 import android.provider.ContactsContract.CommonDataKinds.Event;
166 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, in addDataKindEvent()
169 kind.actionBody = new SimpleInflater(Event.START_DATE); in addDataKindEvent()
171 kind.typeColumn = Event.TYPE; in addDataKindEvent()
175 kind.typeList.add(buildEventType(Event.TYPE_BIRTHDAY, true).setSpecificMax(1)); in addDataKindEvent()
176 kind.typeList.add(buildEventType(Event.TYPE_ANNIVERSARY, false)); in addDataKindEvent()
177 kind.typeList.add(buildEventType(Event.TYPE_OTHER, false)); in addDataKindEvent()
178 kind.typeList.add(buildEventType(Event.TYPE_CUSTOM, false).setSecondary(true) in addDataKindEvent()
179 .setCustomColumn(Event.LABEL)); in addDataKindEvent()
182 kind.defaultValues.put(Event.TYPE, Event.TYPE_BIRTHDAY); in addDataKindEvent()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java144 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onCreate_startsCheckVoiceData()
160 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in voiceDataCheck_processActivityResult_dataIsNull_defaultSynthRemainsUnchanged()
174 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in voiceDataCheck_processActivityResult_dataIsNotNull_updatesDefaultSynth()
189 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
249 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault()
272 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale()
295 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
318 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in speechRate_handlePreferenceChanged_updatesSecureSettings()
332 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in speechRate_handlePreferenceChanged_updatesTts()
345 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in speechRate_handlePreferenceChanged_speaksSampleText()
[all …]
/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()

12345678910>>...12