Home
last modified time | relevance | path

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

12

/system/bt/packet/avrcp/
Dregister_notification_packet.cc28 Event RegisterNotificationResponse::GetEvent() const { in GetEvent()
30 return static_cast<Event>(value); in GetEvent()
34 CHECK(GetEvent() == Event::VOLUME_CHANGED); in GetVolume()
47 case Event::VOLUME_CHANGED: in IsValid()
78 Event::PLAYBACK_STATUS_CHANGED)); in MakePlaybackStatusBuilder()
88 new RegisterNotificationResponseBuilder(interim, Event::TRACK_CHANGED)); in MakeTrackChangedBuilder()
99 Event::PLAYBACK_POS_CHANGED)); in MakePlaybackPositionBuilder()
109 interim, Event::NOW_PLAYING_CONTENT_CHANGED)); in MakeNowPlayingBuilder()
117 interim, Event::AVAILABLE_PLAYERS_CHANGED)); in MakeAvailablePlayersBuilder()
126 Event::ADDRESSED_PLAYER_CHANGED)); in MakeAddressedPlayerBuilder()
[all …]
Dregister_notification_packet.h48 Event GetEvent() const;
89 Event event_;
92 RegisterNotificationResponseBuilder(bool interim, Event event) in RegisterNotificationResponseBuilder()
122 Event GetEventRegistered() const;
138 Event event, uint32_t interval);
145 Event event_;
148 RegisterNotificationRequestBuilder(Event event, uint32_t interval) in RegisterNotificationRequestBuilder()
Dcapabilities_packet.h86 MakeEventsSupportedBuilder(Event event);
89 GetCapabilitiesResponseBuilder* AddEvent(Event event);
Dcapabilities_packet.cc86 GetCapabilitiesResponseBuilder::MakeEventsSupportedBuilder(Event event) { in MakeEventsSupportedBuilder()
108 Event event) { in AddEvent()
/system/bt/packet/tests/avrcp/
Dget_capabilities_packet_test.cc65 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()
90 ASSERT_DEATH(builder->AddEvent(Event::PLAYBACK_STATUS_CHANGED), in TEST()
94 Event::PLAYBACK_STATUS_CHANGED); in TEST()
112 Event::PLAYBACK_STATUS_CHANGED); in TEST()
113 builder->AddEvent(Event::TRACK_CHANGED); in TEST()
114 builder->AddEvent(Event::PLAYBACK_POS_CHANGED); in TEST()
Dregister_notification_packet_test.cc33 ASSERT_EQ(test_packet->GetEventRegistered(), Event::PLAYBACK_STATUS_CHANGED); in TEST()
56 RegisterNotificationRequestBuilder::MakeBuilder(Event::VOLUME_CHANGED, 0); in TEST()
69 ASSERT_EQ(test_packet->GetEvent(), Event::VOLUME_CHANGED); in TEST()
/system/core/fastboot/
Dsocket_mock.cpp79 const Event& event = events_.front(); in Receive()
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() function in SocketMock::Event
Dsocket_mock.h85 struct Event { struct
86 Event(EventType _type, std::string _message, ssize_t _status,
95 std::queue<Event> events_; argument
/system/chre/core/include/chre/core/
Devent_ref_queue.h47 bool push(Event *event);
57 Event *pop();
64 ArrayQueue<Event *, kMaxPendingEvents> mQueue;
Devent_loop.h276 SynchronizedMemoryPool<Event, kMaxEventCount> mEventPool;
294 FixedSizeBlockingQueue<Event *, kMaxUnscheduledEventCount> mEvents;
354 void distributeEvent(Event *event);
376 void freeEvent(Event *event);
Devent.h39 class Event : public NonCopyable {
41 Event(uint16_t eventType_, uint16_t receivedTimeMillis_, void *eventData_,
Dnanoapp.h112 void postEvent(Event *event) { in postEvent()
147 Event *processNextEvent();
/system/chre/core/
Devent_ref_queue.cc28 bool EventRefQueue::push(Event *event) { in push()
39 Event *EventRefQueue::pop() { in pop()
42 Event *event = mQueue.front(); in pop()
Devent.cc22 Event::Event(uint16_t eventType_, uint16_t receivedTimeMillis_, in Event() function in chre::Event
Dnanoapp.cc79 Event *Nanoapp::processNextEvent() { in processNextEvent()
80 Event *event = mEventQueue.pop(); in processNextEvent()
Devent_loop.cc348 Event *event = mEventPool.allocate(eventType, receivedTimeMillis, eventData, in allocateAndPostEvent()
375 Event *event = app->processNextEvent(); in deliverNextEvent()
385 void EventLoop::distributeEvent(Event *event) { in distributeEvent()
415 void EventLoop::freeEvent(Event *event) { in freeEvent()
/system/core/fastboot/fuzzy_fastboot/
Dtransport_sniffer.h61 struct Event { struct
62 Event(EventType t, const std::vector<char> cbuf) : type(t), buf(cbuf) { in Event() function
78 const std::vector<Event> Transfers(); argument
83 std::vector<Event> transfers_;
Dtransport_sniffer.cpp26 Event e(READ_ERROR, std::move(buf)); in Read()
33 Event e(READ, std::move(buf)); in Read()
47 Event e(WRITE_ERROR, std::move(buf)); in Write()
54 Event e(WRITE, std::move(buf)); in Write()
69 Event e(RESET, std::move(buf)); in Reset()
75 const std::vector<TransportSniffer::Event> TransportSniffer::Transfers() { in Transfers()
188 Event e(SERIAL, std::move(buf)); in ProcessSerial()
/system/bt/packet/tests/fuzzers/
Dget_capabilities_res_fuzzer.cc38 Event::PLAYBACK_STATUS_CHANGED); in LLVMFuzzerTestOneInput()
39 builder->AddEvent(Event::TRACK_CHANGED); in LLVMFuzzerTestOneInput()
40 builder->AddEvent(Event::PLAYBACK_POS_CHANGED); in LLVMFuzzerTestOneInput()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h113 inline std::string EventText(const Event& event) { in EventText()
115 CASE_RETURN_TEXT(Event::PLAYBACK_STATUS_CHANGED); in EventText()
116 CASE_RETURN_TEXT(Event::TRACK_CHANGED); in EventText()
117 CASE_RETURN_TEXT(Event::PLAYBACK_POS_CHANGED); in EventText()
118 CASE_RETURN_TEXT(Event::PLAYER_APPLICATION_SETTING_CHANGED); in EventText()
119 CASE_RETURN_TEXT(Event::NOW_PLAYING_CONTENT_CHANGED); in EventText()
120 CASE_RETURN_TEXT(Event::AVAILABLE_PLAYERS_CHANGED); in EventText()
121 CASE_RETURN_TEXT(Event::ADDRESSED_PLAYER_CHANGED); in EventText()
122 CASE_RETURN_TEXT(Event::UIDS_CHANGED); in EventText()
123 CASE_RETURN_TEXT(Event::VOLUME_CHANGED); in EventText()
[all …]
/system/teeui/libteeui/example/
Dtouch_button_example.cpp52 Error tapOk(Event e) { in tapOk()
60 Error tapCancel(Event e) { in tapCancel()
94 Event event{x, y, EventType::KeyUp}; in onEvent()
130 .setCB(makeCallback<Error, Event>( in setDeviceInfo()
131 [](Event e, void* p) -> Error { return reinterpret_cast<GUIStateTouch*>(p)->tapOk(e); }, in setDeviceInfo()
134 .setCB(makeCallback<Error, Event>( in setDeviceInfo()
135 [](Event e, void* p) -> Error { in setDeviceInfo()
/system/bt/profile/avrcp/
Ddevice.cc114 if (register_notification->GetEvent() != Event::VOLUME_CHANGED) { in VendorPacketHandler()
219 Event::PLAYBACK_STATUS_CHANGED); in HandleGetCapabilities()
220 response->AddEvent(Event::TRACK_CHANGED); in HandleGetCapabilities()
221 response->AddEvent(Event::PLAYBACK_POS_CHANGED); in HandleGetCapabilities()
224 response->AddEvent(Event::AVAILABLE_PLAYERS_CHANGED); in HandleGetCapabilities()
225 response->AddEvent(Event::ADDRESSED_PLAYER_CHANGED); in HandleGetCapabilities()
226 response->AddEvent(Event::UIDS_CHANGED); in HandleGetCapabilities()
227 response->AddEvent(Event::NOW_PLAYING_CONTENT_CHANGED); in HandleGetCapabilities()
256 case Event::TRACK_CHANGED: { in HandleNotification()
262 case Event::PLAYBACK_STATUS_CHANGED: { in HandleNotification()
[all …]
/system/bt/profile/avrcp/tests/
Davrcp_device_test.cc130 RegisterNotificationRequestBuilder::MakeBuilder(Event::TRACK_CHANGED, 0); in TEST_F()
172 Event::PLAYBACK_STATUS_CHANGED, 0); in TEST_F()
216 Event::PLAYBACK_POS_CHANGED, 0); in TEST_F()
275 RegisterNotificationRequestBuilder::MakeBuilder(Event::TRACK_CHANGED, 0); in TEST_F()
326 Event::PLAYBACK_STATUS_CHANGED, 0); in TEST_F()
380 Event::PLAYBACK_POS_CHANGED, 0); in TEST_F()
440 Event::NOW_PLAYING_CONTENT_CHANGED, 0); in TEST_F()
495 Event::ADDRESSED_PLAYER_CHANGED, 0); in TEST_F()
542 Event::NOW_PLAYING_CONTENT_CHANGED, 0); in TEST_F()
1050 RegisterNotificationRequestBuilder::MakeBuilder(Event::VOLUME_CHANGED, 0); in TEST_F()
[all …]
/system/extras/boottime_tools/io_analysis/
Dcheck_verity.py55 class Event: class
92 event = Event(time, block_nr, size)
/system/extras/simpleperf/
Dreport_lib_interface.cpp63 struct Event { struct
114 Event* GetEventOfCurrentSample(ReportLib* report_lib) EXPORT;
161 Event* GetEventOfCurrentSample() { return &current_event_; } in GetEventOfCurrentSample()
184 Event current_event_;
504 Event* GetEventOfCurrentSample(ReportLib* report_lib) { in GetEventOfCurrentSample()

12