Home
last modified time | relevance | path

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

123

/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dlink_layer_packet_builder_test.cc100 LinkLayerPacketView view = LinkLayerPacketView::Create(packet_ptr); in TEST_F() local
101 ASSERT_EQ(view.size(), wrapped_disconnect->size()); in TEST_F()
102 ASSERT_EQ(view.GetType(), Link::PacketType::DISCONNECT); in TEST_F()
103 ASSERT_EQ(source_, view.GetSourceAddress()); in TEST_F()
104 ASSERT_EQ(dest_, view.GetDestinationAddress()); in TEST_F()
105 DisconnectView disconnect = DisconnectView::GetDisconnect(view); in TEST_F()
118 LinkLayerPacketView view = LinkLayerPacketView::Create(packet_ptr); in TEST_F() local
119 ASSERT_EQ(view.size(), wrapped_encrypt_connection->size()); in TEST_F()
120 ASSERT_EQ(view.GetType(), Link::PacketType::ENCRYPT_CONNECTION); in TEST_F()
121 ASSERT_EQ(source_, view.GetSourceAddress()); in TEST_F()
[all …]
Dpacket_view_test.cc364 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
365 PacketView<true> sub_1_view = view.SubViewLittleEndian(0, view.size()); in TEST()
369 ASSERT_EQ(sub_1_view.size(), view.size()); in TEST()
370 ASSERT_EQ(sub_2_view.size(), view.size()); in TEST()
371 ASSERT_EQ(sub_3_view.size(), view.size()); in TEST()
372 ASSERT_EQ(sub_4_view.size(), view.size()); in TEST()
376 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
377 std::vector<PacketView<true>> sub_views{view}; in TEST()
483 View view(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size()); in TEST()
484 View sub_1_view(view, view.size() - 3, view.size() - 1); in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/packets/
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.cc29 for (auto& view : data) { in Iterator() local
30 length_ += view.size(); in Iterator()
137 for (auto view : data_) { in operator *() local
138 if (index < view.size()) { in operator *()
139 return view[index]; in operator *()
141 index -= view.size(); in operator *()
Dview.h29 View(const View& view, size_t begin, size_t end);
30 View(const View& view) = default;
/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.cc29 for (auto& view : data) { in Iterator() local
30 length_ += view.size(); in Iterator()
137 for (auto view : data_) { in operator *() local
138 if (index < view.size()) { in operator *()
139 return view[index]; in operator *()
141 index -= view.size(); in operator *()
Dbit_inserter.cc29 for (auto& view : data) { in Iterator() local
30 length_ += view.size(); in Iterator()
137 for (auto view : data_) { in operator *() local
138 if (index < view.size()) { in operator *()
139 return view[index]; in operator *()
141 index -= view.size(); in operator *()
Dpacket_view_unittest.cc367 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
368 PacketView<true> sub_1_view = view.GetLittleEndianSubview(0, view.size()); in TEST()
372 ASSERT_EQ(sub_1_view.size(), view.size()); in TEST()
373 ASSERT_EQ(sub_2_view.size(), view.size()); in TEST()
374 ASSERT_EQ(sub_3_view.size(), view.size()); in TEST()
375 ASSERT_EQ(sub_4_view.size(), view.size()); in TEST()
379 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST() local
380 std::vector<PacketView<true>> sub_views{view}; in TEST()
486 View view(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size()); in TEST()
487 View sub_1_view(view, view.size() - 3, view.size() - 1); in TEST()
[all …]
Dview.h29 View(const View& view, size_t begin, size_t end);
30 View(const View& view) = default;
/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dencrypt_connection_view.h32 static EncryptConnectionView GetEncryptConnection(const LinkLayerPacketView& view) { in GetEncryptConnection() argument
33 CHECK(view.GetType() == Link::PacketType::ENCRYPT_CONNECTION || in GetEncryptConnection()
34 view.GetType() == Link::PacketType::ENCRYPT_CONNECTION_RESPONSE); in GetEncryptConnection()
35 return EncryptConnectionView(view.GetPayload()); in GetEncryptConnection()
44 EncryptConnectionView(const PacketView<true>& view) : PacketView(view) {} in EncryptConnectionView() argument
Dio_capability_view.h32 static IoCapabilityView GetIoCapability(const LinkLayerPacketView& view) { in GetIoCapability() argument
33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_RESPONSE || in GetIoCapability()
34 view.GetType() == Link::PacketType::IO_CAPABILITY_REQUEST); in GetIoCapability()
35 return IoCapabilityView(view.GetPayload()); in GetIoCapability()
50 IoCapabilityView(const PacketView<true>& view) : PacketView(view) {} in IoCapabilityView() argument
Dle_advertisement_view.h35 static LeAdvertisementView GetLeAdvertisementView(const LinkLayerPacketView& view) { in GetLeAdvertisementView() argument
36 …CHECK(view.GetType() == Link::PacketType::LE_ADVERTISEMENT || view.GetType() == Link::PacketType::… in GetLeAdvertisementView()
37 return LeAdvertisementView(view.GetPayload()); in GetLeAdvertisementView()
52 LeAdvertisementView(const PacketView<true>& view) : PacketView(view) {} in LeAdvertisementView() argument
Dio_capability_negative_response_view.h32 …IoCapabilityNegativeResponseView GetIoCapabilityNegativeResponse(const LinkLayerPacketView& view) { in GetIoCapabilityNegativeResponse() argument
33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_NEGATIVE_RESPONSE); in GetIoCapabilityNegativeResponse()
34 return IoCapabilityNegativeResponseView(view.GetPayload()); in GetIoCapabilityNegativeResponse()
43 IoCapabilityNegativeResponseView(const PacketView<true>& view) : PacketView(view) {} in IoCapabilityNegativeResponseView() argument
Ddisconnect_view.h32 static DisconnectView GetDisconnect(const LinkLayerPacketView& view) { in GetDisconnect() argument
33 CHECK(view.GetType() == Link::PacketType::DISCONNECT); in GetDisconnect()
34 return DisconnectView(view.GetPayload()); in GetDisconnect()
43 DisconnectView(const PacketView<true>& view) : PacketView(view) {} in DisconnectView() argument
Dpage_response_view.h32 static PageResponseView GetPageResponse(const LinkLayerPacketView& view) { in GetPageResponse() argument
33 CHECK(view.GetType() == Link::PacketType::PAGE_RESPONSE); in GetPageResponse()
34 return PageResponseView(view.GetPayload()); in GetPageResponse()
43 PageResponseView(const PacketView<true>& view) : PacketView(view) {} in PageResponseView() argument
Dpage_view.h32 static PageView GetPage(const LinkLayerPacketView& view) { in GetPage() argument
33 CHECK(view.GetType() == Link::PacketType::PAGE); in GetPage()
34 return PageView(view.GetPayload()); in GetPage()
47 PageView(const PacketView<true>& view) : PacketView(view) {} in PageView() argument
Dinquiry_view.h33 static InquiryView GetInquiry(const LinkLayerPacketView& view) { in GetInquiry() argument
34 CHECK(view.GetType() == Link::PacketType::INQUIRY); in GetInquiry()
35 return InquiryView(view.GetPayload()); in GetInquiry()
44 InquiryView(const PacketView<true>& view) : PacketView(view) {} in InquiryView() argument
Dresponse_view.h34 static ResponseView GetResponse(const LinkLayerPacketView& view) { in GetResponse() argument
35 CHECK(view.GetType() == Link::PacketType::RESPONSE); in GetResponse()
36 return ResponseView(view.GetPayload()); in GetResponse()
49 ResponseView(const PacketView<true>& view) : PacketView(view) {} in ResponseView() argument
Dcommand_view.h34 static CommandView GetCommand(const LinkLayerPacketView& view) { in GetCommand() argument
35 CHECK(view.GetType() == Link::PacketType::COMMAND); in GetCommand()
36 return CommandView(view.GetPayload()); in GetCommand()
49 CommandView(const PacketView<true>& view) : PacketView(view) {} in CommandView() argument
Dinquiry_response_view.h33 static InquiryResponseView GetInquiryResponse(const LinkLayerPacketView& view) { in GetInquiryResponse() argument
34 CHECK(view.GetType() == Link::PacketType::INQUIRY_RESPONSE); in GetInquiryResponse()
35 return InquiryResponseView(view.GetPayload()); in GetInquiryResponse()
68 InquiryResponseView(const PacketView<true>& view) : PacketView(view) {} in InquiryResponseView() argument
Dview_forwarder_builder.h34 static std::unique_ptr<ViewForwarderBuilder> Create(PacketView<true> view) { in Create() argument
35 return std::unique_ptr<ViewForwarderBuilder>(new ViewForwarderBuilder(view)); in Create()
49 explicit ViewForwarderBuilder(PacketView<true> view) : view_(view) {} in ViewForwarderBuilder() argument
/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/sepolicy/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/vendor_libs/test_vendor_lib/test/
Dlink_layer_socket_device_test.cc195 LinkLayerPacketView view = LinkLayerPacketView::Create(packet_ptr); in NextPacket() local
196 return view; in NextPacket()
201 LinkLayerPacketView view = NextPacket(); in SendFromClient() local
202 client_opcodes_[pair_id] = CommandView::GetCommand(view).GetOpcode(); in SendFromClient()
203 clients_[pair_id].IncomingPacket(view); in SendFromClient()
208 LinkLayerPacketView view = NextPacket(); in SendFromServer() local
209 server_opcodes_[pair_id] = CommandView::GetCommand(view).GetOpcode(); in SendFromServer()
210 servers_[pair_id].IncomingPacket(view); in SendFromServer()

123