/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | reminder_request_alarm_test.cpp | 91 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 106 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 120 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 134 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 149 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 164 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 179 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 201 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 223 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 245 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/test/unittest/ |
H A D | kvstore_flowctrl_manager_test.cpp | 61 int arr[2] = {0, 0}; variable 65 EXPECT_EQ(1, arr[0]); 79 int arr[2] = {0, 0}; variable 83 EXPECT_EQ(0, arr[0]); 97 int arr[2] = {0, 0}; variable 101 EXPECT_EQ(0, arr[0]); 115 int arr[2] = {0, 0}; variable 134 int arr[2] = {0, 0}; variable 153 int arr[2] = {0, 0}; variable 180 int arr[2] = {0, 0}; variable [all …]
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
H A D | geometry_range_adapter.h | 53 } while (less(arr[iIndex], arr[base])); in ToCompareLess() 56 } while (less(arr[base], arr[jIndex])); in ToCompareLess() 61 SwapElements(arr[iIndex], arr[jIndex]); in ToCompareLess() 69 auto e1 = &arr[0]; in CompareLessThreshold() 70 auto e2 = &arr[0]; in CompareLessThreshold() 74 for (; less(*(e1 = &(arr[jIndex + 1])), *(e2 = &(arr[jIndex]))); jIndex--) { in CompareLessThreshold() 126 SwapElements(arr[iIndex++], arr[jIndex--]); in InvertContainer() 143 if (arr.Size() < 2) { in QuickSort() 157 SwapElements(arr[baseLimit], arr[pivot]); in QuickSort() 175 SwapElements(arr[baseLimit], arr[jIndex]); in QuickSort() [all …]
|
/ohos5.0/foundation/ability/ability_base/test/unittest/want/ |
H A D | array_wrapper_test.cpp | 47 ErrCode result = arr->Get(index, value); 63 ErrCode result = arr->Get(key, value); 77 ErrCode result = arr->GetLength(size); 91 ErrCode result = arr->GetType(typeId); 107 ErrCode result = arr->Set(key, value); 123 ErrCode result = arr->Set(key, value); 165 bool result = Array::IsCharArray(arr); 179 bool result = Array::IsCharArray(arr); 193 bool result = Array::IsByteArray(arr); 207 bool result = Array::IsByteArray(arr); [all …]
|
/ohos5.0/base/startup/init/services/etc/appender/ |
H A D | file_appender.py | 43 arr = line.strip().split(":") 44 if arr: 45 key = arr[0] 46 passwd_gid_value = [arr[1], arr[2]] 58 source_dict[key][1] = arr[3] 65 key = arr[0] 66 passwd_gid_value = [arr[1], arr[2]] 67 if len(arr) > 3: 80 key = arr[0] 81 passwd_gid_value = [arr[1], arr[2]] [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/benchmarks/base/ |
H A D | base.cpp | 54 uint64_t* arr = new uint64_t[sz]; in BenchmarkNative() local 58 arr[i] = rnd(); in BenchmarkNative() 69 arr[idx[2]] = func(arr[idx[0]], arr[idx[1]]); in BenchmarkNative() 76 hash = (hash * 1099511628211ULL) ^ arr[i]; in BenchmarkNative() 78 delete[] arr; in BenchmarkNative() 84 uint64_t* arr = new uint64_t[sz]; in BenchmarkFFRT() local 88 arr[i] = rnd(); in BenchmarkFFRT() 98 …ffrt::submit([idx, &arr]() { arr[idx[2]] = func(arr[idx[0]], arr[idx[1]]); }, {&arr[idx[0]], &arr[… in BenchmarkFFRT() 99 {&arr[idx[2]]}); in BenchmarkFFRT() 107 hash = (hash * 1099511628211ULL) ^ arr[i]; in BenchmarkFFRT() [all …]
|
/ohos5.0/base/startup/init/services/etc/passwd_appender/ |
H A D | passwd_appender.py | 44 arr = line.strip().split(":") 45 if arr: 46 key = arr[0] 47 passwd_gid_value = [arr[1], arr[2]] 59 source_dict[key][1] = arr[3] 66 key = arr[0] 67 passwd_gid_value = [arr[1], arr[2]] 68 if len(arr) > 3: 81 key = arr[0] 82 passwd_gid_value = [arr[1], arr[2]] [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/src/ |
H A D | js_uri.ts | 319 arr[2] = brr[1]; 320 arr[0] = this.decodeSafelyInner(arr[0]); 321 arr[2] = this.decodeSafelyInner(arr[2]); 322 return arr.join(''); 334 arr[2] = brr[1]; 335 arr[0] = this.decodeSafelyInner(arr[0]); 336 arr[2] = this.decodeSafelyInner(arr[2]); 337 return arr.join(''); 392 arr[2] = brr[1]; 393 return arr.join(''); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-rendering-control-repeat.md | 11 Repeat: \<T\>(arr: Array\<T\>) 31 // arr是Array<string>类型的数组,以arr为数据源创建Repeat组件 32 Repeat<string>(this.arr) 69 Repeat<string>(this.arr) 96 Repeat<string>(this.arr) 122 Repeat<string>(this.arr) 148 // arr是Array<string>类型的数组 152 Repeat<string>(this.arr) 177 // arr是Array<string>类型的数组 182 Repeat<string>(this.arr) [all …]
|
H A D | ts-rendering-control-foreach.md | 13 ForEach(arr: Array\<any\>,itemGenerator: (item: any, index: number) => void,keyGenerator?: (item: a… 27 | arr | Array\<Object\> | 是 | 数据源,为`Array`类型的数组。<br/>**说明:**<br… 28 … | 是 | 组件生成函数。<br/>- 为数组中的每个元素创建对应的组件。<br/>- `item`参数:`arr`数组中的数据项。<br/>- `index`参数(可选):`arr`数组… 29 …g | 否 | 键值生成函数。<br/>- 为数据源`arr`的每个数组项生成唯一且持久的键值。函数返回值为开发者自定义的键值生成规则。<br/>- `item`参数:`arr`数组中的数据项… 89 @State arr: Array<string> = []; 94 ForEach(this.arr, (item: string) => { 105 let tmp = this.arr.splice(from, 1); 106 this.arr.splice(to, 0, tmp[0]); 116 this.arr.push(i.toString());
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_textdecoder.cpp | 73 UChar *arr = nullptr; in Decode() local 89 UChar *target = arr; in Decode() 100 UChar *arrDat = arr; in Decode() 107 FreedMemory(arr); in Decode() 130 UChar *arr = nullptr; in DecodeToString() local 141 UChar *target = arr; in DecodeToString() 145 FreedMemory(arr); in DecodeToString() 153 UChar *arrDat = arr; in DecodeToString() 155 arrDat = &arr[1]; in DecodeToString() 160 FreedMemory(arr); in DecodeToString() [all …]
|
H A D | js_stringdecoder.cpp | 47 UChar *arr = nullptr; in Write() local 49 arr = new UChar[limit + 1] { 0 }; in Write() 54 UChar *target = arr; in Write() 58 FreedMemory(arr); in Write() 68 size_t resultLen = target - arr; in Write() 69 …if (napi_create_string_utf16(env, reinterpret_cast<char16_t *>(arr), resultLen, &resultStr) != nap… in Write() 71 FreedMemory(arr); in Write() 74 FreedMemory(arr); in Write()
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hcodec_dfx.cpp | 85 … arr[OWNED_BY_US], arr[OWNED_BY_USER], arr[OWNED_BY_OMX], arr[OWNED_BY_SURFACE], s.str().c_str()); in PrintAllBufferInfo() 125 arr.fill(0); in UpdateOwner() 127 arr[info.owner]++; in UpdateOwner() 138 arr[owner]--; in ReduceOwner() 139 CountTrace(HITRACE_TAG_ZMEDIA, ownerStr[owner], arr[owner]); in ReduceOwner() 157 arr[OWNED_BY_US], arr[OWNED_BY_USER], arr[OWNED_BY_OMX], arr[OWNED_BY_SURFACE], in PrintStatistic() 175 arr[oldOwner]--; in ChangeOwnerNormal() 176 arr[newOwner]++; in ChangeOwnerNormal() 224 arr[oldOwner]--; in ChangeOwnerDebug() 225 arr[newOwner]++; in ChangeOwnerDebug() [all …]
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A D | napi_util.cpp | 159 uint32_t len = GetArrayLength(env, arr); in GetBooleans() 191 uint32_t len = GetArrayLength(env, arr); in GetInt32s() 213 uint32_t len = GetArrayLength(env, arr); in GetDoubles() 240 uint32_t len = GetArrayLength(env, arr); in GetStrings() 252 uint32_t len = GetArrayLength(env, arr); in GetStringsToSet() 399 napi_value arr = CreateArray(env); in CreateStrings() local 403 return arr; in CreateStrings() 432 napi_value arr = nullptr; in CreateArray() local 437 return arr; in CreateArray() 605 napi_value arr = CreateArray(env); in CreateEventInfoArray() local [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/detail/ |
H A D | array_property.h | 36 return arr->GetSize(); in META_BEGIN_NAMESPACE() 43 return arr->GetAnyAt(index, any); in META_BEGIN_NAMESPACE() 63 if (auto arr = interface_cast<IArrayAny>(c)) { in SetAnyAt() local 64 arr->SetAnyAt(index, v); in SetAnyAt() 65 return this->SetValueAny(*arr); in SetAnyAt() 77 if (auto arr = interface_cast<IArrayAny>(c)) { in InsertAnyAt() local 78 arr->InsertAnyAt(index, v); in InsertAnyAt() 79 return this->SetValueAny(*arr); in InsertAnyAt() 88 arr->RemoveAt(index); in RemoveAt() 89 return this->SetValueAny(*arr); in RemoveAt() [all …]
|
/ohos5.0/build/tools/component_tools/ |
H A D | parse_kconf.py | 84 items[SUBSYS] = arr[1] 85 items[COMPONENT] = arr[2].split("=")[0] 95 items[SUBSYS] = arr[0].split("_", 1)[1] 96 items[COMPONENT] = arr[1].split("=")[0] 101 items[PROPERTY] = arr[1].split("=")[0] 116 arr = line.split("$$") 117 if arr[0] == "CONFIG_feature": 118 handle_config_feature(items, arr, line) 119 elif arr[0] == "CONFIG_property": 120 handle_config_property(items, arr, line) [all …]
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-array.md | 169 const arr = [0, 1, 2, 3, 4, 5]; 270 let arr = [10, 20, 30]; 273 hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_element arr: %{public}s', arr.toString()); 274 hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_element arr[3]: %{public}s', arr[3]); 284 let objAsString = JSON.stringify(arr[4]); 335 let arr = [10, 'hello', null, obj]; 340 …, 'testTag', 'Test Node-API napi_get_element arr[4]: %{public}s', JSON.stringify(testNapi.napiGetE… 385 let arr = [10, 'hello', null, 'world']; 432 let arr = [10, 'hello', null, 'world']; 707 let arr = new Array(new Int8Array(arrbuff)); [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subScenarioTest/ |
H A D | sppServerScenarioTest.ets | 131 self.changeIndex = arr[ 0 ] 137 self.changeIndex = arr[ 1 ] 144 self.changeIndex = arr[ 2 ] 150 self.changeIndex = arr[ 3 ] 156 self.changeIndex = arr[ 4 ] 162 self.changeIndex = arr[ 5 ] 168 self.changeIndex = arr[ 6 ] 175 self.changeIndex = arr[ 7 ] 182 self.changeIndex = arr[ 8 ] 189 self.changeIndex = arr[ 9 ] [all …]
|
H A D | gattClientScenarioTest.ets | 136 self.changeIndex = arr[ 0 ] 143 self.changeIndex = arr[ 1 ] 150 self.changeIndex = arr[ 2 ] 157 self.changeIndex = arr[ 3 ] 164 self.changeIndex = arr[ 4 ] 171 self.changeIndex = arr[ 5 ] 178 self.changeIndex = arr[ 6 ] 185 self.changeIndex = arr[ 7 ] 192 self.changeIndex = arr[ 8 ] 200 self.changeIndex = arr[ 9 ] [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subScenarioTestManager/ |
H A D | sppServerScenarioTestManager.ets | 133 self.changeIndex = arr[ 0 ] 139 self.changeIndex = arr[ 1 ] 146 self.changeIndex = arr[ 2 ] 152 self.changeIndex = arr[ 3 ] 158 self.changeIndex = arr[ 4 ] 164 self.changeIndex = arr[ 5 ] 170 self.changeIndex = arr[ 6 ] 177 self.changeIndex = arr[ 7 ] 184 self.changeIndex = arr[ 8 ] 191 self.changeIndex = arr[ 9 ] [all …]
|
H A D | gattClientScenarioTestManager.ets | 136 self.changeIndex = arr[ 0 ] 143 self.changeIndex = arr[ 1 ] 150 self.changeIndex = arr[ 2 ] 157 self.changeIndex = arr[ 3 ] 164 self.changeIndex = arr[ 4 ] 171 self.changeIndex = arr[ 5 ] 178 self.changeIndex = arr[ 6 ] 185 self.changeIndex = arr[ 7 ] 192 self.changeIndex = arr[ 8 ] 200 self.changeIndex = arr[ 9 ] [all …]
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | user_cert_plugin.cpp | 68 uint8_t arr[MAX_ALIAS_LEN] = {0}; in InstallUserCert() local 69 std::copy(alias.begin(), alias.end(), std::begin(arr)); in InstallUserCert() 70 CmBlob aliasCmBlob = {sizeof(arr), arr}; in InstallUserCert() 96 uint8_t arr[MAX_CERT_URI_LEN] = {0}; in UninstallUserCert() local 97 std::copy(certUri.begin(), certUri.end(), std::begin(arr)); in UninstallUserCert() 98 CmBlob aliasCmBlob = {sizeof(arr), arr}; in UninstallUserCert()
|
/ohos5.0/base/customization/config_policy/interfaces/kits/cj/src/ |
H A D | config_policy_ffi.cpp | 37 auto arr = static_cast<char**>(malloc(sizeof(char*) * size)); in MallocCStringArr() local 38 if (arr == nullptr) { in MallocCStringArr() 43 arr[i] = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCStringArr() 44 if (arr[i] == nullptr) { in MallocCStringArr() 47 errno_t ret = strcpy_s(arr[i], len, origin[i]); in MallocCStringArr() 49 free(arr[i]); in MallocCStringArr() 50 arr[i] = nullptr; in MallocCStringArr() 53 return arr; in MallocCStringArr()
|
/ohos5.0/base/usb/usb_manager/test/native/js_unittest/ |
H A D | CheckEmptyUtils.js | 45 isEmptyArr(arr) { 46 return arr.length == 0; 56 var arr = []; variable 58 arr.push(str.charCodeAt(i)); 60 var tmpUint8Array = new Uint8Array(arr);
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.35/ |
H A D | changelogs-arkcompiler.md | 96 const arr = encoder.encodeInto('\0ab'); 97 arr.length; 100 变更前:arr = [0x00, 0x61, 0x62, 0x00], arr.length 为4 102 变更后:arr = [0x00, 0x61, 0x62], arr.length 为3
|