/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/ |
H A D | benchmark_assert.h | 22 void AssertEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertEqual() argument 24 if (t1 != t2) { in AssertEqual() 30 void AssertUnequal(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertUnequal() argument 32 if (t1 == t2) { in AssertUnequal() 54 void AssertLessThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertLessThan() argument 56 if (t1 >= t2) { in AssertLessThan() 62 void AssertLessThanOrEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& sta… in AssertLessThanOrEqual() argument 64 if (t1 > t2) { in AssertLessThanOrEqual() 70 void AssertGreaterThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertGreaterThan() argument 72 if (t1 <= t2) { in AssertGreaterThan() [all …]
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_performance_test.cpp | 118 auto t1 = std::chrono::high_resolution_clock::now(); in ParseIndexCost() local 232 auto t1 = std::chrono::high_resolution_clock::now(); variable 267 auto t1 = std::chrono::high_resolution_clock::now(); variable 461 auto t1 = std::chrono::high_resolution_clock::now(); variable 487 auto t1 = std::chrono::high_resolution_clock::now(); variable 708 auto t1 = std::chrono::high_resolution_clock::now(); variable 734 auto t1 = std::chrono::high_resolution_clock::now(); variable 763 auto t1 = std::chrono::high_resolution_clock::now(); variable 789 auto t1 = std::chrono::high_resolution_clock::now(); variable 818 auto t1 = std::chrono::high_resolution_clock::now(); variable [all …]
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | resource_manager_performance_test.cpp | 150 auto t1 = std::chrono::high_resolution_clock::now(); in TestLoadFromIndex() local 225 auto t1 = std::chrono::high_resolution_clock::now(); variable 260 auto t1 = std::chrono::high_resolution_clock::now(); variable 454 auto t1 = std::chrono::high_resolution_clock::now(); variable 480 auto t1 = std::chrono::high_resolution_clock::now(); variable 701 auto t1 = std::chrono::high_resolution_clock::now(); variable 727 auto t1 = std::chrono::high_resolution_clock::now(); variable 756 auto t1 = std::chrono::high_resolution_clock::now(); variable 782 auto t1 = std::chrono::high_resolution_clock::now(); variable 811 auto t1 = std::chrono::high_resolution_clock::now(); variable [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/benchmarks/ |
H A D | plot.py | 50 t1 = pandas.read_csv(os.path.join(path, 'perf_thread1.csv')) 54 t1_fork_join = [(t1[' fork_join'][i] / t1['repeat'][i] * 56 t1_fork_join_worker_submit = [(t1['fork_join_worker_submit'][i] / t1['repeat'] 58 t1_airaw = [(t1['airaw'][i] / t1['repeat'][i] * 1 - stall[i] 60 t1_airaw_worker_submit = [(t1['airaw_worker_submit'][i] / t1['repeat'] 62 t1_fib_data_wait = [(t1['fib_data_wait'][i] / t1['repeat'][i] 64 t1_fib_child_wait = [(t1['fib_child_wait'][i] / t1['repeat'][i] 66 t1_fib_no_wait = [(t1['fib_no_wait'][i] / t1['repeat'][i]
|
/ohos5.0/base/global/i18n/frameworks/zone/test/unittest/ |
H A D | zone_util_performance_test.cpp | 65 auto t1 = std::chrono::high_resolution_clock::now(); variable 68 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); 91 auto t1 = std::chrono::high_resolution_clock::now(); variable 115 auto t1 = std::chrono::high_resolution_clock::now(); variable 118 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); 138 auto t1 = std::chrono::high_resolution_clock::now(); variable 141 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); 161 auto t1 = std::chrono::high_resolution_clock::now(); variable 164 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); 184 auto t1 = std::chrono::high_resolution_clock::now(); variable [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | lock_parser_test.cpp | 114 std::thread t1([&tid, &mutex] { in __anon7b59231d0202() variable 147 if (t1.joinable()) { 148 t1.join(); 201 if (t1.joinable()) { 202 t1.join(); 240 if (t1.joinable()) { 241 t1.join(); 279 if (t1.joinable()) { 280 t1.join(); 334 if (t1.joinable()) { [all …]
|
/ohos5.0/base/update/updater/test/unittest/test_data/src/ |
H A D | test_math.us | 28 t1 = 3.0 + 10.0; 30 t3 = (t1 + t2) * (t1 - t2); 31 t4 = t1 / t2; 33 Stdout(t1, t2, t3, t4); 35 Stdout(t1, t2, t3, t4);
|
/ohos5.0/base/update/updater/test/fuzztest/fuzz_src_data/ |
H A D | test_math.us | 28 t1 = 3.0 + 10.0; 30 t3 = (t1 + t2) * (t1 - t2); 31 t4 = t1 / t2; 33 Stdout(t1, t2, t3, t4); 35 Stdout(t1, t2, t3, t4);
|
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/cpp_ext/ |
H A D | type_cast_ext.h | 34 inline bool IsSameType(const std::type_info &t1, const std::type_info &t2) noexcept in IsSameType() argument 36 if (t1 == t2) { in IsSameType() 39 auto t1Length = strlen(t1.name()); in IsSameType() 40 if (t1Length == strlen(t2.name()) && strncmp(t1.name(), t2.name(), t1Length) == 0) { in IsSameType() 46 inline bool IsSameType(std::string_view t1, std::string_view t2) noexcept 48 return std::string(t1) == std::string(t2);
|
/ohos5.0/foundation/multimedia/media_foundation/engine/include/plugin/common/ |
H A D | type_cast_ext.h | 35 inline bool IsSameType(const std::type_info& t1, const std::type_info& t2) noexcept in IsSameType() argument 37 if (t1 == t2) { in IsSameType() 40 auto t1Length = strlen(t1.name()); in IsSameType() 41 if (t1Length == strlen(t2.name()) && strncmp(t1.name(), t2.name(), t1Length) == 0) { in IsSameType() 47 inline bool IsSameType(std::string_view t1, std::string_view t2) noexcept 49 return std::string(t1) == std::string(t2);
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_extension/ |
H A D | cloud_extension_stub.js | 165 let t1 = q1[s1]; 166 u.writeString(t1.appId); 167 u.writeString(t1.bundleName); 169 u.writeInt(t1.instanceId); 441 let t1 = k3[s1]; 442 if (t1 === undefined || t1 === null) { 453 u.writeLong(t1); 458 u.writeString(t1); 462 u.writeBoolean(t1); 501 if (t1.status) { [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | datetime_ex.cpp | 76 auto t1 = system_clock::to_time_t(system_clock::now()); in GetLocalTimeZone() local 77 auto t2 = t1; in GetLocalTimeZone() 80 struct tm* localTime = localtime_r(&t1, &curTime1); in GetLocalTimeZone() 86 t1 = mktime(&curTime1); in GetLocalTimeZone() 88 if ((t1 == -1) || (t2 == -1)) { in GetLocalTimeZone() 93 timezone = (static_cast<int>(t1 - t2)) / SECONDS_PER_HOUR; in GetLocalTimeZone()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/common/include/ |
H A D | cgroup_sched_common.h | 37 t1 = Clock::now(); in ChronoScope() 42 t1 = Clock::now(); in ChronoScope() 48 MilliSecondsType time_span = std::chrono::duration_cast<MilliSecondsType>(t2 - t1); in ~ChronoScope() 63 Clock::time_point t1; variable
|
/ohos5.0/base/telephony/cellular_call/services/control/include/ |
H A D | control_base.h | 220 T2 FindConnectionByState(const T1 &&t1, TelCallState state) const in FindConnectionByState() argument 222 for (auto &it : t1) { in FindConnectionByState() 239 T2 FindConnectionByIndex(const T1 &&t1, int32_t index) const in FindConnectionByIndex() argument 241 for (auto &it : t1) { in FindConnectionByIndex() 259 bool SetConnectionData(T1 &&t1, const int32_t &key, const T2 &con) in SetConnectionData() argument 261 if (!t1.insert(std::make_pair(key, con)).second) { in SetConnectionData()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/curves/ |
H A D | bezier_curve.cpp | 95 float t1 = 1.f; in GetLinearX() local 97 while (t0 < t1) { in GetLinearX() 104 t1 = tt; in GetLinearX() 106 tt = (t1 - t0) * .5f + t0; in GetLinearX()
|
/ohos5.0/foundation/ai/ai_engine/services/common/utils/ |
H A D | inf_cast_impl.h | 76 static I* Create(T1& t1, T2& t2) in Create() argument 79 AIE_NEW(p, C(t1, t2)); in Create() 93 static I* Create(T1& t1, T2& t2, T3& t3) in Create() argument 96 AIE_NEW(p, C(t1, t2, t3)); in Create()
|
/ohos5.0/base/security/access_token/frameworks/common/src/ |
H A D | time_util.cpp | 36 struct tm t1 = {0}; in IsTimeStampsSameMinute() local 39 localtime_r(&time1, &t1); in IsTimeStampsSameMinute() 44 return t1.tm_min == t2.tm_min; in IsTimeStampsSameMinute()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_encoder.cpp | 236 int32_t t1[VALUE_4] = {}; in AnalyzeFourFunction() local 239 t1[VALUE_0] = t1[VALUE_1] = t1[VALUE_2] = t1[VALUE_3] = in AnalyzeFourFunction() 242 AnalyzeFourForPolyphaseFilter(t1, inData, consts); in AnalyzeFourFunction() 243 AnalyzeFourForScaling(t1, t2); in AnalyzeFourFunction() 244 AnalyzeFourForCosTransform(t1, t2, consts); in AnalyzeFourFunction() 328 int32_t t1[VALUE_8] = {}; in AnalyzeEightFunction() local 331 t1[VALUE_0] = t1[VALUE_1] = t1[VALUE_2] = t1[VALUE_3] = t1[VALUE_4] = in AnalyzeEightFunction() 332 …t1[VALUE_5] = t1[VALUE_6] = t1[VALUE_7] = static_cast<int32_t>(VALUE_1 << (PROTO_BAND8_SCALE - VAL… in AnalyzeEightFunction() 333 AnalyzeEightForPolyphaseFilter(t1, inData, consts); in AnalyzeEightFunction() 334 AnalyzeEightForScaling(t1, t2); in AnalyzeEightFunction() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | high-performance-programming.md | 121 getInfo(t1, t2) { 122 if (!this.check(t1, t2)) { 128 let t1= info[t2]; 129 return (t1!= null) ? t1: ""; 147 getInfo(t1, t2) { 148 if (!this.check(t1, t2)) { 154 let t1= info.get(t2); 155 return (t1!= null) ? t1: "";
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-64bits-coding-guide.md | 461 int32_t t1 = -2; 463 int32_t t3 = t1 + t2; 469 t1是个32位数,t2是个64位数,在做运算之前,先把t1也扩展成64位的。加法完成之后结果是一个64位的int64_t类型,在内存中16进制存储值为:0xffffffffffffffff,在给32… 474 int64_t t1 = -1; 475 uint32_t t2 = t1; 481 t1是个64位int64_t类型,用二进制表示为0xffffffffffffffff,如果赋值给一个32位int类型,高32位丢失,直接显示位低32位的值,二进制为0xffffffff,按照无符号方… 486 int32_t t1 = -1; 487 uint64_t t2 = t1;
|
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_queue.cpp | 230 ffrt_task_handle_t t1 = variable 234 cancelFailedNum += ffrt_queue_cancel(t1); 235 ffrt_task_handle_destroy(t1); // 销毁task_handle,必须 293 ffrt_task_handle_t t1 = variable 295 int cancel = ffrt_queue_cancel(t1); 297 cancel = ffrt_queue_cancel(t1); 299 ffrt_task_handle_destroy(t1); // 销毁task_handle,必须 354 ffrt_task_handle_t t1 = variable 357 ffrt_queue_wait(t1); 358 ffrt_task_handle_destroy(t1);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | spline.h | 26 inline constexpr T Hermite(T const& v1, T const& t1, T const& v2, T const& t2, float s) in BASE_BEGIN_NAMESPACE() 38 return v1 * f1 + v2 * f2 + t1 * f3 + t2 * f4; in BASE_BEGIN_NAMESPACE()
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | jsvm-guidelines.md | 162 // t1线程先获取锁,并继续JSVM-API的调用 163 // t2线程会在获取锁处阻塞,直到t1线程执行结束释放锁后,t2线程继续执行,调用JSVM-API接口 178 std::thread t1([]() { 185 OH_LOG_INFO(LOG_APP, "JSVM:t1 OH_JSVM_CreateInt32 suc"); 187 OH_LOG_ERROR(LOG_APP, "JSVM:t1 OH_JSVM_CreateInt32 fail"); 191 OH_LOG_INFO(LOG_APP, "JSVM:t1 num1 = %{public}d", num1); 210 t1.detach();
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/ |
H A D | v2_json_coder.ts | 184 const t1 = Array.isArray(json); 187 if (t1 && t2) { 189 } else if (!t1 && !t2) { 192 throw new Error(`The type of target '${t2}' mismatches the type of source '${t1}'`);
|
/ohos5.0/base/startup/hvb/libhvb/src/crypto/ |
H A D | hvb_hash_sha256.c | 146 uint32_t t1; in sha256_block_calc() local 152 t1 = regs[7] + sigma_1(regs[4]) + ch(regs[4], regs[5], regs[6]) + const_key[t] + w[t]; in sha256_block_calc() 153 regs[3] += t1; in sha256_block_calc() 154 regs[7] = sigma_0(regs[0]) + maj(regs[0], regs[1], regs[2]) + t1; in sha256_block_calc()
|