| /test/xts/acts/commonlibrary/ets_utils/sendable_lib_collections/entry/src/ohosTest/ets/test/ |
| D | CollectionsArray.test.ets | 53 let array: collections.Array<number> = new collections.Array<number>(); 54 console.log(`${caseName} array.length ${array.length}`); 55 expect(0).assertEqual(array.length); 77 let array: collections.Array<number> = new collections.Array<number>(1, 2, 3, 4); 78 console.log(`${caseName} array.length ${array.length}`); 79 expect(4).assertEqual(array.length); 101 let array: collections.Array<null> = new collections.Array<null>(null); 102 console.log(`${caseName} array ${array.length}`); 103 expect(1).assertEqual(array.length); 116 * @tc.desc : Create a constructor for ArkTS Array,The array object calls constructor(). [all …]
|
| D | CollectionOther.test.ets | 74 let array: collections.Array<number> = new collections.Array<number>(1, 2, 3, 4); 75 console.log(`${caseName} array pop before ${array.length}`); 76 let task1: taskpool.Task = new taskpool.Task(arrayPop, array); 78 console.info(`${caseName} array pop after ${array.length}`); 79 expect(3).assertEqual(array.length); 105 let array: collections.Array<number> = new collections.Array<number>(1, 2, 3, 4); 106 console.log(`${caseName} array push before ${array.length}`); 107 let task1: taskpool.Task = new taskpool.Task(arrayPush, array); 109 console.info(`${caseName} array push after ${array.length}`); 110 expect(6).assertEqual(array.length); [all …]
|
| /test/xts/acts/commonlibrary/ets_utils/sendable_lib_collections/entry/src/ohosTest/ets/util/ |
| D | ComcurrentFunction.ets | 20 export function arrayPop(array: collections.Array<number>): Promise<number | undefined> { 21 let result: number | undefined = array.pop(); 28 export function arrayPush(array: collections.Array<number>): Promise<number> { 29 let pushLength: number = array.push(5, 6); 36 export function arrayJoin(array: collections.Array<number>): Promise<string> { 37 let joinStr: string = array.join('-'); 45 export function arrayShift(array: collections.Array<number>): Promise<number | undefined> { 46 let firstElement: number | undefined = array.shift(); 53 export function arrayUnshift(array: collections.Array<number>): Promise<number> { 54 let pushLength: number = array.unshift(5, 6); [all …]
|
| /test/xts/acts/commonlibrary/ets_utils/util2_lib_standard/entry/src/ohosTest/js/test/ |
| D | util.test.js | 5405 var array = new Uint8Array([115,49,51]); 5407 var result = that.encodeSync(array); 5424 var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); 5426 var result = that.encodeSync(array); 5443 var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105, 5447 var result = that.encodeSync(array); 5464 var array = new Uint8Array([168, 174, 155, 255]); 5466 var result = that.encodeSync(array); 5483 var array = new Uint8Array([66, 97, 115, 101, 54, 52]); 5485 var result = that.encodeSync(array); [all …]
|
| /test/xts/acts/pcs/pcs_js/entry/src/ohosTest/js/test/ |
| D | SoftwareJsTest.test.js | 58 var array = [1, 2, 3, 4, 5, 6] 59 expect(Array.isArray(array)).assertTrue() 60 var arraymap = array.map(function (value) { 66 var arrayfilter = array.filter(function (item) { 70 var sum = array.reduce(function (sum, value) { 74 var res1 = array.every(function (value) { 78 var res2 = array.some(function (value) { 82 expect(array.indexOf(2)).assertEqual(1) 83 expect(array.lastIndexOf(5)).assertEqual(4)
|
| /test/xts/acts/commonlibrary/ets_utils/intl_lib_standard/entry/src/ohosTest/js/test/ |
| D | Intl.properties.test.js | 1366 var array = [1, 'a', new Date('21 Dec 2022 14:12:00 UTC')]; 1367 var value = array.toLocaleString('en', { timeZone: 'UTC' }); 1381 var array = [1, 'a', new Date('21 Dec 2022 14:12:00 UTC')]; 1382 var value = array.toLocaleString('en', { timeZone: 'UTC' }); 1396 var array = [1, 'a', new Date('21 Dec 2022 14:12:00 UTC')]; 1397 var value = array.toLocaleString('en', { timeZone: 'UTC' }); 1411 var array = [1, 'a', '测试']; 1412 var value = array.toLocaleString('zh'); 1426 var array = [1, 'a', '测试', undefined]; 1427 var value = array.toLocaleString('zh'); [all …]
|
| /test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/drawabledescriptor/ |
| D | drawabledescriptor_create_test.cpp | 38 OH_PixelmapNativeHandle array[NUM_2]; in TestDrawableDescriptorCreate001() local 60 array[NUM_0] = pixelMap; in TestDrawableDescriptorCreate001() 61 array[NUM_1] = pixelMap1; in TestDrawableDescriptorCreate001() 65 descriptorAnimated = OH_ArkUI_DrawableDescriptor_CreateFromAnimatedPixelMap(array, NUM_2); in TestDrawableDescriptorCreate001() 89 OH_PixelmapNativeHandle array[NUM_2]; in TestDrawableDescriptorCreate002() local 111 array[NUM_0] = pixelMap; in TestDrawableDescriptorCreate002() 112 array[NUM_1] = pixelMap1; in TestDrawableDescriptorCreate002() 116 descriptorAnimated = OH_ArkUI_DrawableDescriptor_CreateFromAnimatedPixelMap(array, NUM_2); in TestDrawableDescriptorCreate002()
|
| /test/xts/device_attest_lite/services/core/include/network/ |
| D | attest_tls.h | 20 #define ATTEST_ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument
|
| /test/xts/acts/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/ |
| D | audioTest.cpp | 2137 OH_AudioDeviceDescriptorArray *array = nullptr; in AudioRoutingManagerGetDevices_01() local 2138 result = OH_AudioRoutingManager_GetDevices(audioRoutingManager, deviceFlag, &array); in AudioRoutingManagerGetDevices_01() 2140 if (result != AUDIOCOMMON_RESULT_ERROR_NO_MEMORY || array != nullptr) { in AudioRoutingManagerGetDevices_01() 2158 OH_AudioDeviceDescriptorArray *array = nullptr; in AudioRoutingManagerGetDevices_02() local 2159 result = OH_AudioRoutingManager_GetDevices(audioRoutingManager, deviceFlag, &array); in AudioRoutingManagerGetDevices_02() 2161 if (result != AUDIOCOMMON_RESULT_SUCCESS || array == nullptr) { in AudioRoutingManagerGetDevices_02() 2166 OH_AudioRoutingManager_ReleaseDevices(audioRoutingManager, array); in AudioRoutingManagerGetDevices_02() 2180 OH_AudioDeviceDescriptorArray *array = nullptr; in AudioRoutingManagerGetDevices_03() local 2181 result = OH_AudioRoutingManager_GetDevices(audioRoutingManager, deviceFlag, &array); in AudioRoutingManagerGetDevices_03() 2183 if (result != AUDIOCOMMON_RESULT_SUCCESS || array == nullptr) { in AudioRoutingManagerGetDevices_03() [all …]
|
| /test/xts/acts/arkui/ace_ets_module_noui/ace_ets_module_StateMangagement/ace_ets_module_StateMangagement_api11/entry/src/main/ets/MainAbility/pages/State/ |
| D | StateArrayNew.ets | 33 Text('Click to every value to the array ' + this.res_every).fontSize(15).margin(5).margin(10) 39 Text('Click to some value to the array ' + this.res_some).fontSize(15).margin(5).margin(10) 45 … Text('Click to filter value to the array ' + this.res_filter).fontSize(15).margin(5).margin(10) 51 … Text('Click to reduce value to the array ' + this.res_reduce).fontSize(15).margin(5).margin(10) 57 …Text('Click to reduceRight value to the array ' + this.res_reduceRight).fontSize(15).margin(5).mar…
|
| D | StateArray.ets | 47 Button('Click to change value to the array').fontSize(15).margin(5).margin(10) 54 Button('Click to delete value to the array').fontSize(15).margin(5).margin(10) 60 Button('Click to add value to the array').fontSize(15).margin(5).margin(10)
|
| /test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/State/ |
| D | StateArrayNew.ets | 33 Text('Click to every value to the array ' + this.res_every).fontSize(15).margin(5).margin(10) 39 Text('Click to some value to the array ' + this.res_some).fontSize(15).margin(5).margin(10) 45 … Text('Click to filter value to the array ' + this.res_filter).fontSize(15).margin(5).margin(10) 51 … Text('Click to reduce value to the array ' + this.res_reduce).fontSize(15).margin(5).margin(10) 57 …Text('Click to reduceRight value to the array ' + this.res_reduceRight).fontSize(15).margin(5).mar…
|
| D | StateArray.ets | 47 Button('Click to change value to the array').fontSize(15).margin(5).margin(10) 54 Button('Click to delete value to the array').fontSize(15).margin(5).margin(10) 60 Button('Click to add value to the array').fontSize(15).margin(5).margin(10)
|
| /test/xts/acts/commonlibrary/ets_utils/codeparsingtest/baselibtest/entry/src/ohosTest/ets/test/arraylist/ |
| D | ArrayList.test.ets | 219 let array = [0, 1, 2, undefined]; 220 arrayList.add(array); 232 expect(arrayList.has(array)).assertEqual(true); 244 arrayList.remove(array); 256 expect(arrayList.has(array)).assertEqual(false); 288 let array = [0, 1, 2, undefined]; 289 arrayList.add(array); 333 let array = [0, 1, 2, undefined]; 334 arrayList.add(array); 378 let array = [0, 1, 2, undefined]; [all …]
|
| /test/xts/acts/graphic/nativeColorSpaceNdk/entry/src/main/cpp/ |
| D | colorSpaceNdk.cpp | 112 WhitePointArray array = OH_NativeColorSpaceManager_GetWhitePoint(nativeColorSpace); in OHGetWhitePoint() local 113 if (array.arr[0] == 0.f || array.arr[1] == 0.f) { in OHGetWhitePoint() 128 WhitePointArray array = OH_NativeColorSpaceManager_GetWhitePoint(nativeColorSpace); in OHGetWhitePoint001() local 129 if (array.arr[0] == WHITE_X || array.arr[1] == WHITE_Y) { in OHGetWhitePoint001()
|
| /test/xts/acts/arkcompiler/ecmanewfeatures/entry/src/ohosTest/ets/test/ |
| D | test2019_03.ts | 17 const array = [["one", 1], ["two", 2], ["three", 3]]; constant 19 export const test2019_03_ans = Object.fromEntries(array);
|
| /test/xts/acts/pcs/pcs_ndk/entry/src/main/cpp/ |
| D | softwareNdk.cpp | 22 int32_t array[2] = { [0] = 1 }; in InitArray() local 24 napi_create_int32(env, array[0], &num1); in InitArray() 26 napi_create_int32(env, array[1], &num2); in InitArray()
|
| /test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/unittests/ |
| D | test_array_buffer_backing_store.cpp | 59 uint8_t *array = static_cast<uint8_t *>(backingStore); in TEST() local 61 CHECK(array[i] == i % 25 % 256); in TEST() 99 uint8_t *array = static_cast<uint8_t *>(backingStore); in TEST() local 101 CHECK(array[i] >= 0); in TEST()
|
| /test/xts/device_attest_lite/interfaces/kit/js/src/ |
| D | native_device_attest.cpp | 117 JSIValue array = JSI::CreateNull(); in SetJsResult() local 121 array = JSI::CreateArray(size); in SetJsResult() 122 isArray = JSI::ValueIsArray(array); in SetJsResult() 130 JSI::SetPropertyByIndex(array, i, element); in SetJsResult() 134 JSI::SetNamedProperty(*result, "softwareResultDetail", array); in SetJsResult()
|
| /test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_scroll/ace_ets_module_scroll_api14/entry/src/main/ets/MainAbility/pages/ScrollBar/ |
| D | enableScroll.ets | 19 @State array: number[] = [] 38 ForEach(this.array, (item: number) => { 69 this.array.push(i)
|
| /test/xts/acts/commonlibrary/ets_utils/util_lib_standard/entry/src/ohosTest/js/test/ |
| D | util.test.js | 3153 let array = new Uint8Array([115,49,51]); 3155 let result = that.encodeSync(array); 3172 let array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); 3174 let result = that.encodeSync(array); 3191 let array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105, 3195 let result = that.encodeSync(array); 3212 let array = new Uint8Array([168, 174, 155, 255]); 3214 let result = that.encodeSync(array); 3231 let array = new Uint8Array([66, 97, 115, 101, 54, 52]); 3233 let result = that.encodeSync(array); [all …]
|
| /test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/ |
| D | filerw.test.js | 31 let array = new ArrayBuffer(bf); 41 … fileIO.read(file.fd, array, { length: bf, offset: offset }).then((readLen) => { 47 …fileIO.write(file.fd, array, { length: bf, offset: offset, encoding: 'utf-8' }).then((writeLen) =>… 55 … fileIO.read(file.fd, array, { length: bf, offset: offset }, (err, readLen) => { 62 …fileIO.write(file.fd, array, { length: bf, offset: offset, encoding: 'utf-8' }, (err, writeLen) =>…
|
| /test/xts/acts/arkui/ace_ets_module_noui/ace_ets_module_StateMangagement/ace_ets_module_StateMangagement_api11/entry/src/main/ets/test/State/ |
| D | StateArrayNewJsunit.test.ets | 70 expect(obj.$attrs.content).assertEqual('Click to every value to the array false'); 86 expect(obj.$attrs.content).assertEqual('Click to some value to the array false'); 103 …expect(obj.$attrs.content).assertEqual("Click to filter value to the array exuberant,destruction,p… 120 expect(obj.$attrs.content).assertEqual('Click to reduce value to the array 10'); 136 expect(obj.$attrs.content).assertEqual('Click to reduceRight value to the array 4,5,2,3,0,1');
|
| /test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/test/State/ |
| D | StateArrayNewJsunit.test.ets | 57 expect(obj.$attrs.content).assertEqual('Click to every value to the array false'); 73 expect(obj.$attrs.content).assertEqual('Click to some value to the array false'); 90 …expect(obj.$attrs.content).assertEqual("Click to filter value to the array exuberant,destruction,p… 107 expect(obj.$attrs.content).assertEqual('Click to reduce value to the array 10'); 123 expect(obj.$attrs.content).assertEqual('Click to reduceRight value to the array 4,5,2,3,0,1');
|
| /test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/main/cpp/ |
| D | napi_helper.cpp | 90 uint32_t NapiHelper::GetArrayLength(napi_env env, napi_value array) in GetArrayLength() argument 93 napi_get_array_length(env, array, &arrayLength); in GetArrayLength()
|