Home
last modified time | relevance | path

Searched refs:res (Results 1 - 25 of 114) sorted by relevance

12345

/test/xts/acts/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/
H A DaudioTest.cpp93 napi_value res; in CreateAudioStreamBuilder() local
94 napi_create_int32(env, result, &res); in CreateAudioStreamBuilder()
95 return res; in CreateAudioStreamBuilder()
114 napi_value res; in AudioCaptureGenerate() local
115 napi_create_int32(env, result, &res); in AudioCaptureGenerate()
116 return res; in AudioCaptureGenerate()
129 napi_value res; in AudioCaptureGenerateErr() local
130 napi_create_int32(env, result, &res); in AudioCaptureGenerateErr()
131 return res; in AudioCaptureGenerateErr()
144 napi_value res; in AudioCaptureStart() local
159 napi_value res; AudioCaptureStartErr() local
173 napi_value res; AudioCapturePause() local
187 napi_value res; AudioCapturePauseErr() local
201 napi_value res; AudioCaptureStop() local
214 napi_value res; AudioCaptureStopErr() local
228 napi_value res; AudioCaptureFlush() local
242 napi_value res; AudioCaptureFlushErr() local
255 napi_value res; AudioCaptureRelease() local
269 napi_value res; AudioCaptureReleaseErr() local
283 napi_value res; AudioCaptureGetParameter() local
297 napi_value res; AudioCaptureGetCurrentState() local
311 napi_value res; AudioCaptureGetStreamId() local
325 napi_value res; AudioCaptureGetSamplingRate() local
339 napi_value res; AudioCaptureGetSampleFormat() local
353 napi_value res; AudioCaptureGetEncodingType() local
367 napi_value res; AudioCaptureGetCapturerInfo() local
387 napi_value res; AudioCaptureGetTimestamp() local
401 napi_value res; AudioCaptureGetFramesRead() local
415 napi_value res; AudioCaptureGetFrameSizeInCallback() local
439 napi_value res; AudioRendererSetSpeed() local
454 napi_value res; AudioRendererGetSpeed() local
470 napi_value res; AudioRendererSetGetSpeed() local
490 napi_value res; AudioSetRendererOutputDeviceChangeCallback() local
522 napi_value res; AudioRenderGetFramesWritten() local
543 napi_value res; AudioRenderGetTimestamp() local
558 napi_value res; AudioRenderGetFrameSizeInCallback() local
571 napi_value res; AudioRenderGenerate() local
586 napi_value res; AudioRenderGenerateErr() local
600 napi_value res; AudioRenderStart() local
616 napi_value res; AudioRenderStartErr() local
631 napi_value res; AudioRenderPause() local
645 napi_value res; AudioRenderPauseErr() local
660 napi_value res; AudioRenderStop() local
674 napi_value res; AudioRenderStopErr() local
689 napi_value res; AudioRenderFlush() local
704 napi_value res; AudioRenderFlushErr() local
718 napi_value res; AudioRenderRelease() local
734 napi_value res; AudioRenderReleaseErr() local
748 napi_value res; AudioRenderGetCurrentState() local
763 napi_value res; AudioRenderGetParameter() local
779 napi_value res; AudioRenderGetStreamId() local
793 napi_value res; AudioRenderGetSamplingRate() local
808 napi_value res; AudioRenderGetSampleFormat() local
823 napi_value res; AudioRenderGetEncodingType() local
837 napi_value res; AudioRenderGetRendererInfo() local
851 napi_value res; AudioStreamBuilderSetSamplingRate() local
864 napi_value res; AudioStreamBuilderSetChannelCount() local
878 napi_value res; AudioStreamBuilderSetSampleFormat() local
892 napi_value res; AudioStreamBuilderSetEncodingType() local
908 napi_value res; AudioStreamBuilderSetLatencyMode() local
923 napi_value res; AudioStreamBuilderSetRendererInfo() local
937 napi_value res; AudioStreamBuilderSetCapturerInfo() local
958 napi_value res; AudioStreamBuilderSetRendererCallback() local
982 napi_value res; AudioStreamBuilderSetCapturerCallback() local
996 napi_value res; AudioCaptureGetChannelCount() local
1011 napi_value res; AudioRenderGetChannelCount() local
1024 napi_value res; AudioStreamBuilderSetFrameSizeInCallback() local
1035 napi_value res; AudioRendererGetVolume_01() local
1048 napi_value res; AudioRendererSetVolume_01() local
1077 napi_value res; AudioRendererSetVolume_02() local
1106 napi_value res; AudioRendererSetVolume_03() local
1142 napi_value res; AudioRendererSetVolume_04() local
1164 napi_value res; AudioRendererSetVolume_05() local
1186 napi_value res; AudioRendererSetVolume_06() local
1201 napi_value res; AudioRendererSetVolumeWithRamp_01() local
1231 napi_value res; AudioRendererSetVolumeWithRamp_02() local
1261 napi_value res; AudioRendererSetVolumeWithRamp_03() local
1291 napi_value res; AudioRendererSetVolumeWithRamp_04() local
1321 napi_value res; AudioRendererSetVolumeWithRamp_05() local
1351 napi_value res; AudioRendererSetVolumeWithRamp_06() local
1381 napi_value res; AudioRendererSetVolumeWithRamp_07() local
1411 napi_value res; AudioRendererSetVolumeWithRamp_08() local
1443 napi_value res; AudioRendererSetVolumeWithRamp_09() local
1462 napi_value res; AudioRendererSetOnMarkReached_01() local
1485 napi_value res; AudioRendererSetOnMarkReached_02() local
1508 napi_value res; AudioRendererSetOnMarkReached_03() local
1553 napi_value res; AudioRendererSetOnMarkReached_04() local
1566 napi_value res; AudioRendererSetOnMarkReached_05() local
1589 napi_value res; AudioRendererSetOnMarkReached_06() local
1636 napi_value res; AudioRendererSetOnMarkReached_07() local
1679 napi_value res; AudioRendererSetOnMarkReached_08() local
1734 napi_value res; AudioRendererCancelMark_01() local
1792 napi_value res; AudioRendererCancelMark_02() local
1813 napi_value res; AudioRendererCancelMark_03() local
1836 napi_value res; AudioRendererSetInterruptMode_01() local
1916 napi_value res; AudioRendererSetInterruptMode_02() local
1999 napi_value res; AudioRendererSetInterruptMode_03() local
2015 napi_value res; AudioRendererSetInterruptMode_04() local
2051 napi_value res; AudioManagerGetAudioRoutingManager_01() local
2065 napi_value res; AudioRoutingManagerGetDevices_01() local
2086 napi_value res; AudioRoutingManagerGetDevices_02() local
2108 napi_value res; AudioRoutingManagerGetDevices_03() local
2130 napi_value res; AudioRoutingManagerGetDevices_04() local
2152 napi_value res; AudioRoutingManagerGetDevices_05() local
2174 napi_value res; AudioRoutingManagerGetDevices_06() local
2190 napi_value res; AudioRoutingManagerGetDevices_07() local
2212 napi_value res; AudioManagerGetManager_01() local
2225 napi_value res; AudioManagerGetManager_02() local
2238 napi_value res; AudioManagerGetAudioScene_01() local
2257 napi_value res; AudioManagerGetAudioScene_02() local
2291 napi_value res; AudioRoutingManagerGetAvailableDevices001() local
2317 napi_value res; AudioRoutingManagerGetPreferredOutputDevice001() local
2343 napi_value res; AudioRoutingManagerGetPreferredInputDevice001() local
2369 napi_value res; AudioRoutingManagerSetMicBlockStatusCallback_001() local
2390 napi_value res; AudioRoutingManagerSetMicBlockStatusCallback_002() local
2411 napi_value res; AudioRoutingManagerSetMicBlockStatusCallback_003() local
2433 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_001() local
2454 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_002() local
2475 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_003() local
2496 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_004() local
2517 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_005() local
2534 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_006() local
2555 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_007() local
2577 napi_value res; AudioRoutingManagerRegisterDeviceChangeCallback_008() local
2599 napi_value res; AudioRoutingManagerUnregisterDeviceChangeCallback_001() local
2619 napi_value res; AudioRoutingManagerUnregisterDeviceChangeCallback_002() local
2635 napi_value res; AudioRoutingManagerUnregisterDeviceChangeCallback_003() local
2655 napi_value res; AudioRoutingManagerReleaseDevices_001() local
2671 napi_value res; AudioRoutingManagerReleaseDevices_002() local
2691 napi_value res; AudioAudioDeviceDescriptorGetDeviceType_001() local
2728 napi_value res; AudioAudioDeviceDescriptorGetDeviceType_002() local
2760 napi_value res; AudioAudioDeviceDescriptorGetDeviceType_003() local
2771 napi_value res; AudioAudioDeviceDescriptorGetDeviceRole_001() local
2809 napi_value res; AudioAudioDeviceDescriptorGetDeviceRole_002() local
2837 napi_value res; AudioAudioDeviceDescriptorGetDeviceRole_003() local
2852 napi_value res; AudioAudioDeviceDescriptorGetDeviceId_001() local
2890 napi_value res; AudioAudioDeviceDescriptorGetDeviceId_002() local
2918 napi_value res; AudioAudioDeviceDescriptorGetDeviceId_003() local
2933 napi_value res; AudioAudioDeviceDescriptorGetDeviceName_001() local
2971 napi_value res; AudioAudioDeviceDescriptorGetDeviceName_002() local
2999 napi_value res; AudioAudioDeviceDescriptorGetDeviceName_003() local
3014 napi_value res; AudioAudioDeviceDescriptorGetDeviceAddress_001() local
3052 napi_value res; AudioAudioDeviceDescriptorGetDeviceAddress_002() local
3080 napi_value res; AudioAudioDeviceDescriptorGetDeviceAddress_003() local
3095 napi_value res; AudioAudioDeviceDescriptorGetDeviceSampleRates_001() local
3134 napi_value res; AudioAudioDeviceDescriptorGetDeviceSampleRates_002() local
3163 napi_value res; AudioAudioDeviceDescriptorGetDeviceSampleRates_003() local
3192 napi_value res; AudioAudioDeviceDescriptorGetDeviceSampleRates_004() local
3208 napi_value res; AudioAudioDeviceDescriptorGetDeviceChannelCounts_001() local
3247 napi_value res; AudioAudioDeviceDescriptorGetDeviceChannelCounts_002() local
3276 napi_value res; AudioAudioDeviceDescriptorGetDeviceChannelCounts_003() local
3305 napi_value res; AudioAudioDeviceDescriptorGetDeviceChannelCounts_004() local
3322 napi_value res; AudioAudioDeviceDescriptorGetDeviceDisplayName_001() local
3360 napi_value res; AudioAudioDeviceDescriptorGetDeviceDisplayName_002() local
3388 napi_value res; AudioAudioDeviceDescriptorGetDeviceDisplayName_003() local
3403 napi_value res; AudioAudioDeviceDescriptorGetDeviceEncodingTypes_001() local
3442 napi_value res; AudioAudioDeviceDescriptorGetDeviceEncodingTypes_002() local
3471 napi_value res; AudioAudioDeviceDescriptorGetDeviceEncodingTypes_003() local
3500 napi_value res; AudioAudioDeviceDescriptorGetDeviceEncodingTypes_004() local
3524 napi_value res; AudioAudioInternalRecordingSuccess01() local
3545 napi_value res; AudioAudioInternalRecordingSuccess02() local
3559 napi_value res; AudioAudioInternalRecordingFalse() local
3589 napi_value res; AudioStreamBuilderSetRendererWriteDataCallback_001() local
3603 napi_value res; AudioStreamBuilderSetRendererWriteDataCallback_002() local
3631 napi_value res; audioCapturerGetOverflowCount_001() local
3638 napi_value res; AudioSessionManagerStrategy_001() local
3711 napi_value res; AudioSessionManagerStrategy_002() local
3776 napi_value res; AudioSessionManagerStrategy_003() local
3841 napi_value res; AudioSessionManagerStrategy_004() local
3906 napi_value res; AudioSessionManagerStrategyError_001() local
3933 napi_value res; AudioSessionManagerActivatedError_001() local
3976 napi_value res; AudioSessionManagerStopError_001() local
4019 napi_value res; AudioSessionManagerStopError_002() local
4060 napi_value res; AudioSessionManagerRegisterError_001() local
4112 napi_value res; AudioSessionManagerRegisterError_002() local
4164 napi_value res; AudioSessionManagerUnregisterError_001() local
4237 napi_value res; AudioSessionManagerUnregisterError_002() local
4310 napi_value res; AudioSessionManagerReason_001() local
4420 napi_value res; AudioSessionManagerReason_002() local
4502 napi_value res; AudioRendererSetDefaultOutputDevice_01() local
4546 napi_value res; AudioRendererSetDefaultOutputDevice_02() local
4590 napi_value res; AudioRendererSetDefaultOutputDevice_03() local
[all...]
/test/xts/acts/commonlibrary/memory_utils/libpurgeablemem/entry/src/main/cpp/
H A 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()
60 res = nullptr; in CreateOne()
66 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZENULL, FactorialFunc, &g_pData); in CreateTwo() local
68 napi_create_int32(env, res == nullptr, &result); in CreateTwo()
69 OH_PurgeableMemory_Destroy(res); in CreateTwo()
70 res = nullptr; in CreateTwo()
76 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); in DestroyOne() local
77 NAPI_ASSERT(env, res ! in DestroyOne()
87 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); DestroyTwo() local
101 OH_PurgeableMemory *res = nullptr; DestroyThree() local
111 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); BeginReadOne() local
126 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); BeginReadTwo() local
139 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); EndRead() local
153 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); BeginWriteOne() local
168 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); BeginWriteTwo() local
181 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); EndWrite() local
197 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); GetContentOne() local
213 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); GetContentTwo() local
228 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); ContentSizeOne() local
243 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); ContentSizeTwo() local
255 OH_PurgeableMemory *res = OH_PurgeableMemory_Create(DATASIZE, FactorialFunc, &g_pData); AppendModifyOne() local
271 OH_PurgeableMemory *res = nullptr; AppendModifyTwo() local
[all...]
/test/xts/dcts/distributedhardware/distributedscreentest/
H A Ddsreen_automat_test.cpp90 int res = SaTest(); in HWTEST_F() local
91 if (res == 1) { in HWTEST_F()
108 int res = SaTest(); in HWTEST_F() local
109 if (res == 1) { in HWTEST_F()
126 int res = SaTest(); in HWTEST_F() local
127 if (res == 1) { in HWTEST_F()
144 int res = SaTest(); in HWTEST_F() local
145 if (res == 1) { in HWTEST_F()
162 int res = SaTest(); in HWTEST_F() local
163 if (res in HWTEST_F()
180 int res = SaTest(); HWTEST_F() local
198 int res = SaTest(); HWTEST_F() local
215 int res = SaTest(); HWTEST_F() local
234 int res = SaTest(); HWTEST_F() local
253 int res = SaTest(); HWTEST_F() local
274 int res = SaTest(); HWTEST_F() local
295 int res = SaTest(); HWTEST_F() local
316 int res = SaTest(); HWTEST_F() local
337 int res = SaTest(); HWTEST_F() local
358 int res = SaTest(); HWTEST_F() local
379 int res = SaTest(); HWTEST_F() local
400 int res = SaTest(); HWTEST_F() local
421 int res = SaTest(); HWTEST_F() local
442 int res = SaTest(); HWTEST_F() local
465 int res = SaTest(); HWTEST_F() local
488 int res = SaTest(); HWTEST_F() local
511 int res = SaTest(); HWTEST_F() local
540 int res = SaTest(); HWTEST_F() local
557 int res = SaTest(); HWTEST_F() local
574 int res = SaTest(); HWTEST_F() local
591 int res = SaTest(); HWTEST_F() local
608 int res = SaTest(); HWTEST_F() local
625 int res = SaTest(); HWTEST_F() local
642 int res = SaTest(); HWTEST_F() local
659 int res = SaTest(); HWTEST_F() local
678 int res = SaTest(); HWTEST_F() local
697 int res = SaTest(); HWTEST_F() local
716 int res = SaTest(); HWTEST_F() local
735 int res = SaTest(); HWTEST_F() local
754 int res = SaTest(); HWTEST_F() local
773 int res = SaTest(); HWTEST_F() local
792 int res = SaTest(); HWTEST_F() local
811 int res = SaTest(); HWTEST_F() local
830 int res = SaTest(); HWTEST_F() local
849 int res = SaTest(); HWTEST_F() local
868 int res = SaTest(); HWTEST_F() local
887 int res = SaTest(); HWTEST_F() local
906 int res = SaTest(); HWTEST_F() local
925 int res = SaTest(); HWTEST_F() local
948 int res = SaTest(); HWTEST_F() local
970 int res = SaTest(); HWTEST_F() local
993 int res = SaTest(); HWTEST_F() local
1017 int res = SaTest(); HWTEST_F() local
1039 int res = SaTest(); HWTEST_F() local
1061 int res = SaTest(); HWTEST_F() local
[all...]
/test/xts/acts/multimedia/media/media_js_standard/avplayeraudiondk/entry/src/main/cpp/
H A 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
119 napi_value res; PlayerStateStop() local
136 napi_value res; PlayerStateReset() local
157 napi_value res; PlayerStateSetvolume() local
179 napi_value res; PlayerStateSeek() local
200 napi_value res; PlayerStateGetCurrentTime() local
222 napi_value res; PlayerStateSetSpeed() local
244 napi_value res; PlayerStateGetSpeed() local
265 napi_value res; PlayerStateIsPlaying() local
285 napi_value res; PlayerStateGetDuration() local
308 napi_value res; PlayerStateLoop() local
329 napi_value res; PlayerStateSetSpeed_1_25_X() local
350 napi_value res; PlayerStateSetSpeed_1_75_X() local
371 napi_value res; PlayerStateSetSpeed_2_00_X() local
[all...]
/test/xts/acts/commonlibrary/thirdparty/ubsan/entry/src/main/cpp/
H A Dnapi_init.cpp43 int res = -1; in MisAlign() local
53 res = *pointer; in MisAlign()
58 res = WSTOPSIG(status); in MisAlign()
64 napi_create_int32(env, res, &result); in MisAlign()
80 int res = -1; in Bounds() local
89 res = array[param]; in Bounds()
94 res = WSTOPSIG(status); in Bounds()
100 napi_create_int32(env, res, &result); in Bounds()
117 int res = -1; in IntegerDivBy0() local
125 res in IntegerDivBy0()
160 int res = -1; EnumSan() local
197 int res = -1; FloatCastOverflow() local
234 int res = -1; SignedIntegerOverflow() local
291 int res = -1; VptrCheck() local
329 int res = -1; NonnullAttribute() local
372 int res = -1; NullSanitize() local
427 int res = -1; PointerOverflow() local
467 int res = -1; ReturnNonnullAttribute() local
506 int res = -1; ShiftBase() local
543 int res = -1; ShiftExponent() local
578 int res = -1; UndefinedBool() local
620 int res = -1; VlaBound() local
[all...]
/test/xts/acts/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/
H A 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)
[all...]
/test/xts/acts/distributeddatamgr/Pasteboardnapitest/entry/src/main/cpp/
H A Dnapi_init.cpp166 int res = OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer); in OH_Pasteboard_Subscribe0100() local
167 napi_create_int32(env, res == ERR_OK, &result); in OH_Pasteboard_Subscribe0100()
207 int res = OH_Pasteboard_Subscribe(pasteboard, 10, observer); in OH_Pasteboard_Subscribe0400() local
208 napi_create_int32(env, res == ERR_INVALID_PARAMETER, &result); in OH_Pasteboard_Subscribe0400()
222 int res = OH_Pasteboard_Subscribe(pasteboard, -1, observer); in OH_Pasteboard_Subscribe0500() local
223 napi_create_int32(env, res == ERR_INVALID_PARAMETER, &result); in OH_Pasteboard_Subscribe0500()
237 int res = OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, nullptr); in OH_Pasteboard_Subscribe0600() local
238 napi_create_int32(env, res == ERR_INVALID_PARAMETER, &result); in OH_Pasteboard_Subscribe0600()
253 int res = OH_Pasteboard_Unsubscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer); in OH_Pasteboard_Unsubcribe0100() local
254 napi_create_int32(env, res in OH_Pasteboard_Unsubcribe0100()
268 int res = OH_Pasteboard_Unsubscribe(nullptr, NOTIFY_LOCAL_DATA_CHANGE, observer); OH_Pasteboard_Unsubcribe0200() local
282 int res = OH_Pasteboard_Unsubscribe(pasteboard, 10, observer); OH_Pasteboard_Unsubcribe0300() local
296 int res = OH_Pasteboard_Unsubscribe(pasteboard, -1, observer); OH_Pasteboard_Unsubcribe0400() local
310 int res = OH_Pasteboard_Unsubscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, nullptr); OH_Pasteboard_Unsubcribe0500() local
323 bool res = OH_Pasteboard_IsRemoteData(pasteboard); OH_Pasteboard_IsRemoteData0100() local
346 int res = OH_Pasteboard_GetDataSource(pasteboard, source, len); OH_Pasteboard_GetDataSrouce0100() local
366 bool res = OH_Pasteboard_HasType(pasteboard, type); OH_Pasteboard_HasType0100() local
379 bool res = OH_Pasteboard_HasData(pasteboard); OH_Pasteboard_HasData0100() local
402 bool res = OH_Pasteboard_ClearData(pasteboard); OH_Pasteboard_ClearData0100() local
422 bool res = OH_Pasteboard_SetData(pasteboard, setData); OH_Pasteboard_SetData0100() local
445 int res = OH_Pasteboard_SetData(pasteboard, setData); OH_Pasteboard_GetData0100() local
487 int res = OH_Pasteboard_SetData(pasteboard, setData); OH_Pasteboard_GetData0200() local
531 int res = OH_Pasteboard_SetData(pasteboard, setData); OH_Pasteboard_GetData0300() local
[all...]
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/
H A Dimage_receiver_mdk_test.cpp90 int32_t res = OH_Image_Receiver_CreateImageReceiver(env, receiverInfo, &receiver); in JsCreateImageReceiver() local
91 if (res != IMAGE_RESULT_SUCCESS || receiver == nullptr) { in JsCreateImageReceiver()
120 int32_t res = OH_Image_Receiver_GetReceivingSurfaceId(native, buf, ID_SIZE); in JsGetReceivingSurfaceId() local
121 if (res != IMAGE_RESULT_SUCCESS) { in JsGetReceivingSurfaceId()
141 int32_t res = OH_Image_Receiver_ReadLatestImage(native, &result); in JsReadLatestImage() local
142 if (res != IMAGE_RESULT_SUCCESS) { in JsReadLatestImage()
159 int32_t res = OH_Image_Receiver_ReadNextImage(native, &result); in JsReadNextImage() local
160 if (res != IMAGE_RESULT_SUCCESS) { in JsReadNextImage()
183 int32_t res = OH_Image_Receiver_On(native, OnEvent); in JsOn() local
184 napi_create_int32(env, res, in JsOn()
199 int32_t res = OH_Image_Receiver_Release(native); JsReceiverRelease() local
230 int32_t res = OH_Image_Receiver_GetSize(native, &size); JsGetSize() local
251 int32_t res = OH_Image_Receiver_GetCapacity(native, &capacity); JsGetCapacity() local
269 int32_t res = OH_Image_Receiver_GetFormat(native, &format); JsGetFormat() local
308 int32_t res = OH_Image_Release(native); JsImageRelease() local
323 int32_t res = OH_Image_ClipRect(native, &rect); JsImageClipRect() local
346 int32_t res = OH_Image_Size(native, &size); JsImageSize() local
366 int32_t res = OH_Image_Format(native, &format); JsImageFormat() local
395 int32_t res = OH_Image_GetComponent(native, componentType, &component); JsImageGetComponent() local
[all...]
/test/xts/dcts/distributedhardware/distributedaudiotest/
H A Ddaudio_automat_test.cpp24 std::string res = "true"; variable
58 EXPECT_EQ(res, ret) << "FindAudioDevice fail"; in HWTEST_F()
73 EXPECT_EQ(res, ret) << "OpenSpk fail"; in HWTEST_F()
89 EXPECT_EQ(res, ret) << "StartRender fail"; in HWTEST_F()
104 EXPECT_EQ(res, ret) << "StopRender fail"; in HWTEST_F()
119 EXPECT_EQ(res, ret) << "SetVolume five fail"; in HWTEST_F()
134 EXPECT_EQ(res, ret) << "GetVolume fail"; in HWTEST_F()
149 EXPECT_EQ(res, ret) << "CloseSpk fail"; in HWTEST_F()
164 EXPECT_EQ(res, ret) << "OpenMic fail"; in HWTEST_F()
179 EXPECT_EQ(res, re in HWTEST_F()
[all...]
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeBitmapTest.cpp566 bool res = OH_Drawing_BitmapReadPixels(cBitmap, &imageInfo1, pixels1, width * 4, 0, 0); in HWTEST_F() local
567 EXPECT_EQ(res, true); in HWTEST_F()
676 bool res = OH_Drawing_BitmapReadPixels(cBitmap, &imageInfo1, pixels1, width * 4, 0, 0); in HWTEST_F() local
677 EXPECT_EQ(res, true); in HWTEST_F()
731 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F() local
732 EXPECT_EQ(res, true); in HWTEST_F()
763 bool res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F() local
764 EXPECT_EQ(res, false); in HWTEST_F()
767 res = OH_Drawing_BitmapReadPixels(bitmap, nullptr, pixels, width * 4, 0, 0); in HWTEST_F()
768 EXPECT_EQ(res, fals in HWTEST_F()
823 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0); HWTEST_F() local
877 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0); HWTEST_F() local
[all...]
/test/xts/acts/notification/ces_standard/actsCommonEventSubscribeNDKTest/entry/src/main/cpp/
H A Dsubscribe.cpp114 napi_value res = nullptr; in CreateSubscribeInfo() local
115 napi_create_int32(env, 403, &res); in CreateSubscribeInfo()
116 return res; in CreateSubscribeInfo()
127 napi_value res = nullptr; in CreateSubscribeInfo() local
128 napi_create_int32(env, 401, &res); in CreateSubscribeInfo()
129 return res; in CreateSubscribeInfo()
132 napi_value res = nullptr; in CreateSubscribeInfo() local
133 napi_create_int32(env, 402, &res); in CreateSubscribeInfo()
134 return res; in CreateSubscribeInfo()
221 napi_value res in DestroySubscribeInfo() local
231 napi_value res = nullptr; CreateSubscriber() local
245 napi_value res = nullptr; DestroySubscriber() local
254 napi_value res = nullptr; CommonEventSubscribe() local
263 napi_value res = nullptr; CommonEventUnSubscribe() local
[all...]
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/cpp/napi/
H A Dimage_source_test.cpp77 static bool GetBoolProperty(napi_env env, napi_value root, const char* utf8name, int8_t* res) in GetBoolProperty() argument
87 *res = tmp ? INT8_TRUE : INT8_FALSE; in GetBoolProperty()
91 static bool GetInt32Property(napi_env env, napi_value root, const char* utf8name, int32_t* res) in GetInt32Property() argument
99 return (napi_get_value_int32(env, property, res) == napi_ok); in GetInt32Property()
102 static bool GetUint32Property(napi_env env, napi_value root, const char* utf8name, uint32_t* res) in GetUint32Property() argument
110 return (napi_get_value_uint32(env, property, res) == napi_ok); in GetUint32Property()
266 static napi_value createResultValue(napi_env env, int32_t resCode, napi_value res = nullptr) in createResultValue()
275 if (res != nullptr) { in createResultValue()
276 napi_set_named_property(env, result, "result", res); in createResultValue()
302 int32_t res in Create() local
331 int32_t res = OH_ImageSource_CreateFromFd(env, fd, &ops, &imageSource); CreateFromFd() local
363 int32_t res = OH_ImageSource_CreateFromData(env, data, bufferSize, &ops, &imageSource); CreateFromData() local
386 int32_t res = OH_ImageSource_CreateFromUri(env, uri, uriSize, &ops, &imageSource); CreateFromUri() local
423 int32_t res = OH_ImageSource_CreateFromRawFile(env, rawFileDescriptor, &ops, &imageSource); CreateFromRawFile() local
446 int32_t res = OH_ImageSource_CreateIncremental(env, &src, &ops, &imageSource); CreateIncremental() local
483 int32_t res = OH_ImageSource_CreateIncrementalFromData(env, data, bufferSize, &ops, &imageSource); CreateIncrementalFromData() local
529 int32_t res = OH_ImageSource_CreatePixelMap(native, &ops, &pixelmap); CreatePixelMap() local
549 int32_t res = OH_ImageSource_CreatePixelMapList(native, &ops, &pixelmapList); CreatePixelMapList() local
574 int32_t res = OH_ImageSource_GetDelayTime(native, &timeList); GetDelayTime() local
604 int32_t res = OH_ImageSource_GetFrameCount(native, &frameCount); GetFrameCount() local
631 int32_t res = OH_ImageSource_GetSupportedFormats(&formatList); GetSupportedFormats() local
686 int32_t res = OH_ImageSource_GetImageInfo(native, index, &imageInfo); GetImageInfo() local
707 int32_t res = OH_ImageSource_GetImageProperty(native, &key, &val); GetImageProperty() local
748 int32_t res = OH_ImageSource_ModifyImageProperty(native, &key, &val); ModifyImageProperty() local
774 int32_t res = OH_ImageSource_UpdateData(native, &data); UpdateData() local
787 int32_t res = OH_ImageSource_Release(native); Release() local
[all...]
/test/xts/acts/multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/
H A Dimage_pixel_map_imgndk_test.cpp162 int32_t res = OH_PixelMap_CreatePixelMap(env, createOps, buffer, bufferSize, &pixelmap); in CreatePixelMap() local
163 if (res != IMAGE_RESULT_SUCCESS || pixelmap == nullptr) { in CreatePixelMap()
184 int32_t res = OH_PixelMap_CreateAlphaPixelMap(env, argValue[NUM_0], &alphaPixelmap); in CreateAlphaPixelMap() local
185 if (res != IMAGE_RESULT_SUCCESS || alphaPixelmap == nullptr) { in CreateAlphaPixelMap()
228 int32_t res = OH_PixelMap_GetBytesNumberPerRow(native, &rowBytes); in GetBytesNumberPerRow() local
229 if (res != IMAGE_RESULT_SUCCESS || rowBytes == NUM_0) { in GetBytesNumberPerRow()
248 int32_t res = OH_PixelMap_GetIsEditable(native, &editable); in GetIsEditable() local
249 if (res != IMAGE_RESULT_SUCCESS) { in GetIsEditable()
268 int32_t res = OH_PixelMap_IsSupportAlpha(native, &supportAlpha); in IsSupportAlpha() local
269 if (res ! in IsSupportAlpha()
299 int32_t res = OH_PixelMap_SetAlphaAble(native, alphaAble); SetAlphaAble() local
315 int32_t res = OH_PixelMap_GetDensity(native, &density); GetDensity() local
348 int32_t res = OH_PixelMap_SetDensity(native, density); SetDensity() local
377 int32_t res = OH_PixelMap_SetOpacity(native, static_cast<float>(opacity)); SetOpacity() local
406 int32_t res = OH_PixelMap_Scale(native, static_cast<float>(x), static_cast<float>(y)); Scale() local
438 int32_t res = OH_PixelMap_Translate(native, static_cast<float>(x), static_cast<float>(y)); Translate() local
467 int32_t res = OH_PixelMap_Rotate(native, static_cast<float>(angle)); Rotate() local
499 int32_t res = OH_PixelMap_Flip(native, x, y); Flip() local
535 int32_t res = OH_PixelMap_Crop(native, x, y, width, height); Crop() local
565 int32_t res = OH_PixelMap_GetImageInfo(native, &pixelmapInfo); GetImageInfo() local
588 int32_t res = OH_PixelMap_AccessPixels(native, &pixelAddr); AccessPixels() local
606 int32_t res = OH_PixelMap_UnAccessPixels(native); UnAccessPixels() local
[all...]
H A Dpixel_map_module_test.cpp60 OH_ImageSourceNative* res = nullptr; in GetPixelmap() local
61 int32_t ret = OH_ImageSourceNative_CreateFromFd(fd, &res); in GetPixelmap()
69 OH_ImageSourceNative_Release(res); in GetPixelmap()
75 OH_ImageSourceNative_Release(res); in GetPixelmap()
80 ret = OH_ImageSourceNative_CreatePixelmap(res, options, pixelmap); in GetPixelmap()
82 OH_ImageSourceNative_Release(res); in GetPixelmap()
87 OH_ImageSourceNative_Release(res); in GetPixelmap()
93 int32_t ImagePixelMapNative::ConvertPixelmapToNapi(napi_env env, OH_PixelmapNative *pixelmap, napi_value *res) in ConvertPixelmapToNapi() argument
95 int32_t ret = OH_PixelmapNative_ConvertPixelmapNativeToNapi(env, pixelmap, res); in ConvertPixelmapToNapi()
96 if (ret != 0 || *res in ConvertPixelmapToNapi()
[all...]
/test/xts/acts/commonlibrary/ets_utils/util_lib_standard/entry/src/ohosTest/js/test/
H A Dutil.test.js243 let res = '[ 1, 2, 3, [length]: 3 ]'
367 let res = ""
368 res = await value("Hello");
369 expect(String(res)).assertEqual("Hello");
390 let res;
394 res = d;
397 res = e;
402 expect(res).assertEqual('type err');
419 let res = 0;
420 res
[all...]
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/
H A Dimage_packing_test.cpp61 static bool GetInt32Property(napi_env env, napi_value root, const char* utf8name, int32_t* res) in GetInt32Property() argument
69 return (napi_get_value_int32(env, property, res) == napi_ok); in GetInt32Property()
72 static bool GetUint32Property(napi_env env, napi_value root, const char* utf8name, uint32_t* res) in GetUint32Property() argument
80 return (napi_get_value_uint32(env, property, res) == napi_ok); in GetUint32Property()
155 static napi_value createResultValue(napi_env env, int32_t resCode, napi_value res = nullptr) in createResultValue()
164 if (res != nullptr) { in createResultValue()
165 napi_set_named_property(env, result, "result", res); in createResultValue()
172 int32_t res = OH_ImagePacker_Create(env, &imagePacker); in Create() local
173 return createResultValue(env, res, imagePacker); in Create()
230 int32_t res in PackToData() local
266 int32_t res = OH_ImagePacker_PackToFile(native, argValue[ARGS_SECOND], &packerOpts, fd); PackToFile() local
283 int32_t res = OH_ImagePacker_Release(native); Release() local
[all...]
/test/xts/dcts/distributedhardware/distributedaudionewtest/
H A Ddaudio_automat_test.cpp36 std::string res = "true"; variable
100 int32_t res = GetSyncOnlineDevices(g_networkId); in HWTEST_F() local
101 EXPECT_EQ(g_audioOk, res) << "GetSyncOnlineDevices fail DCTS_0100"; in HWTEST_F()
103 res = sinkSrv_->PauseDistributedHardware(g_networkId); in HWTEST_F()
104 EXPECT_EQ(g_audioOk, res) << "PauseDistributedHardware fail DCTS_0100"; in HWTEST_F()
312 EXPECT_EQ(res, finish) << "OpenMic fail DCTS_0900"; in HWTEST_F()
319 EXPECT_EQ(res, finish) << "StartCapture fail DCTS_0900"; in HWTEST_F()
326 EXPECT_EQ(res, finish) << "StopCapture fail DCTS_0900"; in HWTEST_F()
330 EXPECT_EQ(res, finish) << "CloseMic fail DCTS_0900"; in HWTEST_F()
355 EXPECT_EQ(res, finis in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/fileio/clockgetres/
H A DClockGetresApiTest.cpp57 struct timespec res; in HWTEST_F() local
59 int ret = clock_getres(invalidClockId, &res); in HWTEST_F()
75 struct timespec res = { 0 }; in HWTEST_F() local
78 int ret = clock_getres(validClockId, &res); in HWTEST_F()
81 EXPECT_GE(res.tv_sec, 0); in HWTEST_F()
82 EXPECT_GE(res.tv_nsec, 0); in HWTEST_F()
/test/xts/acts/graphic/graphicnapidrawingtest/
H A DNativeDrawingBitmapTest.cpp184 bool res = OH_Drawing_BitmapReadPixels(nullptr, nullptr, nullptr, width * 4, 0, 0); in HWTEST_F() local
185 EXPECT_EQ(res, false); in HWTEST_F()
186 res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F()
187 EXPECT_EQ(res, false); in HWTEST_F()
188 res = OH_Drawing_BitmapReadPixels(bitmap_, nullptr, pixels, width * 4, 0, 0); in HWTEST_F()
189 EXPECT_EQ(res, false); in HWTEST_F()
190 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, nullptr, width * 4, 0, 0); in HWTEST_F()
191 EXPECT_EQ(res, false); in HWTEST_F()
192 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F()
193 EXPECT_EQ(res, tru in HWTEST_F()
[all...]
H A DNativeDrawingBitmapLargeValueTest.cpp168 bool res = OH_Drawing_BitmapReadPixels(nullptr, nullptr, nullptr, width * 4, 0, 0); in HWTEST_F() local
169 EXPECT_EQ(res, false); in HWTEST_F()
170 res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F()
171 EXPECT_EQ(res, false); in HWTEST_F()
172 res = OH_Drawing_BitmapReadPixels(bitmap_, nullptr, pixels, width * 4, 0, 0); in HWTEST_F()
173 EXPECT_EQ(res, false); in HWTEST_F()
174 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, nullptr, width * 4, 0, 0); in HWTEST_F()
175 EXPECT_EQ(res, false); in HWTEST_F()
176 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, pixels, width * 4, 0, 0); in HWTEST_F()
177 EXPECT_EQ(res, tru in HWTEST_F()
[all...]
/test/xts/acts/graphic/windowNdk/entry/src/main/cpp/
H A DwindowNdkTest.cpp45 napi_value res; in filterKeyCode() local
46 napi_create_int32(env, result, &res); in filterKeyCode()
47 return res; in filterKeyCode()
60 napi_value res; in unFilterKeyCode() local
61 napi_create_int32(env, result, &res); in unFilterKeyCode()
62 return res; in unFilterKeyCode()
/test/xts/acts/resourceschedule/resourceschedule_standard/backgroundtaskmanager_ndk/shorttimetask_ndk/entry/src/main/cpp/
H A Dshorttimetask_ndk_test.cpp32 int32_t res = OH_BackgroundTaskManager_RequestSuspendDelay("test", OnCallbackCompleted, &delaySuspendInfo); in RequestSuspendDelay() local
33 if (res == 0) { in RequestSuspendDelay()
46 int32_t res = OH_BackgroundTaskManager_GetRemainingDelayTime(delaySuspendInfo.requestId, &delayTime); in GetRemainingDelayTime() local
47 if (res == 0) { in GetRemainingDelayTime()
59 int32_t res = OH_BackgroundTaskManager_CancelSuspendDelay(delaySuspendInfo.requestId); in CancelSuspendDelay() local
60 napi_create_int32(env, res, &result); in CancelSuspendDelay()
/test/xts/acts/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/cpp/
H A Dfaultlogger_test_napi.cpp23 napi_value res = nullptr; in TriggerCppCrash() local
26 napi_get_boolean(env, false, &res); in TriggerCppCrash()
27 return res; in TriggerCppCrash()
31 napi_get_boolean(env, true, &res); in TriggerCppCrash()
32 return res; in TriggerCppCrash()
/test/xts/acts/graphic/graphicnapitest/
H A DNativeImageTest.cpp815 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); in HWTEST_F() local
816 ASSERT_EQ(res, NATIVE_ERROR_OK); in HWTEST_F()
819 res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, usage); in HWTEST_F()
856 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); in HWTEST_F() local
857 ASSERT_EQ(res, NATIVE_ERROR_OK); in HWTEST_F()
860 res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, usage); in HWTEST_F()
898 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); in HWTEST_F() local
899 ASSERT_EQ(res, NATIVE_ERROR_OK); in HWTEST_F()
902 res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, usage); in HWTEST_F()
944 int32_t res in HWTEST_F() local
986 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); HWTEST_F() local
1029 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); HWTEST_F() local
1072 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); HWTEST_F() local
1115 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); HWTEST_F() local
1157 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(nativewindow, code, width, height); HWTEST_F() local
1196 int32_t res = OH_NativeWindow_NativeWindowHandleOpt(newNativeWindow, code, width, height); HWTEST_F() local
1319 int32_t res = 1 << 16; HWTEST_F() local
1359 int32_t res = 1 << 16; HWTEST_F() local
[all...]
/test/xts/acts/telephony/telephone/telephonyNDKTest/entry/src/main/cpp/
H A Dtelephony_ndk_test.cpp163 Telephony_RadioResult res = TEL_RADIO_SUCCESS; in OHTelephonyGetNetworkStateForSlot() local
164 res = OH_Telephony_GetNetworkStateForSlot(soltId, &telState); in OHTelephonyGetNetworkStateForSlot()
165 if (res != Telephony_RadioResult::TEL_RADIO_SUCCESS) { in OHTelephonyGetNetworkStateForSlot()
167 "OH_Telephony_GetNetworkStateForSlot failed %{public}d", res); in OHTelephonyGetNetworkStateForSlot()
178 Telephony_RadioResult res = TEL_RADIO_SUCCESS; in OHTelephonyGetNetworkState() local
179 res = OH_Telephony_GetNetworkState(&telState); in OHTelephonyGetNetworkState()
180 if (res != Telephony_RadioResult::TEL_RADIO_SUCCESS) { in OHTelephonyGetNetworkState()
182 "OH_Telephony_GetNetworkState failed %{public}d", res); in OHTelephonyGetNetworkState()

Completed in 24 milliseconds

12345