Home
last modified time | relevance | path

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

1234

/system/bt/gd/hci/
Dhci_packets_test.cc73 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()
[all …]
Dcontroller.cc195 void write_secure_connections_host_support_complete_handler(CommandCompleteView view) { in write_secure_connections_host_support_complete_handler()
196 auto complete_view = WriteSecureConnectionsHostSupportCompleteView::Create(view); in write_secure_connections_host_support_complete_handler()
202 void read_local_name_complete_handler(CommandCompleteView view) { in read_local_name_complete_handler()
203 auto complete_view = ReadLocalNameCompleteView::Create(view); in read_local_name_complete_handler()
214 void read_local_version_information_complete_handler(CommandCompleteView view) { in read_local_version_information_complete_handler()
215 auto complete_view = ReadLocalVersionInformationCompleteView::Create(view); in read_local_version_information_complete_handler()
223 void read_local_supported_commands_complete_handler(CommandCompleteView view) { in read_local_supported_commands_complete_handler()
224 auto complete_view = ReadLocalSupportedCommandsCompleteView::Create(view); in read_local_supported_commands_complete_handler()
231 …ad_local_extended_features_complete_handler(std::promise<void> promise, CommandCompleteView view) { in read_local_extended_features_complete_handler()
232 auto complete_view = ReadLocalExtendedFeaturesCompleteView::Create(view); in read_local_extended_features_complete_handler()
[all …]
Dle_scanning_manager.cc1008 void on_advertising_filter_complete(CommandCompleteView view) { in on_advertising_filter_complete()
1009 ASSERT(view.IsValid()); in on_advertising_filter_complete()
1010 auto status_view = LeAdvFilterCompleteView::Create(view); in on_advertising_filter_complete()
1015 OpCodeText(view.GetCommandOpCode()).c_str(), in on_advertising_filter_complete()
1087 LOG_WARN("Unexpected event type %s", OpCodeText(view.GetCommandOpCode()).c_str()); in on_advertising_filter_complete()
1091 void on_batch_scan_complete(CommandCompleteView view) { in on_batch_scan_complete()
1092 ASSERT(view.IsValid()); in on_batch_scan_complete()
1093 auto status_view = LeBatchScanCompleteView::Create(view); in on_batch_scan_complete()
1098 OpCodeText(view.GetCommandOpCode()).c_str(), in on_batch_scan_complete()
1104 void on_batch_scan_enable_complete(CommandCompleteView view) { in on_batch_scan_enable_complete()
[all …]
/system/libbase/
Dfunction_ref_test.cpp57 function_ref<int(int)> view = [](int i) { return i + 1; }; in TEST() local
58 EXPECT_EQ(1, view(0)); in TEST()
59 EXPECT_EQ(-1, view(-2)); in TEST()
75 function_ref<int(int)> view = [](int i) { return i + 1; }; in TEST() local
76 EXPECT_EQ(1, view(0)); in TEST()
77 view = [](int i) { return i - 1; }; in TEST()
78 EXPECT_EQ(0, view(1)); in TEST()
80 function_ref<int(int)> view2 = view; in TEST()
81 EXPECT_EQ(view(10), view2(10)); in TEST()
83 view = view2; in TEST()
[all …]
/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()
125 for (auto view : data_) { in operator *() local
126 if (index < view.size()) { in operator *()
127 return view[index]; in operator *()
129 index -= view.size(); in operator *()
/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.cc161 void on_role_discovery_complete(CommandCompleteView view) { in on_role_discovery_complete() argument
162 auto complete_view = RoleDiscoveryCompleteView::Create(view); in on_role_discovery_complete()
175 void on_read_link_policy_settings_complete(CommandCompleteView view) { in on_read_link_policy_settings_complete() argument
176 auto complete_view = ReadLinkPolicySettingsCompleteView::Create(view); in on_read_link_policy_settings_complete()
189 void on_read_automatic_flush_timeout_complete(CommandCompleteView view) { in on_read_automatic_flush_timeout_complete() argument
190 auto complete_view = ReadAutomaticFlushTimeoutCompleteView::Create(view); in on_read_automatic_flush_timeout_complete()
203 void on_read_transmit_power_level_complete(CommandCompleteView view) { in on_read_transmit_power_level_complete() argument
204 auto complete_view = ReadTransmitPowerLevelCompleteView::Create(view); in on_read_transmit_power_level_complete()
217 void on_read_link_supervision_timeout_complete(CommandCompleteView view) { in on_read_link_supervision_timeout_complete() argument
218 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.cc183 void on_event(hci::EventView view) { in on_event() argument
184 ASSERT(view.IsValid()); in on_event()
185 LOG_INFO("Got an Event %s", EventCodeText(view.GetEventCode()).c_str()); in on_event()
187 response.set_payload(std::string(view.begin(), view.end())); in on_event()
191 void on_le_subevent(hci::LeMetaEventView view) { in on_le_subevent() argument
192 ASSERT(view.IsValid()); in on_le_subevent()
193 LOG_INFO("Got an LE Event %s", SubeventCodeText(view.GetSubeventCode()).c_str()); in on_le_subevent()
195 response.set_payload(std::string(view.begin(), view.end())); in on_le_subevent()
199 void on_complete(hci::CommandCompleteView view) { in on_complete() argument
200 ASSERT(view.IsValid()); in on_complete()
[all …]
Dacl_manager_facade.cc102 #define GET_CONNECTION(view) \ argument
105 if (!view.IsValid()) { \
109 connection = acl_connections_.find(view.GetConnectionHandle()); \
132 auto view = DisconnectView::Create(command_view); in ConnectionCommand() local
133 GET_CONNECTION(view); in ConnectionCommand()
134 connection->second.connection_->Disconnect(view.GetReason()); in ConnectionCommand()
138 auto view = ChangeConnectionPacketTypeView::Create(command_view); in ConnectionCommand() local
139 GET_CONNECTION(view); in ConnectionCommand()
140 connection->second.connection_->ChangeConnectionPacketType(view.GetPacketType()); in ConnectionCommand()
144 auto view = SetConnectionEncryptionView::Create(command_view); in ConnectionCommand() local
[all …]
/system/linkerconfig/testmodules/vndkext/HelloActivityProduct/src/com/example/android/helloactivity/
DHelloActivity.java21 import android.view.View;
22 import android.view.WindowManager;
38 View view = getLayoutInflater().inflate(R.layout.hello_activity, null); in onCreate() local
39 setContentView(view); in onCreate()
/system/bt/gd/neighbor/
Dinquiry.cc82 void OnCommandComplete(hci::CommandCompleteView view);
86 void OnCommandCompleteSync(hci::CommandCompleteView view);
88 void OnEvent(hci::EventView 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::EventView 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::EventView 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)>;
/system/extras/simpleperf/testdata/
Dproguard_mapping.txt26 196:197:void onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater) -> d0
27 …97:153:android.view.View onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.o…
29 201:208:boolean onOptionsItemSelected(android.view.MenuItem) -> o0
30 180:192:void onItemClick(android.widget.AdapterView,android.view.View,int,long) -> onItemClick
/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/31.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/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::EventView 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 __anon7aed44c10102()
193 …result_with_rssi = [this](hci::InquiryResultWithRssiView view) { on_incoming_inquiry_result(view);… in __anon7aed44c10202()
194 ….extended_result = [this](hci::ExtendedInquiryResultView view) { on_incoming_inquiry_result(view);… in __anon7aed44c10302()

1234