Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 126) sorted by relevance

123456

/system/bt/gd/hci/
Dhci_metrics_logging.cc29 ASSERT(event_view.IsValid()); in log_hci_event()
33 ASSERT(command_view->IsValid()); in log_hci_event()
39 ASSERT(command_view->IsValid()); in log_hci_event()
41 ASSERT(response_view.IsValid()); in log_hci_event()
48 ASSERT(le_meta_event_view.IsValid()); in log_hci_event()
59 ASSERT(command_view->IsValid()); in log_link_layer_connection_command_status()
74 ASSERT(connection_management_command_view.IsValid()); in log_link_layer_connection_command_status()
78 ASSERT(create_connection_view.IsValid()); in log_link_layer_connection_command_status()
87 ASSERT(create_connection_cancel_view.IsValid()); in log_link_layer_connection_command_status()
95 ASSERT(disconnect_view.IsValid()); in log_link_layer_connection_command_status()
[all …]
/system/bt/gd/grpc/
Dgrpc_module.cc30 ASSERT(!started_); in Start()
34 ASSERT(!started_); in Stop()
38 ASSERT(!started_); in StartServer()
51 ASSERT(server_ != nullptr); in StartServer()
59 ASSERT(started_); in StopServer()
72 ASSERT(!started_); in Register()
78 ASSERT(!started_); in Unregister()
87 ASSERT(false); in Unregister()
/system/bt/gd/neighbor/
Dinquiry.cc102 ASSERT(command_sync_ != nullptr); in OnCommandCompleteSync()
110 ASSERT(packet.IsValid()); in OnCommandComplete()
111 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
116 ASSERT(packet.IsValid()); in OnCommandComplete()
117 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
122 ASSERT(packet.IsValid()); in OnCommandComplete()
123 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
128 ASSERT(packet.IsValid()); in OnCommandComplete()
129 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
134 ASSERT(packet.IsValid()); in OnCommandComplete()
[all …]
Dpage.cc67 ASSERT(packet.IsValid()); in OnCommandComplete()
68 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
73 ASSERT(packet.IsValid()); in OnCommandComplete()
74 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
81 ASSERT(packet.IsValid()); in OnCommandComplete()
82 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
87 ASSERT(packet.IsValid()); in OnCommandComplete()
88 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
94 ASSERT(packet.IsValid()); in OnCommandComplete()
95 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
[all …]
Dname.cc94 ASSERT(packet.IsValid()); in OnCommandComplete()
95 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
97 ASSERT(cancel_callback_handler_map_.find(address) != cancel_callback_handler_map_.end()); in OnCommandComplete()
107 ASSERT(status.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandStatus()
112 ASSERT(packet.IsValid()); in OnCommandStatus()
125 ASSERT(packet.IsValid()); in OnEvent()
127 ASSERT(read_callback_handler_map_.find(address) != read_callback_handler_map_.end()); in OnEvent()
206 ASSERT(callback); in ReadRemoteNameRequest()
207 ASSERT(handler != nullptr); in ReadRemoteNameRequest()
221 ASSERT(callback); in CancelRemoteNameRequest()
[all …]
Ddiscoverability.cc70 ASSERT(packet.IsValid()); in OnCommandComplete()
71 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
77 ASSERT(packet.IsValid()); in OnCommandComplete()
78 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
83 ASSERT(packet.IsValid()); in OnCommandComplete()
84 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
94 ASSERT(laps.size() <= num_supported_iac_); in StartDiscoverability()
/system/bt/gd/os/linux_generic/
Dreactor.cc66 ASSERT(control_fd_ != -1); in Reactor()
71 ASSERT(result != -1); in Reactor()
77 ASSERT(result != -1); in ~Reactor()
80 ASSERT(result != -1); in ~Reactor()
83 ASSERT(result != -1); in ~Reactor()
88 ASSERT(!already_running); in Run()
100 ASSERT(count != -1); in Run()
110 ASSERT(event.events != 0u); in Run()
165 ASSERT(control != -1); in Stop()
183 ASSERT(register_fd != -1); in Register()
[all …]
Drepeating_alarm.cc40 ASSERT(fd_ != -1); in RepeatingAlarm()
51 ASSERT(close_status != -1); in ~RepeatingAlarm()
60 ASSERT(result == 0); in Schedule()
69 ASSERT(result == 0); in Cancel()
79 ASSERT(bytes_read == static_cast<ssize_t>(sizeof(uint64_t))); in on_fire()
Dalarm.cc52 ASSERT(close_status != -1); in ~Alarm()
60 ASSERT(result == 0); in Schedule()
69 ASSERT(result == 0); in Cancel()
79 ASSERT(bytes_read == static_cast<ssize_t>(sizeof(uint64_t))); in on_fire()
80 ASSERT(times_invoked == static_cast<uint64_t>(1)); in on_fire()
Dhandler.cc40 ASSERT(fd_ != -1); in Handler()
53 ASSERT(close_status != -1); in ~Handler()
67 ASSERT(write_result != -1); in Post()
88 ASSERT(reactable_ == nullptr); in WaitUntilStopped()
89 ASSERT(thread_->GetReactor()->WaitForUnregisteredReactable(timeout)); in WaitUntilStopped()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Ddual_mode_controller.cc85 ASSERT(Address::FromString("3C:5A:B4:04:05:06", public_address)); in DualModeController()
303 ASSERT(command_view.IsValid()); in SniffSubrating()
328 ASSERT(acl_packet.IsValid()); in HandleAcl()
368 ASSERT(iso.IsValid()); in HandleIso()
375 ASSERT(command_packet.IsValid()); in HandleCommand()
453 ASSERT(command_view.IsValid()); in Reset()
465 ASSERT(command_view.IsValid()); in ReadBufferSize()
479 ASSERT(command_view.IsValid()); in ReadEncryptionKeySize()
489 ASSERT(command_view.IsValid()); in HostBufferSize()
497 ASSERT(command_view.IsValid()); in ReadLocalVersionInformation()
[all …]
/system/bt/gd/l2cap/internal/
Ddata_pipeline_manager.cc31 ASSERT(sender_map_.find(cid) == sender_map_.end()); in AttachChannel()
37 ASSERT(sender_map_.find(cid) != sender_map_.end()); in DetachChannel()
51 ASSERT(sender_map_.find(cid) != sender_map_.end()); in OnPacketSent()
56 ASSERT(sender_map_.find(cid) != sender_map_.end()); in UpdateClassicConfiguration()
61 ASSERT(sender_map_.find(cid) != sender_map_.end()); in SetChannelTxPriority()
Ddynamic_channel_impl.cc36 ASSERT(cid_ > 0); in DynamicChannelImpl()
37 ASSERT(remote_cid_ > 0); in DynamicChannelImpl()
38 ASSERT(link_ != nullptr); in DynamicChannelImpl()
39 ASSERT(l2cap_handler_ != nullptr); in DynamicChannelImpl()
/system/bt/gd/dumpsys/internal/
Dfilter_internal.cc36 ASSERT(table != nullptr); in ScrubFromTable()
98 ASSERT(objects != nullptr); in FindReflectionObject()
99 ASSERT(name != nullptr); in FindReflectionObject()
109 ASSERT(table != nullptr); in FilterTypeBool()
117 ASSERT(table != nullptr); in FilterTypeInteger()
118 ASSERT(flatbuffers::IsInteger(field.type()->base_type())); in FilterTypeInteger()
155 ASSERT(table != nullptr); in FilterTypeFloat()
156 ASSERT(flatbuffers::IsFloat(field.type()->base_type())); in FilterTypeFloat()
190 ASSERT(table != nullptr); in FilterTypeString()
191 ASSERT(field.type()->base_type() == reflection::BaseType::String); in FilterTypeString()
[all …]
/system/bt/gd/rust/hal/src/ffi/
Dhidl.cc34 ASSERT(status == HidlStatus::SUCCESS); in initializationComplete()
68 ASSERT(bt_hci_ == nullptr); in start_hal()
77 ASSERT(bt_hci_ != nullptr); in start_hal()
90 ASSERT(bt_hci_ != nullptr); in stop_hal()
103 ASSERT(bt_hci_ != nullptr); in send_command()
108 ASSERT(bt_hci_ != nullptr); in send_acl()
113 ASSERT(bt_hci_ != nullptr); in send_sco()
123 ASSERT(bt_hci_ != nullptr); in send_iso()
/system/bt/gd/hci/acl_manager/
Dle_acl_connection.cc30 ASSERT(queued_callbacks_.empty()); in ~LeAclConnectionTracker()
89 ASSERT(!callbacks_given_); in GetEventCallbacks()
129 ASSERT(status.IsValid()); in Disconnect()
130 ASSERT(status.GetCommandOpCode() == OpCode::DISCONNECT); in Disconnect()
132 ASSERT(disconnect_status.IsValid()); in Disconnect()
154 ASSERT(status.IsValid()); in LeConnectionUpdate()
155 ASSERT(status.GetCommandOpCode() == OpCode::LE_CONNECTION_UPDATE); in LeConnectionUpdate()
164 ASSERT(status.IsValid()); in ReadRemoteVersionInformation()
165 ASSERT(status.GetCommandOpCode() == OpCode::READ_REMOTE_VERSION_INFORMATION); in ReadRemoteVersionInformation()
Dclassic_impl.h146 ASSERT(client_callbacks_ == nullptr); in handle_register_callbacks()
147 ASSERT(client_handler_ == nullptr); in handle_register_callbacks()
161 ASSERT(request.IsValid()); in on_incoming_connection()
217 ASSERT(client_callbacks_ != nullptr); in create_connection()
228 ASSERT(status.IsValid()); in create_connection()
229 ASSERT(status.GetCommandOpCode() == OpCode::CREATE_CONNECTION); in create_connection()
238 ASSERT(connection_complete.IsValid()); in on_connection_complete()
273 ASSERT(conn_pair.second); // Make sure it's not a duplicate in on_connection_complete()
299 ASSERT(status.IsValid()); in on_connection_complete()
300ASSERT(status.GetCommandOpCode() == OpCode::CREATE_CONNECTION); in on_connection_complete()
[all …]
/system/bt/main/shim/
Dconfig.cc47 ASSERT(value != nullptr); in GetInt()
66 ASSERT(value != nullptr); in GetUint64()
86 ASSERT(value != nullptr); in GetStr()
87 ASSERT(size_bytes != nullptr); in GetStr()
119 ASSERT(value != nullptr); in GetBin()
120 ASSERT(length != nullptr); in GetBin()
144 ASSERT(value != nullptr); in SetBin()
Dstack.cc71 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartIdleMode()
141 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartEverything()
142 ASSERT(stack_manager_.GetInstance<shim::Dumpsys>() != nullptr); in StartEverything()
233 ASSERT(is_running_); in GetStackManager()
239 ASSERT(is_running_); in GetStackManager()
245 ASSERT(is_running_); in GetAcl()
252 ASSERT(is_running_); in LinkPolicy()
259 ASSERT(is_running_); in GetBtm()
265 ASSERT(is_running_); in GetHandler()
/system/bt/gd/iso/internal/
Diso_manager_impl.cc115 ASSERT(command_complete.IsValid()); in SetCigParametersComplete()
119 ASSERT(setCigParamsComplete.IsValid()); in SetCigParametersComplete()
125 ASSERT(cig_id_back_from_ctrl == cig_id); in SetCigParametersComplete()
126 ASSERT(conn_handles.size() == cis_configs.size()); in SetCigParametersComplete()
188 ASSERT(command_complete.IsValid()); in SetCigParametersTestComplete()
192 ASSERT(setCigParamsComplete.IsValid()); in SetCigParametersTestComplete()
198 ASSERT(cig_id_back_from_ctrl == cig_id); in SetCigParametersTestComplete()
199 ASSERT(conn_handles.size() == cis_configs.size()); in SetCigParametersTestComplete()
239 ASSERT(IsKnownCig(cig_id)); in RemoveCig()
247 ASSERT(command_complete.IsValid()); in RemoveCigComplete()
[all …]
/system/bt/gd/l2cap/classic/
Ddynamic_channel_service.h53 ASSERT(IsPsmValid(psm)); in DynamicChannelService()
54 ASSERT(manager_ != nullptr); in DynamicChannelService()
55 ASSERT(l2cap_layer_handler_ != nullptr); in DynamicChannelService()
/system/bt/gd/security/pairing/
Dclassic_pairing_handler.cc28 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayYesNo()
37 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayYesNo()
46 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayPasskey()
55 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayPasskeyInput()
64 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayPinCodeInput()
73 ASSERT(user_interface_handler_ != nullptr); in NotifyUiDisplayCancel()
167 ASSERT(packet.IsValid()); in OnReceive()
172 ASSERT(packet.IsValid()); in OnReceive()
177 ASSERT(packet.IsValid()); in OnReceive()
185 ASSERT(packet.IsValid()); in OnReceive()
[all …]
/system/bt/gd/storage/
Ddevice.cc97 ASSERT(device_type); in Le()
98 ASSERT(device_type == DeviceType::LE || device_type == DeviceType::DUAL); in Le()
104 ASSERT(device_type); in Classic()
105 ASSERT(device_type == DeviceType::BR_EDR || device_type == DeviceType::DUAL); in Classic()
112 ASSERT(addr.has_value()); in GetAddress()
/system/bt/gd/os/
Dmock_queue.h41 ASSERT(registered_handler == nullptr); in RegisterEnqueue()
47 ASSERT(registered_handler != nullptr); in UnregisterEnqueue()
70 ASSERT(registered_handler == nullptr); in RegisterDequeue()
76 ASSERT(registered_handler != nullptr); in UnregisterDequeue()
/system/bt/gd/l2cap/classic/internal/
Dfixed_channel_impl.cc33 ASSERT(link_ != nullptr); in FixedChannelImpl()
34 ASSERT(l2cap_handler_ != nullptr); in FixedChannelImpl()
70 ASSERT(!acquired_); in Acquire()
85 ASSERT(!acquired_); in Release()

123456