Home
last modified time | relevance | path

Searched refs:ASSERT_LOG (Results 1 – 25 of 50) sorted by relevance

12

/system/bt/gd/l2cap/classic/internal/
Dfixed_channel_impl.cc33 ASSERT_LOG(cid_ >= kFirstFixedChannel && cid_ <= kLastFixedChannel, "Invalid cid: %d", cid_); in FixedChannelImpl()
40 ASSERT_LOG(user_handler_ == nullptr, "OnCloseCallback can only be registered once"); in RegisterOnCloseCallback()
51ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
68 ASSERT_LOG(user_handler_ != nullptr, "Must register OnCloseCallback before calling any methods"); in Acquire()
83 ASSERT_LOG(user_handler_ != nullptr, "Must register OnCloseCallback before calling any methods"); in Release()
/system/bt/gd/l2cap/le/internal/
Dfixed_channel_impl.cc41 ASSERT_LOG(cid_ >= kFirstFixedChannel && cid_ <= kLastFixedChannel, "Invalid cid: %d", cid_); in FixedChannelImpl()
48 ASSERT_LOG(user_handler_ == nullptr, "OnCloseCallback can only be registered once"); in RegisterOnCloseCallback()
59ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
76 ASSERT_LOG(user_handler_ != nullptr, "Must register OnCloseCallback before calling any methods"); in Acquire()
91 ASSERT_LOG(user_handler_ != nullptr, "Must register OnCloseCallback before calling any methods"); in Release()
/system/bt/gd/l2cap/internal/
Dfixed_channel_allocator.h47ASSERT_LOG(!IsChannelAllocated((cid)), "Cid 0x%x for link %s is already in use", cid, link_->ToStr… in AllocateChannel()
48 ASSERT_LOG(cid >= kFirstFixedChannel && cid <= kLastFixedChannel, "Cid %d out of bound", cid); in AllocateChannel()
50ASSERT_LOG(elem.second, "Failed to create channel for cid 0x%x link %s", cid, link_->ToString().c_… in AllocateChannel()
57ASSERT_LOG(IsChannelAllocated(cid), "Channel is not in use: cid %d, link %s", cid, link_->ToString… in FreeChannel()
66ASSERT_LOG(IsChannelAllocated(cid), "Channel is not in use: cid %d, link %s", cid, link_->ToString… in FindChannel()
Ddynamic_channel_allocator.cc32 ASSERT_LOG(IsPsmValid(psm), "Psm 0x%x is invalid", psm); in AllocateChannel()
48 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateChannel()
59 ASSERT_LOG(IsPsmValid(psm), "Psm 0x%x is invalid", psm); in AllocateReservedChannel()
67 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateReservedChannel()
Ddynamic_channel_impl.cc49 ASSERT_LOG(user_handler_ == nullptr, "OnCloseCallback can only be registered once"); in RegisterOnCloseCallback()
64ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
/system/bt/gd/os/linux_generic/
Dreactive_semaphore.cc37 ASSERT_LOG(close_status != -1, "close failed: %s", strerror(errno)); in ~ReactiveSemaphore()
43 ASSERT_LOG(read_result != -1, "decrease failed: %s", strerror(errno)); in Decrease()
49 ASSERT_LOG(write_result != -1, "increase failed: %s", strerror(errno)); in Increase()
Dhandler.cc46 ASSERT_LOG(was_cleared(), "Handlers must be cleared before they are destroyed"); in ~Handler()
71 ASSERT_LOG(!was_cleared(), "Handlers must only be cleared once"); in Clear()
99 ASSERT_LOG(read_result != -1, "eventfd read error %d %s", errno, strerror(errno)); in handle_next_event()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal.cc231 ASSERT_LOG(received_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
240 ASSERT_LOG(received_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
241 ASSERT_LOG(received_size == kHciEvtHeaderSize, "malformed HCI event header received"); in incoming_packet_received()
247 ASSERT_LOG(payload_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
248 ASSERT_LOG(payload_size == hci_evt_parameter_total_length, in incoming_packet_received()
267 ASSERT_LOG(received_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
268 ASSERT_LOG(received_size == kHciAclHeaderSize, "malformed ACL header received"); in incoming_packet_received()
273 ASSERT_LOG(payload_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
274ASSERT_LOG(payload_size == hci_acl_data_total_length, "malformed ACL length received: %d != %d", p… in incoming_packet_received()
276ASSERT_LOG(hci_acl_data_total_length <= kBufSize - kH4HeaderSize - kHciAclHeaderSize, "packet too … in incoming_packet_received()
[all …]
/system/bt/gd/hci/
Ddevice_database.cc73 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in RemoveDevice()
90 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in RemoveDevice()
112 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in RemoveDevice()
156 ASSERT_LOG(RemoveDevice(device), "Failed to remove the device!"); in UpdateDeviceAddress()
163 ASSERT_LOG(RemoveDevice(device), "Failed to remove the device!"); in UpdateDeviceAddress()
170 ASSERT_LOG(RemoveDevice(device), "Failed to remove the device!"); in UpdateDeviceAddress()
199 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in AddDeviceToMap()
225 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in AddDeviceToMap()
251 ASSERT_LOG(WriteToDisk(), "Failed to write data to disk!"); in AddDeviceToMap()
Dhci_layer.cc96 ASSERT_LOG(false, "Timed out waiting for 0x%02hx (%s)", op_code, OpCodeText(op_code).c_str()); in on_hci_timeout()
246 ASSERT_LOG(!command_queue_.empty(), "Unexpected status event with OpCode 0x%02hx (%s)", op_code, in command_status_callback()
248ASSERT_LOG(waiting_command_ == op_code, "Waiting for 0x%02hx (%s), got 0x%02hx (%s)", waiting_comm… in command_status_callback()
250 ASSERT_LOG(command_queue_.front().waiting_for_status_, in command_status_callback()
270ASSERT_LOG(command_queue_.size() > 0, "Unexpected command complete with OpCode 0x%02hx (%s)", op_c… in command_complete_callback()
272ASSERT_LOG(waiting_command_ == op_code, "Waiting for 0x%02hx (%s), got 0x%02hx (%s)", waiting_comm… in command_complete_callback()
274 ASSERT_LOG(!command_queue_.front().waiting_for_status_, in command_complete_callback()
289 ASSERT_LOG(subevent_handlers_.find(subevent_code) != subevent_handlers_.end(), in le_meta_event_callback()
305ASSERT_LOG(event_handlers_.find(event_code) != event_handlers_.end(), "Unhandled event of type 0x%… in hci_event_received_handler()
383ASSERT_LOG(event_handlers_.count(event_code) == 0, "Can not register a second handler for event_co… in handle_register_event_handler()
[all …]
Dcontroller.cc149ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_local_name_complete_handler()
161ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_local_version_information_complete_handler()
170ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_local_supported_commands_complete_handler()
178ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_local_supported_features_complete_handler()
186ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_local_extended_features_complete_handler()
207ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_buffer_size_complete_handler()
219ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in read_controller_mac_address_handler()
228ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in le_read_buffer_size_handler()
236ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in le_read_local_supported_features_handler()
244ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_st… in le_read_supported_states_handler()
[all …]
/system/bt/gd/security/pairing/
Dclassic_pairing_handler.cc147ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
154ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
168ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
176ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
188ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
197ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
223ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
229ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
263ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
394ASSERT_LOG(GetRecord()->GetPseudoAddress().GetAddress() == packet.GetBdAddr(), "Address mismatch"); in OnReceive()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dsecurity_manager.cc58 ASSERT_LOG(ReadKey(addr), "No such key"); in GetKey()
106ASSERT_LOG(io_capability <= static_cast<uint8_t>(IoCapabilityType::NO_INPUT_NO_OUTPUT), "io_capabi… in SetLocalIoCapability()
108 ASSERT_LOG(oob_present_flag <= 1, "oob_present_flag = %hhx ", oob_present_flag); in SetLocalIoCapability()
109ASSERT_LOG(authentication_requirements <= static_cast<uint8_t>(AuthenticationType::GENERAL_BONDING… in SetLocalIoCapability()
/system/bt/gd/
Dstack_manager.cc45 ASSERT_LOG(init_status == std::future_status::ready, "Can't start stack"); in StartUp()
61 ASSERT_LOG(stop_status == std::future_status::ready, "Can't stop stack"); in ShutDown()
Dmodule.cc34 ASSERT_LOG(handler_ != nullptr, "Can't get handler when it's not started"); in GetHandler()
49 ASSERT_LOG(false, "Module was not listed as a dependency in ListDependencies"); in GetDependency()
/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.cc84 ASSERT_LOG(ret != -1, "Error setting O_NONBLOCK %s", strerror(errno)); in SetUpHciServer()
109 ASSERT_LOG(ret != -1, "Error setting O_NONBLOCK %s", strerror(errno)); in SetUpLinkLayerServer()
143 ASSERT_LOG(ret != -1, "Error setting O_NONBLOCK %s", strerror(errno)); in ConnectToRemoteServer()
/system/bt/gd/l2cap/le/
Dfixed_channel_service.cc25 ASSERT_LOG(manager_ != nullptr, "this service is invalid"); in Unregister()
Ddynamic_channel_service.cc28 ASSERT_LOG(manager_ != nullptr, "this service is invalid"); in Unregister()
/system/bt/gd/l2cap/classic/
Dfixed_channel_service.cc26 ASSERT_LOG(manager_ != nullptr, "this service is invalid"); in Unregister()
Ddynamic_channel_service.cc26 ASSERT_LOG(manager_ != nullptr, "this service is invalid"); in Unregister()
/system/bt/gd/packet/
Dpacket_view.cc55 ASSERT_LOG(index < length_, "Index %zu out of bounds", index); in at()
62 ASSERT_LOG(false, "Out of fragments searching for index %zu", index); in at()
Diterator.cc136ASSERT_LOG(index_ < end_ && !(begin_ > index_), "Index %zu out of bounds: [%zu,%zu)", index_, begi… in operator *()
145 ASSERT_LOG(false, "Out of fragments searching for index %zu", index_); in operator *()
/system/bt/gd/security/channel/
Dsecurity_manager_channel.cc38 ASSERT_LOG(listener_ != nullptr, "No listener set!"); in OnHciEventReceived()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dserver_port_factory.cc136 ASSERT_LOG(written == 4, "What happened? written = %d errno = %d", written, errno); in SendResponse()
138ASSERT_LOG(written == static_cast<int>(size), "What happened? written = %d errno = %d", written, e… in SendResponse()
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_channel_transport.cc151 ASSERT_LOG(written == 4, "What happened? written = %d errno = %d", written, errno); in SendResponse()
153ASSERT_LOG(written == static_cast<int>(size), "What happened? written = %d errno = %d", written, e… in SendResponse()

12