Home
last modified time | relevance | path

Searched refs:KeyState (Results 1 – 11 of 11) sorted by relevance

/system/bt/packet/avrcp/
Dpass_through_packet.cc49 KeyState PassThroughPacket::GetKeyState() const { in GetKeyState()
51 return static_cast<KeyState>(((*it) & 0b10000000) >> 7); in GetKeyState()
Dpass_through_packet.h65 KeyState GetKeyState() const;
/system/bt/packet/tests/avrcp/
Dpass_through_packet_test.cc45 ASSERT_EQ(test_packet->GetKeyState(), KeyState::PUSHED); in TEST()
49 ASSERT_EQ(test_packet->GetKeyState(), KeyState::RELEASED); in TEST()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h229 inline std::string KeyStateText(const KeyState& state) { in KeyStateText()
231 CASE_RETURN_TEXT(KeyState::PUSHED); in KeyStateText()
232 CASE_RETURN_TEXT(KeyState::RELEASED); in KeyStateText()
238 inline std::ostream& operator<<(std::ostream& os, const KeyState& dir) {
Davrcp.h106 virtual void SendKeyEvent(uint8_t key, KeyState state) = 0;
Davrcp_common.h142 enum class KeyState : uint8_t { enum
/system/bt/profile/avrcp/tests/avrcp_device_fuzz/
Davrcp_device_fuzz.cc13 virtual void SendKeyEvent(uint8_t key, KeyState state) {} in SendKeyEvent()
/system/bt/profile/avrcp/tests/
Davrcp_test_helper.h36 MOCK_METHOD2(SendKeyEvent, void(uint8_t, KeyState));
Davrcp_device_test.cc1377 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::PUSHED)).Times(1); in TEST_F()
1411 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::PUSHED)).Times(0); in TEST_F()
1440 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::RELEASED)).Times(1); in TEST_F()
1470 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::RELEASED)).Times(0); in TEST_F()
/system/bt/profile/avrcp/
Ddevice.cc665 true, pass_through_packet->GetKeyState() == KeyState::PUSHED, in MessageReceived()
671 pass_through_packet->GetKeyState() == KeyState::PUSHED) { in MessageReceived()
691 d->media_interface_->SendKeyEvent(0x44, KeyState::PUSHED); in MessageReceived()
/system/bt/btif/avrcp/
Davrcp_service.cc140 void SendKeyEvent(uint8_t key, KeyState state) override { in SendKeyEvent()