Home
last modified time | relevance | path

Searched refs:ctype (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java83 int ctype = result[CLUSTER_TYPE]; in setupMenuItems() local
90 (ctype & CLUSTER_BY_TIME) != 0, (ccurrent & CLUSTER_BY_TIME) != 0); in setupMenuItems()
92 (ctype & CLUSTER_BY_LOCATION) != 0, (ccurrent & CLUSTER_BY_LOCATION) != 0); in setupMenuItems()
94 (ctype & CLUSTER_BY_TAG) != 0, (ccurrent & CLUSTER_BY_TAG) != 0); in setupMenuItems()
96 (ctype & CLUSTER_BY_FACE) != 0, (ccurrent & CLUSTER_BY_FACE) != 0); in setupMenuItems()
98 actionBar.setClusterItemVisibility(CLUSTER_BY_ALBUM, !inAlbum || ctype == 0); in setupMenuItems()
100 setMenuItemApplied(actionBar, R.id.action_cluster_album, ctype == 0, in setupMenuItems()
142 int ctype = toClusterType(segments[2]); in getAppliedFilters() local
143 result[CLUSTER_TYPE] |= ctype; in getAppliedFilters()
144 result[CLUSTER_CURRENT_TYPE] = ctype; in getAppliedFilters()
[all …]
/packages/modules/Bluetooth/system/packet/avrcp/
Dvendor_packet.h29 CType ctype, CommandPdu pdu, PacketType packet_type,
46 VendorPacketBuilder(CType ctype, CommandPdu pdu, PacketType packet_type) in VendorPacketBuilder() argument
47 : PacketBuilder(ctype, 0x09, 0x00, Opcode::VENDOR), pdu_(pdu), packet_type_(packet_type) {} in VendorPacketBuilder()
Dvendor_packet.cc28 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder() argument
34 std::unique_ptr<VendorPacketBuilder> builder(new VendorPacketBuilder(ctype, pdu, packet_type)); in MakeBuilder()
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_act.cc904 p_vendor->hdr.ctype = AVRC_RSP_NOT_IMPL; in bta_av_proc_meta_cmd()
907 } else if (!AVRC_IsValidAvcType(pdu, p_vendor->hdr.ctype)) { in bta_av_proc_meta_cmd()
908 log::verbose("Invalid pdu/ctype: 0x{:x}, {}", pdu, p_vendor->hdr.ctype); in bta_av_proc_meta_cmd()
978 bool is_inquiry = ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) || in bta_av_rc_msg()
979 p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ); in bta_av_rc_msg()
980 uint8_t ctype = 0; in bta_av_rc_msg() local
990 log::verbose("opcode={:x}, ctype={:x}", p_data->rc_msg.opcode, p_data->rc_msg.msg.hdr.ctype); in bta_av_rc_msg()
994 if ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_CTRL) || in bta_av_rc_msg()
995 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) || in bta_av_rc_msg()
996 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ)) { in bta_av_rc_msg()
[all …]
Dbta_av_api.cc455 p_buf->msg.hdr.ctype = cmd_code; in BTA_AvVendorCmd()
489 p_buf->msg.hdr.ctype = rsp_code; in BTA_AvVendorRsp()
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_api.cc570 p_msg->hdr.ctype = p_msg->p_vendor_data[0] & AVRC_CTYPE_MASK; in avrc_proc_far_msg()
676 msg.browse.hdr.ctype = cr; in avrc_msg_cback()
686 msg.hdr.ctype = p_data[0] & AVRC_CTYPE_MASK; in avrc_msg_cback()
687 log::verbose("handle:{}, ctype:{}, offset:{}, len: {}", handle, msg.hdr.ctype, p_pkt->offset, in avrc_msg_cback()
948 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK); in avrc_pass_msg()
1179 uint16_t AVRC_MsgReq(uint8_t handle, uint8_t label, uint8_t ctype, BT_HDR* p_pkt, in AVRC_MsgReq() argument
1195 log::verbose("handle = {} label = {} ctype = {} len = {}", handle, label, ctype, p_pkt->len); in AVRC_MsgReq()
1200 if (ctype >= AVRC_RSP_NOT_IMPL) { in AVRC_MsgReq()
1213 *p_data++ = (ctype & AVRC_CTYPE_MASK); in AVRC_MsgReq()
1234 *p_data++ = (ctype & AVRC_CTYPE_MASK); in AVRC_MsgReq()
[all …]
Davrc_pars_ct.cc71 log::verbose("ctype:0x{:x} pdu:0x{:x}, len:{}/0x{:x} vendor_len=0x{:x}", p_msg->hdr.ctype, in avrc_pars_vendor_rsp()
78 if (p_msg->hdr.ctype == AVRC_RSP_REJ) { in avrc_pars_vendor_rsp()
112 (AVRC_RSP_CHANGED == p_msg->hdr.ctype || AVRC_RSP_INTERIM == p_msg->hdr.ctype || in avrc_pars_vendor_rsp()
113 AVRC_RSP_REJ == p_msg->hdr.ctype || AVRC_RSP_NOT_IMPL == p_msg->hdr.ctype)) { in avrc_pars_vendor_rsp()
118 p_result->reg_notif.status = p_msg->hdr.ctype; in avrc_pars_vendor_rsp()
554 log::verbose("ctype:0x{:x} pdu:0x{:x}, len:{} vendor_len=0x{:x}", p_msg->hdr.ctype, in avrc_ctrl_pars_vendor_rsp()
561 if (p_msg->hdr.ctype == AVRC_RSP_REJ) { in avrc_ctrl_pars_vendor_rsp()
Davrc_pars_tg.cc56 if (!AVRC_IsValidAvcType(p_result->pdu, p_msg->hdr.ctype)) { in avrc_ctrl_pars_vendor_cmd()
142 if (!AVRC_IsValidAvcType(p_result->pdu, p_msg->hdr.ctype)) { in avrc_pars_vendor_cmd()
143 log::verbose("detects wrong AV/C type(0x{:x})!", p_msg->hdr.ctype); in avrc_pars_vendor_cmd()
Davrc_opt.cc75 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK); in avrc_vendor_msg()
/packages/modules/Bluetooth/system/profile/avrcp/
Davrcp_message_converter.h77 data.push_back(m->hdr.ctype); in Parse()
89 data.push_back(m->hdr.ctype); in Parse()
Dconnection_handler.cc459 if (p_msg->browse.hdr.ctype == AVCT_RSP) { in MessageCb()
581 uint8_t ctype = AVRC_RSP_ACCEPT; in SendMessage() local
583 ctype = (uint8_t)(::bluetooth::Packet::Specialize<Packet>(packet)->GetCType()); in SendMessage()
615 avrc_->MsgReq(handle, label, ctype, pkt); in SendMessage()
Davrcp_internal.h59 virtual uint16_t MsgReq(uint8_t handle, uint8_t label, uint8_t ctype, BT_HDR* p_pkt) = 0;
/packages/modules/Bluetooth/system/stack/test/
Dstack_avrcp_test.cc39 msg.hdr.ctype = AVRC_CMD_STATUS; in TEST_F()
177 .ctype = AVRC_CMD_NOTIF, in TEST_F()
/packages/modules/Bluetooth/system/stack/fuzzers/
Davrc_fuzzer.cc134 if (p_msg->hdr.ctype == AVCT_CMD) { in msg_cb()
145 } else if (p_msg->hdr.ctype == AVCT_RSP) { in msg_cb()
/packages/modules/Bluetooth/system/stack/test/fuzzers/avrc/
Dfuzz_avrc.cc157 msg.hdr.ctype = data[0] % 4; in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/stack/include/
Davrc_api.h488 uint16_t AVRC_MsgReq(uint8_t handle, uint8_t label, uint8_t ctype, BT_HDR* p_pkt,
Davrc_defs.h848 uint8_t ctype; /* Command type. */ member
/packages/modules/Bluetooth/system/btif/src/
Dbtif_rc.cc126 uint8_t ctype; member
405 p_dev->rc_pdu_info[i].ctype = 0; in initialize_device()
956 p_data->meta_msg.p_msg->hdr.opcode, p_data->meta_msg.p_msg->hdr.ctype); in btif_rc_handler()
972 if (p_data->meta_msg.p_msg->hdr.ctype == AVRC_CMD) { in btif_rc_handler()
974 } else if (p_data->meta_msg.p_msg->hdr.ctype == AVRC_RSP) { in btif_rc_handler()
1020 uint8_t ctype = AVRC_RSP_REJ; in send_reject_response() local
1038 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg); in send_reject_response()
2424 pmeta_msg->p_msg->vendor.hdr.ctype); in handle_avk_rc_metamsg_rsp()
/packages/modules/Bluetooth/system/btif/avrcp/
Davrcp_service.cc133 uint16_t MsgReq(uint8_t handle, uint8_t label, uint8_t ctype, BT_HDR* p_pkt) override { in MsgReq() argument
134 return AVRC_MsgReq(handle, label, ctype, p_pkt, true); in MsgReq()