Lines Matching refs:view
73 auto view = WriteExtendedInquiryResponseView::Create(CommandView::Create(packet_bytes_view)); in TEST() local
74 ASSERT_TRUE(view.IsValid()); in TEST()
75 auto gap_data = view.GetExtendedInquiryResponse(); in TEST()
87 auto builder = WriteExtendedInquiryResponseBuilder::Create(view.GetFecRequired(), no_padding); in TEST()
108 …auto view = LeSetScanParametersView::Create(LeScanningCommandView::Create(CommandView::Create(pack… in TEST() local
110 ASSERT_TRUE(view.IsValid()); in TEST()
111 ASSERT_EQ(LeScanType::ACTIVE, view.GetLeScanType()); in TEST()
112 ASSERT_EQ(0x12, view.GetLeScanInterval()); in TEST()
113 ASSERT_EQ(0x12, view.GetLeScanWindow()); in TEST()
114 ASSERT_EQ(OwnAddressType::RANDOM_DEVICE_ADDRESS, view.GetOwnAddressType()); in TEST()
115 ASSERT_EQ(LeScanningFilterPolicy::ACCEPT_ALL, view.GetScanningFilterPolicy()); in TEST()
123 …auto view = LeSetScanEnableView::Create(LeScanningCommandView::Create(CommandView::Create(packet_b… in TEST() local
125 ASSERT_TRUE(view.IsValid()); in TEST()
126 ASSERT_EQ(Enable::ENABLED, view.GetLeScanEnable()); in TEST()
127 ASSERT_EQ(Enable::DISABLED, view.GetFilterDuplicates()); in TEST()
137 …auto view = LeGetVendorCapabilitiesView::Create(VendorCommandView::Create(CommandView::Create(pack… in TEST() local
139 ASSERT_TRUE(view.IsValid()); in TEST()
148 auto view = in TEST() local
151 ASSERT_TRUE(view.IsValid()); in TEST()
152 auto base_capabilities = view.GetBaseVendorCapabilities(); in TEST()
168 auto view = in TEST() local
171 ASSERT_TRUE(view.IsValid()); in TEST()
172 ASSERT_EQ(1, view.GetScanningPhys()); in TEST()
173 auto params = view.GetParameters(); in TEST()
187 auto view = in TEST() local
190 ASSERT_TRUE(view.IsValid()); in TEST()
191 ASSERT_EQ(1, view.GetScanningPhys()); in TEST()
192 auto params = view.GetParameters(); in TEST()
205 auto view = in TEST() local
208 ASSERT_TRUE(view.IsValid()); in TEST()
209 ASSERT_EQ(FilterDuplicates::DISABLED, view.GetFilterDuplicates()); in TEST()
210 ASSERT_EQ(Enable::ENABLED, view.GetEnable()); in TEST()
211 ASSERT_EQ(0, view.GetDuration()); in TEST()
212 ASSERT_EQ(0, view.GetPeriod()); in TEST()
222 auto view = in TEST() local
225 ASSERT_TRUE(view.IsValid()); in TEST()
226 ASSERT_EQ(FilterDuplicates::ENABLED, view.GetFilterDuplicates()); in TEST()
227 ASSERT_EQ(Enable::DISABLED, view.GetEnable()); in TEST()
228 ASSERT_EQ(0, view.GetDuration()); in TEST()
229 ASSERT_EQ(0, view.GetPeriod()); in TEST()
241 auto view = LeExtendedCreateConnectionView::Create( in TEST() local
243 ASSERT_TRUE(view.IsValid()); in TEST()
254 auto view = LeSetExtendedAdvertisingRandomAddressView::Create( in TEST() local
256 ASSERT_TRUE(view.IsValid()); in TEST()
258 ASSERT_EQ(0, view.GetAdvertisingHandle()); in TEST()
259 ASSERT_EQ(Address(random_address_bytes), view.GetAdvertisingRandomAddress()); in TEST()
270 auto view = LeSetExtendedAdvertisingDataRawView::Create( in TEST() local
272 ASSERT_TRUE(view.IsValid()); in TEST()
273 ASSERT_EQ(0, view.GetAdvertisingHandle()); in TEST()
274 ASSERT_EQ(Operation::COMPLETE_ADVERTISEMENT, view.GetOperation()); in TEST()
275 ASSERT_EQ(FragmentPreference::CONTROLLER_SHOULD_NOT, view.GetFragmentPreference()); in TEST()
279 ASSERT_EQ(advertising_data, view.GetAdvertisingData()); in TEST()
290 auto view = LeSetExtendedAdvertisingLegacyParametersView::Create( in TEST() local
292 ASSERT_TRUE(view.IsValid()); in TEST()
293 ASSERT_EQ(0, view.GetAdvertisingHandle()); in TEST()
294 ASSERT_EQ(400, view.GetPrimaryAdvertisingIntervalMin()); in TEST()
295 ASSERT_EQ(450, view.GetPrimaryAdvertisingIntervalMax()); in TEST()
296 ASSERT_EQ(0x7, view.GetPrimaryAdvertisingChannelMap()); in TEST()
297 ASSERT_EQ(OwnAddressType::RANDOM_DEVICE_ADDRESS, view.GetOwnAddressType()); in TEST()
298 ASSERT_EQ(PeerAddressType::PUBLIC_DEVICE_OR_IDENTITY_ADDRESS, view.GetPeerAddressType()); in TEST()
299 ASSERT_EQ(Address::kEmpty, view.GetPeerAddress()); in TEST()
300 ASSERT_EQ(AdvertisingFilterPolicy::ALL_DEVICES, view.GetAdvertisingFilterPolicy()); in TEST()
301 ASSERT_EQ(1, view.GetAdvertisingSid()); in TEST()
302 ASSERT_EQ(Enable::DISABLED, view.GetScanRequestNotificationEnable()); in TEST()
313 auto view = LeSetExtendedAdvertisingLegacyParametersView::Create( in TEST() local
315 ASSERT_TRUE(view.IsValid()); in TEST()
316 ASSERT_EQ(1, view.GetAdvertisingHandle()); in TEST()
317 ASSERT_EQ(400, view.GetPrimaryAdvertisingIntervalMin()); in TEST()
318 ASSERT_EQ(450, view.GetPrimaryAdvertisingIntervalMax()); in TEST()
319 ASSERT_EQ(0x7, view.GetPrimaryAdvertisingChannelMap()); in TEST()
320 ASSERT_EQ(OwnAddressType::RANDOM_DEVICE_ADDRESS, view.GetOwnAddressType()); in TEST()
321 ASSERT_EQ(PeerAddressType::PUBLIC_DEVICE_OR_IDENTITY_ADDRESS, view.GetPeerAddressType()); in TEST()
322 ASSERT_EQ(Address::kEmpty, view.GetPeerAddress()); in TEST()
323 ASSERT_EQ(AdvertisingFilterPolicy::ALL_DEVICES, view.GetAdvertisingFilterPolicy()); in TEST()
324 ASSERT_EQ(1, view.GetAdvertisingSid()); in TEST()
325 ASSERT_EQ(Enable::DISABLED, view.GetScanRequestNotificationEnable()); in TEST()
333 auto view = LeSetExtendedAdvertisingParametersCompleteView::Create( in TEST() local
335 ASSERT_TRUE(view.IsValid()); in TEST()
336 ASSERT_EQ(static_cast<uint8_t>(-11), view.GetSelectedTxPower()); in TEST()
349 auto view = in TEST() local
351 ASSERT_TRUE(view.IsValid()); in TEST()
352 ASSERT_EQ(1, view.GetAdvertisingHandle()); in TEST()
362 auto view = LeSetExtendedAdvertisingDisableView::Create( in TEST() local
364 ASSERT_TRUE(view.IsValid()); in TEST()
365 auto disabled_set = view.GetDisabledSets(); in TEST()
384 auto view = LeSetAdvertisingDataView::Create(command_view); in TEST() local
385 ASSERT_TRUE(view.IsValid()); in TEST()
402 auto view = LeSetScanResponseDataView::Create(command_view); in TEST() local
403 ASSERT_TRUE(view.IsValid()); in TEST()
420 auto view = LeMultiAdvtSetDataView::Create(command_view); in TEST() local
421 ASSERT_TRUE(view.IsValid()); in TEST()
422 ASSERT_TRUE(view.GetAdvertisingData().size() > 0); in TEST()
423 ASSERT_EQ(view.GetAdvertisingData()[0].data_, gap_data.data_); in TEST()
424 ASSERT_EQ(view.GetAdvertisingInstance(), 3); in TEST()
441 auto view = LeMultiAdvtSetScanRespView::Create(command_view); in TEST() local
442 ASSERT_TRUE(view.IsValid()); in TEST()
443 ASSERT_EQ(view.GetAdvertisingData()[0].data_, gap_data.data_); in TEST()
444 ASSERT_EQ(view.GetAdvertisingInstance(), 3); in TEST()