Home
last modified time | relevance | path

Searched refs:EventType (Results 1 – 25 of 38) sorted by relevance

12

/packages/services/Car/cpp/watchdog/server/src/
DWatchdogPerfService.cpp101 constexpr const char* toString(std::variant<EventType, SwitchMessage> what) { in toString() argument
105 case EventType::INIT: in toString()
107 case EventType::TERMINATED: in toString()
109 case EventType::BOOT_TIME_COLLECTION: in toString()
111 case EventType::PERIODIC_COLLECTION: in toString()
113 case EventType::USER_SWITCH_COLLECTION: in toString()
115 case EventType::WAKE_UP_COLLECTION: in toString()
117 case EventType::CUSTOM_COLLECTION: in toString()
119 case EventType::PERIODIC_MONITOR: in toString()
121 case EventType::LAST_EVENT: in toString()
[all …]
DWatchdogPerfService.h156 enum EventType { enum
179 END_BOOTTIME_COLLECTION = EventType::LAST_EVENT + 1,
280 mCurrCollectionEvent(EventType::INIT),
320 EventType eventType = EventType::LAST_EVENT;
451 EventType mCurrCollectionEvent GUARDED_BY(mMutex);
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DAdminEventMessage.java44 public enum EventType { enum in AdminEventMessage
59 EventType(int value) { in EventType() method in AdminEventMessage.EventType
64 for (EventType type : EventType.values()) {
76 public static EventType valueOf(int value) { in valueOf()
77 return (EventType) sMap.get(value); in valueOf()
85 @NonNull public final EventType eventType;
116 public AdminEventMessage(@NonNull EventType eventType, @NonNull byte[] additionalData) { in AdminEventMessage()
139 @NonNull EventType eventType, @NonNull byte[] additionalData) { in generatePayload()
150 private static EventType extractEventType(@NonNull byte[] payload) { in extractEventType()
155 EventType eventType = in extractEventType()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogPerfServiceTest.cpp158 EventType getCurrCollectionEvent() { in getCurrCollectionEvent()
163 void setCurrCollectionEvent(EventType eventType) { in setCurrCollectionEvent()
216 event != EventType::INIT && event != EventType::TERMINATED) { in TearDown()
275 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in startPeriodicCollection()
288 mLooperStub->removeMessages(mService, EventType::PERIODIC_MONITOR); in removePeriodicMonitorEvents()
351 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::BOOT_TIME_COLLECTION) in TEST_F()
401 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::BOOT_TIME_COLLECTION) in TEST_F()
419 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::BOOT_TIME_COLLECTION) in TEST_F()
444 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::BOOT_TIME_COLLECTION) in TEST_F()
455 ASSERT_EQ(mServicePeer->getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in TEST_F()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/
DSingleMessageHandler.java33 public abstract class SingleMessageHandler<EventType> implements Callback {
46 protected abstract void handleEvent(EventType event); in handleEvent()
51 List<EventType> events = (List<EventType>) msg.obj; in handleMessage()
52 events.forEach(new Consumer<EventType>() { in handleMessage()
54 public void accept(EventType event) { in handleMessage()
64 public void sendEvents(List<EventType> events) { in sendEvents()
/packages/modules/Permission/tests/hostside/safetycenter/src/android/safetycenter/hostside/
DSafetyCenterSystemEventReportedLoggingHostTest.kt24 import com.android.os.AtomsProto.SafetyCenterSystemEventReported.EventType
75 EventType.COMPLETE_GET_NEW_DATA, in refreshAllSources_allSourcesSuccessful_successAtomsForEachSourceAndOverallCompletion()
77 EventType.SINGLE_SOURCE_GET_NEW_DATA, in refreshAllSources_allSourcesSuccessful_successAtomsForEachSourceAndOverallCompletion()
98 Pair(EventType.COMPLETE_GET_NEW_DATA, Result.ERROR), in refreshAllSources_oneSourceError_errorAtomForThatSourceAndOverall()
100 Pair(EventType.SINGLE_SOURCE_GET_NEW_DATA, Result.ERROR), in refreshAllSources_oneSourceError_errorAtomForThatSourceAndOverall()
102 Pair(EventType.SINGLE_SOURCE_GET_NEW_DATA, Result.SUCCESS), in refreshAllSources_oneSourceError_errorAtomForThatSourceAndOverall()
207 .single { it.eventType == EventType.INLINE_ACTION } in resolveAction_success_resolvingActionSuccessEvent()
223 .single { it.eventType == EventType.INLINE_ACTION } in resolveAction_error_resolvingActionErrorEvent()
/packages/modules/Bluetooth/system/blueberry/tests/topshim/lib/
Dadapter_client.py77 future = await self._listen_for_event(facade_pb2.EventType.ADAPTER_STATE)
89 return await self._listen_for_event(facade_pb2.EventType.ADAPTER_PROPERTY)
94 return await self._listen_for_event(facade_pb2.EventType.ADAPTER_PROPERTY)
99 return await self._listen_for_event(facade_pb2.EventType.ADAPTER_PROPERTY)
115 future = await self._listen_for_event(facade_pb2.EventType.LE_RAND)
137 return await self._listen_for_event(facade_pb2.EventType.ADAPTER_PROPERTY)
141 future = await self._listen_for_event(facade_pb2.EventType.DISCOVERY_STATE)
145 return await self._listen_for_event(facade_pb2.EventType.DEVICE_FOUND)
Dsecurity_client.py58 await self.__adapter._listen_for_event(facade_pb2.EventType.BOND_STATE)
60 return await self.__adapter._listen_for_event(facade_pb2.EventType.BOND_STATE)
70 … future = await self.__adapter._listen_for_event(facade_pb2.EventType.GENERATE_LOCAL_OOB_DATA)
Dhfp_client.py57 return await self._listen_for_event(facade_pb2.EventType.HFP_CONNECTION_STATE)
64 return await self._listen_for_event(facade_pb2.EventType.HFP_CONNECTION_STATE)
87 return await self._listen_for_event(facade_pb2.EventType.HFP_CONNECTION_STATE)
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcEventLogTest.java74 NfcEventProto.EventType eventType = in testLogEvent()
75 NfcEventProto.EventType.newBuilder() in testLogEvent()
96 NfcEventProto.EventType eventType = in testMultipleLogEvents()
97 NfcEventProto.EventType.newBuilder() in testMultipleLogEvents()
127 NfcEventProto.EventType eventType = in testReadEventsFromLogFile()
128 NfcEventProto.EventType.newBuilder() in testReadEventsFromLogFile()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarController.kt77 interface EventType { interface
152 if (eventType != EventType.VIEW_EVENT) {
160 if (eventType != EventType.VIEW_EVENT) {
302 if (eventType == EventType.VIEW_EVENT_DETAILS) { in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
459 if (event.eventType == EventType.UPDATE_TITLE) { in sendEvent()
485 if ((event.eventType and EventType.VIEW_EVENT_DETAILS) != 0L) { in sendEvent()
650 if (eventInfo.eventType and EventType.GO_TO != 0L) { in eventInfoToString()
652 } else if (eventInfo.eventType and EventType.VIEW_EVENT != 0L) { in eventInfoToString()
654 } else if (eventInfo.eventType and EventType.VIEW_EVENT_DETAILS != 0L) { in eventInfoToString()
656 } else if (eventInfo.eventType and EventType.EVENTS_CHANGED != 0L) { in eventInfoToString()
[all …]
DAllInOneActivity.kt62 import com.android.calendar.CalendarController.EventType
227 mController?.sendEvent(this as Object?, EventType.GO_TO, time, time, -1, in onNewIntent()
442 this as Object?, EventType.UPDATE_TITLE, t, t, -1, ViewType.CURRENT, in onResume()
460 this as Object?, EventType.VIEW_EVENT, mViewEventId, in onResume()
499 mController?.sendEvent(this as Object?, EventType.USER_HOME, null, null, -1, in onUserLeaveHint()
577 mController?.sendEvent(this as Object?, EventType.GO_TO, t, null, -1, viewType) in initFragments()
584 mController?.sendEvent(this as Object?, EventType.GO_TO, null, null, -1, mPreviousView) in onBackPressed()
655 mController?.sendEvent(this as Object?, EventType.GO_TO, t, null, t, -1, in onOptionsItemSelected()
809 if (event.eventType != EventType.UPDATE_TITLE || mActionBar == null) { in setTitleInActionBar()
903 get() = EventType.GO_TO or EventType.UPDATE_TITLE
[all …]
DDayFragment.kt19 import com.android.calendar.CalendarController.EventType
210 get() = CalendarController.EventType.GO_TO or CalendarController.EventType.EVENTS_CHANGED
213 if (msg?.eventType == CalendarController.EventType.GO_TO) { in handleEvent()
219 } else if (msg?.eventType == CalendarController.EventType.EVENTS_CHANGED) { in handleEvent()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DAdminEventMessageTest.java26 import com.android.server.uwb.discovery.info.AdminEventMessage.EventType;
46 new AdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {});
120 new AdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {}); in testConstructor()
124 assertThat(message.eventType).isEqualTo(EventType.CAPABILITIES_CHANGED); in testConstructor()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dadapter_service.rs9 EventType, FetchEventsRequest, FetchEventsResponse, SetDefaultEventMaskExceptRequest,
121 rsp.event_type = EventType::ADAPTER_STATE.into(); in fetch_events()
131 rsp.event_type = EventType::LE_RAND.into(); in fetch_events()
140 rsp.event_type = EventType::GENERATE_LOCAL_OOB_DATA.into(); in fetch_events()
169 rsp.event_type = EventType::ADAPTER_PROPERTY.into(); in fetch_events()
185 rsp.event_type = EventType::DISCOVERY_STATE.into(); in fetch_events()
194 rsp.event_type = EventType::DEVICE_FOUND.into(); in fetch_events()
206 rsp.event_type = EventType::BOND_STATE.into(); in fetch_events()
Dhfp_service.rs7 ConnectAudioRequest, DisconnectAudioRequest, EventType, FetchEventsRequest,
205 rsp.event_type = EventType::HFP_CONNECTION_STATE.into(); in fetch_events()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/
DTransportProviderTest.java37 import com.android.server.uwb.discovery.info.AdminEventMessage.EventType;
224 new AdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {})); in testOnMessageReceived_receiveAdminEventPacket()
261 mTransportProvider.sentAdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {}); in testSentAdminEventMessage()
267 new AdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {}) in testSentAdminEventMessage()
274 mTransportProvider.sentAdminEventMessage(EventType.CAPABILITIES_CHANGED, new byte[] {}); in testSentAdminEventMessage_failed()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.kt45 import com.android.calendar.CalendarController.EventType
379 get() = EventType.GO_TO or EventType.EVENTS_CHANGED
383 if (event?.eventType === EventType.GO_TO) { in handleEvent()
413 } else if (event?.eventType == EventType.EVENTS_CHANGED) { in handleEvent()
444 this as Object?, EventType.UPDATE_TITLE, time, time, time, -1, in setMonthDisplayed()
DMonthByWeekAdapter.kt32 import com.android.calendar.CalendarController.EventType
237 mContext as Object?, EventType.GO_TO, day, day, -1, in onDayTapped()
243 mContext as Object?, EventType.GO_TO, day, day, -1, in onDayTapped()
/packages/apps/Nfc/proto/
Devent.proto31 required EventType event_type = 2;
35 message EventType { message
/packages/services/Car/service/proto/android/car/watchdog/
Dcarwatchdog_daemon_dump.proto33 enum EventType { enum
43 optional EventType current_event = 1; field
/packages/apps/SettingsIntelligence/proto/
Dsettings_intelligence_log.proto12 enum EventType { enum
82 optional EventType event_type = 1;
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/
DTransportProvider.java26 import com.android.server.uwb.discovery.info.AdminEventMessage.EventType;
237 protected void sentAdminEventMessage(EventType eventType, byte[] additionalData) { in sentAdminEventMessage()
/packages/apps/Contacts/src/com/android/contacts/logging/
DEditorEvent.java28 public static final class EventType { class in EditorEvent
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorSpringBoardActivity.java115 EditorEvent.EventType.SHOW_RAW_CONTACT_PICKER, /* numberRawContacts */ 0); in onCreate()
192 EditorEvent.EventType.SHOW_RAW_CONTACT_PICKER, /* numberRawContacts */ 0); in loadEditor()

12