Lines Matching refs:ret

277   int ret = false;
281 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTIME,
287 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME,
290 ret = btif_config_get_str("Adapter", BTIF_STORAGE_KEY_ADAPTER_NAME,
292 if (ret && len && len <= prop->len)
296 ret = false;
302 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE,
304 if (ret && len && len <= prop->len)
308 ret = false;
314 ret = btif_config_get_int("Adapter", BTIF_STORAGE_KEY_ADAPTER_SCANMODE,
319 ret = btif_config_get_int(
324 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVCLASS,
329 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE,
341 ret = true;
352 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_VER_MFCT,
355 if (ret == true)
356 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_VER_VER,
359 if (ret == true)
360 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_VER_SUBVER,
369 return ret;
734 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type);
735 ret &= btif_config_set_int(bdstr, "PinLength", (int)pin_length);
736 ret &= btif_config_set_bin(bdstr, "LinkKey", link_key, sizeof(LINK_KEY));
746 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
766 int ret = 1;
768 ret &= btif_config_remove(bdstr, "LinkKeyType");
770 ret &= btif_config_remove(bdstr, "PinLength");
772 ret &= btif_config_remove(bdstr, "LinkKey");
775 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
952 int ret = btif_config_set_bin(bdstr, name, (const uint8_t*)key, key_length);
954 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
995 int ret = btif_config_get_bin(bdstr, name, (uint8_t*)key_value, &length);
996 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1013 int ret = 1;
1015 ret &= btif_config_remove(bdstr, "LE_KEY_PENC");
1017 ret &= btif_config_remove(bdstr, "LE_KEY_PID");
1019 ret &= btif_config_remove(bdstr, "LE_KEY_PCSRK");
1021 ret &= btif_config_remove(bdstr, "LE_KEY_LENC");
1023 ret &= btif_config_remove(bdstr, "LE_KEY_LCSRK");
1025 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1057 int ret =
1060 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1093 int ret = btif_config_get_bin("Adapter", name, (uint8_t*)key_value, &length);
1094 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1108 int ret = 1;
1110 ret &= btif_config_remove("Adapter", "LE_LOCAL_KEY_IR");
1112 ret &= btif_config_remove("Adapter", "LE_LOCAL_KEY_IRK");
1114 ret &= btif_config_remove("Adapter", "LE_LOCAL_KEY_DHK");
1116 ret &= btif_config_remove("Adapter", "LE_LOCAL_KEY_ER");
1118 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1181 int ret = btif_config_set_int(bdstr, "AddrType", (int)addr_type);
1182 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
1203 int ret = btif_config_get_int(bdstr, "AddrType", addr_type);
1204 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;