Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 81) sorted by relevance

1234

/system/bt/gd/hci/
Dhci_packets_test.cc236 …auto view = WriteExtendedInquiryResponseView::Create(CommandPacketView::Create(packet_bytes_view)); in TEST() local
237 ASSERT_TRUE(view.IsValid()); in TEST()
238 auto gap_data = view.GetExtendedInquiryResponse(); in TEST()
250 auto builder = WriteExtendedInquiryResponseBuilder::Create(view.GetFecRequired(), no_padding); in TEST()
271 auto view = in TEST() local
274 ASSERT_TRUE(view.IsValid()); in TEST()
275 ASSERT_EQ(LeScanType::ACTIVE, view.GetLeScanType()); in TEST()
276 ASSERT_EQ(0x12, view.GetLeScanInterval()); in TEST()
277 ASSERT_EQ(0x12, view.GetLeScanWindow()); in TEST()
278 ASSERT_EQ(AddressType::RANDOM_DEVICE_ADDRESS, view.GetOwnAddressType()); in TEST()
[all …]
Dcontroller.cc145 void read_local_name_complete_handler(CommandCompleteView view) { in read_local_name_complete_handler()
146 auto complete_view = ReadLocalNameCompleteView::Create(view); in read_local_name_complete_handler()
157 void read_local_version_information_complete_handler(CommandCompleteView view) { in read_local_version_information_complete_handler()
158 auto complete_view = ReadLocalVersionInformationCompleteView::Create(view); in read_local_version_information_complete_handler()
166 void read_local_supported_commands_complete_handler(CommandCompleteView view) { in read_local_supported_commands_complete_handler()
167 auto complete_view = ReadLocalSupportedCommandsCompleteView::Create(view); in read_local_supported_commands_complete_handler()
174 void read_local_supported_features_complete_handler(CommandCompleteView view) { in read_local_supported_features_complete_handler()
175 auto complete_view = ReadLocalSupportedFeaturesCompleteView::Create(view); in read_local_supported_features_complete_handler()
182 …ad_local_extended_features_complete_handler(std::promise<void> promise, CommandCompleteView view) { in read_local_extended_features_complete_handler()
183 auto complete_view = ReadLocalExtendedFeaturesCompleteView::Create(view); in read_local_extended_features_complete_handler()
[all …]
Dle_scanning_manager.cc245 static void check_status(CommandCompleteView view) { in check_status()
246 switch (view.GetCommandOpCode()) { in check_status()
248 auto status_view = LeSetScanEnableCompleteView::Create(view); in check_status()
253 auto status_view = LeSetExtendedScanEnableCompleteView::Create(view); in check_status()
258 auto status_view = LeSetScanParametersCompleteView::Create(view); in check_status()
263 auto status_view = LeExtendedScanParamsCompleteView::Create(view); in check_status()
268 auto status_view = LeSetExtendedScanParametersCompleteView::Create(view); in check_status()
273 LOG_ALWAYS_FATAL("Unhandled event %s", OpCodeText(view.GetCommandOpCode()).c_str()); in check_status()
/system/bt/gd/l2cap/
Dl2cap_packet_test.cc81 auto view = ConfigurationRequestView::Create(ControlView::Create(packet_bytes_view)); in TEST() local
82 ASSERT_TRUE(view.IsValid()); in TEST()
83 ASSERT_EQ(1, view.GetConfig().size()); in TEST()
91 auto view = ConfigurationRequestView::Create(ControlView::Create(packet_bytes_view)); in TEST() local
92 ASSERT_TRUE(view.IsValid()); in TEST()
93 ASSERT_EQ(2, view.GetConfig().size()); in TEST()
101 auto view = ConfigurationRequestView::Create(ControlView::Create(packet_bytes_view)); in TEST() local
102 ASSERT_TRUE(view.IsValid()); in TEST()
103 ASSERT_EQ(2, view.GetConfig().size()); in TEST()
111 auto view = ConfigurationRequestView::Create(ControlView::Create(packet_bytes_view)); in TEST() local
[all …]
/system/bt/gd/packet/
Dview.cc28 View::View(const View& view, size_t begin, size_t end) : data_(view.data_) { in View() argument
29 begin_ = (begin < view.size() ? begin : view.size()); in View()
30 begin_ += view.begin_; in View()
31 end_ = (end < view.size() ? end : view.size()); in View()
32 end_ += view.begin_; in View()
Diterator.cc30 for (auto& view : data) { in Iterator() local
31 end_ += view.size(); in Iterator()
139 for (auto view : data_) { in operator *() local
140 if (index < view.size()) { in operator *()
141 return view[index]; in operator *()
143 index -= view.size(); in operator *()
Dview.h30 View(const View& view, size_t begin, size_t end);
31 View(const View& view) = default;
Dpacket_view_unittest.cc472 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
473 PacketView<true> sub_1_view = view.GetLittleEndianSubview(0, view.size()); in TEST()
477 ASSERT_EQ(sub_1_view.size(), view.size()); in TEST()
478 ASSERT_EQ(sub_2_view.size(), view.size()); in TEST()
479 ASSERT_EQ(sub_3_view.size(), view.size()); in TEST()
480 ASSERT_EQ(sub_4_view.size(), view.size()); in TEST()
484 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
485 std::vector<PacketView<true>> sub_views{view}; in TEST()
596 View view(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size()); in TEST()
597 View sub_1_view(view, view.size() - 3, view.size() - 1); in TEST()
[all …]
/system/bt/gd/hci/acl_manager/
Devent_checkers.h24 void check_command_complete(CommandCompleteView view) { in check_command_complete() argument
25 ASSERT(view.IsValid()); in check_command_complete()
26 auto status_view = T::Create(view); in check_command_complete()
28 …LOG_ERROR("Received command complete with invalid packet, opcode 0x%02hx", view.GetCommandOpCode()… in check_command_complete()
41 void check_command_status(CommandStatusView view) { in check_command_status() argument
42 ASSERT(view.IsValid()); in check_command_status()
43 auto status_view = T::Create(view); in check_command_status()
45 … LOG_ERROR("Received command status with invalid packet, opcode 0x%02hx", view.GetCommandOpCode()); in check_command_status()
Dclassic_acl_connection.cc124 void on_role_discovery_complete(CommandCompleteView view) { in on_role_discovery_complete() argument
125 auto complete_view = RoleDiscoveryCompleteView::Create(view); in on_role_discovery_complete()
138 void on_read_link_policy_settings_complete(CommandCompleteView view) { in on_read_link_policy_settings_complete() argument
139 auto complete_view = ReadLinkPolicySettingsCompleteView::Create(view); in on_read_link_policy_settings_complete()
152 void on_read_automatic_flush_timeout_complete(CommandCompleteView view) { in on_read_automatic_flush_timeout_complete() argument
153 auto complete_view = ReadAutomaticFlushTimeoutCompleteView::Create(view); in on_read_automatic_flush_timeout_complete()
166 void on_read_transmit_power_level_complete(CommandCompleteView view) { in on_read_transmit_power_level_complete() argument
167 auto complete_view = ReadTransmitPowerLevelCompleteView::Create(view); in on_read_transmit_power_level_complete()
180 void on_read_link_supervision_timeout_complete(CommandCompleteView view) { in on_read_link_supervision_timeout_complete() argument
181 auto complete_view = ReadLinkSupervisionTimeoutCompleteView::Create(view); in on_read_link_supervision_timeout_complete()
[all …]
/system/bt/gd/packet/parser/test/
Dgenerated_packet_test.cc247 MiddleFourBitsView view = MiddleFourBitsView::Create(packet_bytes_view); in TEST() local
248 ASSERT_TRUE(view.IsValid()); in TEST()
249 ASSERT_EQ(low_two, view.GetLowTwo()); in TEST()
250 ASSERT_EQ(next_four, view.GetNextFour()); in TEST()
251 ASSERT_EQ(straddle, view.GetStraddle()); in TEST()
252 ASSERT_EQ(four_more, view.GetFourMore()); in TEST()
253 ASSERT_EQ(high_two, view.GetHighTwo()); in TEST()
471 auto view = FixedArrayEnumView::Create(packet_bytes_view); in TEST() local
472 ASSERT_TRUE(view.IsValid()); in TEST()
473 auto array = view.GetEnumArray(); in TEST()
[all …]
/system/bt/gd/hci/facade/
Dfacade.cc187 void on_event(hci::EventPacketView view) { in on_event() argument
188 ASSERT(view.IsValid()); in on_event()
189 LOG_INFO("Got an Event %s", EventCodeText(view.GetEventCode()).c_str()); in on_event()
191 response.set_event(std::string(view.begin(), view.end())); in on_event()
195 void on_le_subevent(hci::LeMetaEventView view) { in on_le_subevent() argument
196 ASSERT(view.IsValid()); in on_le_subevent()
197 LOG_INFO("Got an LE Event %s", SubeventCodeText(view.GetSubeventCode()).c_str()); in on_le_subevent()
199 response.set_event(std::string(view.begin(), view.end())); in on_le_subevent()
203 void on_complete(hci::CommandCompleteView view) { in on_complete() argument
204 ASSERT(view.IsValid()); in on_complete()
[all …]
Dacl_manager_facade.cc100 #define GET_CONNECTION(view) \ argument
103 if (!view.IsValid()) { \
107 connection = acl_connections_.find(view.GetConnectionHandle()); \
129 auto view = DisconnectView::Create(command_view); in ConnectionCommand() local
130 GET_CONNECTION(view); in ConnectionCommand()
131 connection->second.connection_->Disconnect(view.GetReason()); in ConnectionCommand()
135 auto view = ChangeConnectionPacketTypeView::Create(command_view); in ConnectionCommand() local
136 GET_CONNECTION(view); in ConnectionCommand()
137 connection->second.connection_->ChangeConnectionPacketType(view.GetPacketType()); in ConnectionCommand()
141 auto view = SetConnectionEncryptionView::Create(command_view); in ConnectionCommand() local
[all …]
/system/bt/gd/neighbor/
Dinquiry.cc82 void OnCommandComplete(hci::CommandCompleteView view);
86 void OnCommandCompleteSync(hci::CommandCompleteView view);
88 void OnEvent(hci::EventPacketView view);
100 void neighbor::InquiryModule::impl::OnCommandCompleteSync(hci::CommandCompleteView view) { in OnCommandCompleteSync() argument
101 OnCommandComplete(view); in OnCommandCompleteSync()
106 void neighbor::InquiryModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete() argument
107 switch (view.GetCommandOpCode()) { in OnCommandComplete()
109 auto packet = hci::InquiryCancelCompleteView::Create(view); in OnCommandComplete()
115 auto packet = hci::PeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete()
121 auto packet = hci::ExitPeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete()
[all …]
Dpage.cc63 void neighbor::PageModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete() argument
64 switch (view.GetCommandOpCode()) { in OnCommandComplete()
66 auto packet = hci::WritePageScanActivityCompleteView::Create(view); in OnCommandComplete()
72 auto packet = hci::ReadPageScanActivityCompleteView::Create(view); in OnCommandComplete()
80 auto packet = hci::WritePageScanTypeCompleteView::Create(view); in OnCommandComplete()
86 auto packet = hci::ReadPageScanTypeCompleteView::Create(view); in OnCommandComplete()
93 auto packet = hci::WritePageTimeoutCompleteView::Create(view); in OnCommandComplete()
99 auto packet = hci::ReadPageTimeoutCompleteView::Create(view); in OnCommandComplete()
106 LOG_ERROR("Unhandled command %s", hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnCommandComplete()
Dinquiry_test.cc137 auto view = hci::WriteInquiryModeView::Create(hci::DiscoveryCommandView::Create(command)); in HandleCommand() local
138 ASSERT_TRUE(view.IsValid()); in HandleCommand()
139 hci_register_.inquiry_mode = view.GetInquiryMode(); in HandleCommand()
152 … auto view = hci::WriteInquiryScanActivityView::Create(hci::DiscoveryCommandView::Create(command)); in HandleCommand() local
153 ASSERT_TRUE(view.IsValid()); in HandleCommand()
154 hci_register_.inquiry_scan_interval = view.GetInquiryScanInterval(); in HandleCommand()
155 hci_register_.inquiry_scan_window = view.GetInquiryScanWindow(); in HandleCommand()
171 … auto view = hci::WriteInquiryScanTypeView::Create(hci::DiscoveryCommandView::Create(command)); in HandleCommand() local
172 ASSERT_TRUE(view.IsValid()); in HandleCommand()
173 hci_register_.inquiry_scan_type = view.GetInquiryScanType(); in HandleCommand()
[all …]
Dname.cc67 void OnCommandComplete(hci::CommandCompleteView view);
69 void OnEvent(hci::EventPacketView view);
90 void neighbor::NameModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete() argument
91 switch (view.GetCommandOpCode()) { in OnCommandComplete()
93 auto packet = hci::RemoteNameRequestCancelCompleteView::Create(view); in OnCommandComplete()
101 LOG_WARN("Unhandled command:%s", hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnCommandComplete()
121 void neighbor::NameModule::impl::OnEvent(hci::EventPacketView view) { in OnEvent() argument
122 switch (view.GetEventCode()) { in OnEvent()
124 auto packet = hci::RemoteNameRequestCompleteView::Create(view); in OnEvent()
134 LOG_ERROR("Unhandled event:%s", hci::EventCodeText(view.GetEventCode()).c_str()); in OnEvent()
Dinquiry.h31 using InquiryResultCallback = std::function<void(hci::InquiryResultView view)>;
32 using InquiryResultWithRssiCallback = std::function<void(hci::InquiryResultWithRssiView view)>;
33 using ExtendedInquiryResultCallback = std::function<void(hci::ExtendedInquiryResultView view)>;
Dscan.cc63 void neighbor::ScanModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete() argument
64 switch (view.GetCommandOpCode()) { in OnCommandComplete()
66 auto packet = hci::ReadScanEnableCompleteView::Create(view); in OnCommandComplete()
73 auto packet = hci::WriteScanEnableCompleteView::Create(view); in OnCommandComplete()
79 LOG_ERROR("Unhandled command %s", hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnCommandComplete()
/system/tools/aidl/
Dhiddenapi-greylist416 "android.view.accessibility.IAccessibilityInteractionConnection",
417 "android.view.accessibility.IAccessibilityInteractionConnectionCallback",
418 "android.view.accessibility.IAccessibilityManager",
419 "android.view.accessibility.IAccessibilityManagerClient",
420 "android.view.autofill.IAutoFillManager",
421 "android.view.autofill.IAutoFillManagerClient",
422 "android.view.autofill.IAutofillWindowPresenter",
423 "android.view.IApplicationToken",
424 "android.view.IAppTransitionAnimationSpecsFuture",
425 "android.view.IDockedStackListener",
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Dfsverity_init.te10 dontaudit fsverity_init init:key view;
11 dontaudit fsverity_init vold:key view;
12 allow fsverity_init kernel:key { view search write setattr };
13 allow fsverity_init fsverity_init:key { view search write };
/system/sepolicy/private/
Dfsverity_init.te10 dontaudit fsverity_init init:key view;
11 dontaudit fsverity_init vold:key view;
12 allow fsverity_init kernel:key { view search write setattr };
13 allow fsverity_init fsverity_init:key { view search write };
/system/sepolicy/prebuilts/api/29.0/private/
Dfsverity_init.te14 dontaudit fsverity_init init:key view;
15 dontaudit fsverity_init vold:key view;
16 allow fsverity_init kernel:key { view search write setattr };
17 allow fsverity_init fsverity_init:key { view search write };
/system/bt/gd/neighbor/facade/
Dfacade.cc179 void on_incoming_inquiry_result(hci::EventPacketView view) { in on_incoming_inquiry_result() argument
181 inquiry_result_msg.set_packet(std::string(view.begin(), view.end())); in on_incoming_inquiry_result()
192 .result = [this](hci::InquiryResultView view) { on_incoming_inquiry_result(view); }, in __anon26ee629a0102()
193 …result_with_rssi = [this](hci::InquiryResultWithRssiView view) { on_incoming_inquiry_result(view);… in __anon26ee629a0202()
194 ….extended_result = [this](hci::ExtendedInquiryResultView view) { on_incoming_inquiry_result(view);… in __anon26ee629a0302()
/system/bt/main/shim/
Dhci_layer.cc111 bluetooth::hci::CommandCompleteView view) { in OnTransmitPacketCommandComplete() argument
112 std::vector<const uint8_t> data(view.begin(), view.end()); in OnTransmitPacketCommandComplete()
122 bluetooth::hci::CommandStatusView view) { in OnTransmitPacketStatus() argument
123 std::vector<const uint8_t> data(view.begin(), view.end()); in OnTransmitPacketStatus()
129 uint8_t status = static_cast<uint8_t>(view.GetStatus()); in OnTransmitPacketStatus()

1234