Home
last modified time | relevance | path

Searched refs:key_state (Results 1 – 17 of 17) sorted by relevance

/system/core/healthd/
Dhealthd_mode_charger.h34 struct key_state { struct
61 void SetNextKeyCheck(key_state* key, int64_t timeout);
75 key_state keys_[KEY_MAX + 1] = {};
Dhealthd_mode_charger.cpp449 void Charger::SetNextKeyCheck(key_state* key, int64_t timeout) { in SetNextKeyCheck()
456 key_state* key = &keys_[code]; in ProcessKey()
/system/bt/service/hal/
Dbluetooth_avrcp_interface.h62 virtual void PassthroughCmdCallback(int id, int key_state,
94 int key_state);
95 virtual void GroupnavigationRspCallback(int id, int key_state);
Dbluetooth_avrcp_interface.cc178 void PassthroughCmdCallback(int id, int key_state, const RawAddress& bd_addr) { in PassthroughCmdCallback() argument
183 observer.PassthroughCmdCallback(id, key_state, bd_addr); in PassthroughCmdCallback()
278 void PassthroughRspCallback(const RawAddress& bd_addr, int id, int key_state) { in PassthroughRspCallback() argument
283 observer.PassthroughRspCallback(bd_addr, id, key_state); in PassthroughRspCallback()
287 void GroupnavigationRspCallback(int id, int key_state) { in GroupnavigationRspCallback() argument
292 observer.GroupnavigationRspCallback(id, key_state); in GroupnavigationRspCallback()
694 int id, int key_state, const RawAddress& bd_addr) { in PassthroughCmdCallback() argument
/system/bt/bta/include/
Dbta_av_api.h282 tBTA_AV_STATE key_state; member
293 tBTA_AV_STATE key_state; member
584 tBTA_AV_STATE key_state);
598 tBTA_AV_STATE key_state, uint8_t* p_msg,
/system/bt/btif/test/
Dbtif_rc_test.cc69 tBTA_AV_STATE key_state) {} in BTA_AvRemoteCmd() argument
71 tBTA_AV_STATE key_state, uint8_t* p_msg, in BTA_AvRemoteVendorUniqueCmd() argument
/system/bt/service/common/android/bluetooth/
DIBluetoothAvrcpTargetCallback.aidl34 void OnPassThroughCommand(String addr, int id, int key_state); in OnPassThroughCommand() argument
/system/bt/include/hardware/
Dbt_rc.h347 typedef void (*btrc_passthrough_cmd_callback)(int id, int key_state,
568 int key_state);
570 typedef void (*btrc_groupnavigation_rsp_callback)(int id, int key_state);
668 uint8_t key_code, uint8_t key_state);
672 uint8_t key_code, uint8_t key_state);
/system/bt/bta/av/
Dbta_av_api.cc408 tBTA_AV_STATE key_state) { in BTA_AvRemoteCmd() argument
415 p_buf->msg.state = key_state; in BTA_AvRemoteCmd()
435 tBTA_AV_STATE key_state, uint8_t* p_msg, in BTA_AvRemoteVendorUniqueCmd() argument
444 p_buf->msg.state = key_state; in BTA_AvRemoteVendorUniqueCmd()
Dbta_av_act.cc907 av.remote_cmd.key_state = p_data->rc_msg.msg.pass.state; in bta_av_rc_msg()
920 av.remote_rsp.key_state = p_data->rc_msg.msg.pass.state; in bta_av_rc_msg()
/system/bt/service/
Davrcp_target.h66 int32_t key_state) = 0;
142 void PassthroughCmdCallback(int id, int key_state,
Davrcp_control.cc70 uint8_t key_state = key_pressed ? AVRC_STATE_PRESS : AVRC_STATE_RELEASE; in SendPassThroughCommand() local
76 ->send_pass_through_cmd(addr, key_code, key_state); in SendPassThroughCommand()
Davrcp_target.cc359 void AvrcpTarget::PassthroughCmdCallback(int id, int key_state, in PassthroughCmdCallback() argument
363 if (delegate_) delegate_->OnPassThroughCommand(str_addr, id, key_state); in PassthroughCmdCallback()
/system/bt/service/ipc/binder/
Dbluetooth_avrcp_target_binder_server.cc304 const std::string& addr, int32_t id, int32_t key_state) { in OnPassThroughCommand() argument
307 cb->OnPassThroughCommand(String16(addr.data(), addr.size()), id, key_state); in OnPassThroughCommand()
Dbluetooth_avrcp_target_binder_server.h114 int32_t key_state) override;
/system/bt/btif/src/
Dbtif_rc.cc808 if (p_remote_cmd->key_state == AVRC_STATE_PRESS) { in handle_rc_passthrough_cmd()
830 int pressed = (p_remote_cmd->key_state == AVRC_STATE_PRESS) ? 1 : 0; in handle_rc_passthrough_cmd()
864 const char* status = (p_remote_rsp->key_state == 1) ? "released" : "pressed"; in handle_rc_passthrough_rsp()
873 p_remote_rsp->rc_id, p_remote_rsp->key_state)); in handle_rc_passthrough_rsp()
898 int key_state; in handle_rc_vendorunique_rsp() local
899 if (p_remote_rsp->key_state == AVRC_STATE_RELEASE) { in handle_rc_vendorunique_rsp()
901 key_state = 1; in handle_rc_vendorunique_rsp()
904 key_state = 0; in handle_rc_vendorunique_rsp()
918 vendor_id, key_state)); in handle_rc_vendorunique_rsp()
1062 p_data->remote_cmd.key_state); in btif_rc_handler()
[all …]
/system/core/adb/
Dsysdeps_win32.cpp1450 BYTE key_state[256] = {0}; in _get_char_ignoring_modifier() local
1451 key_state[VK_SHIFT] = _is_shift_pressed(control_key_state) ? in _get_char_ignoring_modifier()
1453 key_state[VK_CONTROL] = _is_ctrl_pressed(control_key_state) ? in _get_char_ignoring_modifier()
1455 key_state[VK_MENU] = _is_alt_pressed(control_key_state) ? in _get_char_ignoring_modifier()
1457 key_state[VK_CAPITAL] = _is_capslock_on(control_key_state) ? in _get_char_ignoring_modifier()
1461 key_state[modifier] = TOASCII_KEY_OFF; in _get_char_ignoring_modifier()
1465 key_event->wVirtualScanCode, key_state, &translated, 0) == 1) { in _get_char_ignoring_modifier()