• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 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 /*
18  * Generated mock file from original source file
19  *   Functions generated:17
20  */
21 
22 #include <cstdint>
23 
24 #include "stack/btm/power_mode.h"
25 #include "stack/include/acl_api.h"
26 #include "stack/include/acl_hci_link_interface.h"
27 #include "stack/include/btm_status.h"
28 #include "test/common/mock_functions.h"
29 #include "types/raw_address.h"
30 
BTM_ReadPowerMode(const RawAddress &,tBTM_PM_MODE *)31 bool BTM_ReadPowerMode(const RawAddress& /* remote_bda */, tBTM_PM_MODE* /* p_mode */) {
32   inc_func_call_count(__func__);
33   return false;
34 }
BTM_SetLinkPolicyActiveMode(const RawAddress &)35 bool BTM_SetLinkPolicyActiveMode(const RawAddress& /* remote_bda */) {
36   inc_func_call_count(__func__);
37   return false;
38 }
BTM_PM_ReadControllerState(void)39 tBTM_CONTRL_STATE BTM_PM_ReadControllerState(void) {
40   inc_func_call_count(__func__);
41   return BTM_CONTRL_UNKNOWN;
42 }
BTM_PM_ReadSniffLinkCount(void)43 uint8_t BTM_PM_ReadSniffLinkCount(void) {
44   inc_func_call_count(__func__);
45   return 0;
46 }
BTM_PM_ReadBleLinkCount(void)47 uint8_t BTM_PM_ReadBleLinkCount(void) {
48   inc_func_call_count(__func__);
49   return 0;
50 }
BTM_PM_DeviceInScanState(void)51 bool BTM_PM_DeviceInScanState(void) {
52   inc_func_call_count(__func__);
53   return false;
54 }
BTM_PM_ReadBleScanDutyCycle(void)55 uint32_t BTM_PM_ReadBleScanDutyCycle(void) {
56   inc_func_call_count(__func__);
57   return 0;
58 }
BTM_PM_OnConnected(uint16_t,const RawAddress &)59 void BTM_PM_OnConnected(uint16_t /* handle */, const RawAddress& /* remote_bda */) {
60   inc_func_call_count(__func__);
61 }
BTM_PM_OnDisconnected(uint16_t)62 void BTM_PM_OnDisconnected(uint16_t /* handle */) { inc_func_call_count(__func__); }
btm_pm_on_mode_change(tHCI_STATUS,uint16_t,tHCI_MODE,uint16_t)63 void btm_pm_on_mode_change(tHCI_STATUS /* status */, uint16_t /* handle */,
64                            tHCI_MODE /* current_mode */, uint16_t /* interval */) {
65   inc_func_call_count(__func__);
66 }
btm_pm_on_sniff_subrating(tHCI_STATUS,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)67 void btm_pm_on_sniff_subrating(tHCI_STATUS /* status */, uint16_t /* handle */,
68                                uint16_t /* maximum_transmit_latency */,
69                                uint16_t /* maximum_receive_latency */,
70                                uint16_t /* minimum_remote_timeout */,
71                                uint16_t /* minimum_local_timeout */) {
72   inc_func_call_count(__func__);
73 }
btm_pm_proc_cmd_status(tHCI_STATUS)74 void btm_pm_proc_cmd_status(tHCI_STATUS /* status */) { inc_func_call_count(__func__); }
btm_pm_proc_mode_change(tHCI_STATUS,uint16_t,tHCI_MODE,uint16_t)75 void btm_pm_proc_mode_change(tHCI_STATUS /* hci_status */, uint16_t /* hci_handle */,
76                              tHCI_MODE /* hci_mode */, uint16_t /* interval */) {
77   inc_func_call_count(__func__);
78 }
btm_pm_proc_ssr_evt(uint8_t *,uint16_t)79 void btm_pm_proc_ssr_evt(uint8_t* /* p */, uint16_t /* evt_len */) {
80   inc_func_call_count(__func__);
81 }
btm_pm_reset(void)82 void btm_pm_reset(void) { inc_func_call_count(__func__); }
83