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/btm_status.h"
26 #include "test/common/mock_functions.h"
27 #include "types/raw_address.h"
28
BTM_ReadPowerMode(const RawAddress &,tBTM_PM_MODE *)29 bool BTM_ReadPowerMode(const RawAddress& /* remote_bda */,
30 tBTM_PM_MODE* /* p_mode */) {
31 inc_func_call_count(__func__);
32 return false;
33 }
BTM_SetLinkPolicyActiveMode(const RawAddress &)34 bool BTM_SetLinkPolicyActiveMode(const RawAddress& /* remote_bda */) {
35 inc_func_call_count(__func__);
36 return false;
37 }
BTM_PM_ReadControllerState(void)38 tBTM_CONTRL_STATE BTM_PM_ReadControllerState(void) {
39 inc_func_call_count(__func__);
40 return BTM_CONTRL_UNKNOWN;
41 }
BTM_PM_ReadSniffLinkCount(void)42 uint8_t BTM_PM_ReadSniffLinkCount(void) {
43 inc_func_call_count(__func__);
44 return 0;
45 }
BTM_PM_ReadBleLinkCount(void)46 uint8_t BTM_PM_ReadBleLinkCount(void) {
47 inc_func_call_count(__func__);
48 return 0;
49 }
BTM_PM_DeviceInScanState(void)50 bool BTM_PM_DeviceInScanState(void) {
51 inc_func_call_count(__func__);
52 return false;
53 }
BTM_PM_ReadBleScanDutyCycle(void)54 uint32_t BTM_PM_ReadBleScanDutyCycle(void) {
55 inc_func_call_count(__func__);
56 return 0;
57 }
BTM_PmRegister(uint8_t,uint8_t *,tBTM_PM_STATUS_CBACK *)58 tBTM_STATUS BTM_PmRegister(uint8_t /* mask */, uint8_t* /* p_pm_id */,
59 tBTM_PM_STATUS_CBACK* /* p_cb */) {
60 inc_func_call_count(__func__);
61 return BTM_SUCCESS;
62 }
BTM_SetPowerMode(uint8_t,const RawAddress &,const tBTM_PM_PWR_MD *)63 tBTM_STATUS BTM_SetPowerMode(uint8_t /* pm_id */,
64 const RawAddress& /* remote_bda */,
65 const tBTM_PM_PWR_MD* /* p_mode */) {
66 inc_func_call_count(__func__);
67 return BTM_SUCCESS;
68 }
BTM_SetSsrParams(const RawAddress &,uint16_t,uint16_t,uint16_t)69 tBTM_STATUS BTM_SetSsrParams(const RawAddress& /* remote_bda */,
70 uint16_t /* max_lat */, uint16_t /* min_rmt_to */,
71 uint16_t /* min_loc_to */) {
72 inc_func_call_count(__func__);
73 return BTM_SUCCESS;
74 }
BTM_PM_OnConnected(uint16_t,const RawAddress &)75 void BTM_PM_OnConnected(uint16_t /* handle */,
76 const RawAddress& /* remote_bda */) {
77 inc_func_call_count(__func__);
78 }
BTM_PM_OnDisconnected(uint16_t)79 void BTM_PM_OnDisconnected(uint16_t /* handle */) {
80 inc_func_call_count(__func__);
81 }
btm_pm_on_mode_change(tHCI_STATUS,uint16_t,tHCI_MODE,uint16_t)82 void btm_pm_on_mode_change(tHCI_STATUS /* status */, uint16_t /* handle */,
83 tHCI_MODE /* current_mode */,
84 uint16_t /* interval */) {
85 inc_func_call_count(__func__);
86 }
btm_pm_on_sniff_subrating(tHCI_STATUS,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)87 void btm_pm_on_sniff_subrating(tHCI_STATUS /* status */, uint16_t /* handle */,
88 uint16_t /* maximum_transmit_latency */,
89 uint16_t /* maximum_receive_latency */,
90 uint16_t /* minimum_remote_timeout */,
91 uint16_t /* minimum_local_timeout */) {
92 inc_func_call_count(__func__);
93 }
btm_pm_proc_cmd_status(tHCI_STATUS)94 void btm_pm_proc_cmd_status(tHCI_STATUS /* status */) {
95 inc_func_call_count(__func__);
96 }
btm_pm_proc_mode_change(tHCI_STATUS,uint16_t,tHCI_MODE,uint16_t)97 void btm_pm_proc_mode_change(tHCI_STATUS /* hci_status */,
98 uint16_t /* hci_handle */,
99 tHCI_MODE /* hci_mode */,
100 uint16_t /* interval */) {
101 inc_func_call_count(__func__);
102 }
btm_pm_proc_ssr_evt(uint8_t *,uint16_t)103 void btm_pm_proc_ssr_evt(uint8_t* /* p */, uint16_t /* evt_len */) {
104 inc_func_call_count(__func__);
105 }
btm_pm_reset(void)106 void btm_pm_reset(void) { inc_func_call_count(__func__); }
process_ssr_event(tHCI_STATUS,uint16_t,uint16_t,uint16_t)107 void process_ssr_event(tHCI_STATUS /* status */, uint16_t /* handle */,
108 uint16_t /* max_tx_lat */, uint16_t /* max_rx_lat */) {
109 inc_func_call_count(__func__);
110 }
111