/Zephyr-latest/tests/lib/sprintf/src/ |
D | main.c | 124 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 128 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 132 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 136 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 140 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 144 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 150 zassert_true((strcmp(buffer, "-inf") == 0), in ZTEST() 154 zassert_true((strcmp(buffer, "-INF") == 0), in ZTEST() 158 zassert_true((strcmp(buffer, "-inf") == 0), in ZTEST() 162 zassert_true((strcmp(buffer, "-INF") == 0), in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_shell_stream.c | 62 if (strcmp("off", argv[2]) == 0) { in cmd_sensor_stream() 66 if (strcmp("on", argv[2]) != 0) { in cmd_sensor_stream() 71 if (strcmp("double_tap", argv[3]) == 0) { in cmd_sensor_stream() 73 } else if (strcmp("data_ready", argv[3]) == 0) { in cmd_sensor_stream() 75 } else if (strcmp("delta", argv[3]) == 0) { in cmd_sensor_stream() 77 } else if (strcmp("freefall", argv[3]) == 0) { in cmd_sensor_stream() 79 } else if (strcmp("motion", argv[3]) == 0) { in cmd_sensor_stream() 81 } else if (strcmp("near_far", argv[3]) == 0) { in cmd_sensor_stream() 83 } else if (strcmp("stationary", argv[3]) == 0) { in cmd_sensor_stream() 85 } else if (strcmp("threshold", argv[3]) == 0) { in cmd_sensor_stream() [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | ztest_strcmp.cocci | 12 // Comparing result of strcmp with 0 15 - zassert_equal(strcmp(E1, E2), 0); 19 - zassert_equal(strcmp(E1, E2), 0, E3); 23 - zassert_equal(0, strcmp(E1, E2)); 27 - zassert_equal(0, !strcmp(E1, E2), E3); 32 // Using assert_true with !strcmp 35 - zassert_true(!strcmp(E1, E2)); 39 - zassert_true(!strcmp(E1, E2), E3); 43 // using zassert_true with strcmp(E1, E2) == 0 46 - zassert_true(strcmp(E1, E2) == 0); [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/shell/ |
D | ll.c | 39 if (!strcmp(str_type, "random")) { in cmd_ll_addr_read() 41 } else if (!strcmp(str_type, "public")) { in cmd_ll_addr_read() 163 if (!strcmp(argv[1], "on")) { in cmd_advx() 166 } else if (!strcmp(argv[1], "hdcd")) { in cmd_advx() 172 } else if (!strcmp(argv[1], "ldcd")) { in cmd_advx() 175 } else if (!strcmp(argv[1], "off")) { in cmd_advx() 185 if (!strcmp(argv[2], "coded")) { in cmd_advx() 187 } else if (!strcmp(argv[2], "anon")) { in cmd_advx() 189 } else if (!strcmp(argv[2], "txp")) { in cmd_advx() 191 } else if (!strcmp(argv[2], "ad")) { in cmd_advx() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | addr.c | 97 if (!strcmp(type, "public") || !strcmp(type, "(public)")) { in bt_addr_le_from_str() 99 } else if (!strcmp(type, "random") || !strcmp(type, "(random)")) { in bt_addr_le_from_str() 101 } else if (!strcmp(type, "public-id") || !strcmp(type, "(public-id)")) { in bt_addr_le_from_str() 103 } else if (!strcmp(type, "random-id") || !strcmp(type, "(random-id)")) { in bt_addr_le_from_str()
|
/Zephyr-latest/tests/net/socket/getnameinfo/src/ |
D | main.c | 30 zassert_equal(strcmp(host, "0.0.0.0"), 0, ""); in ZTEST_USER() 31 zassert_equal(strcmp(serv, "0"), 0, ""); in ZTEST_USER() 41 zassert_equal(strcmp(host, "127.0.0.1"), 0, ""); in ZTEST_USER() 42 zassert_equal(strcmp(serv, "1234"), 0, ""); in ZTEST_USER() 60 zassert_equal(strcmp(host, "::"), 0, ""); in ZTEST_USER() 61 zassert_equal(strcmp(serv, "0"), 0, ""); in ZTEST_USER() 73 zassert_equal(strcmp(host, "ff55::11"), 0, ""); in ZTEST_USER() 74 zassert_equal(strcmp(serv, "4321"), 0, ""); in ZTEST_USER()
|
/Zephyr-latest/tests/lib/c_lib/strerror/src/ |
D | main.c | 25 zassert_equal(0, strcmp(expected, actual), in ZTEST() 36 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 39 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 49 zassert_equal(0, strcmp(expected, actual), in ZTEST()
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | cs.c | 290 if (!strcmp(argv[2], "local-only")) { in cmd_create_config() 292 } else if (!strcmp(argv[2], "local-only")) { in cmd_create_config() 300 if (!strcmp(argv[3], "initiator")) { in cmd_create_config() 302 } else if (!strcmp(argv[3], "reflector")) { in cmd_create_config() 327 if (!strcmp(argv[j], "rtt-none")) { in cmd_create_config() 330 } else if (!strcmp(argv[j], "pbr-none")) { in cmd_create_config() 333 } else if (!strcmp(argv[j], "both-none")) { in cmd_create_config() 336 } else if (!strcmp(argv[j], "pbr-rtt")) { in cmd_create_config() 339 } else if (!strcmp(argv[j], "pbr-both")) { in cmd_create_config() 342 } else if (!strcmp(argv[j], "both-pbr")) { in cmd_create_config() [all …]
|
D | bt.c | 1318 if (!strcmp(arg, "no-settings-load")) { in cmd_init() 1320 } else if (!strcmp(arg, "sync")) { in cmd_init() 1683 if (!strcmp(arg, "dups")) { in cmd_scan() 1685 } else if (!strcmp(arg, "nodups")) { in cmd_scan() 1687 } else if (!strcmp(arg, "fal")) { in cmd_scan() 1689 } else if (!strcmp(arg, "coded")) { in cmd_scan() 1691 } else if (!strcmp(arg, "no-1m")) { in cmd_scan() 1693 } else if (!strcmp(arg, "timeout")) { in cmd_scan() 1707 if (!strcmp(action, "on")) { in cmd_scan() 1709 } else if (!strcmp(action, "off")) { in cmd_scan() [all …]
|
/Zephyr-latest/tests/cmake/app_version/src/ |
D | main.c | 34 zassert_equal(0, strcmp("5.6.7-development", APP_VERSION_STRING)); in ZTEST() 35 zassert_equal(0, strcmp("5.6.7-development+89", APP_VERSION_EXTENDED_STRING)); in ZTEST() 36 zassert_equal(0, strcmp("5.6.7+89", APP_VERSION_TWEAK_STRING)); in ZTEST()
|
/Zephyr-latest/modules/lvgl/ |
D | lvgl_shell.c | 43 if (strcmp(str, "pointer") == 0) { in lvgl_monkey_indev_from_string() 45 } else if (strcmp(str, "keypad") == 0) { in lvgl_monkey_indev_from_string() 47 } else if (strcmp(str, "button") == 0) { in lvgl_monkey_indev_from_string() 49 } else if (strcmp(str, "encoder") == 0) { in lvgl_monkey_indev_from_string() 125 if (strcmp(argv[2], "active") == 0) { in cmd_lvgl_monkey_set() 127 } else if (strcmp(argv[2], "inactive") == 0) { in cmd_lvgl_monkey_set() 156 if (strcmp(argv[1], "-c") == 0) { in cmd_lvgl_stats_memory()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_shell.c | 177 if (strcmp(dtype, "-x") == 0) { in cmd_read() 187 } else if (strcmp(dtype, "-crc32") == 0) { in cmd_read() 200 } else if (strcmp(dtype, "-s") == 0) { in cmd_read() 210 } else if (strcmp(dtype, "-s8") == 0) { in cmd_read() 218 } else if (strcmp(dtype, "-s16") == 0) { in cmd_read() 226 } else if (strcmp(dtype, "-s32") == 0) { in cmd_read() 234 } else if (strcmp(dtype, "-s64") == 0) { in cmd_read() 242 } else if (strcmp(dtype, "-u8") == 0) { in cmd_read() 250 } else if (strcmp(dtype, "-u16") == 0) { in cmd_read() 258 } else if (strcmp(dtype, "-u32") == 0) { in cmd_read() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | has.c | 95 if (strcmp(arg, "binaural") == 0) { in cmd_features_set() 97 } else if (strcmp(arg, "monaural") == 0) { in cmd_features_set() 99 } else if (strcmp(arg, "banded") == 0) { in cmd_features_set() 101 } else if (strcmp(arg, "sync") == 0) { in cmd_features_set() 103 } else if (strcmp(arg, "independent") == 0) { in cmd_features_set() 132 if (strcmp(arg, "binaural") == 0) { in cmd_has_register() 134 } else if (strcmp(arg, "monaural") == 0) { in cmd_has_register() 136 } else if (strcmp(arg, "banded") == 0) { in cmd_has_register() 138 } else if (strcmp(arg, "sync") == 0) { in cmd_has_register() 140 } else if (strcmp(arg, "independent") == 0) { in cmd_has_register()
|
D | csip_set_member.c | 91 if (strcmp(arg, "size") == 0) { in cmd_csip_set_member_register() 116 } else if (strcmp(arg, "rank") == 0) { in cmd_csip_set_member_register() 140 } else if (strcmp(arg, "not-lockable") == 0) { in cmd_csip_set_member_register() 142 } else if (strcmp(arg, "sirk") == 0) { in cmd_csip_set_member_register() 247 if (strcmp(argv[1], "force") == 0) { in cmd_csip_set_member_release() 269 if (strcmp(argv[1], "accept") == 0) { in cmd_csip_set_member_sirk_rsp() 271 } else if (strcmp(argv[1], "accept_enc") == 0) { in cmd_csip_set_member_sirk_rsp() 273 } else if (strcmp(argv[1], "reject") == 0) { in cmd_csip_set_member_sirk_rsp() 275 } else if (strcmp(argv[1], "oob") == 0) { in cmd_csip_set_member_sirk_rsp()
|
D | tbs_client.c | 57 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_set_signal_strength_interval() 113 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_hold() 167 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_retrieve() 222 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_accept() 278 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_join() 337 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_terminate() 391 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_originate() 432 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_bearer_provider_name() 473 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_bearer_uci() 513 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_technology() [all …]
|
D | cap_acceptor.c | 107 if (strcmp(arg, "size") == 0) { in cmd_cap_acceptor_init() 132 } else if (strcmp(arg, "rank") == 0) { in cmd_cap_acceptor_init() 156 } else if (strcmp(arg, "not-lockable") == 0) { in cmd_cap_acceptor_init() 158 } else if (strcmp(arg, "sirk") == 0) { in cmd_cap_acceptor_init() 215 if (strcmp(argv[1], "force") == 0) { in cmd_cap_acceptor_release() 292 if (strcmp(argv[1], "accept") == 0) { in cmd_cap_acceptor_sirk_rsp() 294 } else if (strcmp(argv[1], "accept_enc") == 0) { in cmd_cap_acceptor_sirk_rsp() 296 } else if (strcmp(argv[1], "reject") == 0) { in cmd_cap_acceptor_sirk_rsp() 298 } else if (strcmp(argv[1], "oob") == 0) { in cmd_cap_acceptor_sirk_rsp()
|
/Zephyr-latest/tests/net/lib/coap_server/common/src/ |
D | main.c | 77 zassert_ok(strcmp(service_A.host, "a.service.com")); in ZTEST() 81 zassert_ok(strcmp(service_B.host, "b.service.com")); in ZTEST() 85 zassert_ok(strcmp(service_C.host, "192.168.1.1")); in ZTEST() 278 zassert_ok(strcmp(res->path[0], "res0")); in ZTEST() 282 zassert_ok(strcmp(res->path[0], "res1")); in ZTEST() 293 zassert_ok(strcmp(res->path[0], "res2")); in ZTEST() 294 zassert_ok(strcmp(res->path[1], "sub")); in ZTEST() 298 zassert_ok(strcmp(res->path[0], "res3")); in ZTEST() 299 zassert_ok(strcmp(res->path[1], "+")); in ZTEST() 310 zassert_ok(strcmp(res->path[0], "res4")); in ZTEST() [all …]
|
/Zephyr-latest/tests/lib/devicetree/api_ext/src/ |
D | main.c | 19 zassert_true(!strcmp(LINKER_DT_NODE_REGION_NAME(TEST_SRAM1), "SRAM_REGION"), ""); in ZTEST() 20 zassert_true(!strcmp(LINKER_DT_NODE_REGION_NAME(TEST_SRAM2), "SRAM_REGION_2"), ""); in ZTEST()
|
/Zephyr-latest/tests/subsys/shell/shell/src/ |
D | main.c | 212 if (!strcmp("argument_1", argv[i])) { in cmd_wildcard() 216 if (!strcmp("argument_2", argv[i])) { in cmd_wildcard() 220 if (!strcmp("dummy", argv[i])) { in cmd_wildcard() 242 if (!strcmp(dynamic_cmd_buffer[0], argv[i])) { in cmd_dynamic() 246 if (!strcmp(dynamic_cmd_buffer[1], argv[i])) { in cmd_dynamic() 353 if (strcmp(argv[0], STRINGIFY(CMD_MAND_1_OPT_RAW_NAME))) { in cmd_mand_1_opt_raw_handler() 356 if (strcmp(argv[1], RAW_ARG)) { in cmd_mand_1_opt_raw_handler() 386 if (strcmp(argv[0], STRINGIFY(CMD_MAND_2_OPT_RAW_NAME))) { in cmd_mand_2_opt_raw_handler() 390 if (argc >= 2 && strcmp(argv[1], "mandatory")) { in cmd_mand_2_opt_raw_handler() 394 if (argc == 3 && strcmp(argv[2], RAW_ARG)) { in cmd_mand_2_opt_raw_handler()
|
/Zephyr-latest/subsys/bluetooth/services/ias/shell/ |
D | ias_client.c | 69 if (strcmp(argv[1], "stop") == 0) { in cmd_ias_client_set_alert() 72 } else if (strcmp(argv[1], "mild") == 0) { in cmd_ias_client_set_alert() 75 } else if (strcmp(argv[1], "high") == 0) { in cmd_ias_client_set_alert()
|
/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztest_shell.c | 95 found = !strcmp(suite_arg, suite_name); in z_ztest_testargs_contains() 97 found &= !strcmp(test_arg, "*") || in z_ztest_testargs_contains() 98 !strcmp(test_arg, test_name); in z_ztest_testargs_contains()
|
/Zephyr-latest/subsys/net/lib/wifi_credentials/ |
D | wifi_credentials_shell.c | 93 if (strcmp("OPEN", s) == 0) { in parse_sec_type() 97 if (strcmp("WPA2-PSK", s) == 0) { in parse_sec_type() 101 if (strcmp("WPA2-PSK-SHA256", s) == 0) { in parse_sec_type() 105 if (strcmp("WPA3-SAE", s) == 0) { in parse_sec_type() 109 if (strcmp("WPA-PSK", s) == 0) { in parse_sec_type() 118 if (strcmp("2.4GHz", s) == 0) { in parse_band() 122 if (strcmp("5GHz", s) == 0) { in parse_band() 126 if (strcmp("6GHz", s) == 0) { in parse_band()
|
/Zephyr-latest/samples/subsys/shell/shell_module/src/ |
D | dynamic_cmd.c | 26 return strcmp((const char *)p_a, (const char *)p_b); in string_cmp() 59 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_add() 82 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_execute() 100 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_remove()
|
/Zephyr-latest/tests/ztest/base/src/ |
D | main.c | 112 if (strcmp(test->test_suite_name, "rules_tests") == 0 && in rule_before_each() 113 strcmp(test->name, "test_rules_before_after") == 0) { in rule_before_each() 129 if (strcmp(test->test_suite_name, "rules_tests") == 0 && in rule_after_each() 130 strcmp(test->name, "test_rules_before_after") == 0) { in rule_after_each()
|
/Zephyr-latest/subsys/shell/modules/kernel_service/ |
D | uptime.c | 30 if (strcmp("-p", argv[1]) && strcmp("--pretty", argv[1]) != 0) { in cmd_kernel_uptime()
|