/test/xts/acts/powermgr/battery_manager/entry/src/ohosTest/js/test/ |
H A D | battery_common_event.test.js | 1473 var capacity = commonEventData.parameters['0']; 1474 console.info("capacity is:" + capacity); 1475 expect(capacity >= 0 && capacity <= 100).assertTrue(); 1526 var capacity = commonEventData.parameters['0']; 1527 console.info("capacity is:" + capacity); 1528 expect(capacity >= 0 && capacity < [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/ |
H A D | image_receiver_module_test.cpp | 54 Image_ErrorCode ImageReceiverModuleTest::CreateImageReceiver(int32_t width, int32_t height, int32_t capacity) in CreateImageReceiver() argument 58 if (ReuseSameRecevier(width, height, capacity)) { in CreateImageReceiver() 74 capacity_ = capacity; in CreateImageReceiver() 86 IMG_TST_LOGE("Set Image Receiver options capacity(%{public}d) failed: err = %{public}d.", in CreateImageReceiver() 87 capacity, ret); in CreateImageReceiver() 93 IMG_TST_LOGE("Set Image Receiver options capacity(%{public}d) failed: err = %{public}d.", in CreateImageReceiver() 94 capacity, ret); in CreateImageReceiver() 220 int32_t capacity = 0; in VerifyImageReceiver() local 221 ret = OH_ImageReceiverNative_GetCapacity(imageReceiver_, &capacity); in VerifyImageReceiver() 223 IMG_TST_LOGE("Get Image Receiver capacity faile in VerifyImageReceiver() 298 ReuseSameRecevier(int32_t width, int32_t height, int32_t capacity) ReuseSameRecevier() argument 325 int32_t capacity = 0; VerifyImageReceiverOptions() local [all...] |
H A D | image_receiver_test.cpp | 298 int32_t capacity = 0; in JsCreateImageReceiverOptions() local 306 napi_get_value_int32(env, argValue[NUM_2], &(capacity)) != napi_ok) { in JsCreateImageReceiverOptions() 312 OH_ImageReceiverOptions_SetCapacity(options, capacity); in JsCreateImageReceiverOptions() 313 HiviewDFX::HiLog::Error(LABEL, "capacity: %{public}d", capacity); in JsCreateImageReceiverOptions() 387 int32_t capacity = 0; in JsImageReceiverOptionsGetCapacity() local 388 if (OH_ImageReceiverOptions_GetCapacity(options, &capacity) != IMAGE_SUCCESS) { in JsImageReceiverOptionsGetCapacity() 393 napi_create_int32(env, capacity, &result); in JsImageReceiverOptionsGetCapacity() 652 int32_t capacity = 0; in JsGetCapacity() local 653 if (OH_ImageReceiverNative_GetCapacity(receiver, &capacity) ! in JsGetCapacity() [all...] |
H A D | image_receiver_mdk_test.cpp | 250 int32_t capacity; in JsGetCapacity() local 251 int32_t res = OH_Image_Receiver_GetCapacity(native, &capacity); in JsGetCapacity() 255 napi_create_int32(env, capacity, &result); in JsGetCapacity()
|
H A D | module_test.cpp | 216 int32_t capacity = 0; in CreatePhotoOutput() local 219 napi_get_value_int32(env, args[NUM_2], &capacity); in CreatePhotoOutput() 221 Image_ErrorCode res = imageReceiverTest_->CreateImageReceiver(width, height, capacity); in CreatePhotoOutput()
|
/test/xts/acts/global/global_idna_test/entry/src/main/cpp/ |
H A D | napi_init.cpp | 48 int32_t capacity = 10;
in testUidna_labelToASCII() local 49 uidna_labelToASCII(uts46, sharps16, -1, dest16, capacity, &info1, &errorCode);
in testUidna_labelToASCII() 98 int32_t capacity = 3;
in testUidna_nameToUnicode() local 100 int32_t data1 = uidna_nameToUnicode(uts46, sharps16, length, dest16, capacity, &plnfo, &errorCode1);
in testUidna_nameToUnicode() 117 int32_t capacity = 0;
in testUidna_labelToASCLL_UTF8() local 118 int32_t data1 = uidna_labelToASCII_UTF8(uts46, sharps, length, &dest, capacity, &plnfo, &errorCode1);
in testUidna_labelToASCLL_UTF8() 135 int32_t capacity = 0;
in testUidna_labelToUnicodeUTF8() local 137 int32_t data1 = uidna_labelToUnicodeUTF8(uts46, sharps, length, &dest, capacity, &plnfo, &errorCode1);
in testUidna_labelToUnicodeUTF8() 154 int32_t capacity = 0;
in testUidna_nameToASCII_UTF8() local 155 int32_t data1 = uidna_nameToASCII_UTF8(uts46, sharps, length, &dest, capacity, in testUidna_nameToASCII_UTF8() 172 int32_t capacity = 0; testUidna_nameToUnicodeUTF8() local [all...] |
/test/xts/hats/powermgr/battery/hdi_battery/common/ |
H A D | hdi_battery_test.cpp | 151 int capacity; in HWTEST_F() local 152 g_batteryInterface->GetCapacity(capacity); in HWTEST_F() 153 EXPECT_TRUE(capacity <= 100 && capacity >= 0); in HWTEST_F() 334 .capacity = -1, in HWTEST_F() 337 EXPECT_TRUE(-1 != event.capacity); in HWTEST_F()
|
/test/xts/hats/powermgr/battery/hdi_battery_additional/common/ |
H A D | hdi_battery_test.cpp | 119 int capacity; in HWTEST_F() local 121 g_batteryInterface->GetCapacity(capacity); in HWTEST_F() 122 EXPECT_TRUE(capacity <= 100 && capacity >= 0); in HWTEST_F() 293 .capacity = -1, in HWTEST_F() 297 EXPECT_TRUE(-1 != event.capacity); in HWTEST_F()
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 201 auto recv = ReceiveBuffer {.data = buf, .capacity = bufSize, .size = &outSize}; in TEST_F() 206 auto recvShort = ReceiveBuffer {.data = buf, .capacity = VERSION.length() - 1, .size = &outSize}; in TEST_F() 219 auto recv = ReceiveBuffer {.data = buf, .capacity = bufSize, .size = &outSize}; in TEST_F() 359 ReceiveBuffer msgRecv = { .data = errBuf, .capacity = BUF_SIZE, .size = &msgSizeRecv }; in TEST_F()
|
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/ |
H A D | jsvm_utils.cpp | 211 size_t capacity = length + 1; in ToString() local 212 char *buffer = new char[capacity]; in ToString() 214 JSVMTEST_CALL(OH_JSVM_GetValueStringUtf8(jsvm_env, js_string, buffer, capacity, ©_length)); in ToString()
|
/test/testfwk/arkxtest/uitest/addon/ |
H A D | extension_c_api.h | 38 size_t capacity;
member
|
H A D | extension_executor.cpp | 59 EXTENSION_API_CHECK(buffer.capacity > data.length(), "Char buffer capacity is not enough", ERR_BAD_ARG);
in WriteToBuffer() 60 memcpy_s(buffer.data, buffer.capacity, data.data(), data.length());
in WriteToBuffer()
|
/test/xts/hats/hdf/hdf_lite/manager/common/ |
H A D | hdf_sbuf_test.cpp | 889 size_t capacity = HdfSbufGetCapacity(sBuf); 890 ASSERT_EQ(capacity, hdfSbufDefaultSize); 951 size_t capacity = HdfSbufGetCapacity(sBuf); 952 ASSERT_EQ(capacity, hdfSbufTestSize);
|
/test/xts/acts/commonlibrary/ets_utils/util_lib_standard/entry/src/ohosTest/js/test/ |
H A D | util.test.js | 4962 * @tc.desc: Updates the buffer capacity to a specified capacity. 4977 * @tc.desc: Updates the buffer capacity to a specified capacity. 4992 * @tc.desc: Updates the buffer capacity to a specified capacity. 5007 * @tc.desc: Updates the buffer capacity to a specified capacity. 5022 * @tc.desc: Updates the buffer capacity to a specified capacity [all...] |
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/napi/ |
H A D | napi_test.cpp | 7341 size_t capacity = length + 1; in CreateFunctionWithScript() local 7342 char *buffer = new char[capacity]; in CreateFunctionWithScript() 7344 JSVM_CALL(env, OH_JSVM_GetValueStringUtf8(env, js_string, buffer, capacity, ©Length)); in CreateFunctionWithScript()
|
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/ |
H A D | RpcClientJsunit.test.js | 3674 * @tc.name : test Test MessageSequence to pass abnormal rawdata data, and expand the capacity for verification
4800 * @tc.name : test setCapacity Sets the storage capacity of the null MessageSequence instance. The getCapacity
4801 obtains the current MessageSequence capacity
4836 * @tc.name : test setCapacity Sets the storage capacity of the MessageSequence instance. The getCapacity
4837 obtains the current MessageSequence capacity
4899 * @tc.name : test SetCapacity Tests the storage capacity threshold of the MessageSequence instance
4935 * @tc.name : test Setcapacity test storage capacity boundary value verification of MessageSequence instance
5063 * @tc.name : test setSize Sets the storage capacity of the MessageSequence instance to decrease by one.
5064 The getSize obtains the current MessageSequence capacity
6492 * @tc.name : test The capacity o [all...] |