Home
last modified time | relevance | path

Searched refs:one (Results 1 - 25 of 35) sorted by relevance

12

/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhcodec_list_unit_test.cpp64 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...]
/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/
H A Dcalculator.js23 '+': (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...]
/foundation/multimodalinput/input/frameworks/proxy/events/test/
H A Dvirtual_input_device_test.cpp38 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/resourceschedule/ffrt/src/sync/
H A Dio_poller.cpp99 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);
H A Dpoller.cpp235 uint64_t one = 1; variable
236 (void)::write(m_wakeData.fd, &one, sizeof one);
246 uint64_t one = 1; variable
247 (void)::read(m_wakeData.fd, &one, sizeof one);
H A Dwait_queue.cpp196 void WaitQueue::Notify(bool one) noexcept
232 if (isEmpty || one) {
H A Dwait_queue.h95 void Notify(bool one) noexcept;
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dtest_utils.cpp62 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()
/foundation/arkui/ace_engine_lite/frameworks/common/log/
H A Dace_log.h24 #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 Dnapi_number.cpp42 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()
/foundation/deviceprofile/device_info_manager/common/include/interfaces/
H A Ddp_subscribe_info.h66 int operator()(const SubscribeInfo& one, const SubscribeInfo& other) const in operator ()() argument
68 return (one.GetSaId() == other.GetSaId()) && (one.GetSubscribeKey() == other.GetSubscribeKey()); in operator ()()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dinspector_test_ng.cpp67 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...]
H A Dframe_node_test_ng.cpp39 auto one = FrameNode::GetOrCreateFrameNode("one", 1, []() { return AceType::MakeRefPtr<Pattern>(); }); in HWTEST_F() local
41 EXPECT_NE(one, nullptr); in HWTEST_F()
49 auto three = FrameNode::GetOrCreateFrameNode("one", 1, nullptr); in HWTEST_F()
63 auto one = FrameNode::GetOrCreateFrameNode("one", 1, []() { return AceType::MakeRefPtr<Pattern>(); }); in HWTEST_F() local
64 one->SetParent(FRAME_NODE_PARENT); in HWTEST_F()
66 EXPECT_NE(one, nullptr); in HWTEST_F()
311 auto one = FrameNode::CreateFrameNodeWithTree("main", 10, AceType::MakeRefPtr<Pattern>()); in HWTEST_F() local
312 EXPECT_NE(one, nullpt in HWTEST_F()
1105 auto one = FrameNode::GetOrCreateFrameNode("one", 11, []() { return AceType::MakeRefPtr<Pattern>(); }); HWTEST_F() local
1123 auto one = FrameNode::GetOrCreateFrameNode("one", 11, []() { return AceType::MakeRefPtr<Pattern>(); }); HWTEST_F() local
1177 auto one = FrameNode::GetOrCreateFrameNode("one", 12, []() { return AceType::MakeRefPtr<Pattern>(); }); HWTEST_F() local
[all...]
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_socket_listener.cpp89 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/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dclatd.cpp82 uint64_t one = 1; in Stop() local
83 write(stopFd_, &one, sizeof(one)); in Stop()
146 uint64_t one = 1; in RunLoop() local
147 read(stopFd_, &one, sizeof one); in RunLoop()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dfile_path.cpp133 std::string::size_type one = 1; in DirName() local
141 newPath.path_.resize(one); in DirName()
142 } else if (lastSeparator == one && IsSeparator(newPath.path_[zero])) { in DirName()
165 // one character and it's a separator, leave it alone. in BaseName()
180 uint32_t one = 1; in StripTrailingSeparatorsInternal() local
184 for (std::string::size_type pos = path_.length(); pos > start && FilePath::IsSeparator(path_[pos - one]); --pos) { in StripTrailingSeparatorsInternal()
185 if (pos != start + one || lastStripped == start + two || !FilePath::IsSeparator(path_[start - one])) { in StripTrailingSeparatorsInternal()
186 path_.resize(pos - one); in StripTrailingSeparatorsInternal()
/foundation/graphic/graphic_3d/kits/js/src/
H A Dregister_module.cpp34 napi_value one; in RegisterClasses() local
39 status = napi_create_double(env, 1.0, &one); in RegisterClasses()
100 {"w", nullptr, nullptr, nullptr, nullptr, one, napi_default_jsproperty, nullptr} in RegisterClasses()
/foundation/multimodalinput/input/intention/cooperate/plugin/include/
H A Dinput_device_mgr.h71 bool operator()(const std::shared_ptr<IDevice> &one, const std::shared_ptr<IDevice> &other) const in operator ()()
73 return one->GetId() < other->GetId(); in operator ()()
/foundation/arkui/napi/sample/native_module_demo/
H A Ddemo_javascript_class.cpp36 napi_value one = nullptr; in DemoJavascriptClassInit() local
41 napi_create_int32(env, TestEnum::ONE, &one); in DemoJavascriptClassInit()
51 DECLARE_NAPI_STATIC_PROPERTY("ONE", one), in DemoJavascriptClassInit()
/foundation/multimodalinput/input/service/timer_manager/src/
H A Dtimer_manager.cpp85 uint64_t one = 1; in TakeNextTimerId() local
88 timerSlot |= (one << timer->id); in TakeNextTimerId()
92 if ((timerSlot & (one << i)) == 0) { in TakeNextTimerId()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp273 const vector<uint8_t>& one = inputs[i]; in DumpSingleInput() local
274 dumpInFile.write(reinterpret_cast<char*>(const_cast<uint8_t*>(one.data())), one.size()); in DumpSingleInput()
460 const vector<uint8_t>& one = inputs[inputIndex]; in PrepareInputCodecBuffer() local
461 if (one.empty()) { in PrepareInputCodecBuffer()
465 errno_t ret = memcpy_s(buffer->GetAddr(), static_cast<size_t>(buffer->GetCapacity()), one.data(), one.size()); in PrepareInputCodecBuffer()
471 int32_t size = static_cast<int32_t>(one.size()); in PrepareInputCodecBuffer()
/foundation/communication/ipc/interfaces/innerkits/rust/src/ipc_async/
H A Dipc_ylong.rs43 // This shouldn't cause issues with blocking the thread as only one task will in spawn()
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhcodec_list.cpp124 for (const CodecCompCapability& one : capList) { in GetCapabilityList()
125 if (IsSupportedVideoCodec(one)) { in GetCapabilityList()
126 caps.emplace_back(HdiCapToUserCap(one)); in GetCapabilityList()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/heif_hw_decode/common/
H A Dmock_heif_hw_decode_flow.cpp157 for (const string& one : iFrameFile_) { in ReadInput()
158 IF_TRUE_RETURN_VAL_WITH_MSG(!ReadFileToVec(one, inputs), false, in ReadInput()
159 "failed to read iframe file: %{public}s", one.c_str()); in ReadInput()
/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp572 napi_value one = nullptr; in HWTEST_F() local
573 ASSERT_CHECK_CALL(napi_create_int32(env, 1, &one)); in HWTEST_F()
575 ASSERT_CHECK_CALL(napi_map_set_property(env, map, zero, one)); in HWTEST_F()
619 napi_value one = nullptr; in HWTEST_F() local
620 ASSERT_CHECK_CALL(napi_create_int32(env, 1, &one)); in HWTEST_F()
622 ASSERT_CHECK_CALL(napi_map_set_property(env, map, zero, one)); in HWTEST_F()
659 napi_value one = nullptr; in HWTEST_F() local
660 ASSERT_CHECK_CALL(napi_create_int32(env, 1, &one)); in HWTEST_F()
662 ASSERT_CHECK_CALL(napi_map_set_property(env, map, zero, one)); in HWTEST_F()

Completed in 15 milliseconds

12