/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hcodec_list_unit_test.cpp | 64 for (const int32_t& one : obj) { in GetPrintInfo() 66 (void)sprintf_s(tmp, sizeof(tmp), "%d,", one); in GetPrintInfo() 111 for (const CapabilityData& one : capData) { in HWTEST_F() 119 one.codecName.c_str(), one.codecType, one.mimeType.c_str(), one.isVendor, one.maxInstance, in HWTEST_F() 120 GetPrintInfo(one.bitrate).c_str(), GetPrintInfo(one in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | atomic64_test.c | 95 i, (i) + one, (i) + one); \ 101 i, (i) - one, (i) - one); \ 109 int one = 1; in test_atomic() local 115 TEST(, add, +=, -one); in test_atomic() 117 TEST(, sub, -=, -one); in test_atomic() 124 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic() 126 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic() 129 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic() 154 long long one = 1LL; test_atomic64() local [all...] |
H A D | test_stackinit.c | 70 #define INIT_STRUCT_static_all = { .one = 0, \ 76 #define INIT_STRUCT_dynamic_all = { .one = arg->one, \ 84 var.one = 0; \ 197 unsigned long one; member 205 size_t one; member 214 u8 one; member 222 char *one; member 231 u8 one; member
|
/kernel/linux/linux-6.6/lib/ |
H A D | atomic64_test.c | 95 i, (i) + one, (i) + one); \ 101 i, (i) - one, (i) - one); \ 109 int one = 1; in test_atomic() local 115 TEST(, add, +=, -one); in test_atomic() 117 TEST(, sub, -=, -one); in test_atomic() 124 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic() 126 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic() 129 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic() 154 long long one = 1LL; test_atomic64() local [all...] |
/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | virtual_input_device_test.cpp | 38 static bool CmpInputDevice(std::shared_ptr<InputDevice> one, std::shared_ptr<InputDevice> other); 82 bool VirtualInputDeviceTest::CmpInputDevice(std::shared_ptr<InputDevice> one, std::shared_ptr<InputDevice> other) in CmpInputDevice() argument 84 if (one == nullptr && other == nullptr) { in CmpInputDevice() 87 if (one == nullptr || other == nullptr) { in CmpInputDevice() 90 return one->GetName() == other->GetName() && one->GetType() == other->GetType() && in CmpInputDevice() 91 one->GetBus() == other->GetBus() && one->GetVersion() == other->GetVersion() && in CmpInputDevice() 92 one->GetProduct() == other->GetProduct() && one in CmpInputDevice() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/ |
H A D | calculator.js | 23 '+': (one, other) => one + other,
24 '-': (one, other) => one - other,
25 '*': (one, other) => one * other,
26 '/': (one, other) => one / other,
37 const one = numberStack.pop();
39 const result = OperatorHandlers[element](other, one);
[all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 113 int zero = 0, one = 1; in set_keepalive() local 115 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one))) in set_keepalive() 118 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive() 120 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive() 122 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive() 124 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeo in set_keepalive() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 112 int zero = 0, one = 1; in set_keepalive() local 114 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one))) in set_keepalive() 117 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive() 119 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive() 121 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive() 123 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeo in set_keepalive() [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A D | sc16is7xx.c | 366 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_read() local 369 regmap_read(one->regmap, reg, &val); in sc16is7xx_port_read() 376 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_write() local 378 regmap_write(one->regmap, reg, val); in sc16is7xx_port_write() 384 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_read() local 386 regmap_noinc_read(one->regmap, SC16IS7XX_RHR_REG, s->buf, rxlen); in sc16is7xx_fifo_read() 392 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_write() local 401 regmap_noinc_write(one->regmap, SC16IS7XX_THR_REG, s->buf, to_send); in sc16is7xx_fifo_write() 407 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_update() local 409 regmap_update_bits(one in sc16is7xx_port_update() 487 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_baud() local 696 sc16is7xx_update_mlines(struct sc16is7xx_one *one) sc16is7xx_update_mlines() argument 731 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_port_irq() local 806 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_tx_proc() local 839 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); sc16is7xx_reg_proc() local 878 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_clear() local 891 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_set() local 913 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, ms_work.work); sc16is7xx_ms_proc() local 927 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_enable_ms() local 938 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_start_tx() local 977 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_get_mctrl() local 986 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_mctrl() local 1003 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_termios() local 1116 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_config_rs485() local 1136 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_startup() local 1205 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_shutdown() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/ |
H A D | seccomp_benchmark.c | 79 double one = i_one, one_bump = one * 0.01; in approx() local 82 one_bump = one + MAX(one_bump, 2.0); in approx() 86 if (one == two || in approx() 87 (one > two && one <= two_bump) || in approx() 88 (two > one && two <= one_bump)) in approx() 101 unsigned long long one, bool (*eval)(int, int), unsigned long long two) in compare() 106 (long long)one, name_eval, (long long)two); in compare() 107 if (one > INT_MA in compare() 100 compare(const char *name_one, const char *name_eval, const char *name_two, unsigned long long one, bool (*eval)(int, int), unsigned long long two) compare() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | sk_bind_sendto_listen.c | 10 int fd1, fd2, one = 1; in main() local 27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main() 49 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
|
H A D | tcp_inq.c | 83 /* TCP_INQ can overestimate in-queue by one byte if we send in start_server() 99 int c, one = 1, inq = -1; in main() local 129 &one, sizeof(one)) != 0) in main() 146 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
|
H A D | sk_connect_zero_addr.c | 10 int fd1, fd2, one = 1; in main() local 27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
|
/foundation/resourceschedule/ffrt/src/sync/ |
H A D | io_poller.cpp | 99 uint64_t one = 1; variable 100 ssize_t n = ::write(m_wakeData.fd, &one, sizeof one); 101 FFRT_ASSERT(n == sizeof one); 151 uint64_t one = 1; variable 152 ssize_t n = ::read(m_wakeData.fd, &one, sizeof one); 153 FFRT_ASSERT(n == sizeof one);
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | test_utils.cpp | 62 for (const auto& one : records_) { in Print() 63 TLOGI("%s everage cost %.3f ms", one.first.c_str(), in Print() 64 one.second.totalCost / US_TO_MS / one.second.totalCnt); in Print()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | sc16is7xx.c | 349 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_line() local 351 return one->line; in sc16is7xx_line() 704 * When this happens, read one byte from the FIFO to in sc16is7xx_port_irq() 783 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); in sc16is7xx_reg_proc() local 787 spin_lock_irqsave(&one->port.lock, irqflags); in sc16is7xx_reg_proc() 788 config = one->config; in sc16is7xx_reg_proc() 789 memset(&one->config, 0, sizeof(one->config)); in sc16is7xx_reg_proc() 790 spin_unlock_irqrestore(&one->port.lock, irqflags); in sc16is7xx_reg_proc() 793 sc16is7xx_port_update(&one in sc16is7xx_reg_proc() 817 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_clear() local 837 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_start_tx() local 862 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_mctrl() local 975 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_config_rs485() local 1006 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_startup() local [all...] |
H A D | max310x.c | 637 struct max310x_one *one = to_max310x_port(port); in max310x_batch_write() local 640 .tx_buf = &one->wr_header, in max310x_batch_write() 641 .len = sizeof(one->wr_header), in max310x_batch_write() 652 struct max310x_one *one = to_max310x_port(port); in max310x_batch_read() local 655 .tx_buf = &one->rd_header, in max310x_batch_read() 656 .len = sizeof(one->rd_header), in max310x_batch_read() 667 struct max310x_one *one = to_max310x_port(port); in max310x_handle_rx() local 683 max310x_batch_read(port, one->rx_buf, rxlen); in max310x_handle_rx() 695 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx() 703 one in max310x_handle_rx() 803 struct max310x_one *one = to_max310x_port(port); max310x_start_tx() local 864 struct max310x_one *one = container_of(ws, struct max310x_one, tx_work); max310x_tx_proc() local 886 struct max310x_one *one = container_of(ws, struct max310x_one, md_work); max310x_md_proc() local 896 struct max310x_one *one = to_max310x_port(port); max310x_set_mctrl() local 1020 struct max310x_one *one = container_of(ws, struct max310x_one, rs_work); max310x_rs_proc() local 1043 struct max310x_one *one = to_max310x_port(port); max310x_rs485_config() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | connect_close.c | 53 int c, one = 1, s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_accept() local 58 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); in do_accept() 59 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in do_accept()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | nettest.c | 365 int one = 1; in set_pktinfo_v4() local 368 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4() 377 int one = 1; in set_recvpktinfo_v6() local 380 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); in set_recvpktinfo_v6() 389 int one = 1; in set_recverr_v4() local 392 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4() 401 int one in set_recverr_v6() local 468 unsigned int one = 1; set_broadcast() local 481 unsigned int one = 1; set_reuseport() local 494 unsigned int one = 1; set_reuseaddr() local 1034 int one = 1; msock_init() local [all...] |
H A D | tcp_inq.c | 83 /* TCP_INQ can overestimate in-queue by one byte if we send in start_server() 99 int c, one = 1, inq = -1; in main() local 129 &one, sizeof(one)) != 0) in main() 146 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
|
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | inspector_test_ng.cpp | 67 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 131 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 157 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 266 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 349 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 378 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 409 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 418 nodePtr = Inspector::GetFrameNodeByKey("one"); in HWTEST_F() 438 RefPtr<FrameNode> ONE = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); in HWTEST_F() 448 auto frameNode = Inspector::GetFrameNodeByKey("one"); in HWTEST_F() 589 RefPtr<FrameNode> one = nullptr; HWTEST_F() local 613 RefPtr<FrameNode> one = nullptr; HWTEST_F() local 638 RefPtr<FrameNode> one = FrameNode::CreateFrameNode("one", id, AceType::MakeRefPtr<Pattern>(), true); HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/services/mdnsmanager/src/ |
H A D | mdns_socket_listener.cpp | 89 const int one = 1; in InitSocketV4() local 102 (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP, reinterpret_cast<const char *>(&one), sizeof(one)) == 0) && in InitSocketV4() 103 (setsockopt(sock, IPPROTO_IP, IP_PKTINFO, reinterpret_cast<const char *>(&one), sizeof(one)) == 0) && in InitSocketV4() 139 const int one = 1; in InitSocketV6() local 150 (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, reinterpret_cast<const char *>(&one), sizeof(one)) == 0) && in InitSocketV6() 151 (setsockopt(sock, IPPROTO_IPV6, IPV6_2292PKTINFO, reinterpret_cast<const char *>(&one), sizeof(one)) in InitSocketV6() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/common/log/ |
H A D | ace_log.h | 24 #error Only one marco can be defined 27 #error Only one marco can be defined 30 #error Only one macro can be defined
|
/foundation/arkui/napi/sample/native_module_calc/ |
H A D | napi_number.cpp | 42 napi_value one = nullptr; in Export() local 47 napi_create_int32(env, TestEnum::ONE, &one); in Export() 53 DECLARE_NAPI_STATIC_PROPERTY("ONE", one), in Export()
|
/kernel/linux/linux-5.10/drivers/misc/lkdtm/ |
H A D | usercopy.c | 136 unsigned char *one, *two; in do_usercopy_heap_size() local 141 one = kmalloc(size, GFP_KERNEL); in do_usercopy_heap_size() 143 if (!one || !two) { in do_usercopy_heap_size() 156 memset(one, 'A', size); in do_usercopy_heap_size() 160 test_kern_addr = one + 16; in do_usercopy_heap_size() 191 kfree(one); in do_usercopy_heap_size()
|