1 /*
2  * Copyright 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include "bta/include/bta_api.h"  // tBTA_DM_SEARCH_CBACK
20 #include "stack/include/bt_hdr.h"
21 #include "types/bt_transport.h"
22 #include "types/raw_address.h"
23 
24 // Bta module start and stop entry points
25 void bta_dm_search_stop();
26 
27 // Bta device discovery start and stop entry points
28 void bta_dm_disc_start_device_discovery(tBTA_DM_SEARCH_CBACK*);
29 void bta_dm_disc_stop_device_discovery();
30 
31 void bta_dm_disc_disable_search();
32 
33 // LE observe and scan interface
34 void bta_dm_ble_scan(bool start, uint8_t duration_sec, bool low_latency_scan);
35 void bta_dm_ble_csis_observe(bool observe, tBTA_DM_SEARCH_CBACK* p_cback);
36 
37 // Checks if there is a device discovery request queued
38 bool bta_dm_is_search_request_queued();
39 
40 // Provide data for the dumpsys procedure
41 void DumpsysBtaDmSearch(int fd);