Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/test/xts/acts/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/
DDeviceUsageStatisticsJsunit.test.js62 bundleState.isIdleState(bundleName).then((res) => {
63 … console.info(' DeviceUsageStatisticsJsTest001 isIdleStateone promise success.' + res);
64 expect(res).assertEqual(false);
79 bundleState.isIdleState(bundleName, (err, res) => {
83 … console.info(' DeviceUsageStatisticsJsTest002 isIdleState callback success.' + res);
84 expect(res).assertEqual(false);
97 bundleState.queryAppUsagePriorityGroup().then(res => {
98 … console.info(' DeviceUsageStatisticsJsTest003 queryAppUsagePriorityGroup promise success.' + res);
99 expect(res).assertLarger(0);
113 bundleState.queryAppUsagePriorityGroup((err, res) => {
[all …]
DBundleState.test.js203 bundlestate.isIdleState(bundleName, (err, res) => {
208 console.info('isIdleState_052 callback success result = ' + JSON.stringify(res));
209 if(res) {
210 expect(res).assertTrue();
212 expect(res).assertFalse();
231 bundlestate.isIdleState(bundleName02, (err, res) => {
235 console.info('isIdleState_053 callback success result = ' + JSON.stringify(res));
236 expect(res).assertInstanceOf('Boolean');
255 if(res) {
256 expect(res).assertTrue();
[all …]
/test/xts/acts/commonlibrary/memory_utils/libpurgeablemem/entry/src/main/cpp/
Dmemory.cpp56 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); in CreateOne() local
58 napi_create_int32(env, res != nullptr, &result); in CreateOne()
59 OH_PurgeableMemory_Destroy(res); in CreateOne()
65 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZENULL, FactorialFunc, &g_pData); in CreateTwo() local
67 napi_create_int32(env, res == nullptr, &result); in CreateTwo()
68 OH_PurgeableMemory_Destroy(res); in CreateTwo()
74 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); in DestroyOne() local
75 NAPI_ASSERT(env, res != nullptr, "OH_PurgeAbleMemory_Create failed"); in DestroyOne()
76 bool ret = OH_PurgeableMemory_Destroy(res); in DestroyOne()
84 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); in DestroyTwo() local
[all …]
/test/xts/dcts/distributedhardware/distributedscreentest/
Ddsreen_automat_test.cpp90 int res = SaTest(); variable
91 if (res == 1) {
108 int res = SaTest(); variable
109 if (res == 1) {
126 int res = SaTest(); variable
127 if (res == 1) {
144 int res = SaTest(); variable
145 if (res == 1) {
162 int res = SaTest(); variable
163 if (res == 1) {
[all …]
/test/xts/acts/commonlibrary/ets_utils/containerRelation_lib_standard/src/main/js/test/
DTreeMap.test.js70 let res = treeMap.get(0);
71 expect(res).assertEqual("四");
81 let res = treeMap.get(0);
82 expect(res).assertEqual(8);
93 let res = treeMap.get(0);
94 expect(res).assertEqual(a);
105 let res = treeMap.get(0);
106 expect(res).assertEqual(a);
116 let res = treeMap.get(2);
117 expect(res).assertEqual("*");
[all …]
DTreeSet.test.js54 let res = treeSet.remove(item)
55 expect(res).assertEqual(true);
71 let res = treeSet.has("四");
72 expect(res).assertEqual(true);
82 let res = treeSet.has(8);
83 expect(res).assertEqual(true);
94 let res = treeSet.has(a);
95 expect(res).assertEqual(true);
105 let res = treeSet.has("*");
106 expect(res).assertEqual(true);
[all …]
DLightWeightSet.test.js42 let res = lightWeightSet.has(1);
43 expect(res).assertEqual(true);
53 let res = lightWeightSet.has("a");
54 expect(res).assertEqual(true);
66 let res = lightWeightSet.has(a);
67 expect(res).assertEqual(true);
79 let res = lightWeightSet.has(c);
80 expect(res).assertEqual(true);
91 let res = lightWeightSet.has(c);
92 expect(res).assertEqual(true);
[all …]
DHashMap.test.js42 let res = hashMap.get(1);
43 expect(res).assertEqual("A");
53 let res = hashMap.get(1);
54 expect(res).assertEqual(2);
65 let res = hashMap.get(1);
66 expect(res).assertEqual(c);
78 let res = hashMap.get(1);
79 expect(res).assertEqual(c);
89 let res = hashMap.get("a");
90 expect(res).assertEqual("A");
[all …]
DLightWeightMap.test.js42 let res = lightWeightMap.hasValue("A");
43 expect(res).assertEqual(true);
55 let res = lightWeightMap.hasValue("A");
56 expect(res).assertEqual(true);
69 let res = lightWeightMap.hasValue(a);
70 expect(res).assertEqual(true);
83 let res = lightWeightMap.hasValue(c);
84 expect(res).assertEqual(true);
100 let res = lightWeightMap.get(4);
101 expect(res).assertEqual("D");
[all …]
DPlainArray.test.js41 let res = plainArray.get(1);
42 expect(res).assertEqual("A");
53 let res = plainArray.get(2);
54 expect(res).assertEqual(a);
65 let res = plainArray.get(1);
66 expect(res).assertEqual(c);
77 let res = plainArray.get(1);
78 expect(res).assertEqual(false);
88 let res = plainArray.get(1);
89 expect(res).assertEqual(3);
[all …]
DHashSet.test.js41 let res = hashSet.has(1);
42 expect(res).assertEqual(true);
56 let res = hashSet.has("a");
57 expect(res).assertEqual(true);
68 let res = hashSet.has(c);
69 expect(res).assertEqual(true);
80 let res = hashSet.has(c);
81 expect(res).assertEqual(true);
95 let res = hashSet.length;
96 expect(res).assertEqual(5);
[all …]
/test/xts/acts/commonlibrary/ets_utils/containerLine_lib_standard/src/main/js/test/
DStack.test.js42 let res = stack.peek();
43 expect(res).assertEqual("四");
53 let res = stack.peek();
54 expect(res).assertEqual(8);
65 let res = stack.peek();
66 expect(res).assertEqual(a);
77 let res = stack.peek();
78 expect(res).assertEqual(a);
92 let res = stack.peek();
93 expect(res).assertEqual(1);
[all …]
DDeque.test.js41 let res = deque.getFirst();
42 expect(res).assertEqual("一");
52 let res = deque.getFirst();
53 expect(res).assertEqual(8);
65 let res = deque.getFirst();
66 expect(res).assertEqual(a);
77 let res = deque.getFirst();
78 expect(res).assertEqual(a);
88 let res = deque.getLast();
89 expect(res).assertEqual(8);
[all …]
DLinkedList.test.js41 let res = linkedList.get(0);
42 expect(res).assertEqual("四");
52 let res = linkedList.get(0);
53 expect(res).assertEqual(8);
65 let res = linkedList.get(0);
66 expect(res).assertEqual(a);
78 let res = linkedList.get(0);
79 expect(res).assertEqual(a);
90 let res = linkedList.get(0);
91 expect(res).assertEqual(a);
[all …]
DList.test.js42 let res = list.get(0);
43 expect(res).assertEqual("四");
59 let res = list.get(s);
60 expect(res).assertEqual(1);
70 let res = list.get(0);
71 expect(res).assertEqual(8);
83 let res = list.get(0);
84 expect(res).assertEqual(a);
96 let res = list.get(0);
97 expect(res).assertEqual(a);
[all …]
DQueue.test.js41 let res = queue.getFirst();
42 expect(res).assertEqual("四");
52 let res = queue.getFirst();
53 expect(res).assertEqual(8);
64 let res = queue.getFirst();
65 expect(res).assertEqual(a);
76 let res = queue.getFirst();
77 expect(res).assertEqual(6);
88 let res = queue.pop();
90 expect(res).assertEqual(6);
[all …]
DVector.test.js40 let res = vector.getFirstElement();
41 expect(res).assertEqual("四");
51 let res = vector.getFirstElement();
52 expect(res).assertEqual(4);
64 let res = vector.getFirstElement();
65 expect(res).assertEqual(a);
76 let res = vector.getFirstElement();
77 expect(res).assertEqual(a);
91 let res = vector.get(2);
92 expect(res).assertEqual(8);
[all …]
/test/xts/acts/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/napi/
DaudioTest.cpp29 napi_value res; in CreateAudioStreamBuilder() local
30 napi_create_int32(env, result, &res); in CreateAudioStreamBuilder()
31 return res; in CreateAudioStreamBuilder()
50 napi_value res; in AudioCaptureGenerate() local
51 napi_create_int32(env, result, &res); in AudioCaptureGenerate()
52 return res; in AudioCaptureGenerate()
65 napi_value res; in AudioCaptureGenerateErr() local
66 napi_create_int32(env, result, &res); in AudioCaptureGenerateErr()
67 return res; in AudioCaptureGenerateErr()
80 napi_value res; in AudioCaptureStart() local
[all …]
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/
DGetQueryAbilityByWant.test.ets49 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => {
50 expect(res).assertFail()
65 {}, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => {
66 expect(res).assertFail()
83 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => {
84 console.info(' success Sub_Bms_Framework_Query_AbilityInfo_0540' + JSON.stringify(res))
85 expect(res[0].name).assertEqual('com.example.third7.actionSingleString')
86 expect(res[0].description).assertEqual('actionSingleString')
105 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => {
106 console.info(' success Sub_Bms_Framework_Query_AbilityInfo_0560' + JSON.stringify(res))
[all …]
DGetLaunchWantForBundle.test.ets36 await bundleMgr.getLaunchWantForBundle(NAME1).then(res => {
37 expect(res.bundleName).assertEqual(NAME1);
38 expect(res.abilityName).assertEqual(ABILITYNAME1);
39 expect(res.deviceId).assertEqual('');
40 expect(res.action).assertEqual('action.system.home');
41 expect(res.entities[0]).assertEqual('entity.system.home');
45 bundleMgr.getLaunchWantForBundle(NAME1, (err, res) => {
47 expect(res.bundleName).assertEqual(NAME1);
48 expect(res.abilityName).assertEqual(ABILITYNAME1);
49 expect(res.deviceId).assertEqual('');
[all …]
/test/xts/acts/multimodalinput/input_js_standard/src/main/js/test/
DInputDevice.test.js141 inputDevice.getDevice(data, (err, res) => {
144 console.info(`getDevice:res =${JSON.stringify(res)}`);
145 let arr = Object.keys(res);
146 expect(res.id).assertInstanceOf('Number');
147 expect(res.name).assertInstanceOf('String');
148 expect(res.sources).assertInstanceOf('Array');
149 expect(res.axisRanges).assertInstanceOf('Array');
150 expect(res.bus).assertInstanceOf('Number');
151 expect(res.product).assertInstanceOf('Number');
152 expect(res.vendor).assertInstanceOf('Number');
[all …]
/test/xts/acts/multimedia/media/media_js_standard/avplayeraudiondk/src/main/cpp/
DAudioPlayerNDK.cpp41 napi_value res; in PlayerStateSetURLSource() local
48 napi_create_int32(env, result, &res); in PlayerStateSetURLSource()
49 return res; in PlayerStateSetURLSource()
59 napi_value res; in PlayerStatePrepare() local
66 napi_create_int32(env, result, &res); in PlayerStatePrepare()
67 return res; in PlayerStatePrepare()
79 napi_value res; in PlayerStatePlayer() local
86 napi_create_int32(env, result, &res); in PlayerStatePlayer()
87 return res; in PlayerStatePlayer()
100 napi_value res; in PlayerStatePause() local
[all …]
/test/xts/acts/commonlibrary/ets_utils/worker_lib_standard/entry/src/main/ets/test/
DWorkerTest.test.js169 let res = undefined
177 res = e.data
191 expect(res).assertEqual("hello world worker")
205 let res = undefined
213 res = e.data
227 expect(res).assertEqual(25)
240 let res = undefined
248 res = e.data.message
262 expect(res).assertEqual("hello world worker")
275 let res = undefined
[all …]
/test/xts/acts/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/
DThreadWorker.test.js257 let res = undefined
265 res = e.data
279 expect(res).assertEqual("hello world worker")
292 let res = undefined
300 res = e.data
314 expect(res).assertEqual(25)
326 let res = undefined
334 res = e.data.message
348 expect(res).assertEqual("hello world worker")
360 let res = undefined
[all …]
/test/xts/acts/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/
DHilogJsTest.js124 const res = hilog.isLoggable(0x3200, "HILOGTEST", hilog.LogLevel.DEBUG);
125 expect(res).assertEqual(true);
136 const res = hilog.isLoggable(0x3200, "HILOGTEST", hilog.LogLevel.DEBUG);
141 expect(res).assertEqual(true);
152 const res = hilog.isLoggable(0x3200, "", hilog.LogLevel.DEBUG);
153 expect(res).assertEqual(true);
164 const res = hilog.isLoggable(0x3200, "HILOGTEST", hilog.LogLevel.ERROR);
165 expect(res).assertEqual(true);
176 const res = hilog.isLoggable(0x3200, "HILOGTEST", hilog.LogLevel.FATAL);
177 expect(res).assertEqual(true);
[all …]

12345678910>>...15