/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_sdp.cc | 120 if (!get_legacy_stack_sdp_api()->handle.SDP_AddProtocolList( in create_base_record() 127 if (!get_legacy_stack_sdp_api()->handle.SDP_AddAttribute( in create_base_record() 134 if (!get_legacy_stack_sdp_api()->handle.SDP_AddUuidSequence( in create_base_record() 160 uint32_t handle = get_legacy_stack_sdp_api()->handle.SDP_CreateRecord(); in add_sdp_by_uuid() local 161 if (handle == 0) { in add_sdp_by_uuid() 179 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid() 189 if (!get_legacy_stack_sdp_api()->handle.SDP_AddSequence( in add_sdp_by_uuid() 190 handle, (uint16_t)ATTR_ID_SERVICE_CLASS_ID_LIST, 1, &type, &type_len, in add_sdp_by_uuid() 196 name, handle); in add_sdp_by_uuid() 200 tBTA_CUSTOM_UUID curr = {uuid, handle}; in add_sdp_by_uuid() [all …]
|
D | btif_sdp_server.cc | 230 int handle = -1; in free_sdp_slot() local 234 return handle; in free_sdp_slot() 239 handle = sdp_slots[id].sdp_handle; in free_sdp_slot() 252 handle = -1; in free_sdp_slot() 254 return handle; in free_sdp_slot() 279 static void set_sdp_handle(int id, int handle) { in set_sdp_handle() argument 281 sdp_slots[id].sdp_handle = handle; in set_sdp_handle() 286 int handle; in create_sdp_record() local 288 handle = alloc_sdp_slot(record); in create_sdp_record() 289 log::verbose("handle = 0x{:08x}", handle); in create_sdp_record() [all …]
|
/packages/modules/adb/client/ |
D | usb_windows.cpp | 91 int register_new_device(usb_handle* handle); 94 int recognized_device(usb_handle* handle); 114 int usb_write(usb_handle* handle, const void* data, int len); 117 int usb_read(usb_handle* handle, void* data, int len); 120 void usb_cleanup_handle(usb_handle* handle); 123 void usb_kick(usb_handle* handle); 126 int usb_close(usb_handle* handle); 153 int register_new_device(usb_handle* handle) { in register_new_device() argument 154 if (nullptr == handle) return 0; in register_new_device() 159 if (known_device_locked(handle->interface_name)) { in register_new_device() [all …]
|
D | usb_osx.cpp | 90 static void usb_kick_locked(usb_handle* handle); 103 static void AddDevice(std::unique_ptr<usb_handle> handle) { in AddDevice() argument 104 handle->mark = true; in AddDevice() 106 g_usb_handles.push_back(std::move(handle)); in AddDevice() 314 std::unique_ptr<usb_handle> handle = in AndroidInterfaceAdded() local 316 if (handle == nullptr) { in AndroidInterfaceAdded() 321 handle->devpath = devpath; in AndroidInterfaceAdded() 322 usb_handle* handle_p = handle.get(); in AndroidInterfaceAdded() 324 LOG(INFO) << "reported max packet size for " << serial << " is " << handle->max_packet_size; in AndroidInterfaceAdded() 325 AddDevice(std::move(handle)); in AndroidInterfaceAdded() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/ |
D | acl_connection_handler.cc | 50 bool AclConnectionHandler::HasHandle(uint16_t handle) const { in HasHandle() 51 return acl_connections_.count(handle) != 0; in HasHandle() 54 bool AclConnectionHandler::HasScoHandle(uint16_t handle) const { in HasScoHandle() 55 return sco_connections_.count(handle) != 0; in HasScoHandle() 148 uint16_t handle = GetUnusedHandle(); in CreateConnection() local 150 handle, in CreateConnection() 156 return handle; in CreateConnection() 166 uint16_t handle = GetUnusedHandle(); in CreateLeConnection() local 167 acl_connections_.emplace(handle, in CreateLeConnection() 170 return handle; in CreateLeConnection() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | HandleMap.java | 37 public int handle = 0; field in HandleMap.Entry 46 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() argument 49 this.handle = handle; in Entry() 57 int handle, in Entry() argument 64 this.handle = handle; in Entry() 71 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { in Entry() argument 74 this.handle = handle; in Entry() 79 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() argument 82 this.handle = handle; in Entry() 105 int handle, in addService() argument [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallerInfoLookupHelper.java | 47 void onCallerInfoQueryComplete(Uri handle, @Nullable CallerInfo info); in onCallerInfoQueryComplete() argument 48 void onContactPhotoQueryComplete(Uri handle, CallerInfo info); in onContactPhotoQueryComplete() argument 86 public CompletableFuture<Pair<Uri, CallerInfo>> startLookup(final Uri handle) { in startLookup() argument 90 final String number = handle.getSchemeSpecificPart(); in startLookup() 94 callerInfoFuture.complete(new Pair<>(handle, null)); in startLookup() 101 public void onCallerInfoQueryComplete(Uri handle, CallerInfo info) { in startLookup() 103 Log.piiHandle(handle)); in startLookup() 105 callerInfoFuture.complete(new Pair<>(handle, info)); in startLookup() 109 public void onContactPhotoQueryComplete(Uri handle, CallerInfo info) { in startLookup() 115 startLookup(handle, listener); in startLookup() [all …]
|
D | MmiUtils.java | 95 private static boolean isCallForwardingMmiCode(Uri handle) { in isCallForwardingMmiCode() argument 97 String dialString = handle.getSchemeSpecificPart(); in isCallForwardingMmiCode() 113 private static boolean isTelScheme(Uri handle) { in isTelScheme() argument 114 return (handle != null && handle.getSchemeSpecificPart() != null && in isTelScheme() 115 handle.getScheme() != null && in isTelScheme() 116 handle.getScheme().equals(PhoneAccount.SCHEME_TEL)); in isTelScheme() 119 private boolean isDangerousVerticalServiceCode(Uri handle) { in isDangerousVerticalServiceCode() argument 120 if (isTelScheme(handle)) { in isDangerousVerticalServiceCode() 121 String dialedNumber = handle.getSchemeSpecificPart(); in isDangerousVerticalServiceCode() 148 public boolean isPotentialInCallMMICode(Uri handle) { in isPotentialInCallMMICode() argument [all …]
|
/packages/modules/Bluetooth/system/bta/jv/ |
D | bta_jv_api.cc | 75 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR; in BTA_JvEnable() 206 tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t handle) { in BTA_JvDeleteRecord() argument 207 log::verbose("handle:{}", handle); in BTA_JvDeleteRecord() 209 do_in_main_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle)); in BTA_JvDeleteRecord() 255 tBTA_JV_STATUS BTA_JvL2capClose(uint32_t handle) { in BTA_JvL2capClose() argument 256 log::verbose("handle:{}", handle); in BTA_JvL2capClose() 258 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capClose() 262 FROM_HERE, Bind(&bta_jv_l2cap_close, handle, &bta_jv_cb.l2c_cb[handle])); in BTA_JvL2capClose() 328 tBTA_JV_STATUS BTA_JvL2capRead(uint32_t handle, uint32_t req_id, in BTA_JvL2capRead() argument 330 log::verbose("handle:{}, req_id:{}, len:{}", handle, req_id, len); in BTA_JvL2capRead() [all …]
|
D | bta_jv_act.cc | 135 if (bta_jv_cb.rfc_cb[i].handle) used++; in get_rfc_cb_used() 222 if (0 == bta_jv_cb.rfc_cb[i].handle) { in bta_jv_alloc_rfc_cb() 225 p_cb->handle = (i + 1) | BTA_JV_RFCOMM_MASK; in bta_jv_alloc_rfc_cb() 231 log::verbose("port_handle={}, handle=0x{:x}", port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb() 234 p_pcb->handle = p_cb->handle; in bta_jv_alloc_rfc_cb() 262 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb() 281 uint32_t handle; in bta_jv_rfc_port_to_cb() local 284 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_cb() 285 handle = bta_jv_cb.port_cb[port_handle - 1].handle; in bta_jv_rfc_port_to_cb() 286 handle &= BTA_JV_RFC_HDL_MASK; in bta_jv_rfc_port_to_cb() [all …]
|
/packages/modules/Bluetooth/system/stack/pan/ |
D | pan_main.cc | 95 void pan_conn_ind_cb(uint16_t handle, const RawAddress& p_bda, in pan_conn_ind_cb() argument 106 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb() 112 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb() 122 handle, pan_cb.role, local_uuid16, remote_uuid16, in pan_conn_ind_cb() 130 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb() 138 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb() 152 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb() 184 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb() 198 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb() 207 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb() [all …]
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | connection_handler.cc | 161 uint8_t handle = it->first; in DisconnectDevice() local 162 return avrc_->Close(handle) == AVRC_SUCCESS; in DisconnectDevice() 235 uint8_t handle = 0; in AvrcpConnect() local 236 uint16_t status = avrc_->Open(&handle, &open_cb, bdaddr); in AvrcpConnect() 237 log::info("handle=0x{:x} status= 0x{:x}", handle, status); in AvrcpConnect() 241 void ConnectionHandler::InitiatorControlCb(uint8_t handle, uint8_t event, in InitiatorControlCb() argument 246 log::info("handle=0x{:x} result=0x{:x} addr={}", handle, result, in InitiatorControlCb() 264 avrc_->OpenBrowse(handle, AVCT_INT); in InitiatorControlCb() 272 base::Unretained(this), handle); in InitiatorControlCb() 273 auto&& ctrl_mtu = avrc_->GetPeerMtu(handle) - AVCT_HDR_LEN; in InitiatorControlCb() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ |
D | ProfileHelperTest.kt | 56 assertThat(helper.personalHandle).isEqualTo(personalProfile.primary.handle) in assertProfiles() 60 assertThat(helper.cloneHandle).isEqualTo(it.handle) in assertProfiles() 70 assertThat(helper.workHandle).isEqualTo(it.primary.handle) in assertProfiles() 81 assertThat(helper.privateHandle).isEqualTo(it.primary.handle) in assertProfiles() 93 val interactor = UserInteractor(repository, launchedAs = personalUser.handle) in <lambda>() 107 assertThat(helper.getQueryIntentsHandle(personalUser.handle)) in <lambda>() 108 .isEqualTo(personalProfile.primary.handle) in <lambda>() 109 assertThat(helper.tabOwnerUserHandleForLaunch).isEqualTo(personalProfile.primary.handle) in <lambda>() 115 val interactor = UserInteractor(repository, launchedAs = personalUser.handle) in <lambda>() 129 assertThat(helper.getQueryIntentsHandle(personalUser.handle)).isEqualTo(personalUser.handle) in <lambda>() [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_hcic_hcicmds.h | 70 std::function<void(uint16_t handle, uint16_t packet_types)> body{ 72 void operator()(uint16_t handle, uint16_t packet_types) { in operator() 73 body(handle, packet_types); in operator() 82 std::function<void(uint16_t handle)> body{[](uint16_t /* handle */) {}}; 83 void operator()(uint16_t handle) { body(handle); }; in operator() 158 std::function<void(uint16_t handle)> body{[](uint16_t /* handle */) {}}; 159 void operator()(uint16_t handle) { body(handle); }; in operator() 167 std::function<void(uint16_t handle)> body{[](uint16_t /* handle */) {}}; 168 void operator()(uint16_t handle) { body(handle); }; in operator() 176 std::function<void(uint16_t handle, uint16_t max_hold_period, [all …]
|
D | mock_btif_bta_pan_co_rx.h | 48 std::function<void(uint16_t handle, uint8_t app_id)> body{ 50 void operator()(uint16_t handle, uint8_t app_id) { body(handle, app_id); }; in operator() 58 std::function<void(uint16_t handle, bool indication, tBTA_PAN_STATUS result, 63 void operator()(uint16_t handle, bool indication, tBTA_PAN_STATUS result, in operator() 65 body(handle, indication, result, len, p_filters); in operator() 74 std::function<void(uint16_t handle, bool indication, tBTA_PAN_STATUS result, 79 void operator()(uint16_t handle, bool indication, tBTA_PAN_STATUS result, in operator() 81 body(handle, indication, result, len, p_filters); in operator() 89 std::function<void(uint16_t handle, uint8_t app_id, bool enable)> body{ 91 void operator()(uint16_t handle, uint8_t app_id, bool enable) { in operator() [all …]
|
/packages/modules/Bluetooth/system/hci/src/ |
D | packet_fragmenter.cc | 53 #define HCI_ISO_SET_CONTINUATION_FLAG(handle) \ argument 54 (((handle)&0x4FFF) | (0x0001 << 12)) 55 #define HCI_ISO_SET_COMPLETE_FLAG(handle) (((handle)&0x4FFF) | (0x0002 << 12)) argument 56 #define HCI_ISO_SET_END_FRAG_FLAG(handle) (((handle)&0x4FFF) | (0x0003 << 12)) argument 57 #define HCI_ISO_SET_TIMESTAMP_FLAG(handle) (((handle)&0x3FFF) | (0x0001 << 14)) argument 59 #define HCI_ISO_GET_TS_FLAG(handle) (((handle) >> 14) & 0x0001) argument 64 #define APPLY_CONTINUATION_FLAG(handle) (((handle)&0xCFFF) | 0x1000) argument 65 #define APPLY_START_FLAG(handle) (((handle)&0xCFFF) | 0x2000) argument 67 #define GET_BOUNDARY_FLAG(handle) (((handle) >> 12) & 0x0003) argument 68 #define GET_BROADCAST_FLAG(handle) (((handle) >> 14) & 0x0003) argument [all …]
|
/packages/modules/Bluetooth/system/stack/hid/ |
D | hidd_api.cc | 145 tHID_STATUS HID_DevAddRecord(uint32_t handle, char* p_name, char* p_description, in HID_DevAddRecord() argument 155 result &= get_legacy_stack_sdp_api()->handle.SDP_AddServiceClassIdList( in HID_DevAddRecord() 156 handle, 1, &uuid); in HID_DevAddRecord() 170 result &= get_legacy_stack_sdp_api()->handle.SDP_AddProtocolList( in HID_DevAddRecord() 171 handle, 2, proto_list); in HID_DevAddRecord() 176 result &= get_legacy_stack_sdp_api()->handle.SDP_AddLanguageBaseAttrIDList( in HID_DevAddRecord() 177 handle, LANG_ID_CODE_ENGLISH, LANG_ID_CHAR_ENCODE_UTF8, in HID_DevAddRecord() 192 result &= get_legacy_stack_sdp_api()->handle.SDP_AddAdditionProtoLists( in HID_DevAddRecord() 193 handle, 1, &add_proto_list); in HID_DevAddRecord() 204 result &= get_legacy_stack_sdp_api()->handle.SDP_AddAttribute( in HID_DevAddRecord() [all …]
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | database_builder.cc | 41 void DatabaseBuilder::AddService(uint16_t handle, uint16_t end_handle, in AddService() argument 45 database.services.back().end_handle < handle) { in AddService() 47 .handle = handle, in AddService() 57 vec.begin(), vec.end(), handle, in AddService() 58 [](Service s, uint16_t handle) { return s.end_handle < handle; }); in AddService() argument 62 .handle = handle, in AddService() 69 services_to_discover.insert({handle, end_handle}); in AddService() 72 void DatabaseBuilder::AddIncludedService(uint16_t handle, const Uuid& uuid, in AddIncludedService() argument 75 Service* service = FindService(database.services, handle); in AddIncludedService() 88 .handle = handle, in AddIncludedService() [all …]
|
D | database.cc | 46 bool HandleInRange(const Service& svc, uint16_t handle) { in HandleInRange() argument 47 return handle >= svc.handle && handle <= svc.end_handle; in HandleInRange() 56 Service* FindService(std::list<Service>& services, uint16_t handle) { in FindService() argument 58 if (handle >= service.handle && handle <= service.end_handle) in FindService() 69 tmp << "Service: handle=" << loghex(service.handle) in ToString() 74 tmp << "\t Included service: handle=" << loghex(is.handle) in ToString() 87 tmp << "\t\t Descriptor: handle=" << loghex(d.handle) in ToString() 102 nv_attr.push_back({service.handle, in Serialize() 110 nv_attr.push_back({p_isvc.handle, in Serialize() 112 {.included_service = {.handle = p_isvc.start_handle, in Serialize() [all …]
|
/packages/modules/Bluetooth/system/stack/rfcomm/ |
D | port_api.cc | 152 is_server, mtu, uuid, dlci, fmt::ptr(p_mcb), p_port->handle); in RFCOMM_CreateConnectionWithSecurity() 153 *p_handle = p_port->handle; in RFCOMM_CreateConnectionWithSecurity() 169 *p_handle = p_port->handle; in RFCOMM_CreateConnectionWithSecurity() 286 static tPORT* get_port_from_handle(uint16_t handle) { in get_port_from_handle() argument 288 if ((handle == 0) || (handle > MAX_RFC_PORTS)) { in get_port_from_handle() 291 return &rfc_cb.port.port[handle - 1]; in get_port_from_handle() 303 int RFCOMM_RemoveConnection(uint16_t handle) { in RFCOMM_RemoveConnection() argument 304 log::verbose("RFCOMM_RemoveConnection() handle:{}", handle); in RFCOMM_RemoveConnection() 306 tPORT* p_port = get_port_from_handle(handle); in RFCOMM_RemoveConnection() 308 log::error("Unable to get RFCOMM port control block bad handle:{}", handle); in RFCOMM_RemoveConnection() [all …]
|
/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_api.cc | 109 static void avrc_ctrl_cback(uint8_t handle, uint8_t event, uint16_t result, in avrc_ctrl_cback() argument 113 if (event <= AVRC_MAX_RCV_CTRL_EVT && avrc_cb.ccb[handle].ctrl_cback) { in avrc_ctrl_cback() 119 avrc_cb.ccb[handle].ctrl_cback.Run(handle, avrc_event, result, peer_addr); in avrc_ctrl_cback() 124 avrc_flush_cmd_q(handle); in avrc_ctrl_cback() 125 alarm_free(avrc_cb.ccb_int[handle].tle); in avrc_ctrl_cback() 126 avrc_cb.ccb_int[handle].tle = NULL; in avrc_ctrl_cback() 139 void avrc_flush_cmd_q(uint8_t handle) { in avrc_flush_cmd_q() argument 140 log::verbose("AVRC: Flushing command queue for handle=0x{:02x}", handle); in avrc_flush_cmd_q() 141 avrc_cb.ccb_int[handle].flags &= ~AVRC_CB_FLAGS_RSP_PENDING; in avrc_flush_cmd_q() 143 alarm_cancel(avrc_cb.ccb_int[handle].tle); in avrc_flush_cmd_q() [all …]
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | gatt_database.rs | 48 pub handle: AttHandle, field 63 pub handle: AttHandle, field 79 pub handle: AttHandle, field 176 attributes.insert(attribute.handle, AttAttributeWithBackingValue { attribute, value }) in add_service_with_handles() 184 handle: service.handle, in add_service_with_handles() 204 let declaration_handle = AttHandle(characteristic.handle.0 - 1); in add_service_with_handles() 208 handle: declaration_handle, in add_service_with_handles() 227 handle: characteristic.handle.into(), in add_service_with_handles() 240 handle: characteristic.handle, in add_service_with_handles() 251 handle: descriptor.handle, in add_service_with_handles() [all …]
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingManagerTest.java | 190 SessionHandle handle = sessionHandleCaptor.getValue(); in testCorrectCallbackInvoked() local 192 rangingManager.onRangingOpened(handle); in testCorrectCallbackInvoked() 195 rangingManager.onRangingStarted(handle, PARAMS); in testCorrectCallbackInvoked() 198 rangingManager.onRangingStartFailed(handle, REASON, PARAMS); in testCorrectCallbackInvoked() 202 rangingManager.onRangingResult(handle, report); in testCorrectCallbackInvoked() 205 rangingManager.onRangingReconfigured(handle, PARAMS); in testCorrectCallbackInvoked() 208 rangingManager.onRangingReconfigureFailed(handle, REASON, PARAMS); in testCorrectCallbackInvoked() 211 rangingManager.onRangingStopped(handle, REASON, PARAMS); in testCorrectCallbackInvoked() 214 rangingManager.onRangingStopFailed(handle, REASON, PARAMS); in testCorrectCallbackInvoked() 217 rangingManager.onControleeAdded(handle, PARAMS); in testCorrectCallbackInvoked() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | VoicemailChannelUtils.java | 60 for (PhoneAccountHandle handle : getAllEligableAccounts(context)) { in getAllChannelIds() 61 result.add(getChannelIdForAccount(handle)); in getAllChannelIds() 75 for (PhoneAccountHandle handle : getAllEligableAccounts(context)) { in createAllChannels() 76 createVoicemailChannelForAccount(context, handle); in createAllChannels() 82 static String getChannelId(@NonNull Context context, @Nullable PhoneAccountHandle handle) { in getChannelId() argument 94 if (handle == null) { in getChannelId() 102 if (!isChannelAllowedForAccount(context, handle)) { in getChannelId() 110 String channelId = getChannelIdForAccount(handle); in getChannelId() 115 createVoicemailChannelForAccount(context, handle); in getChannelId() 125 private static String getChannelIdForAccount(@NonNull PhoneAccountHandle handle) { in getChannelIdForAccount() argument [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ProfileHelper.kt | 52 launchedAsProfile.primary.handle -> launchedAsProfile.primary 53 launchedAsProfile.clone?.handle -> requireNotNull(launchedAsProfile.clone) 62 val personalHandle = personalProfile.primary.handle 63 val workHandle = workProfile?.primary?.handle 64 val privateHandle = privateProfile?.primary?.handle 65 val cloneHandle = personalProfile.clone?.handle 77 launchedAsProfile.primary.handle 80 launchedByUser.handle 83 fun findProfile(handle: UserHandle): Profile? { in findProfile() 84 return profiles.firstOrNull { it.primary.handle == handle || it.clone?.handle == handle } in findProfile() [all …]
|