/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/test/unittest/ |
D | kvstore_flowctrl_manager_test.cpp | 61 int arr[2] = {0, 0}; variable 63 arr[ptr->IsTokenEnough()]++; 65 EXPECT_EQ(1, arr[0]); 66 EXPECT_EQ(1000, arr[1]); 79 int arr[2] = {0, 0}; variable 81 arr[ptr->IsTokenEnough()]++; 83 EXPECT_EQ(0, arr[0]); 84 EXPECT_EQ(1000, arr[1]); 97 int arr[2] = {0, 0}; variable 99 arr[ptr->IsTokenEnough()]++; [all …]
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
D | geometry_range_adapter.h | 48 void ToCompareLess(Array& arr, Less less, int32_t iIndex, int32_t jIndex, int32_t base) in ToCompareLess() argument 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() 66 bool CompareLessThreshold(Array& arr, Less less, int32_t iIndex, int32_t jIndex, in CompareLessThreshold() argument 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() 100 void QuickSort(Array& arr, Less less); 111 uint32_t RemoveDuplicates(Array& arr, Equal equal); [all …]
|
/foundation/ability/ability_base/test/unittest/want/ |
D | array_wrapper_test.cpp | 45 sptr<IArray> arr = new Array(index, typeId); variable 47 ErrCode result = arr->Get(index, value); 60 sptr<IArray> arr = new Array(index, typeId); variable 63 ErrCode result = arr->Get(key, value); 76 sptr<IArray> arr = new Array(size, typeId); variable 77 ErrCode result = arr->GetLength(size); 90 sptr<IArray> arr = new Array(size, typeId); variable 91 ErrCode result = arr->GetType(typeId); 104 sptr<IArray> arr = new Array(index, typeId); variable 107 ErrCode result = arr->Set(key, value); [all …]
|
/foundation/resourceschedule/ffrt/benchmarks/base/ |
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 …]
|
/foundation/communication/ipc/ipc/native/test/unittest/rust/client/src/ |
D | main.rs | 296 let arr = [false, true, false]; in test_parcel_bool_array() localVariable 298 parcel.write(&arr).expect("write bool array failed"); in test_parcel_bool_array() 300 assert_eq!(&res, &arr); in test_parcel_bool_array() 302 let slice = &arr[..]; in test_parcel_bool_array() 317 let arr = [1i8, 2i8, 3i8]; in test_parcel_i8u8_array() localVariable 319 parcel.write(&arr).expect("write i8 array failed"); in test_parcel_i8u8_array() 321 assert_eq!(&res, &arr); in test_parcel_i8u8_array() 323 let slice = &arr[..]; in test_parcel_i8u8_array() 329 let arr = [1u8, 2u8, 3u8]; in test_parcel_i8u8_array() localVariable 331 parcel.write(&arr).expect("write u8 array failed"); in test_parcel_i8u8_array() [all …]
|
/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/ |
D | Common.ts | 39 let arr = uri.split(sep); 41 if (arr.length < minLength) { 45 let path = uri.replace(arr[0] + sep, ''); 46 if (arr[1].indexOf('/') > 0 && arr[1].split('/')[0] === BUNDLE_NAME) { 47 path = path.replace(arr[1].split('/')[0], '');
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/full_update/ |
D | observed_objects_properties_array1.ts | 56 let arr: ClassA[] = [new ClassA(0), new ClassA(1), new ClassA(2)]; 59 = new ObservedPropertyObject<ClassA[]>(arr, parentView, "parentViewProp"); 71 new SynchedPropertyNesedObject<ClassA>(arr[i], childViews[i], `${i}`)) 90 arr.push(new ClassA(3)); 93 new SynchedPropertyNesedObject<ClassA>(arr[3], childViews[3], `${3}`) 99 arr[3].c = 17;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/partial_update/ |
D | observed_objects_properties_array1.ts | 56 let arr: ClassA[] = [new ClassA(0), new ClassA(1), new ClassA(2)]; 59 = new ObservedPropertyObjectPU<ClassA[]>(arr, parentView, "parentViewProp"); 71 new SynchedPropertyNesedObjectPU<ClassA>(arr[i], childViews[i], `${i}`)) 90 arr.push(new ClassA(3)); 93 new SynchedPropertyNesedObjectPU<ClassA>(arr[3], childViews[3], `${3}`) 99 arr[3].c = 17;
|
/foundation/distributeddatamgr/relational_store/test/ndk/unittest/ |
D | rdb_store_test.cpp | 94 uint8_t arr[] = {1, 2, 3, 4, 5}; variable 95 int len = sizeof(arr) / sizeof(arr[0]); 96 valueBucket->putBlob(valueBucket, "data4", arr, len); 169 uint8_t arr[] = {1, 2, 3, 4, 5}; variable 170 int len = sizeof(arr) / sizeof(arr[0]); 171 valueBucket->putBlob(valueBucket, "data4", arr, len); 247 uint8_t arr[] = {1, 2, 3, 4, 5}; variable 248 int len = sizeof(arr) / sizeof(arr[0]); 249 valueBucket->putBlob(valueBucket, "data4", arr, len); 291 uint8_t arr[] = {1, 2, 3, 4, 5}; variable [all …]
|
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/pages/subBenchmarkTest/ |
D | gattClientBenchmarkTest.ets | 125 const arr = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] 131 self.changeIndex=arr[0] 135 self.changeIndex=arr[1] 141 self.changeIndex=arr[2] 151 self.changeIndex=arr[3] 155 self.changeIndex=arr[4] 159 self.changeIndex=arr[5] 165 self.changeIndex=arr[6] 169 self.changeIndex=arr[7] 173 self.changeIndex=arr[8] [all …]
|
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subScenarioTest/ |
D | sppServerScenarioTest.ets | 135 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] 139 self.changeIndex = arr[0] 145 self.changeIndex = arr[1] 152 self.changeIndex = arr[2] 158 self.changeIndex = arr[3] 164 self.changeIndex = arr[4] 170 self.changeIndex = arr[5] 176 self.changeIndex = arr[6] 183 self.changeIndex = arr[7] 190 self.changeIndex = arr[8] [all …]
|
D | gattClientScenarioTest.ets | 134 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ] 141 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 162 self.changeIndex = arr[3] 169 self.changeIndex = arr[4] 176 self.changeIndex = arr[5] 183 self.changeIndex = arr[6] 190 self.changeIndex = arr[7] 197 self.changeIndex = arr[8] [all …]
|
D | gattServerScenarioTest.ets | 157 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] 163 self.changeIndex = arr[0] 169 self.changeIndex = arr[1] 176 self.changeIndex = arr[2] 182 self.changeIndex = arr[3] 188 self.changeIndex = arr[4] 193 self.changeIndex = arr[5] 199 self.changeIndex = arr[6] 206 self.changeIndex = arr[7] 214 self.changeIndex = arr[8] [all …]
|
D | sppClientScenarioTest.ets | 137 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] 142 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 161 self.changeIndex = arr[3] 167 self.changeIndex = arr[4] 173 self.changeIndex = arr[5] 180 self.changeIndex = arr[6] 187 self.changeIndex = arr[7] 195 self.changeIndex = arr[8] [all …]
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
D | wifi_ap_service_test.cpp | 20 #define SIZE_ARRAY(arr) sizeof((arr)) / sizeof((arr)[0]) argument
|
/foundation/multimodalinput/input/examples/input_device_display_bind/src/ |
D | input_device_display_bind.cpp | 57 std::array<std::string, 5> arr; in QueryDisplayBindInfo() local 58 arr[0] = std::to_string(i + 1); in QueryDisplayBindInfo() 59 arr[1] = (info.inputDeviceId == INVALID_ID) ? "" : std::to_string(info.inputDeviceId); in QueryDisplayBindInfo() 60 arr[2] = info.inputDeviceName; in QueryDisplayBindInfo() 61 arr[3] = (info.displayId == INVALID_ID) ? "" : std::to_string(info.displayId); in QueryDisplayBindInfo() 62 arr[4] = info.displayName; in QueryDisplayBindInfo() 63 arrStrings.push_back(arr); in QueryDisplayBindInfo()
|
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subScenarioTestManager/ |
D | sppServerScenarioTestManager.ets | 135 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] 139 self.changeIndex = arr[0] 145 self.changeIndex = arr[1] 152 self.changeIndex = arr[2] 158 self.changeIndex = arr[3] 164 self.changeIndex = arr[4] 170 self.changeIndex = arr[5] 176 self.changeIndex = arr[6] 183 self.changeIndex = arr[7] 190 self.changeIndex = arr[8] [all …]
|
D | gattClientScenarioTestManager.ets | 134 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ] 141 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 162 self.changeIndex = arr[3] 169 self.changeIndex = arr[4] 176 self.changeIndex = arr[5] 183 self.changeIndex = arr[6] 190 self.changeIndex = arr[7] 197 self.changeIndex = arr[8] [all …]
|
D | gattServerScenarioTestManager.ets | 157 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] 163 self.changeIndex = arr[0] 169 self.changeIndex = arr[1] 176 self.changeIndex = arr[2] 182 self.changeIndex = arr[3] 188 self.changeIndex = arr[4] 193 self.changeIndex = arr[5] 199 self.changeIndex = arr[6] 206 self.changeIndex = arr[7] 214 self.changeIndex = arr[8] [all …]
|
D | sppClientScenarioTestManager.ets | 137 const arr = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] 142 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 161 self.changeIndex = arr[3] 167 self.changeIndex = arr[4] 173 self.changeIndex = arr[5] 180 self.changeIndex = arr[6] 187 self.changeIndex = arr[7] 195 self.changeIndex = arr[8] [all …]
|
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/pages/subScenarioTest/ |
D | sppServerScenarioTest.ets | 135 const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] 139 self.changeIndex = arr[0] 145 self.changeIndex = arr[1] 152 self.changeIndex = arr[2] 158 self.changeIndex = arr[3] 164 self.changeIndex = arr[4] 170 self.changeIndex = arr[5] 176 self.changeIndex = arr[6] 183 self.changeIndex = arr[7] 190 self.changeIndex = arr[8] [all …]
|
D | gattClientScenarioTest.ets | 134 const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 141 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 162 self.changeIndex = arr[3] 169 self.changeIndex = arr[4] 176 self.changeIndex = arr[5] 183 self.changeIndex = arr[6] 190 self.changeIndex = arr[7] 197 self.changeIndex = arr[8] [all …]
|
D | gattServerScenarioTest.ets | 157 const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,13,14] 163 self.changeIndex = arr[0] 169 self.changeIndex = arr[1] 176 self.changeIndex = arr[2] 182 self.changeIndex = arr[3] 188 self.changeIndex = arr[4] 193 self.changeIndex = arr[5] 199 self.changeIndex = arr[6] 206 self.changeIndex = arr[7] 214 self.changeIndex = arr[8] [all …]
|
D | sppClientScenarioTest.ets | 137 const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] 142 self.changeIndex = arr[0] 148 self.changeIndex = arr[1] 155 self.changeIndex = arr[2] 161 self.changeIndex = arr[3] 167 self.changeIndex = arr[4] 173 self.changeIndex = arr[5] 180 self.changeIndex = arr[6] 187 self.changeIndex = arr[7] 195 self.changeIndex = arr[8] [all …]
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
D | bluetooth_utils.cpp | 168 void ToUpper(char* arr) in ToUpper() argument 170 for (size_t i = 0; i < strlen(arr); ++i) { in ToUpper() 171 if (arr[i] >= 'a' && arr[i] <= 'z') { in ToUpper() 172 arr[i] = toupper(arr[i]); in ToUpper()
|