Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 32) sorted by relevance

12

/test/xts/acts/multimedia/image/image_js_standard/imageWebp/src/main/js/test/
Dwebp.test.js167 var pos = widthSize * h + pixelSize * w;
168 colorArr[pos + 0] = 255; // r
169 colorArr[pos + 1] = 0;
170 colorArr[pos + 2] = 0;
171 colorArr[pos + 3] = 255;
176 var pos = widthSize * h + pixelSize * w;
177 colorArr[pos + 0] = 0;
178 colorArr[pos + 1] = 255; // g
179 colorArr[pos + 2] = 0;
180 colorArr[pos + 3] = 255;
[all …]
/test/xts/acts/kernel_lite/mem_posix/src/
DActsMemApiTest.cpp243 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/
Dreadtext.test.js57 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();
169 let pos = 1;
174 … fileio.readText(fpath, { position: pos, length: len, encoding: 'UTF-8' }, function (err, str) {
175 expect(str == FILE_CONTENT.substr(pos, len)).assertTrue();
196 let pos = 1;
[all …]
/test/testfwk/developer_test/aw/python/distributed/common/
Dcommon.py31 pos = filedir.find(findkey)
32 if -1 != pos:
33 subpath = filedir[pos + len(findkey):]
61 pos = phone_res_dir.find(os.sep + "tests" + os.sep)
62 if pos != -1:
63 prefix_path = phone_res_dir[:pos]
64 suffix_path = phone_res_dir[pos + 1:]
/test/testfwk/developer_test/libs/benchmark/report/
Dgenerate_report.py59 pos = file_path.rfind(os.sep)
60 file_name = file_path[pos + 1:]
144 pos = json_file.find(src_path)
145 subsystem_root = json_file[pos + len(src_path):]
258 pos = content_new.find(BenchmarkReport.SUBSYSTEM_SUMMARY)
259 if pos >= 0:
261 content_new[0:pos] + \
263 content_new[pos +
290 pos = self.default_item.index(item_key)
291 if pos != -1:
[all …]
/test/testfwk/developer_test/src/core/config/
Dresource_manager.py139 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()
151 pos = push_value.find(find_key)
152 src = os.path.join(resource_dir, push_value[0:pos].strip())
153 dst = push_value[pos + len(find_key):len(push_value)].strip()
171 pos = copy_value.find(find_key)
172 src = os.path.join(resource_dir, copy_value[0:pos].strip())
173 dst = copy_value[pos + len(find_key):len(copy_value)].strip()
179 pos = copy_value.find(find_key)
[all …]
/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_cfg.cpp80 size_t pos = 0; in GetValueInString() local
83 posend = str.find(",", pos); in GetValueInString()
87 pos = posend + 1; in GetValueInString()
90 posend = str.find(",", pos); in GetValueInString()
92 ipaddr = str.substr(pos, posend - pos); in GetValueInString()
Ddistributed_major.cpp64 std::string::size_type pos = 0; in Init() local
67 posend = iplist.find(",", pos); in Init()
69 ipaddr = iplist.substr(pos, posend - pos); in Init()
71 ipaddr = iplist.substr(pos); in Init()
77 pos = posend + 1; in Init()
/test/testfwk/xdevice/src/xdevice/_core/config/
Dresource_manager.py109 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/hats/powermgr/power/hdi_power/common/
Dhdi_power_test.cpp155 auto pos = state.find(SUSPEND_STATE); variable
156 EXPECT_TRUE(pos != std::string::npos) << "HdfPowerHdiTest003 failed state: " << state;
208 auto pos = lock.find(testName); variable
209 EXPECT_TRUE(pos != std::string::npos) << "HdfPowerHdiTest006 failed lock: " << lock;
236 auto pos = unLock.find(testName); variable
237 EXPECT_TRUE(pos != std::string::npos) << "HdfPowerHdiTest007 failed unLock: " << unLock;
/test/xts/tools/lite/checksum/src/
Dchecksum_sha256.c151 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/testfwk/arkxtest/uitest/core/
Dcommon_utilities_hpp.h73 size_t pos = fp.find_last_of('/'); in GenLogTag() local
74 if (pos == std::string_view::npos) { in GenLogTag()
75 pos = 0; in GenLogTag()
79 … for (size_t offSet = pos + 1; offSet < fp.length() && writeCursor < MAX_CONTENT_LEN; offSet++) { in GenLogTag()
/test/xts/acts/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/
DWaterFlowDataSource.ets80 const pos = this.listeners.indexOf(listener);
81 if (pos >= 0) {
82 this.listeners.splice(pos, 1)
/test/xts/acts/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/
DlazyForEach.ets35 const pos = this.listeners.indexOf(listener);
36 if (pos >= 0) {
38 this.listeners.splice(pos, 1)
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_attest_test_common.h51 void FreeCertChain(struct OH_Huks_CertChain **certChain, const uint32_t pos);
/test/xts/acts/multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/
DfetchFileResultCallback.test.ets64 const checkGetPositionObject = async function (done, testNum, pos) {
76 fetchFileResult.getPositionObject(pos, async (err, targetObject) => {
82 expect(targetObject.displayName).assertEqual(assetList[pos].displayName);
318 let pos = 0;
319 await checkGetPositionObject(done, testNum, pos);
332 let pos = 1;
333 await checkGetPositionObject(done, testNum, pos);
346 let pos = 3;
347 await checkGetPositionObject(done, testNum, pos);
DfetchFileResultPromise.test.ets52 const checkGetPositionObject = async function (done, testNum, pos) {
64 let targetObject = await fetchFileResult.getPositionObject(pos);
65 expect(targetObject.displayName).assertEqual(assetList[pos].displayName);
373 let pos = 0;
374 await checkGetPositionObject(done, testNum, pos);
387 let pos = 1;
388 await checkGetPositionObject(done, testNum, pos);
401 let pos = 3;
402 await checkGetPositionObject(done, testNum, pos);
/test/xts/acts/arkui/ace_ets_webView/entry/src/main/resources/rawfile/css/
Dtongz.css113 .pos{ width:904px;float:left; border:1px solid #cc9ea9; background:#fbfbfd; margin-left:2px; displa…
114 .pos h2{ width:900px; height:28px; line-height:28px; color:#ffffff; background:#eb875e; float:left;…
115 .pos h2 span{ padding:0 5px; display:inline;}
116 .pos h2 a{ color:#ffffff; text-decoration:none; font-size:14px;}
117 .pos dl{ width:209px; overflow:hidden; margin:0 2px;padding:0 5px; display:inline; float:left; bord…
118 .pos dl dt{ width:209px; float:left; height:28px; line-height:28px; border-bottom:1px dashed #ddddd…
119 .pos dl dt span{ color:#a74017; font-size:12px; font-weight:bold;}
120 .pos dl dd{ line-height:24px;}
121 .pos p{ line-height:20px; width:890px; padding:7px; font-size:12px; float:left;}
122 .pos p a{ text-decoration:none;}
/test/testfwk/xdevice/src/xdevice/_core/command/
Dconsole.py631 pos = failed.rfind("#")
632 class_name = failed[:pos]
633 test = failed[pos + 1:]
758 pos = split_list.index("--repeat")
759 split_list = split_list[:pos] + split_list[pos + 2:]
761 pos = split_list.index("-sn")
762 split_list = split_list[:pos] + split_list[pos + 2:]
/test/xts/acts/multimedia/image/image_js_standard/imageYUV/src/main/js/test/
Dyuv.test.js52 var pos = yBase + p;
53 yuvArr[pos] = 1 + p;
56 var pos = uvBase + p * 2;
57 yuvArr[pos + 0] = 41 + p;
58 yuvArr[pos + 1] = 71 + p;
/test/xts/acts/security/huks_napi_BasicTest/src/
Dhuks_attest_test_common.cpp34 void FreeCertChain(struct OH_Huks_CertChain **certChain, const uint32_t pos) in FreeCertChain() argument
45 for (uint32_t j = 0; j < pos; j++) { in FreeCertChain()
/test/xts/acts/bundlemanager/zlib/actszlibtest/
DActsZlibTest.cpp163 z_off_t pos;
190 pos = gzseek(file, -8L, SEEK_CUR);
191 ASSERT_FALSE(pos != SIX || gztell(file) != pos);
797 z_off_t pos;
831 pos = gzseek(file, -8L, SEEK_CUR);
832 ASSERT_FALSE(pos != SIX || gztell(file) != pos);
1239 z_off64_t pos; variable
1240 pos = gzseek(file, -8L, SEEK_CUR);
1241 ASSERT_FALSE(gztell(file) == pos); /* define gztell gztell in zlib.h */
1251 z_off_t pos; variable
[all …]
/test/testfwk/xdevice/src/xdevice/_core/
Dutils.py449 pos = file_dir.find(pattern)
450 if -1 == pos:
453 sub_path = file_dir[pos + len(pattern):]
454 pos = sub_path.find(os.sep)
455 if -1 == pos:
457 return sub_path[pos + len(os.sep):]
/test/testfwk/developer_test/src/core/build/
Dbuild_testcases.py94 pos = testcase_outpath.rfind(':') + 1
95 testcase_outpath = testcase_outpath[pos:len(testcase_outpath)]
/test/testfwk/developer_test/src/core/driver/
Ddrivers.py133 pos = filedir.find(findkey)
134 if -1 != pos:
135 subpath = filedir[pos + len(findkey):]
328 pos = file_dir.find(find_key)
330 if -1 != pos:
331 subpath = file_dir[pos + len(find_key):]

12