/test/xts/acts/multimedia/image/image_js_standard/imageWebp/src/main/js/test/ |
D | webp.test.js | 200 var pos = widthSize * h + pixelSize * w; 201 colorArr[pos + 0] = 255; // r 202 colorArr[pos + 1] = 0; 203 colorArr[pos + 2] = 0; 204 colorArr[pos + 3] = 255; 209 var pos = widthSize * h + pixelSize * w; 210 colorArr[pos + 0] = 0; 211 colorArr[pos + 1] = 255; // g 212 colorArr[pos + 2] = 0; 213 colorArr[pos + 3] = 255; [all …]
|
/test/xts/acts/kernel_lite/mem_posix/src/ |
D | ActsMemApiTest.cpp | 243 char *pos = nullptr; variable 246 pos = (char *)memchr(srcStr, 'a', 14); 247 LogPrint(" --> return pos:='%x'\n", pos); 249 ASSERT_TRUE(pos) 251 << " --> return pos:='" << pos << "'"; 261 char *pos = nullptr; variable 264 pos = (char *)memchr(srcStr, 'a', 4); 265 LogPrint(" --> return pos:='%x'\n", pos); 266 ASSERT_FALSE(pos) 268 << " --> return pos:='" << pos << "'"; [all …]
|
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/members/ |
D | readtext.test.js | 57 let pos = 1; 62 let str = fileio.readTextSync(fpath, { position: pos }); 63 expect(str == FILE_CONTENT.substring(pos, FILE_CONTENT.length + 1)).assertTrue(); 82 let pos = 1; 87 let str = fileio.readTextSync(fpath, { position: pos, length: len }); 88 expect(str == FILE_CONTENT.substring(pos, len + 1)).assertTrue(); 218 let pos = 1; 223 … fileio.readText(fpath, { position: pos, length: len, encoding: 'utf-8' }, function (err, str) { 224 expect(str == FILE_CONTENT.substr(pos, len)).assertTrue(); 245 let pos = 1; [all …]
|
/test/testfwk/developer_test/aw/python/distributed/common/ |
D | common.py | 35 pos = filedir.find(findkey) 36 if -1 != pos: 37 subpath = filedir[pos + len(findkey):] 65 pos = phone_res_dir.find(os.sep + "tests" + os.sep) 66 if pos != -1: 67 prefix_path = phone_res_dir[:pos] 68 suffix_path = phone_res_dir[pos + 1:]
|
/test/xts/acts/graphic/graphicnapidrawingtest/ |
D | NativeDrawingCanvasTest.cpp | 338 float pos[] = {0., 1.0}; variable 340 color, pos, 2, OH_Drawing_TileMode::CLAMP); 363 float pos[] = {0., 1.0}; variable 368 pos, 2, OH_Drawing_TileMode::MIRROR); 388 float pos[] = {0., 1.0}; variable 393 pos, 2, OH_Drawing_TileMode::MIRROR); 541 runBuffer->pos[0] = 0; 542 runBuffer->pos[1] = 0; 544 runBuffer->pos[2] = 14.9; 545 runBuffer->pos[3] = 0; [all …]
|
/test/ostest/wukong/component_event/src/ |
D | wukong_tree.cpp | 63 size_t pos = name.find(target); in GetClearnAbility() local 64 while (pos != std::string::npos) { in GetClearnAbility() 65 name.replace(pos, target.length(), replacement); in GetClearnAbility() 66 pos = name.find(target, pos + replacement.length()); in GetClearnAbility()
|
/test/testfwk/developer_test/src/core/config/ |
D | resource_manager.py | 139 pos = push_value.find(find_key) 140 src = os.path.join(resource_dir, push_value[0:pos].strip()) 141 dst = push_value[pos + len(find_key):len(push_value)].strip() 153 pos = push_value.find(find_key) 154 src = os.path.join(resource_dir, push_value[0:pos].strip()) 155 dst = push_value[pos + len(find_key):len(push_value)].strip() 173 pos = copy_value.find(find_key) 174 src = os.path.join(resource_dir, copy_value[0:pos].strip()) 175 dst = copy_value[pos + len(find_key):len(copy_value)].strip() 181 pos = copy_value.find(find_key) [all …]
|
/test/testfwk/developer_test/libs/benchmark/report/ |
D | generate_report.py | 62 pos = file_path.rfind(os.sep) 63 file_name = file_path[pos + 1:] 147 pos = json_file.find(src_path) 148 subsystem_root = json_file[pos + len(src_path):] 261 pos = content_new.find(BenchmarkReport.SUBSYSTEM_SUMMARY) 262 if pos >= 0: 264 content_new[0:pos] + \ 266 content_new[pos + 293 pos = self.default_item.index(item_key) 294 if pos != -1: [all …]
|
/test/xts/acts/resourceschedule/resourceschedule_standard/ffrtndktest/entry/src/main/cpp/ |
D | ffrtndktest.cpp | 85 uint64_t pos; in FfrtThisTaskGetId() local 89 &pos, ffrt_function_kind_queue), in FfrtThisTaskGetId() 93 if (pos != (uint64_t)PARAM_0) { in FfrtThisTaskGetId() 110 int pos = FAIL; in FfrtThisTaskUpdateQos() local 114 &pos, ffrt_function_kind_queue), in FfrtThisTaskUpdateQos() 120 napi_create_int32(env, pos, &result); in FfrtThisTaskUpdateQos()
|
/test/testfwk/developer_test/aw/cxx/distributed/ |
D | distributed_cfg.cpp | 79 size_t pos = 0; in GetValueInString() local 82 posend = str.find(",", pos); in GetValueInString() 86 pos = posend + 1; in GetValueInString() 89 posend = str.find(",", pos); in GetValueInString() 91 ipaddr = str.substr(pos, posend - pos); in GetValueInString()
|
/test/testfwk/xdevice/src/xdevice/_core/config/ |
D | resource_manager.py | 109 pos = push_value.find(find_key) 110 src = os.path.join(resource_dir, push_value[0:pos].strip()) 111 dst = push_value[pos + len(find_key):len(push_value)].strip() 119 pos = push_value.find(find_key) 120 src = os.path.join(resource_dir, push_value[0:pos].strip()) 121 dst = push_value[pos + len(find_key):len(push_value)].strip()
|
/test/xts/tools/lite/checksum/src/ |
D | checksum_sha256.c | 151 int pos[] = {15, 2, 7, 16}; in CalcSha256() local 162 unsigned int s0 = CalcSigma0(word[i - pos[ZERO]]); in CalcSha256() 163 unsigned int s1 = CalcSigma1(word[i - pos[ONE]]); in CalcSha256() 164 word[i] = s1 + word[i - pos[TWO]] + s0 + word[i - pos[THREE]]; in CalcSha256()
|
/test/xts/hats/powermgr/power/hdi_power_additional/common/ |
D | hdi_power_test.cpp | 1256 auto pos = unLockValue.find(testName); variable 1257 EXPECT_TRUE(pos != std::string::npos) << "testSuspendUnblock001 failed unLock: " << unLockValue; 1283 auto pos = unLockValue.find(testName); variable 1284 EXPECT_TRUE(pos != std::string::npos) << "testSuspendUnblock002 failed unLock: " << unLockValue; 1310 auto pos = unLockValue.find(testName); variable 1311 EXPECT_TRUE(pos != std::string::npos) << "testSuspendUnblock003 failed unLock: " << unLockValue; 1337 auto pos = unLockValue.find(testName); variable 1338 EXPECT_TRUE(pos != std::string::npos) << "testSuspendUnblock004 failed unLock: " << unLockValue; 1364 auto pos = unLockValue.find(testName); variable 1365 EXPECT_TRUE(pos != std::string::npos) << "testSuspendUnblock005 failed unLock: " << unLockValue; [all …]
|
/test/xts/hats/hdf/wlan/hdi_service/ |
D | wlan_callback_impl.c | 40 uint8_t *pos = NULL; in PrintSsid() local 47 pos = (uint8_t *)hdr + sizeof(*hdr); in PrintSsid() 49 … if (hdr->datalen < MAX_SSID_LEN && memcpy_s(ssid, MAX_SSID_LEN, pos, hdr->datalen) == EOK) { in PrintSsid() 54 hdr = (struct ElementHeader *)(pos + hdr->datalen); in PrintSsid()
|
/test/testfwk/arkxtest/uitest/core/ |
D | common_utilities_hpp.h | 82 size_t pos = fp.find_last_of('/'); in GenLogTag() local 83 if (pos == std::string_view::npos) { in GenLogTag() 84 pos = 0; in GenLogTag() 88 … for (size_t offSet = pos + 1; offSet < fp.length() && writeCursor < MAX_CONTENT_LEN; offSet++) { in GenLogTag()
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ |
D | lifecycle.ets | 56 let pos = startPos - child.measureResult.height; 57 child.layout({ x: pos, y: pos })
|
D | onMeasureSize1.ets | 63 let pos = startPos - child.measureResult.height; 64 child.layout({ x: pos, y: pos })
|
D | onMeasureSize2.ets | 76 let pos = startPos - child.measureResult.height; 77 child.layout({ x: pos, y: pos })
|
D | onMeasureSize3.ets | 78 let pos = startPos - child.measureResult.height; 79 child.layout({ x: pos, y: pos })
|
/test/xts/acts/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/ |
D | AVPlayerDataSrcNoSeekReliabilityTest.test.js | 109 function readAt(buf, length, pos) { argument 110 console.info(' readAtCnt:' + readAtCnt + ' readAt:' + length + ' pos: ' + pos); 122 } else if (pos == undefined) { 131 num = stream.readSync(buf, {offset: 0, length: length, position: pos});
|
/test/testfwk/xdevice/src/xdevice/_core/command/ |
D | console.py | 652 pos = failed.rfind("#") 653 class_name = failed[:pos] 654 test = failed[pos + 1:] 780 pos = split_list.index("--repeat") 781 split_list = split_list[:pos] + split_list[pos + 2:] 783 pos = split_list.index("-sn") 784 split_list = split_list[:pos] + split_list[pos + 2:] 786 pos = split_list.index("--auto_retry") 787 split_list = split_list[:pos] + split_list[pos + 2:]
|
/test/xts/tools/sample/AppSampleD/entry/src/main/ets/appsampled/data/ |
D | DataSource.ets | 39 const pos = this.listeners.indexOf(listener); 40 if (pos >= 0) { 42 this.listeners.splice(pos, 1);
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/getItemRect/waterFlow/ |
D | WaterFlowDataSource.ets | 82 const pos = this.listeners.indexOf(listener) 83 if (pos >= 0) { 84 this.listeners.splice(pos, 1)
|
/test/xts/acts/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/ |
D | WaterFlowDataSource.ets | 80 const pos = this.listeners.indexOf(listener); 81 if (pos >= 0) { 82 this.listeners.splice(pos, 1)
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/comSizeAbility/ |
D | WaterFlowDataSource.ets | 60 const pos = this.listeners.indexOf(listener) 61 if (pos >= 0) { 62 this.listeners.splice(pos, 1)
|