/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | Event.java | 38 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 …]
|
D | HardwareKeyboardEventDecoder.java | 40 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()
|
D | DeadKeyCombiner.java | 219 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/ |
D | SimulatorConference.java | 27 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 …]
|
D | SimulatorConnection.java | 30 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 …]
|
D | NonSimulatorConnectionListener.java | 25 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 …]
|
D | SimulatorRttCall.java | 28 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()
|
D | SimulatorVideoCall.java | 30 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()
|
/packages/modules/Bluetooth/system/packet/avrcp/ |
D | register_notification_packet.cc | 29 Event RegisterNotificationResponse::GetEvent() const { in GetEvent() 31 return static_cast<Event>(value); in GetEvent() 35 log::assert_that(GetEvent() == Event::VOLUME_CHANGED, in GetVolume() 57 case Event::VOLUME_CHANGED: in IsValid() 86 new RegisterNotificationResponseBuilder(interim, Event::PLAYBACK_STATUS_CHANGED)); in MakePlaybackStatusBuilder() 94 new RegisterNotificationResponseBuilder(interim, Event::TRACK_CHANGED)); in MakeTrackChangedBuilder() 103 new RegisterNotificationResponseBuilder(interim, Event::PLAYBACK_POS_CHANGED)); in MakePlaybackPositionBuilder() 113 Event::PLAYER_APPLICATION_SETTING_CHANGED)); in MakePlayerSettingChangedBuilder() 126 new RegisterNotificationResponseBuilder(interim, Event::NOW_PLAYING_CONTENT_CHANGED)); in MakeNowPlayingBuilder() 133 new RegisterNotificationResponseBuilder(interim, Event::AVAILABLE_PLAYERS_CHANGED)); in MakeAvailablePlayersBuilder() [all …]
|
/packages/apps/Car/systemlibs/car-scalable-ui-lib/test/unit/src/com/android/car/scalableui/model/ |
D | EventTest.java | 31 Event event = new Event(TEST_EVENT_ID); in testEventCreation_withoutTokens() 38 Event event = new Event(TEST_EVENT_ID); in testEventCreation_withTokens() 47 Event event = new Event(TEST_EVENT_ID); in testMatching_noIdMatch_isNotMatch() 48 Event event2 = new Event("OTHER_EVENT_ID"); in testMatching_noIdMatch_isNotMatch() 54 Event event = new Event(TEST_EVENT_ID); in testMatching_noTokenMatch_isNotMatch() 55 Event event2 = new Event(TEST_EVENT_ID); in testMatching_noTokenMatch_isNotMatch() 62 Event event = new Event(TEST_EVENT_ID); in testMatching_isMatch() 64 Event event2 = new Event(TEST_EVENT_ID); in testMatching_isMatch()
|
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/ |
D | HistoryItemActionModulesBuilder.java | 89 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/ |
D | InputLogicTestsDeadKeys.java | 21 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/ |
D | AppStateNotificationBridgeTest.java | 42 import android.app.usage.UsageEvents.Event; 114 private UsageEvents getUsageEvents(List<Event> events) { in getUsageEvents() 133 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_onlyNotificationEvents() 134 Event good = new Event(); in testGetAggregatedUsageEvents_onlyNotificationEvents() 135 good.mEventType = Event.NOTIFICATION_INTERRUPTION; in testGetAggregatedUsageEvents_onlyNotificationEvents() 139 Event bad = new Event(); in testGetAggregatedUsageEvents_onlyNotificationEvents() 140 bad.mEventType = Event.CHOOSER_ACTION; in testGetAggregatedUsageEvents_onlyNotificationEvents() 155 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_multipleEventsAgg() 156 Event good = new Event(); in testGetAggregatedUsageEvents_multipleEventsAgg() 157 good.mEventType = Event.NOTIFICATION_INTERRUPTION; in testGetAggregatedUsageEvents_multipleEventsAgg() [all …]
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/features/ |
D | FeatureManager.kt | 23 import com.android.photopicker.core.events.Event 108 Event.ShowSnackbarMessage::class.java, 109 Event.ReportPhotopickerSessionInfo::class.java, 110 Event.ReportPhotopickerApiInfo::class.java, 111 Event.LogPhotopickerUIEvent::class.java, 112 Event.LogPhotopickerAlbumOpenedUIEvent::class.java, 113 Event.ReportPhotopickerMediaItemStatus::class.java, 114 Event.LogPhotopickerPreviewInfo::class.java, 115 Event.LogPhotopickerMenuInteraction::class.java, 116 Event.LogPhotopickerBannerInteraction::class.java, [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | ServiceLifecycleDispatcher.java | 44 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/providers/MediaProvider/photopicker/src/com/android/photopicker/core/events/ |
D | PhotopickerEventLogger.kt | 71 is Event.ReportPhotopickerSessionInfo -> { in <lambda>() 87 is Event.ReportPhotopickerApiInfo -> { in <lambda>() 106 is Event.LogPhotopickerUIEvent -> { in <lambda>() 114 is Event.LogPhotopickerAlbumOpenedUIEvent -> { in <lambda>() 132 is Event.ReportPhotopickerMediaItemStatus -> { in <lambda>() 163 is Event.LogPhotopickerPreviewInfo -> { in <lambda>() 173 is Event.LogPhotopickerMenuInteraction -> { in <lambda>() 181 is Event.LogPhotopickerBannerInteraction -> { in <lambda>() 189 is Event.LogPhotopickerMediaLibraryInfo -> { in <lambda>() 198 is Event.LogPhotopickerPageInfo -> { in <lambda>() [all …]
|
D | Event.kt | 25 typealias RegisteredEventClass = Class<out Event> 38 interface Event { interface 52 data class BrowseToDocumentsUi(override val dispatcherToken: String) : Event 60 Event 79 ) : Event 100 ) : Event 111 ) : Event 118 ) : Event 131 ) : Event 141 ) : Event [all …]
|
/packages/modules/Bluetooth/system/packet/tests/avrcp/ |
D | get_capabilities_packet_test.cc | 65 Event::PLAYBACK_STATUS_CHANGED); in TEST() 67 builder->AddEvent(Event::TRACK_CHANGED); in TEST() 69 builder->AddEvent(Event::PLAYBACK_POS_CHANGED); in TEST() 81 Event::PLAYBACK_STATUS_CHANGED); in TEST() 83 builder->AddEvent(Event::PLAYBACK_STATUS_CHANGED); in TEST() 95 ASSERT_DEATH(builder->AddEvent(Event::PLAYBACK_STATUS_CHANGED), in TEST() 100 Event::PLAYBACK_STATUS_CHANGED); in TEST() 121 Event::PLAYBACK_STATUS_CHANGED); in TEST() 122 builder->AddEvent(Event::TRACK_CHANGED); in TEST() 123 builder->AddEvent(Event::PLAYBACK_POS_CHANGED); in TEST()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Event.kt | 40 class Event : Cloneable { class 110 @JvmStatic fun newInstance(): Event { in newInstance() 111 val e = Event() in newInstance() 134 events: ArrayList<Event?>, in loadEvents() 266 events: ArrayList<Event?>?, in buildEventsFromCursor() 299 @JvmStatic private fun generateEventFromCursor(cEvents: Cursor): Event { in generateEventFromCursor() 300 val e = Event() in generateEventFromCursor() 355 eventsList: ArrayList<Event>?, in computePositions() 368 eventsList: ArrayList<Event>, in doComputePositions() 373 val activeList: ArrayList<Event> = ArrayList<Event>() in doComputePositions() [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/ |
D | EventsDaoTest.java | 59 private static final Event TEST_EVENT = 60 new Event.Builder() 102 Event testEvent = in testInsertQueryAndEvent() 103 new Event.Builder() in testInsertQueryAndEvent() 117 Event testEvent = in testInsertEvents() 118 new Event.Builder() in testInsertEvents() 126 List<Event> events = new ArrayList<>(); in testInsertEvents() 134 List<Event> events = new ArrayList<>(); in testInsertEventsFalse() 195 Event testEvent = in testDeleteEventsAndQueries() 196 new Event.Builder() in testDeleteEventsAndQueries() [all …]
|
/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/wifi/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 92 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue() 104 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary() 116 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary() 129 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_securityTypeIsNone_visibilityIsSetToFalse() 144 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onChangePassword_updatesPassword() 161 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onChangePassword_savesNewPassword() 182 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onSecurityChangedToNone_visibilityIsFalse() 194 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onSecurityChangedToNone_visibilityIsFalse() 206 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onSecurityChangedToWPA2PSK_visibilityIsTrue() 218 mControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onSecurityChangedToWPA2PSK_visibilityIsTrue() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiWakeMetrics.java | 224 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/modules/Bluetooth/offload/hci/ |
D | event.rs | 20 pub enum Event { enum 39 impl Event { implementation 62 fn dispatch_read(code: Code, r: &mut Reader) -> Option<Event> { in dispatch_read() argument 140 let Ok(Event::DisconnectionComplete(e)) = Event::from_bytes(&dump) else { panic!() }; in test_disconnection_complete() 163 let Ok(Event::CommandComplete(e)) = Event::from_bytes(&dump) else { panic!() }; in test_command_complete() 185 let Ok(Event::CommandStatus(e)) = Event::from_bytes(&dump) else { panic!() }; in test_command_status() 213 let Ok(Event::NumberOfCompletedPackets(e)) = Event::from_bytes(&dump) else { panic!() }; in test_number_of_completed_packets() 254 let Ok(Event::LeCisEstablished(e)) = Event::from_bytes(&dump) else { panic!() }; in test_le_cis_established() 303 let Ok(Event::LeCreateBigComplete(e)) = Event::from_bytes(&dump) else { panic!() }; in test_le_create_big_complete() 337 let Ok(Event::LeTerminateBigComplete(e)) = Event::from_bytes(&dump) else { panic!() }; in test_le_terminate_big_complete()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | EventTest.java | 65 private BluetoothMapContentObserver.Event mEvent; 87 mEvent = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, TEST_FOLDER, TEST_TYPE); in setUp() 92 BluetoothMapContentObserver.Event event = in constructor() 93 mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, TEST_FOLDER, TEST_TYPE); in constructor() 102 BluetoothMapContentObserver.Event event = in constructor_withNullOldFolder() 103 mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, TEST_FOLDER, null, TEST_TYPE); in constructor_withNullOldFolder() 113 BluetoothMapContentObserver.Event event = in constructor_withNonNullOldFolder() 115 .new Event(TEST_EVENT_TYPE, TEST_HANDLE, TEST_FOLDER, TEST_OLD_FOLDER, TEST_TYPE); in constructor_withNonNullOldFolder() 125 BluetoothMapContentObserver.Event event = in constructor_forExtendedEventTypeOnePointOne() 127 .new Event( in constructor_forExtendedEventTypeOnePointOne() [all …]
|
/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/common/ |
D | PreferenceControllerTestHelper.java | 19 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; 173 public void sendLifecycleEvent(Lifecycle.Event event) { in sendLifecycleEvent() 211 private void dispatchEvent(Lifecycle.Event event) { in dispatchEvent() 240 private static Lifecycle.State getStateAfter(Lifecycle.Event event) { in getStateAfter() 258 private static Lifecycle.Event downEvent(Lifecycle.State state) { in downEvent() [all …]
|