Home
last modified time | relevance | path

Searched refs:bt_uuid_cmp (Results 1 – 25 of 73) sorted by relevance

123

/Zephyr-latest/tests/bluetooth/uuid/src/
Dtest_bt_uuid_cmp.c15 ZTEST_SUITE(bt_uuid_cmp, NULL, NULL, NULL, NULL, NULL);
17 ZTEST(bt_uuid_cmp, test_uuid_cmp) in ZTEST() argument
20 zassert_false(bt_uuid_cmp(&uuid_16.uuid, BT_UUID_DECLARE_16(0xffff)), in ZTEST()
24 zassert_false(bt_uuid_cmp(&uuid_128.uuid, BT_UUID_DECLARE_16(0xffff)), in ZTEST()
28 zassert_false(bt_uuid_cmp(&uuid_16.uuid, &uuid_128.uuid), in ZTEST()
32 zassert_true(bt_uuid_cmp(&uuid_16.uuid, BT_UUID_DECLARE_16(0x0000)), in ZTEST()
36 zassert_true(bt_uuid_cmp(&uuid_128.uuid, BT_UUID_DECLARE_16(0x000)), in ZTEST()
Dtest_bt_uuid_create.c30 zassert_true(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0001)) == 0, in ZTEST()
34 zassert_true(bt_uuid_cmp(&u.uuid, &le_128.uuid) == 0, in ZTEST()
38 zassert_false(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0100)) == 0, in ZTEST()
46 zassert_false(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0001)) == 0, in ZTEST()
50 zassert_false(bt_uuid_cmp(&u.uuid, &le_128.uuid) == 0, in ZTEST()
54 zassert_true(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0100)) == 0, in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dpacs_notify_client_test.c108 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_SUPPORTED_CONTEXT)) { in discover_supported_contexts()
121 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_supported_contexts()
175 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_AVAILABLE_CONTEXT)) { in discover_available_contexts()
188 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_available_contexts()
242 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_SRC_LOC)) { in discover_src_loc()
255 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_src_loc()
309 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_SNK_LOC)) { in discover_snk_loc()
322 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_snk_loc()
376 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_SRC)) { in discover_pacs_src()
389 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_pacs_src()
[all …]
Dhas_client_test.c444 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_HEARING_AID_FEATURES)) { in discover_features_cb()
457 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_features_cb()
510 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_ACTIVE_PRESET_INDEX)) { in discover_active_preset_index_cb()
523 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_active_preset_index_cb()
575 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_PRESET_CONTROL_POINT)) { in discover_control_point_cb()
588 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_control_point_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/authorization/src/
Dgatt_client_test.c123 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
138 if (bt_uuid_cmp(chrc->uuid, TEST_UNHANDLED_CHRC_UUID) == 0) { in discover_func()
141 } else if (bt_uuid_cmp(chrc->uuid, TEST_UNAUTHORIZED_CHRC_UUID) == 0) { in discover_func()
144 } else if (bt_uuid_cmp(chrc->uuid, TEST_AUTHORIZED_CHRC_UUID) == 0) { in discover_func()
147 } else if (bt_uuid_cmp(chrc->uuid, TEST_CP_CHRC_UUID) == 0) { in discover_func()
Dgatt_server_test.c292 if (bt_uuid_cmp(attr->uuid, TEST_UNAUTHORIZED_CHRC_UUID) == 0) { in gatt_read_authorize()
295 } else if (bt_uuid_cmp(attr->uuid, TEST_AUTHORIZED_CHRC_UUID) == 0) { in gatt_read_authorize()
305 if (bt_uuid_cmp(attr->uuid, TEST_UNAUTHORIZED_CHRC_UUID) == 0) { in gatt_write_authorize()
308 } else if (bt_uuid_cmp(attr->uuid, TEST_AUTHORIZED_CHRC_UUID) == 0) { in gatt_write_authorize()
/Zephyr-latest/samples/bluetooth/central_otc/src/
Dmain.c246 if (bt_uuid_cmp(uuid, BT_UUID_OTS) != 0) { in eir_found()
371 if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS) == 0) { in discover_func()
382 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_FEATURE) == 0) { in discover_func()
395 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_NAME) == 0) { in discover_func()
408 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_TYPE) == 0) { in discover_func()
421 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_SIZE) == 0) { in discover_func()
434 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_ID) == 0) { in discover_func()
447 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_PROPERTIES) == 0) { in discover_func()
459 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_ACTION_CP) == 0) { in discover_func()
471 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_LIST_CP) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/general/src/
Dgatt_client_test.c137 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
152 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func()
155 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func()
158 } else if (bt_uuid_cmp(chrc->uuid, TEST_ENC_CHRC_UUID) == 0) { in discover_func()
161 } else if (bt_uuid_cmp(chrc->uuid, TEST_LESC_CHRC_UUID) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify_multiple/src/
Dgatt_client_test.c143 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
158 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func()
161 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func()
164 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func()
/Zephyr-latest/samples/bluetooth/central_hr/src/
Dmain.c63 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HRS)) { in discover_func()
73 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func()
127 if (bt_uuid_cmp(uuid, BT_UUID_HRS)) { in eir_found()
/Zephyr-latest/samples/bluetooth/central_ht/src/
Dmain.c86 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HTS)) { in discover_func()
96 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func()
183 if (bt_uuid_cmp(uuid, BT_UUID_HTS)) { in eir_found()
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Dgatt_expects.h30 zassert_true(bt_uuid_cmp(_uuid, params->uuid) == 0, \
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dcentral.c94 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_SC) == 0) { in discover_func()
111 bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disable/src/
Dgatt_client_test.c122 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
137 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func()
140 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dgatt_utils.c147 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func()
151 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_SC) == 0) { in discover_func()
155 } else if (bt_uuid_cmp(chrc->uuid, &test_chrc_uuid.uuid) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt_notif/src/
Dserver_test.c81 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
96 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func()
/Zephyr-latest/subsys/bluetooth/mesh/
Dgatt_cli.c109 if (!bt_uuid_cmp(server->discover.uuid, &server->gatt->srv_uuid.uuid)) { in discover_func()
120 } else if (!bt_uuid_cmp(server->discover.uuid, in discover_func()
132 } else if (!bt_uuid_cmp(server->discover.uuid, in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/samples/battery_service/src/
Dcentral_test.c519 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS)) { in discover_func()
531 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS_BATTERY_LEVEL)) { in discover_func()
544 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS_BATTERY_LEVEL_STATUS)) { in discover_func()
557 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS_BATTERY_CRIT_STATUS)) { in discover_func()
/Zephyr-latest/subsys/bluetooth/audio/
Dpbp.c80 if (bt_uuid_cmp(&adv_uuid.uuid, BT_UUID_PBA)) { in bt_pbp_parse_announcement()
Dtmap.c107 if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_TMAS)) { in discover_func()
120 } else if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_GATT_TMAPR)) { in discover_func()
Dmcc.c1411 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_FEATURE)) { in discover_otc_char_func()
1414 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_NAME)) { in discover_otc_char_func()
1417 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_TYPE)) { in discover_otc_char_func()
1420 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_SIZE)) { in discover_otc_char_func()
1423 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_ID)) { in discover_otc_char_func()
1426 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_PROPERTIES)) { in discover_otc_char_func()
1429 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_ACTION_CP)) { in discover_otc_char_func()
1434 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_LIST_CP)) { in discover_otc_char_func()
1502 if (bt_uuid_cmp(include->uuid, BT_UUID_OTS)) { in discover_include_func()
1789 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PLAYER_NAME)) { in discover_mcs_char_func()
[all …]
Dtbs_client.c1581 if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_CALL_STATE) == 0) { in discover_func()
1587 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_PROVIDER_NAME) == 0) { in discover_func()
1594 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_UCI) == 0) { in discover_func()
1599 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_TECHNOLOGY) == 0) { in discover_func()
1606 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_URI_LIST) == 0) { in discover_func()
1611 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_SIGNAL_STRENGTH) == 0) { in discover_func()
1619 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_SIGNAL_INTERVAL) == 0) { in discover_func()
1625 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_LIST_CURRENT_CALLS) == 0) { in discover_func()
1632 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CCID) == 0) { in discover_func()
1637 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_INCOMING_URI) == 0) { in discover_func()
[all …]
/Zephyr-latest/samples/bluetooth/mtu_update/central/src/
Dcentral_mtu_update.c76 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_MTU_TEST)) { in discover_func()
86 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_MTU_TEST_NOTIFY)) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify/src/
Dgatt_client_test.c125 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func()
140 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func()
143 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/
Dtest_connect1.c195 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HRS)) { in discover_func()
205 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func()
354 if (bt_uuid_cmp(uuid, BT_UUID_HRS)) { in eir_found()

123