Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 3397) sorted by relevance

12345678910>>...136

/test/xts/acts/ability/ability_runtime/amsdatauriutils/src/main/js/test/
DDataUriUtilsJsSt.test.js28 var result = dataUriUtils.getId("com.ix.dataUriUtils/1221");
29 console.log('dataUriUtils getId URI : ' + result);
31 expect(typeof(result)).assertEqual("number");
32 expect(result).assertEqual(1221);
44 var result = dataUriUtils.getId("com.ix.dataUriUtils1221");
45 console.log('dataUriUtils getId URI : ' + result);
47 expect(typeof(result)).assertEqual("number");
48 expect(result).assertEqual(-1);
61 var result = dataUriUtils.getId("com.ix.dataUriUtils/11234567890");
62 console.log('dataUriUtils getId URI : ' + result);
[all …]
/test/xts/acts/multimedia/audio/audio_cpp_standard/openslesPlayerNdk/
DActsOpenslesPlayerNdkTest.cpp98 SLresult result = slCreateEngine(&engineObject, 0, nullptr, 0, nullptr, nullptr); in OpenSlTest() local
100 if (SL_RESULT_SUCCESS != result) { in OpenSlTest()
101 AUDIO_INFO_LOG("OpenSlTest slCreateEngine result: %{public}lu", result); in OpenSlTest()
102 return result; in OpenSlTest()
104 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in OpenSlTest()
105 if (SL_RESULT_SUCCESS != result) { in OpenSlTest()
106 AUDIO_INFO_LOG("OpenSlTest Realize result: %{public}lu", result); in OpenSlTest()
107 return result; in OpenSlTest()
110 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in OpenSlTest()
111 if (SL_RESULT_SUCCESS != result) { in OpenSlTest()
[all …]
/test/xts/acts/multimedia/audio/audio_cpp_standard/openslesRecorderNdk/
DActsOpenslesRecoderNdkTest.cpp68 SLresult result = slCreateEngine(&engineObject, 0, nullptr, 0, nullptr, nullptr); in OpenSLESCaptureTest() local
69 if (SL_RESULT_SUCCESS != result) { in OpenSLESCaptureTest()
70 AUDIO_INFO_LOG("OpenSLESCaptureTest slCreateEngine result: %{public}lu", result); in OpenSLESCaptureTest()
71 return result; in OpenSLESCaptureTest()
73 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in OpenSLESCaptureTest()
74 if (SL_RESULT_SUCCESS != result) { in OpenSLESCaptureTest()
75 AUDIO_INFO_LOG("OpenSLESCaptureTest Realize result: %{public}lu", result); in OpenSLESCaptureTest()
76 return result; in OpenSLESCaptureTest()
78 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineItf); in OpenSLESCaptureTest()
79 if (SL_RESULT_SUCCESS != result) { in OpenSLESCaptureTest()
[all …]
/test/xts/acts/arkui/ace_standard/src/main/js/test/
DcommonComponentJsApi.test.js54 let result;
59 result = router.push(options)
60 console.info("push stepper page success " + JSON.stringify(result));
62 console.error("push stepper page error " + JSON.stringify(result));
80 let result;
85 result = router.push(options)
86 console.info("push button page success " + JSON.stringify(result));
88 console.error("push button page error " + JSON.stringify(result));
105 let result;
110 result = router.push(options)
[all …]
/test/xts/acts/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/
Dmodify.test.js260 function checkProps(result) { argument
261 expect(result == "Top-right").assertTrue();
284 function checkProps(result) { argument
285 expect(result.search("38") != -1).assertTrue();
308 function checkProps(result) { argument
309 expect(result.search("9") != -1).assertTrue();
332 function checkProps(result) { argument
333 expect(result == "N").assertTrue();
356 function checkProps(result) { argument
357 expect(result == "W").assertTrue();
[all …]
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/
DRelationalStorePredicatesJsunit.test.js145 let result = await rdbStore.query(predicates);
146 expect(1).assertEqual(result.rowCount);
147 result.close();
163 let result = await rdbStore.query(predicates);
164 expect(2).assertEqual(result.rowCount);
165 result.close();
181 let result = await rdbStore.query(predicates);
182 expect(3).assertEqual(result.rowCount);
183 result.close();
199 let result = await rdbStore.query(predicates);
[all …]
/test/xts/acts/distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/
DRdbstorePredicatesJsunit.test.js142 let result = await rdbStore.query(predicates);
143 expect(1).assertEqual(result.rowCount);
144 result = null
160 let result = await rdbStore.query(predicates);
161 expect(2).assertEqual(result.rowCount);
162 result = null
178 let result = await rdbStore.query(predicates);
179 expect(3).assertEqual(result.rowCount);
180 result = null
196 let result = await rdbStore.query(predicates);
[all …]
/test/xts/acts/arkui/ace_standard/src/main/js/default/test/
DcommonComponentJsApi.test.js66 let result;
71 result = router.push(options)
72 console.info("push stepper page success " + JSON.stringify(result));
74 console.error("push stepper page error " + JSON.stringify(result));
90 let result;
95 result = router.push(options)
96 console.info("push button page success " + JSON.stringify(result));
98 console.error("push button page error " + JSON.stringify(result));
114 let result;
119 result = router.push(options)
[all …]
/test/xts/acts/distributeddatamgr/dataSharejstest/hap/src/main/js/test/
DDataAbilityPredicatesJsunit.test.js145 let result = await rdbStore.query(predicates);
146 expect(1).assertEqual(result.rowCount);
147 result = null
165 let result = await rdbStore.query(predicates);
166 expect(2).assertEqual(result.rowCount);
167 result = null
185 let result = await rdbStore.query(predicates);
186 expect(3).assertEqual(result.rowCount);
187 result = null
205 let result = await rdbStore.query(predicates);
[all …]
/test/xts/acts/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/
Dutil.test.js57 var result = proc.isNumberObject(new Number(0));
58 expect(result).assertEqual(true);
71 var result = proc.isNumberObject(new Number(10));
72 expect(result).assertEqual(true);
85 var result = proc.isNumberObject(new Number(200));
86 expect(result).assertEqual(true);
99 var result = proc.isNumberObject(0);
100 expect(result).assertEqual(false);
113 var result = proc.isNumberObject(100);
114 expect(result).assertEqual(false);
[all …]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/ets/test/
DPthreadNdk.test.ets30 let result:number = pthread.pThreadAtFork(0);
31 console.info("pthread.pThreadAtFork result = " + result);
32 expect(result).assertEqual(0);
44 let result:number = pthread.pThreadAttrDestory(0);
45 console.info("pthread.pThreadAttrDestory result = " + result);
46 expect(result).assertEqual(0);
58 let result:number = pthread.pThreadAttrGetDetachState(0);
59 console.info("pthread.pThreadAttrGetDetachState result = " + result);
60 expect(result).assertEqual(0);
72 let result:number = pthread.pThreadAttrGetGuardSize(0);
[all …]
/test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/main/cpp/
Dinitndk.cpp28 napi_value result = nullptr; in OHGetDeviceType() local
29 napi_create_string_utf8(env, deviceType.data(), NAPI_AUTO_LENGTH, &result); in OHGetDeviceType()
30 return result; in OHGetDeviceType()
36 napi_value result = nullptr; in OHGetManufacture() local
37 napi_create_string_utf8(env, manufactureString.data(), NAPI_AUTO_LENGTH, &result); in OHGetManufacture()
38 return result; in OHGetManufacture()
44 napi_value result = nullptr; in OHGetBrand() local
45 napi_create_string_utf8(env, resultString.data(), NAPI_AUTO_LENGTH, &result); in OHGetBrand()
46 return result; in OHGetBrand()
52 napi_value result = nullptr; in OHGetMarketName() local
[all …]
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/
Dimage_receiver_mdk_test.cpp112 napi_value result = nullptr; in JsGetReceivingSurfaceId() local
113 napi_get_undefined(env, &result); in JsGetReceivingSurfaceId()
117 return result; in JsGetReceivingSurfaceId()
122 return result; in JsGetReceivingSurfaceId()
127 napi_create_string_utf8(env, buf, NAPI_AUTO_LENGTH, &result); in JsGetReceivingSurfaceId()
128 return result; in JsGetReceivingSurfaceId()
133 napi_value result = nullptr; in JsReadLatestImage() local
134 napi_get_undefined(env, &result); in JsReadLatestImage()
138 return result; in JsReadLatestImage()
141 int32_t res = OH_Image_Receiver_ReadLatestImage(native, &result); in JsReadLatestImage()
[all …]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Daeabindk.cpp52 napi_value result = nullptr; in AeabiMemclr() local
54 napi_create_int32(env, RETURN_0, &result); in AeabiMemclr()
56 napi_create_int32(env, FAILD, &result); in AeabiMemclr()
59 return result; in AeabiMemclr()
65 napi_value result = nullptr; in AeabiMemclr4() local
67 napi_create_int32(env, RETURN_0, &result); in AeabiMemclr4()
69 napi_create_int32(env, FAILD, &result); in AeabiMemclr4()
72 return result; in AeabiMemclr4()
78 napi_value result = nullptr; in AeabiMemclr8() local
80 napi_create_int32(env, RETURN_0, &result); in AeabiMemclr8()
[all …]
Dnetdbndk.cpp55 napi_value result = nullptr; in GetProtoEnt() local
56 napi_create_int32(env, ret, &result); in GetProtoEnt()
57 return result; in GetProtoEnt()
71 napi_value result = nullptr; in GetProtoByName() local
73 napi_create_string_utf8(env, getInfo->p_name, NAPI_AUTO_LENGTH, &result); in GetProtoByName()
75 napi_create_string_utf8(env, "null", NAPI_AUTO_LENGTH, &result); in GetProtoByName()
77 return result; in GetProtoByName()
82 napi_value result; in Hstrerror() local
84 napi_create_int32(env, PARAM_0, &result); in Hstrerror()
86 napi_create_int32(env, PARAM_UNNORMAL, &result); in Hstrerror()
[all …]
Dctypendk.cpp49 napi_value result; in Isalnum() local
51 napi_create_int32(env, TRUE, &result); in Isalnum()
53 napi_create_int32(env, FALSE, &result); in Isalnum()
55 return result; in Isalnum()
68 napi_value result; in IsalnumL() local
70 napi_create_int32(env, TRUE, &result); in IsalnumL()
72 napi_create_int32(env, FALSE, &result); in IsalnumL()
74 return result; in IsalnumL()
87 napi_value result; in Isalpha() local
89 napi_create_int32(env, TRUE, &result); in Isalpha()
[all …]
Dwctypendk.cpp62 napi_value result; in Iswalnum() local
64 napi_create_int32(env, SUCCESS, &result); in Iswalnum()
65 return result; in Iswalnum()
67 napi_create_int32(env, FALSE, &result); in Iswalnum()
68 return result; in Iswalnum()
82 napi_value result; in IswalnumL() local
84 napi_create_int32(env, SUCCESS, &result); in IswalnumL()
85 return result; in IswalnumL()
87 napi_create_int32(env, FALSE, &result); in IswalnumL()
88 return result; in IswalnumL()
[all …]
/test/xts/acts/commonlibrary/ets_utils/url_lib_standard/src/main/js/test/
Durl.test.js32 var result = params.toString()
33 expect(result).assertEqual('foo=1&bar=2&ma=jk')
48 var result = params.toString()
49 expect(result).assertEqual("foo=1&bar=2&ma+%E5%A4%A7=jk%EF%BF%A5")
64 var result = params.toString()
65 expect(result).assertEqual("foo=1&bar=2&foo%7E%21%40%23%24%25%5E%26*%28%29_%2B-%3D=jk")
80 var result = params.toString()
81 expect(result).assertEqual("foo=1&bar=2&app=par")
96 var result = params.toString()
97 expect(result).assertEqual("foo=1&bar=2&123=456")
[all …]
/test/xts/acts/arkui/ace_ets_web_dev_webviewControllerError/entry/src/main/resources/rawfile/
Dindex.js25 var result = event.data;
26 console.log("In html got message, typeof: ", typeof(result));
27 console.log("In html got message, result: ", (result));
28 if (typeof(result) == "string") {
29 console.log("In html got message, String: ", result);
30 document.getElementById("msg").innerHTML = "String:" + result;
31 } else if (typeof(result) == "number") {
32 console.log("In html side got message, number: ", result);
33 document.getElementById("msg").innerHTML = "Number:" + result;
34 } else if (typeof(result) == "boolean") {
[all …]
/test/xts/acts/commonlibrary/ets_utils/util_lib_standard/src/main/js/test/
Dutil.test.js197 var result = util.printf(format, value1, value2, value3);
198 expect(result).assertEqual("1,qwer 15");
208 var result = util.printf(format, value);
209 expect(result).assertEqual("{ name: 'jack',\n age: 15 }");
219 var result = util.printf(format, value);
221 expect(result).assertEqual('[ 1, 2, 3, [length]: 3 ]');
232 var result = util.printf(format, value1, value2);
233 expect(result).assertEqual('1.5,qwer,%s');
244 var result = util.printf(format, value1, value2);
245 expect(result).assertEqual('6,16');
[all …]
/test/xts/acts/graphic/nativedrawing/entry/src/main/cpp/
DnativeDrawingndk.cpp59 napi_value result = nullptr; in OHDrawingBitmapCreate() local
62 napi_create_int32(env, FAIL, &result); in OHDrawingBitmapCreate()
64 napi_create_int32(env, SUCCESS, &result); in OHDrawingBitmapCreate()
67 return result; in OHDrawingBitmapCreate()
72 napi_value result = nullptr; in OHDrawingBitmapBuild() local
79 napi_create_int32(env, SUCCESS, &result); in OHDrawingBitmapBuild()
81 napi_create_int32(env, FAIL, &result); in OHDrawingBitmapBuild()
84 return result; in OHDrawingBitmapBuild()
89 napi_value result = nullptr; in OHDrawingBitmapGetWidth() local
96 napi_create_int32(env, SUCCESS, &result); in OHDrawingBitmapGetWidth()
[all …]
/test/xts/acts/commonlibrary/memory_utils/libpurgeablemem/entry/src/ohosTest/ets/test/
DMemory.test.ets31 let result: number = memory.createOne();
32 console.info("stdlib.abs result = " + result);
33 expect(result).assertEqual(1)
46 let result: number = memory.createTwo();
47 console.info("stdlib.abs result = " + result);
48 expect(result).assertEqual(1)
61 let result: number = memory.destroyOne();
62 console.info("stdlib.abs result = " + result);
63 expect(result).assertEqual(1)
76 let result: number = memory.destroyTwo();
[all …]
/test/xts/acts/arkui/ace_ets_web_dev_three/entry/src/main/resources/rawfile/
Dindex.js24 var result = event.data;
25 console.info("In html got message, typeof: ", typeof(result));
26 console.info("In html got message, result: ", (result));
27 if (typeof(result) == "string") {
28 console.log("In html got message, String: ", result);
29 document.getElementById("msg").innerHTML = "String:" + result;
30 } else if (typeof(result) == "number") {
31 console.log("In html side got message, number: ", result);
32 document.getElementById("msg").innerHTML = "Number:" + result;
33 } else if (typeof(result) == "boolean") {
[all …]
/test/xts/acts/arkui/ace_ets_web_error_code/entry/src/main/resources/rawfile/
DonMessageEventExt.js24 var result = event.data;
25 console.info("In html got message, typeof: ", typeof(result));
26 console.info("In html got message, result: ", (result));
27 if (typeof(result) == "string") {
28 console.log("In html got message, String: ", result);
29 document.getElementById("msg").innerHTML = "String:" + result;
30 } else if (typeof(result) == "number") {
31 console.log("In html side got message, number: ", result);
32 document.getElementById("msg").innerHTML = "Number:" + result;
33 } else if (typeof(result) == "boolean") {
[all …]
/test/testfwk/developer_test/examples/calculator/src/
Dcalculator.cpp19 int result = e1 + e2; in Add() local
20 if ((e1 >= 0 && e2 >= 0 && result < 0) || (e1 < 0 && e2 < 0 && result >= 0)) { in Add()
21 result = -1; in Add()
23 return result; in Add()
28 int result = e1 - e2; in Sub() local
29 return result; in Sub()
34 int result = e1 * e2; in Mul() local
38 if ((result / e1) != e2) { in Mul()
39 result = -1; in Mul()
41 return result; in Mul()
[all …]

12345678910>>...136