/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | reminder_request_alarm_test.cpp | 90 uint8_t arr[] = {1, 2, 3}; variable 91 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 105 uint8_t arr[] = {1, 7}; variable 106 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 119 uint8_t arr[] = {1, 1, 5, 5, 7, 7, 7}; variable 120 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 133 uint8_t arr[] = {}; variable 134 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); 148 uint8_t arr[] = {}; variable 149 std::vector<uint8_t> daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); [all …]
|
/base/usb/usb_manager/test/native/js_unittest/ |
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);
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_util.cpp | 88 napi_valuetype GetArrayType(const napi_env env, const napi_value arr) in GetArrayType() argument 91 if (napi_get_array_length(env, arr, &result) != napi_ok) { in GetArrayType() 99 if (napi_get_element(env, arr, i, &element) != napi_ok) { in GetArrayType() 115 uint32_t GetArrayLength(const napi_env env, const napi_value arr) in GetArrayLength() argument 118 if (napi_get_array_length(env, arr, &result) != napi_ok) { in GetArrayLength() 125 napi_value GetElement(const napi_env env, const napi_value arr, uint32_t index) in GetElement() argument 128 if (napi_get_element(env, arr, index, &element) != napi_ok) { in GetElement() 145 void GetBooleans(const napi_env env, const napi_value arr, std::vector<bool>& bools) in GetBooleans() argument 147 uint32_t len = GetArrayLength(env, arr); in GetBooleans() 149 napi_value element = GetElement(env, arr, i); in GetBooleans() [all …]
|
D | napi_hiappevent_builder.cpp | 113 const napi_value arr) in AddArrayParam2EventPack() argument 115 napi_valuetype type = NapiUtil::GetArrayType(env, arr); in AddArrayParam2EventPack() 119 NapiUtil::GetBooleans(env, arr, bools); in AddArrayParam2EventPack() 125 NapiUtil::GetDoubles(env, arr, doubles); in AddArrayParam2EventPack() 131 NapiUtil::GetStrings(env, arr, strs, MAX_STRING_LEN); in AddArrayParam2EventPack()
|
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
D | huks_adapter.h | 26 #define CAL_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) argument
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/ |
D | napi_util.h | 39 void GetBooleans(const napi_env env, const napi_value arr, std::vector<bool>& bools); 41 void GetInt32s(const napi_env env, const napi_value arr, std::vector<int32_t>& ints); 43 void GetDoubles(const napi_env env, const napi_value arr, std::vector<double>& doubles); 45 void GetStrings(const napi_env env, const napi_value arr, std::vector<std::string>& strs, size_t bu… 48 uint32_t GetArrayLength(const napi_env env, const napi_value arr); 49 napi_value GetElement(const napi_env env, const napi_value arr, uint32_t index);
|
D | napi_hiappevent_builder.h | 44 void AddArrayParam2EventPack(napi_env env, const std::string &key, const napi_value arr);
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_baselib_utils_test.cpp | 352 int32_t arr[10] = {0}; variable 362 AddFieldIntArrayToJson(nullptr, field, arr, sizeof(arr)); 375 uint32_t ret = GetJsonFieldIntArray(nullptr, str, arr, sizeof(arr)); 418 int32_t arr[5] = {0}; variable 419 int32_t arrLen = sizeof(arr) / sizeof(arr[0]); 425 int32_t ret = GetJsonFieldIntArray(handle, "challenge", arr, arrLen); 430 int32_t ret = GetJsonFieldIntArray(handle, "arr", arr, arrLen - 2);
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_napi.cpp | 142 int arr[ARG_4] = {}; in CheckArguments() local 158 arr[i] = valueType; in CheckArguments() 160 if (arr[ARG_0] != napi_string || arr[ARG_1] != napi_number || arr[ARG_2] != napi_number || in CheckArguments() 161 arr[ARG_3] != napi_function) { in CheckArguments() 172 int arr[ARG_3] = {}; in CheckUnsubArguments() local 188 arr[i] = valueType; in CheckUnsubArguments() 190 if (arr[ARG_0] != napi_string || arr[ARG_1] != napi_number || arr[ARG_2] != napi_function) { in CheckUnsubArguments() 201 int arr[ARG_2] = {}; in CheckGetArguments() local 217 arr[i] = valueType; in CheckGetArguments() 219 if (arr[ARG_0] != napi_string || arr[ARG_1] != napi_function) { in CheckGetArguments()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/ |
D | cm_type.h | 58 #define CM_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) argument 68 #define CM_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) argument
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | get_active.cpp | 35 napi_value arr = nullptr; in AsyncCompleteCallbackGetAllActiveNotifications() local 37 napi_create_array(env, &arr); in AsyncCompleteCallbackGetAllActiveNotifications() 49 napi_set_element(env, arr, count, notificationResult); in AsyncCompleteCallbackGetAllActiveNotifications() 53 result = arr; in AsyncCompleteCallbackGetAllActiveNotifications() 138 napi_value arr = nullptr; in AsyncCompleteCallbackGetActiveNotifications() local 140 napi_create_array(env, &arr); in AsyncCompleteCallbackGetActiveNotifications() 152 napi_set_element(env, arr, count, requestResult); in AsyncCompleteCallbackGetActiveNotifications() 156 result = arr; in AsyncCompleteCallbackGetActiveNotifications()
|
D | slot.cpp | 851 napi_value arr = nullptr; in AsyncCompleteCallbackGetSlots() local 852 napi_create_array(env, &arr); in AsyncCompleteCallbackGetSlots() 864 napi_set_element(env, arr, count, nSlot); in AsyncCompleteCallbackGetSlots() 868 result = arr; in AsyncCompleteCallbackGetSlots() 949 napi_value arr = nullptr; in AsyncCompleteCallbackGetSlotsByBundle() local 950 napi_create_array(env, &arr); in AsyncCompleteCallbackGetSlotsByBundle() 962 napi_set_element(env, arr, count, nSlot); in AsyncCompleteCallbackGetSlotsByBundle() 966 result = arr; in AsyncCompleteCallbackGetSlotsByBundle()
|
D | common.cpp | 618 napi_value arr = nullptr; in SetNotificationRequestByCustom() local 620 napi_create_array(env, &arr); in SetNotificationRequestByCustom() 626 napi_set_element(env, arr, count, actionButtonResult); in SetNotificationRequestByCustom() 631 napi_set_named_property(env, result, "actionButtons", arr); in SetNotificationRequestByCustom() 838 napi_value arr = nullptr; in SetNotificationSlot() local 839 napi_create_array(env, &arr); in SetNotificationSlot() 843 napi_set_element(env, arr, count, value); in SetNotificationSlot() 846 napi_set_named_property(env, result, "vibrationValues", arr); in SetNotificationSlot() 1073 napi_value arr = nullptr; in SetNotificationConversationalContent() local 1074 if (!SetConversationalMessages(env, conversationalContent, arr)) { in SetNotificationConversationalContent() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_get_active.cpp | 37 napi_value arr = nullptr; in AsyncCompleteCallbackNapiGetAllActiveNotifications() local 39 napi_create_array(env, &arr); in AsyncCompleteCallbackNapiGetAllActiveNotifications() 51 napi_set_element(env, arr, count, notificationResult); in AsyncCompleteCallbackNapiGetAllActiveNotifications() 55 result = arr; in AsyncCompleteCallbackNapiGetAllActiveNotifications() 141 napi_value arr = nullptr; in AsyncCompleteCallbackNapiGetActiveNotifications() local 143 napi_create_array(env, &arr); in AsyncCompleteCallbackNapiGetActiveNotifications() 155 napi_set_element(env, arr, count, requestResult); in AsyncCompleteCallbackNapiGetActiveNotifications() 159 result = arr; in AsyncCompleteCallbackNapiGetActiveNotifications()
|
D | napi_slot.cpp | 405 napi_value arr = nullptr; in AsyncCompleteCallbackNapiGetSlots() local 406 napi_create_array(env, &arr); in AsyncCompleteCallbackNapiGetSlots() 418 napi_set_element(env, arr, count, nSlot); in AsyncCompleteCallbackNapiGetSlots() 422 result = arr; in AsyncCompleteCallbackNapiGetSlots() 505 napi_value arr = nullptr; in AsyncCompleteCallbackNapiGetSlotsByBundle() local 506 napi_create_array(env, &arr); in AsyncCompleteCallbackNapiGetSlotsByBundle() 518 napi_set_element(env, arr, count, nSlot); in AsyncCompleteCallbackNapiGetSlotsByBundle() 522 result = arr; in AsyncCompleteCallbackNapiGetSlotsByBundle()
|
/base/telephony/core_service/services/sim/src/ |
D | sim_number_decode.cpp | 25 static std::string HexToStr(const std::vector<uint8_t> &arr) in HexToStr() argument 28 for (const auto &v : arr) { in HexToStr() 167 uint8_t *arr = bytesData.get(); in BCDConvertToString() local 168 if (!arr) { in BCDConvertToString() 174 bcdCode.push_back(arr[offset + i]); in BCDConvertToString()
|
D | tag_service.cpp | 110 static std::string HexVecToHexStr(const std::vector<uint8_t> &arr) in HexVecToHexStr() argument 113 for (auto it = arr.begin(); it != arr.end(); it++) { in HexVecToHexStr()
|
/base/inputmethod/imf/services/dialog/entry/src/main/ets/pages/ |
D | index.ets | 20 private arr: string[] = [] 35 this.arr.push(name) 60 ForEach(this.arr, (item, index) => {
|
/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/ |
D | huks_adapter.h | 29 #define array_size(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) argument
|
/base/security/access_token/interfaces/innerkits/nativetoken/include/ |
D | nativetoken_json_oper.h | 27 extern void FreeStrArray(char **arr, int32_t num);
|
/base/security/crypto_framework/plugin/openssl_plugin/certificate/src/ |
D | x509_crl_openssl.c | 434 static void DestroyCRLEntryArray(HcfArray *arr) in DestroyCRLEntryArray() argument 436 if (arr == NULL) { in DestroyCRLEntryArray() 440 for (uint32_t i = 0; i < arr->count; ++i) { in DestroyCRLEntryArray() 441 if (arr->data[i].data == NULL) { in DestroyCRLEntryArray() 444 HcfX509CrlEntry *crlEntry = (HcfX509CrlEntry *)(arr->data[i].data); in DestroyCRLEntryArray() 446 arr->data[i].data = NULL; in DestroyCRLEntryArray() 447 arr->data[i].len = 0; in DestroyCRLEntryArray() 449 HcfFree(arr->data); in DestroyCRLEntryArray() 450 arr->data = NULL; in DestroyCRLEntryArray()
|
/base/security/access_token/interfaces/innerkits/nativetoken/src/ |
D | nativetoken_json_oper.c | 21 void FreeStrArray(char **arr, int32_t num) in FreeStrArray() argument 24 if (arr[i] != NULL) { in FreeStrArray() 25 free(arr[i]); in FreeStrArray() 26 arr[i] = NULL; in FreeStrArray()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_c.cpp | 33 void AddArrayParam(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const T* arr, int… in AddArrayParam() argument 35 std::vector<T> params(arr, arr + len); in AddArrayParam()
|
/base/security/huks/interfaces/innerkits/huks_standard/main/include/ |
D | hks_type.h | 56 #define HKS_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) argument
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 111 napi_value arr; in CtoJSUsbInterface() local 112 napi_create_array(env, &arr); in CtoJSUsbInterface() 122 napi_set_element(env, arr, i, objTmp); in CtoJSUsbInterface() 124 napi_set_named_property(env, obj, "endpoints", arr); in CtoJSUsbInterface() 136 napi_value arr; in CtoJSUsbConfig() local 137 napi_create_array(env, &arr); in CtoJSUsbConfig() 143 napi_set_element(env, arr, i, objTmp); in CtoJSUsbConfig() 145 napi_set_named_property(env, obj, "interfaces", arr); in CtoJSUsbConfig() 163 napi_value arr; in CtoJSUsbDevice() local 164 napi_create_array(env, &arr); in CtoJSUsbDevice() [all …]
|