• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 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 #include <base/functional/bind.h>
18 #include <base/location.h>
19 #include <base/logging.h>
20 #include <base/memory/weak_ptr.h>
21 #include <base/strings/string_number_conversions.h>
22 #include <base/time/time.h>
23 #include <string.h>
24 
25 #include <map>
26 #include <queue>
27 #include <string>
28 #include <vector>
29 
30 #include "bind_helpers.h"
31 #include "ble_scanner.h"
32 #include "bt_target.h"
33 #include "device/include/controller.h"
34 #include "osi/include/alarm.h"
35 #include "stack/btm/ble_scanner_hci_interface.h"
36 #include "stack/btm/btm_ble_int.h"
37 #include "stack/btm/btm_int_types.h"
38 #include "test/common/mock_functions.h"
39 
40 #ifndef UNUSED_ATTR
41 #define UNUSED_ATTR
42 #endif
43 
CleanUp()44 void BleScanningManager::CleanUp() { inc_func_call_count(__func__); }
btm_ble_scanner_init()45 void btm_ble_scanner_init() { inc_func_call_count(__func__); }
Get()46 base::WeakPtr<BleScanningManager> BleScanningManager::Get() {
47   inc_func_call_count(__func__);
48   return nullptr;
49 }
IsInitialized()50 bool BleScanningManager::IsInitialized() {
51   inc_func_call_count(__func__);
52   return false;
53 }
Initialize(BleScannerHciInterface * interface)54 void BleScanningManager::Initialize(BleScannerHciInterface* interface) {
55   inc_func_call_count(__func__);
56 }
btm_ble_scanner_cleanup(void)57 void btm_ble_scanner_cleanup(void) { inc_func_call_count(__func__); }
58