Home
last modified time | relevance | path

Searched refs:new_mode (Results 1 – 6 of 6) sorted by relevance

/system/bt/main/shim/
Dlink_policy.cc120 const tBTM_PM_PWR_MD& new_mode) { in BTM_SetPowerMode() argument
127 new_mode.mode, in BTM_SetPowerMode()
132 if (p_acl->policy.Mode() == new_mode.mode) { in BTM_SetPowerMode()
144 p_acl->policy.Mode(), power_mode_state_text(new_mode.mode).c_str(), in BTM_SetPowerMode()
145 new_mode.mode); in BTM_SetPowerMode()
147 p_acl->policy.mode.pending_ = new_mode.mode; in BTM_SetPowerMode()
148 switch (new_mode.mode) { in BTM_SetPowerMode()
154 set_sniff_mode(*p_acl, new_mode.max, new_mode.min, new_mode.attempt, in BTM_SetPowerMode()
155 new_mode.timeout); in BTM_SetPowerMode()
159 return set_hold_mode(*p_acl, new_mode.max, new_mode.min); in BTM_SetPowerMode()
[all …]
/system/bt/gd/
Dsetup.py57 new_mode = current_mode | stat.S_IEXEC
58 os.chmod(file, new_mode)
59 …g.log(log.INFO, "Changed file mode of %s from %s to %s" % (file, oct(current_mode), oct(new_mode)))
/system/bt/test/mock/
Dmock_main_shim_link_policy.h137 std::function<tBTM_STATUS(uint16_t handle, const tBTM_PM_PWR_MD& new_mode)>
138 body{[](uint16_t handle, const tBTM_PM_PWR_MD& new_mode) { return 0; }};
139 tBTM_STATUS operator()(uint16_t handle, const tBTM_PM_PWR_MD& new_mode) { in operator()
140 return body(handle, new_mode); in operator()
Dmock_main_shim_link_policy.cc93 const tBTM_PM_PWR_MD& new_mode) { in BTM_SetPowerMode() argument
95 return test::mock::main_shim_link_policy::BTM_SetPowerMode(handle, new_mode); in BTM_SetPowerMode()
/system/bt/stack/btm/
Dbtm_ble_gap.cc1042 uint8_t new_mode = BTM_BLE_ADV_ENABLE; in btm_ble_set_discoverability() local
1063 new_mode = BTM_BLE_ADV_DISABLE; in btm_ble_set_discoverability()
1073 if (new_mode == BTM_BLE_ADV_ENABLE) { in btm_ble_set_discoverability()
1089 if (status == BTM_SUCCESS && p_cb->adv_mode != new_mode) { in btm_ble_set_discoverability()
1090 if (new_mode == BTM_BLE_ADV_ENABLE) in btm_ble_set_discoverability()
1132 uint8_t new_mode = BTM_BLE_ADV_ENABLE; in btm_ble_set_connectability() local
1153 new_mode = BTM_BLE_ADV_DISABLE; in btm_ble_set_connectability()
1159 if (new_mode == BTM_BLE_ADV_ENABLE) { in btm_ble_set_connectability()
1174 if (status == BTM_SUCCESS && new_mode != p_cb->adv_mode) { in btm_ble_set_connectability()
1175 if (new_mode == BTM_BLE_ADV_ENABLE) in btm_ble_set_connectability()
/system/bt/stack/acl/
Dacl.h119 tBTM_STATUS BTM_SetPowerMode(uint16_t handle, const tBTM_PM_PWR_MD& new_mode);
323 uint16_t, const tBTM_PM_PWR_MD& new_mode);