Home
last modified time | relevance | path

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

12345

/aosp12/frameworks/av/media/libstagefright/tests/
H A DBatteryChecker_test.cpp37 enum EventType { enum in android::BatteryCheckerTestHandler
95 using EventType = BatteryCheckerTestHandler::EventType; typedef in android::BatteryCheckerTest
156 {EventType::kWhatStart, 0ll}, in TEST_F()
168 {EventType::kWhatStart, 0ll}, in TEST_F()
181 {EventType::kWhatStart, 0ll}, in TEST_F()
186 {EventType::kWhatStop, 0ll}, in TEST_F()
191 {EventType::kWhatReleased, 0ll}, in TEST_F()
196 {EventType::kWhatStart, 0ll}, in TEST_F()
209 {EventType::kWhatActivity, 0ll}, in TEST_F()
212 {EventType::kWhatStart, 0ll}, in TEST_F()
[all …]
/aosp12/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
H A DSensorEventsChecker.h22 template <class EventType>
29 template <class EventType>
30 class NullChecker : public SensorEventsChecker<EventType> {
35 template <class EventType>
36 class SensorEventPerEventChecker : public SensorEventsChecker<EventType> {
38 virtual bool checkEvent(const EventType& event, std::string* out) const = 0;
39 virtual bool check(const std::vector<EventType>& events, std::string* out) const { in check()
49 template <class EventType>
50 class Vec3NormChecker : public SensorEventPerEventChecker<EventType> {
53 static Vec3NormChecker<EventType> byNominal(float nominal, float allowedError) { in byNominal()
[all …]
H A DSensorsHidlTestBase.h157 template <class SensorTypeVersion, class EventType, class SensorInfoType>
166 virtual SensorsHidlEnvironmentBase<EventType>* getEnvironment() = 0;
189 virtual Return<Result> injectSensorData(const EventType& event) = 0;
212 std::vector<EventType> events;
247 std::vector<EventType> events; in testStreamingOperation()
248 std::vector<EventType> sensorEvents; in testStreamingOperation()
307 std::vector<EventType> events1, events2;
406 std::vector<EventType> events; in testBatchingOperation()
560 std::vector<EventType> sensorEvents; in testDirectReportOperation()
664 Vec3NormChecker<EventType> mAccelNormChecker;
[all …]
H A DSensorsTestSharedMemory.h32 template <class SensorTypeVersion, class EventType>
42 auto m = new SensorsTestSharedMemory<SensorTypeVersion, EventType>(type, size); in create()
59 std::vector<EventType> parseEvents(int64_t lastCounter = -1, size_t offset = 0) const {
70 std::vector<EventType> events;
97 EventType event = {
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DWatchdogPerfService.cpp97 case EventType::INIT: in toString()
99 case EventType::TERMINATED: in toString()
109 case EventType::LAST_EVENT: in toString()
206 if (EventType expected = EventType::INIT; mCurrCollectionEvent != expected) { in start()
278 if (EventType expected = EventType::BOOT_TIME_COLLECTION; mCurrCollectionEvent != expected) { in onBootFinished()
449 if (EventType expected = EventType::PERIODIC_COLLECTION; mCurrCollectionEvent != expected) { in startCustomCollection()
548 if (EventType expected = EventType::CUSTOM_COLLECTION; in handleMessage()
644 case EventType::CUSTOM_COLLECTION: in collectLocked()
727 case EventType::BOOT_TIME_COLLECTION: in currCollectionMetadataLocked()
729 case EventType::PERIODIC_COLLECTION: in currCollectionMetadataLocked()
[all …]
H A DWatchdogPerfService.h113 enum EventType { enum
134 END_BOOTTIME_COLLECTION = EventType::LAST_EVENT + 1,
187 mCurrCollectionEvent(EventType::INIT),
216 EventType eventType = EventType::LAST_EVENT;
301 EventType mCurrCollectionEvent GUARDED_BY(mMutex);
/aosp12/system/extras/simpleperf/
H A Devent_type.h36 struct EventType { struct
37 EventType(const std::string& name, uint32_t type, uint64_t config, const std::string& description, in EventType() argument
45 EventType() : type(0), config(0) {} in EventType() function
47 bool operator<(const EventType& other) const {
66 static std::string BuildString(const std::vector<const EventType*>& event_types); argument
74 EventType event_type;
106 bool ForEachType(const std::function<bool(const EventType&)>& callback);
107 const EventType* FindType(const std::string& name);
108 const EventType* AddRawType(const std::string& name);
125 const EventType* FindEventTypeByName(const std::string& name, bool report_error = true);
H A Dcmd_list.cpp42 static EventTypeStatus IsEventTypeSupported(const EventType& event_type) { in IsEventTypeSupported()
88 const std::function<bool(const EventType&)>& is_type_fn) { in PrintEventTypesOfType()
104 auto callback = [&](const EventType& event_type) { in PrintEventTypesOfType()
158 static std::map<std::string, std::pair<std::string, std::function<bool(const EventType&)>>> in Run()
160 { {"hw", {"hardware events", [](const EventType& e) { return e.type == PERF_TYPE_HARDWARE; }}}, in Run()
161 {"sw", {"software events", [](const EventType& e) { return e.type == PERF_TYPE_SOFTWARE; }}}, in Run()
162 {"cache", {"hw-cache events", [](const EventType& e) { return e.type == PERF_TYPE_HW_CACHE; }}}, in Run()
165 [](const EventType& e) { return e.type == PERF_TYPE_RAW; }}}, in Run()
167 {"tracepoint events", [](const EventType& e) { return e.type == PERF_TYPE_TRACEPOINT; }}}, in Run()
171 [](const EventType& e) { return e.type == ETMRecorder::GetInstance().GetEtmEventType(); }}}, in Run()
[all …]
H A Devent_type.cpp50 static const std::set<EventType> builtin_event_types = {
71 const std::set<EventType>& GetTypes() { in GetTypes()
79 virtual const EventType* FindType(const std::string& name) { in FindType()
81 auto it = types.find(EventType(name, 0, 0, "", "")); in FindType()
92 std::set<EventType> types_;
129 const EventType* FindType(const std::string& name) override { in FindType()
200 const EventType* FindType(const std::string& name) override { in FindType()
304 const EventType* FindType(const std::string& name) override { in FindType()
326 const EventType* AddType(EventType&& type) { in AddType()
450 std::vector<int> EventType::GetPmuCpumask() { in GetPmuCpumask()
[all …]
/aosp12/packages/services/Car/car-lib/src/com/android/car/internal/
H A 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()
/aosp12/system/core/fastboot/
H A Dsocket_mock.cpp47 if (events_.front().type != EventType::kSend) { in Send()
80 if (event.type != EventType::kReceive) { in Receive()
115 if (events_.front().type != EventType::kAccept) { in Accept()
126 events_.push(Event(EventType::kSend, std::move(message), true, nullptr)); in ExpectSend()
130 events_.push(Event(EventType::kSend, std::move(message), false, nullptr)); in ExpectSendFailure()
134 events_.push(Event(EventType::kReceive, std::move(message), false, nullptr)); in AddReceive()
138 events_.push(Event(EventType::kReceive, "", true, nullptr)); in AddReceiveTimeout()
142 events_.push(Event(EventType::kReceive, "", false, nullptr)); in AddReceiveFailure()
146 events_.push(Event(EventType::kAccept, "", false, std::move(sock))); in AddAccept()
149 SocketMock::Event::Event(EventType _type, std::string _message, ssize_t _status, in Event()
H A Dsocket_mock.h83 enum class EventType { kSend, kReceive, kAccept }; enum
86 Event(EventType _type, std::string _message, ssize_t _status,
89 EventType type;
/aosp12/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerServiceTestUtils.h68 mLastEvent({EventType::INVALID, 0}), mEventCount(0) {} in TestSystemCallback()
70 enum EventType { enum
80 EventType type;
85 mLastEvent = {EventType::VIDEO_ON, uid}; in noteStartVideo()
90 mLastEvent = {EventType::VIDEO_OFF, uid}; in noteStopVideo()
95 mLastEvent = {EventType::VIDEO_RESET, 0}; in noteResetVideo()
100 mLastEvent = {enable ? EventType::CPUSET_ENABLE : EventType::CPUSET_DISABLE, 0}; in requestCpusetBoost()
106 EventType lastEventType() { return mLastEvent.type; } in lastEventType()
163 using EventType = TestSystemCallback::EventType; variable
/aosp12/frameworks/base/core/java/android/app/smartspace/
H A DSmartspaceTargetEvent.java87 @EventType
92 @EventType int eventType) { in SmartspaceTargetEvent()
124 @EventType
163 public @interface EventType { annotation in SmartspaceTargetEvent
173 @EventType
183 public Builder(@EventType int eventType) { in Builder()
/aosp12/hardware/interfaces/sensors/2.0/vts/functional/
H A DVtsHalSensorsV2_0TargetTest.cpp58 std::chrono::seconds(5), NullChecker<EventType>()); in TEST_P()
64 std::chrono::seconds(5), NullChecker<EventType>()); in TEST_P()
70 std::chrono::seconds(5), NullChecker<EventType>()); in TEST_P()
145 RateLevel::NORMAL, NullChecker<EventType>()); in TEST_P()
151 RateLevel::FAST, NullChecker<EventType>()); in TEST_P()
157 RateLevel::VERY_FAST, NullChecker<EventType>()); in TEST_P()
199 RateLevel::NORMAL, NullChecker<EventType>()); in TEST_P()
205 RateLevel::FAST, NullChecker<EventType>()); in TEST_P()
211 RateLevel::VERY_FAST, NullChecker<EventType>()); in TEST_P()
240 std::shared_ptr<SensorsTestSharedMemory<SensorTypeVersion, EventType>> mem( in TEST_P()
[all …]
/aosp12/frameworks/base/core/java/android/service/quickaccesswallet/
H A DWalletServiceEvent.java53 public @interface EventType { annotation in WalletServiceEvent
56 @EventType
62 public WalletServiceEvent(@EventType int eventType) { in WalletServiceEvent()
94 @EventType
/aosp12/frameworks/av/services/mediaresourcemanager/fuzzer/
H A Dmediaresourcemanager_fuzzer.cpp85 TestSystemCallback() : mLastEvent({EventType::INVALID, 0}), mEventCount(0) {} in TestSystemCallback()
87 enum EventType { enum
97 EventType type;
102 mLastEvent = {EventType::VIDEO_ON, uid}; in noteStartVideo()
107 mLastEvent = {EventType::VIDEO_OFF, uid}; in noteStopVideo()
112 mLastEvent = {EventType::VIDEO_RESET, 0}; in noteResetVideo()
117 mLastEvent = {enable ? EventType::CPUSET_ENABLE : EventType::CPUSET_DISABLE, 0}; in requestCpusetBoost()
123 EventType lastEventType() { return mLastEvent.type; } in lastEventType()
/aosp12/frameworks/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java28 import android.view.accessibility.AccessibilityEvent.EventType;
118 boolean accessibilityEnabled, @EventType int relevantEventTypes); in onAccessibilityEvent()
126 @EventType int getRelevantEventTypes(@EventType int relevantEventTypes); in getRelevantEventTypes()
228 public boolean isObservedEventType(@AccessibilityEvent.EventType int type) { in isObservedEventType()
/aosp12/frameworks/av/drm/libmediadrm/tests/
H A DDrmMetrics_test.cpp33 using ::android::hardware::drm::V1_0::EventType;
87 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
159 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
160 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
161 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
162 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
163 metrics.mEventCounter.Increment(EventType::SESSION_RECLAIMED); in TEST_F()
293 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
294 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
295 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
H A DTimeZoneProviderEvent.java34 public @interface EventType {} annotation in TimeZoneProviderEvent
57 @EventType
66 private TimeZoneProviderEvent(@EventType int type, in TimeZoneProviderEvent()
95 public @EventType int getType() { in getType()
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DWatchdogPerfServiceTest.cpp96 EventType getCurrCollectionEvent() { in getCurrCollectionEvent()
152 ASSERT_EQ(servicePeer->getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in startPeriodicCollection()
215 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::BOOT_TIME_COLLECTION) in TEST()
249 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in TEST()
286 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in TEST()
310 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::CUSTOM_COLLECTION) in TEST()
326 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::CUSTOM_COLLECTION) in TEST()
342 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::PERIODIC_COLLECTION) in TEST()
390 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::TERMINATED); in TEST()
412 ASSERT_EQ(servicePeer.getCurrCollectionEvent(), EventType::TERMINATED); in TEST()
[all …]
/aosp12/frameworks/base/core/java/android/net/metrics/
H A DNetworkEvent.java76 public @interface EventType {} annotation in NetworkEvent
79 public final @EventType int eventType;
83 public NetworkEvent(@EventType int eventType, long durationMs) { in NetworkEvent()
88 public NetworkEvent(@EventType int eventType) { in NetworkEvent()
/aosp12/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarController.java95 public interface EventType { interface in CalendarController
176 if (eventType != EventType.VIEW_EVENT) { in isAllDay()
184 if (eventType != EventType.VIEW_EVENT) { in getResponse()
344 if (eventType == EventType.VIEW_EVENT_DETAILS) { in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
468 if (event.eventType == EventType.UPDATE_TITLE) { in sendEvent()
486 & (EventType.VIEW_EVENT_DETAILS)) in sendEvent()
683 if ((eventInfo.eventType & EventType.GO_TO) != 0) { in eventInfoToString()
685 } else if ((eventInfo.eventType & EventType.VIEW_EVENT) != 0) { in eventInfoToString()
689 } else if ((eventInfo.eventType & EventType.EVENTS_CHANGED) != 0) { in eventInfoToString()
691 } else if ((eventInfo.eventType & EventType.USER_HOME) != 0) { in eventInfoToString()
[all …]
H A DAllInOneActivity.java68 import com.android.calendar.CalendarController.EventType;
485 mController.sendEvent(this, EventType.UPDATE_TITLE, t, t, -1, ViewType.CURRENT, in onResume()
627 mController.sendEvent(this, EventType.GO_TO, t, null, -1, viewType); in initFragments()
634 mController.sendEvent(this, EventType.GO_TO, null, null, -1, mPreviousView); in onBackPressed()
849 if (event.eventType != EventType.UPDATE_TITLE || mActionBar == null) { in setTitleInActionBar()
933 return EventType.GO_TO | EventType.UPDATE_TITLE; in getSupportedEventTypes()
939 if (event.eventType == EventType.GO_TO) { in handleEvent()
994 } else if (event.eventType == EventType.UPDATE_TITLE) { in handleEvent()
1012 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.DAY); in onTabSelected()
1014 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.WEEK); in onTabSelected()
[all …]
/aosp12/system/core/fastboot/fuzzy_fastboot/
H A Dtransport_sniffer.h52 enum EventType { enum
62 Event(EventType t, const std::vector<char> cbuf) : type(t), buf(cbuf) { in Event()
65 EventType type;

12345