/test/xts/acts/kernel_lite/math_posix/src/ |
D | ComplexTest.c | 42 for (int i = 0; i < testCount; ++i) { in TestCabs() local 43 double d = cabs(testZ[i]); in TestCabs() 44 if (!Equal(d, expected[i])) { in TestCabs() 46 creal(testZ[i]), cimag(testZ[i]), expected[i], d); in TestCabs() 63 for (int i = 0; i < testCount; ++i) { in TestCabsf() local 64 float d = cabsf(testZ[i]); in TestCabsf() 65 if (!Equalf(d, expected[i])) { in TestCabsf() 67 creal(testZ[i]), cimag(testZ[i]), expected[i], d); in TestCabsf() 84 for (int i = 0; i < testCount; ++i) { in TestCabsl() local 85 long double d = cabsl(testZ[i]); in TestCabsl() [all …]
|
D | MathApiTest.cpp | 39 for (int i = 0; i < testCount; ++i) { variable 40 ret = ceil(testValues[i]); 41 EXPECT_EQ(ret, expected[i]) << " ceil failed"; 55 for (int i = 0; i < testCount; ++i) { variable 56 ret = ceilf(testValues[i]); 57 EXPECT_EQ(ret, expected[i]) << " ceilf failed"; 73 for (int i = 0; i < testCount; ++i) { variable 74 ret = finite(testValues[i]); 75 EXPECT_EQ(ret, expected[i]) << " finite failed"; 91 for (int i = 0; i < testCount; ++i) { variable [all …]
|
D | MathStdApiTest.cpp | 40 for (int i = 0; i < testCount; ++i) { variable 41 ret = abs(testValues[i]); 42 EXPECT_EQ(ret, expected[i]) << "abs failed"; 60 for (int i = 0; i < testCount; ++i) { variable 61 ret = div(numer[i], denom[i]); 62 ASSERT_TRUE(ret.quot == aquot[i] && ret.rem == arem[i]) << " div failed"; 78 for (int i = 0; i < testCount; ++i) { variable 79 ret = imaxabs(testValues[i]); 80 EXPECT_EQ(ret, expected[i]) << " imaxabs failed"; 97 for (int i = 0; i < testCount; ++i) { variable [all …]
|
/test/xts/acts/kernel_lite/mem_posix/src/ |
D | MemApiTest.cpp | 40 for (int i=0; i<100; i++) { variable 75 int i, k; variable 79 for (i = 0; i < 100; i++) { 80 mem[i] = malloc(size); 81 if (mem[i] == nullptr) { 82 LOG("mem[i] = NULL: i = %d, errno = %d, ENOMEM = %d", i, errno, ENOMEM); 87 ASSERT_TRUE(i < 100); 88 ASSERT_TRUE(mem[i] == nullptr) << "mem[i] != NULL, i = " << i; 91 for (k = 0; k < i; k++) { 123 int i, failure; variable [all …]
|
/test/xts/acts/startup_lite/syspara_hal/src/ |
D | parameter_reli_test.c | 62 for (int i = 0; i < QUERY_TIMES; i++) { variable 79 for (int i = 0; i < QUERY_TIMES; i++) { variable 96 for (int i = 0; i < QUERY_TIMES; i++) { variable 113 for (int i = 0; i < QUERY_TIMES; i++) { variable 130 for (int i = 0; i < QUERY_TIMES; i++) { variable 147 for (int i = 0; i < QUERY_TIMES; i++) { variable 164 for (int i = 0; i < QUERY_TIMES; i++) { variable 181 for (int i = 0; i < QUERY_TIMES; i++) { variable 201 for (int i = 0; i < QUERY_TIMES; i++) { variable 218 for (int i = 0; i < QUERY_TIMES; i++) { variable [all …]
|
/test/xts/acts/ai/mindspore/src/ |
D | ohos_common.cpp | 42 uint32_t i = 1; in getDimInfo() local 43 for (; i <= dim_info->at(0); i++) { in getDimInfo() 44 dim_info->push_back(*(dim_buffer + i)); in getDimInfo() 45 data_size *= *(dim_buffer + i); in getDimInfo() 98 for (int i = 0; i < dim_info[0]; i++) { in readTestDataFile() local 99 dim_info1->push_back(dim_info[i + 1]); in readTestDataFile() 104 for (int i = 0; i < count; i++) { in readTestDataFile() local 105 printf("%" PRId64, dim_info1->at(i)); in readTestDataFile() 125 uint32_t i = 0; in allclose() local 144 for (; i < count; ++i) { in allclose() [all …]
|
/test/xts/acts/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/ |
D | MangerAbilityJsunit.test.js | 34 for (let i = 0; i < info.length; i++) { 35 … console.info('Acts_Ams_test_6600 getProcessRunningInfo[' + i + "]: " + JSON.stringify(info[i])); 36 expect(typeof (info[i].pid)).assertEqual("number"); 37 expect(info[i].pid).assertLarger(0); 39 expect(typeof (info[i].processName)).assertEqual("string"); 40 expect(info[i].processName.length).assertLarger(0); 41 expect(Array.isArray(info[i].bundleNames)).assertEqual(true); 42 expect(info[i].bundleNames.length).assertLarger(0); 44 expect(typeof (info[i].uid)).assertEqual("number"); 45 expect(info[i].uid).assertLarger(0); [all …]
|
/test/xts/acts/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/test/ |
D | faultlogger.test.js | 91 for (let i = 0; i < loopTimes; i++) { 92 console.info("--------DFX_DFR_Faultlogger_Interface_0400 3 + " + i + "----------"); 93 faultlogger.addFaultLog(i - 400, 94 faultlogger.FaultType.CPP_CRASH, module, "faultloggertestsummary02 " + i); 103 for (let i = 0; i < loopTimes; i++) { 104 … console.info("faultloggertestsummary02 " + i + " fullLog.length " + ret[i].fullLog.length); 105 … if (ret[i].fullLog.indexOf("faultloggertestsummary02 " + (loopTimes - 1 - i)) != -1) { 106 console.info("DFX_DFR_Faultlogger_Interface_0400 " + ret[i].fullLog.length); 107 expect(typeof(ret[i].pid) == "number").assertTrue(); 108 expect(typeof(ret[i].uid) == "number").assertTrue(); [all …]
|
/test/xts/acts/commonlibrary/ets_utils/process_lib_standard/src/main/js/test/ |
D | Process.test.js | 37 for (let i = 0; i < 3; i++) { 53 for (let i = 0; i < 6; i++) { 69 for (let i = 0; i < 8; i++) { 85 for (let i = 0; i < 5; i++){ 261 for (let i = 0; i < 3; i++) { 275 for (let i = 0; i < 5; i++) { 289 for (let i = 0; i < 6; i++) { 303 for (let i = 0; i < 8; i++) { 329 for (let i=0; i < 5; i++) { 343 for (let i=0; i < 3; i++) { [all …]
|
/test/xts/acts/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/ |
D | AudioCapturerChangeInfo.test.js | 110 for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { 111 console.info(`${Tag} : ## CapChange on is called for element ${i} ##`); 112 … console.info(`${Tag} : StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); 113 … console.info(`${Tag} : ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); 114 …console.info(`${Tag} : Content for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source… 115 …console.info(`${Tag} : Stream for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capture… 116 … console.info(`${Tag} : Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`);; 117 let devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; 118 … for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { 119 … console.info(`${Tag} : Id: ${i} ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); [all …]
|
/test/xts/acts/global/perf/perfjs/src/main/js/test/ |
D | Perf.test.js | 83 for(let i = 0; i < EXETIME; i++){ 109 for(let i = 0; i < EXETIME; i++){ 135 for(let i = 0; i < EXETIME; i++){ 161 for(let i = 0; i < EXETIME; i++){ 187 for(let i = 0; i < EXETIME; i++){ 213 for(let i = 0; i < EXETIME; i++){ 242 for(let i = 0; i < EXETIME; i++){ 271 for(let i = 0; i < EXETIME; i++){ 297 for(let i = 0; i < EXETIME; i++){ 324 for(let i = 0; i < EXETIME; i++){ [all …]
|
/test/xts/acts/security/security_huks_reformed_test/utils/param/ |
D | publicFunc.js | 22 for (let i = 0, j = str.length; i < j; ++i) { 23 arr.push(str.charCodeAt(i)); 30 for (let i = 0; i < fileData.length; i++) { 31 dataString += String.fromCharCode(fileData[i]); 37 for (let i = 0, j = str.length; i < j; ++i) { 38 arr.push(str.charCodeAt(i)); 50 for (let i = 0; i < a.length; ++i) { 54 if (a[i] !== b[i]) {
|
/test/xts/acts/powermgr/battery_manager/src/main/js/test/ |
D | batterymanager_performance.test.js | 35 for (let i = 0; i < MAXNUM; i++) { 52 for (let i = 0; i < MAXNUM; i++) { 69 for (let i = 0; i < MAXNUM; i++) { 86 for (let i = 0; i < MAXNUM; i++) { 103 for (let i = 0; i < MAXNUM; i++) { 120 for (let i = 0; i < MAXNUM; i++) { 137 for (let i = 0; i < MAXNUM; i++) { 154 for (let i = 0; i < MAXNUM; i++) { 172 for (let i = 0; i < MAXNUM; i++) { 189 for (let i = 0; i < MAXNUM; i++) { [all …]
|
/test/xts/acts/sensors/sensor_standard/src/main/js/test/ |
D | SensorGeneralalgorithm.test.js | 169 for (let i = 1; i < data.length; i++) { 170 console.info("SensorJsTest_070" + data[i]) 171 expect(data[i]).assertEqual(GET_DIRECTION[0][i]) 189 for (let i = 1; i < data.length; i++) { 190 console.info("SensorJsTest_071" + data[i]) 191 expect(data[i]).assertEqual(GET_DIRECTION[1][i]) 253 for (let i = 0; i < data.length; i++) { 254 console.info("SensorJsTest_075" + data[i]) 255 expect(data[i]).assertEqual(GET_DIRECTION[0][i]) 271 for (let i = 0; i < data.length; i++) { [all …]
|
/test/xts/acts/multimedia/audio/audio_js_standard/AudioRendererChangeInfo/src/main/js/test/ |
D | AudioRendererChangeInfo.test.js | 83 for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { 84 console.info(`${Tag} : ## RendererChange on is called for ${i} ##`); 85 … console.info(`${Tag} : StreamId for ${i} is: ${AudioRendererChangeInfoArray[i].streamId}`); 86 … console.info(`${Tag} : ClientUid for ${i} is: ${AudioRendererChangeInfoArray[i].clientUid}`); 87 …console.info(`${Tag} : Content for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.conten… 88 …console.info(`${Tag} : Stream for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.usage}`… 89 …console.info(`${Tag} : Flag ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags… 90 … console.info(`${Tag} : State for ${i} is: ${AudioRendererChangeInfoArray[i].rendererState}`); 91 let devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; 92 for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { [all …]
|
/test/xts/acts/security/security_huks_basic/utils/param/ |
D | publicFunc.js | 23 for (var i = 0, j = str.length; i < j; ++i) { 24 arr.push(str.charCodeAt(i)); 31 for (var i = 0; i < fileData.length; i++) { 32 dataString += String.fromCharCode(fileData[i]); 38 for (var i = 0, j = str.length; i < j; ++i) { 39 arr.push(str.charCodeAt(i)); 51 for (let i = 0; i < a.length; ++i) { 55 if (a[i] !== b[i]) {
|
/test/xts/tools/lite/checksum/src/ |
D | checksum_sha256.c | 134 for (int i = 0; i < len; i++) { in InitSha256() local 135 md->hash[i] = hashInit[i]; in InitSha256() 153 for (int i = 0; i < wordLen; i++) { in CalcSha256() local 154 if (i < lenList[TWO]) { in CalcSha256() 159 word[i] = t1 | t2 | t3 | t4; in CalcSha256() 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() 168 for (int i = 0; i < len; i++) { in CalcSha256() local 169 hash[i] = md->hash[i]; in CalcSha256() [all …]
|
/test/xts/acts/commonlibrary/ets_utils/xml_lib_standard/src/main/js/test/ |
D | xml.test.js | 32 for (var i = 0; i < result.length; ++i) { 33 view1 = view1 + String.fromCodePoint(view[i]); 49 for (var i = 0; i < result.length; ++i) { 50 view1 = view1 + String.fromCodePoint(view[i]); 66 for (var i = 0; i < result.length; ++i) { 67 view1 = view1 + String.fromCodePoint(view[i]); 83 for (var i = 0; i < result.length; ++i) { 84 view1 = view1 + String.fromCodePoint(view[i]); 100 for (var i = 0; i < result.length; ++i) { 101 view1 = view1 + String.fromCodePoint(view[i]); [all …]
|
/test/xts/acts/commonlibrary_lite/file_hal/src/ |
D | utils_file_reli_test.c | 67 for (int i = 0; i < MAX_NUM_OF_OPENED_FILES; i++) { variable 68 int j = i + 1; 74 fd32[i] = UtilsFileOpen(fileName32, O_RDWR_FS | O_CREAT_FS, 0); 75 TEST_ASSERT_GREATER_THAN_INT(0, fd32[i]); 87 for (int i = 1; i < MAX_NUM_OF_OPENED_FILES; i++) { variable 88 UtilsFileClose(fd32[i]); 90 for (int i = 0; i < MAX_NUM_OF_OPENED_FILES; i++) { variable 91 int j = i + 1; 111 for (int i = 0; i < MAX_NUM_OF_OPENED_FILES; i++) { variable 112 int j = i + 1; [all …]
|
/test/testfwk/arkxtest/uitest/record/ |
D | matrix3.cpp | 70 for (auto i = 0; i < DIMENSION; i++) { in operator *() local 74 value += matrix3X3_[i][k] * matrix[k][j]; in operator *() 76 Matrix3n[i][j] = value; in operator *() 85 for (auto i = 0; i < DIMENSION; i++) { in Transpose() local 87 matrix[j][i] = matrix3X3_[i][j]; in Transpose() 99 for (int32_t i = 0; i < DIMENSION; i++) { in ScaleMapping() local 102 item = item + matrix3X3_[i][j] * src[j]; in ScaleMapping() 104 value[i] = item; in ScaleMapping() 115 for (int32_t i = 0; i < DIMENSION; i++) { in ScaleMapping() local 118 item = item + matrix3X3_[i][j] * src[j]; in ScaleMapping() [all …]
|
/test/xts/device_attest/services/core/utils/ |
D | attest_utils.c | 62 for (int i = RANDOM_BYTES - 2; i >= 0; --i) { in GetRandomNum() local 64 result |= random[i]; in GetRandomNum() 108 size_t i; in URLSafeBase64ToBase64() local 109 for (i = 0; i < inputLen; ++i) { in URLSafeBase64ToBase64() 110 if (input[i] == '-') { in URLSafeBase64ToBase64() 111 (*output)[i] = '+'; in URLSafeBase64ToBase64() 114 if (input[i] == '_') { in URLSafeBase64ToBase64() 115 (*output)[i] = '/'; in URLSafeBase64ToBase64() 118 (*output)[i] = input[i]; in URLSafeBase64ToBase64() 120 for (i = inputLen; i < *outputLen; ++i) { in URLSafeBase64ToBase64() [all …]
|
/test/xts/acts/ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/ |
D | MangerAbilityJsunit.test.js | 31 for (let i = 0; i < info.length; i++) { 32 … console.info('Acts_Ams_test_0100 getProcessRunningInfo[' + i + "]: " + JSON.stringify(info[i])); 33 expect(typeof (info[i].pid)).assertEqual("number"); 34 expect(info[i].pid).assertLarger(0); 36 expect(typeof (info[i].processName)).assertEqual("string"); 37 expect(info[i].processName.length).assertLarger(0); 38 expect(Array.isArray(info[i].bundleNames)).assertEqual(true); 39 expect(info[i].bundleNames.length).assertLarger(0); 41 expect(typeof (info[i].uid)).assertEqual("number"); 42 expect(info[i].uid).assertLarger(0);
|
/test/xts/acts/ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/ |
D | MangerAbilityJsunit.test.js | 30 for (var i = 0; i < info.length; i++) { 31 … console.info('Acts_Ams_test_1700 getProcessRunningInfo[' + i + "]: " + JSON.stringify(info[i])); 32 expect(typeof (info[i].pid)).assertEqual("number"); 33 expect(info[i].pid).assertLarger(0); 35 expect(typeof (info[i].processName)).assertEqual("string"); 36 expect(info[i].processName.length).assertLarger(0); 37 expect(Array.isArray(info[i].bundleNames)).assertEqual(true); 38 expect(info[i].bundleNames.length).assertLarger(0); 40 expect(typeof (info[i].uid)).assertEqual("number"); 41 expect(info[i].uid).assertLarger(0);
|
/test/xts/acts/ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/ |
D | MangerAbilityJsunit.test.js | 30 for (var i = 0; i < info.length; i++) { 31 … console.info('Acts_Ams_test_0100 getProcessRunningInfo[' + i + "]: " + JSON.stringify(info[i])); 32 expect(typeof (info[i].pid)).assertEqual("number"); 33 expect(info[i].pid).assertLarger(0); 35 expect(typeof (info[i].processName)).assertEqual("string"); 36 expect(info[i].processName.length).assertLarger(0); 37 expect(Array.isArray(info[i].bundleNames)).assertEqual(true); 38 expect(info[i].bundleNames.length).assertLarger(0); 40 expect(typeof (info[i].uid)).assertEqual("number"); 41 expect(info[i].uid).assertLarger(0);
|
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/class_dir/ |
D | listfile.test.js | 46 for (let i = 0; i < dirents.length; i++) { 47 if (dirents[i].isFile()) { 48 console.info('fileio_test_dir_listfile_sync_000 File: ' + dirents[i].name); 49 } else if (dirents[i].isDirectory()) { 50 console.info('fileio_test_dir_listfile_sync_000 Directory: ' + dirents[i].name); 78 for (let i = 0; i < 113; i++) { 79 let fpath = dpath + '/f' + randomString(10) + i; 81 dpath = dpath + '/d' + randomString(10) + i; 87 for (let i = 0; i < dirents.length; i++) { 88 if (dirents[i].isFile()) { [all …]
|