Home
last modified time | relevance | path

Searched refs:type (Results 1 - 25 of 50) sorted by relevance

12

/commonlibrary/utils_lite/include/
H A Dutils_list.h372 * @param type [IN] Structure name.
381 #define OFFSET_OF_FIELD(type, field) ((unsigned int)&((type *)0)->field)
395 * @param type [IN] Structure name.
403 #define UTILS_OFF_SET_OF(type, member) ((unsigned int)&((type *)0)->member)
420 * @param type [IN] Structure name.
428 #define UTILS_DL_LIST_ENTRY(item, type, member) \
429 ((type *)(void *)((char *)(item) - UTILS_OFF_SET_OF(type, membe
[all...]
/commonlibrary/ets_utils/js_util_module/util/
H A Djs_types.cpp58 napi_typedarray_type type = napi_int8_array; in IsArrayBufferView() local
63 napi_status rstSta = napi_get_typedarray_info(env, src, &type, &length, in IsArrayBufferView()
66 switch (type) { in IsArrayBufferView()
192 napi_valuetype type = napi_undefined; in IsExternal() local
194 napi_typeof(env, src, &type); in IsExternal()
195 if (type == napi_valuetype::napi_external) { in IsExternal()
203 bool Types::GetTypeArrayInfo(napi_env env, napi_value src, napi_typedarray_type &type) const in GetTypeArrayInfo()
212 napi_get_typedarray_info(env, src, &type, &length, in GetTypeArrayInfo()
223 napi_typedarray_type type = napi_int8_array; in IsFloat32Array() local
224 if (GetTypeArrayInfo(env, src, type)) { in IsFloat32Array()
237 napi_typedarray_type type = napi_int8_array; IsFloat64Array() local
276 napi_typedarray_type type = napi_int8_array; IsInt8Array() local
295 napi_typedarray_type type = napi_int8_array; IsInt16Array() local
309 napi_typedarray_type type = napi_int8_array; IsInt32Array() local
461 napi_typedarray_type type = napi_int8_array; IsUint8Array() local
475 napi_typedarray_type type = napi_int8_array; IsUint8ClampedArray() local
489 napi_typedarray_type type = napi_int8_array; IsUint16Array() local
503 napi_typedarray_type type = napi_int8_array; IsUint32Array() local
[all...]
H A Djs_base64.cpp50 napi_typedarray_type type; in EncodeSync() local
53 napi_get_typedarray_info(env, src, &type, &length, &resultData, nullptr, nullptr); in EncodeSync()
54 if (type != napi_uint8_array || length == 0) { in EncodeSync()
56 "Parameter error. The type of Parameter must be Uint8Array and the length greater than zero."); in EncodeSync()
83 napi_typedarray_type type; in EncodeToStringSync() local
86 napi_get_typedarray_info(env, src, &type, &length, &resultData, nullptr, nullptr); in EncodeToStringSync()
87 if (type != napi_uint8_array || length == 0) { in EncodeToStringSync()
89 "Parameter error. The type of Parameter must be Uint8Array and the length greater than zero."); in EncodeToStringSync()
201 napi_typedarray_type type; in DecodeSyncInner() local
206 napi_get_typedarray_info(env, src, &type, in DecodeSyncInner()
366 napi_typedarray_type type; Encode() local
383 napi_typedarray_type type; EncodeToString() local
567 napi_typedarray_type type; Decode() local
[all...]
H A Djs_textencoder.cpp51 napi_typedarray_type type; in EncodeInto() local
56 NAPI_CALL(env, napi_get_typedarray_info(env, dest, &type, &length, &resultData, &resultBuffer, &byteOffset)); in EncodeInto()
H A Djs_stringdecoder.cpp31 napi_typedarray_type type; in Write() local
40 "Parameter error. The type of Parameter must be Uint8Array or string."); in Write()
43 napi_get_typedarray_info(env, src, &type, &length, &data, &arrayBuffer, &byteOffset); in Write()
H A Dnative_module_util.cpp69 char *type = new (std::nothrow) char[length + 1]; in ApplyMemory() local
70 if (type == nullptr) { in ApplyMemory()
71 HILOG_ERROR("type is nullptr"); in ApplyMemory()
74 if (memset_s(type, length + 1, '\0', length + 1) != EOK) { in ApplyMemory()
75 HILOG_ERROR("type memset_s failed"); in ApplyMemory()
76 delete[] type; in ApplyMemory()
79 return type; in ApplyMemory()
325 NAPI_ASSERT(env, valuetype == napi_string, "Wrong argument type. String expected."); in ParseUUID()
344 return ThrowError(env, "Parameter error. The type of Parameter must be object."); in GetHash()
360 char *type in TextdecoderConstructor() local
416 napi_typedarray_type type; DecodeToString() local
469 napi_typedarray_type type; TextdecoderDecode() local
[all...]
H A Djs_textdecoder.cpp111 napi_typedarray_type type; in Decode() local
116 NAPI_CALL(env, napi_get_typedarray_info(env, src, &type, &length, &data, &arrayBuffer, &byteOffset)); in Decode()
196 napi_typedarray_type type; in DecodeToString() local
201 napi_get_typedarray_info(env, src, &type, &length, &data, &arrayBuffer, &byteOffset); in DecodeToString()
/commonlibrary/utils_lite/kal/timer/src/
H A Dkal.c27 KalTimerType type; member
37 if (tmpPtr->type == KAL_TIMER_ONCE) { in KalFunction()
50 KalTimerId KalTimerCreate(KalTimerProc func, KalTimerType type, void* arg, unsigned int millisec) in KalTimerCreate() argument
54 if ((func == NULL) || ((type != KAL_TIMER_ONCE) && (type != KAL_TIMER_PERIODIC))) { in KalTimerCreate()
63 kalTimer->type = type; in KalTimerCreate()
86 if (tmpPtr->type == KAL_TIMER_PERIODIC) { in KalTimerStart()
109 if (tmpPtr->type == KAL_TIMER_PERIODIC) { in KalTimerChange()
/commonlibrary/ets_utils/js_api_module/xml/
H A Djs_xml.cpp51 if (type == "isAttri" || type == "isStart") { in SplicNsp()
96 type = "isDecl"; in SetDeclaration()
110 if (type == "isStart" || type == "isAttri") { in SetNamespace()
119 type = "isNsp"; in SetNamespace()
133 if (type == "isStart" || type == "isAttri") { in StartElement()
137 if (type != "" && type ! in StartElement()
[all...]
/commonlibrary/ets_utils/js_api_module/convertxml/
H A Djs_convertxml.cpp111 if (curNode->type == xmlElementType::XML_PI_NODE && !options_.ignoreInstruction) { in GetPrevNodeList()
112 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList()
121 if (curNode->type == xmlElementType::XML_COMMENT_NODE && !options_.ignoreComment) { in GetPrevNodeList()
122 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList()
130 if (curNode->type == xmlElementType::XML_DTD_NODE && !options_.ignoreDoctype) { in GetPrevNodeList()
131 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList()
141 if (curNode->type in SetAttributes()
[all...]
/commonlibrary/memory_utils/libmeminfo/src/
H A Dmeminfo.cpp75 std::string type = content.substr(0, typePos); in GetPssByPid() local
76 if (type == "Pss") { in GetPssByPid()
103 std::string type = content.substr(0, typePos); in GetSwapPssByPid() local
104 if (type == "SwapPss") { in GetSwapPssByPid()
/commonlibrary/ets_utils/js_api_module/convertxml/test/
H A Dtest_convertxml.cpp90 * @tc.type: FUNC
128 * @tc.type: FUNC
153 napi_get_named_property(env, element, op.type.c_str(), &typeVal); in HWTEST_F()
165 * @tc.type: FUNC
206 * @tc.type: FUNC
231 EXPECT_EQ(napi_get_named_property(env, element, op.type.c_str(), &commentType), napi_status::napi_ok); in HWTEST_F()
244 * @tc.type: FUNC
269 EXPECT_EQ(napi_get_named_property(env, element, op.type.c_str(), &cdataType), napi_status::napi_ok); in HWTEST_F()
282 * @tc.type: FUNC
307 EXPECT_EQ(napi_get_named_property(env, element, op.type in HWTEST_F()
[all...]
/commonlibrary/c_utils/base/include/
H A Dflat_obj.h45 __u32 type; member
/commonlibrary/utils_lite/memory/include/
H A Dohos_mem_pool.h70 * @brief According to the input parameters type and size,
78 * @param type identify which memory pool to apply for memory in
85 void *OhosMalloc(MemType type, uint32 size);
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.h410 void AddListenerInner(napi_env env, const char* type, const WorkerListener* listener);
411 void RemoveListenerInner(napi_env env, const char* type, napi_ref callback);
502 bool HandleEventListeners(napi_env env, napi_value recv, size_t argc, const napi_value* argv, const char* type);
504 const napi_value* argv, const char* type, bool tryCatch);
530 void ParentPortAddListenerInner(napi_env env, const char* type, const WorkerListener* listener);
532 void ParentPortRemoveListenerInner(napi_env env, const char* type, napi_ref callback);
/commonlibrary/memory_utils/libpurgeablemem/common/src/
H A Dux_page_table_c.c150 int type = MAP_ANONYMOUS | MAP_PURGEABLE; in CheckUxpt() local
153 void *dataPtr = mmap(NULL, dataSize, prot, type, -1, 0); in CheckUxpt()
160 type = MAP_ANONYMOUS | MAP_USEREXPTE; in CheckUxpt()
162 void *ptes = mmap(NULL, uptSize, prot, type, -1, UxptePageNo((uint64_t)dataPtr) * PAGE_SIZE); in CheckUxpt()
422 int type = MAP_ANONYMOUS | MAP_USEREXPTE; in MapUxptePages() local
424 uxpte_t *ptes = (uxpte_t*)mmap(NULL, size, prot, type, -1, UxptePageNo(dataAddr) * PAGE_SIZE); in MapUxptePages()
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_group.cpp96 napi_valuetype type = napi_undefined; in AddTask() local
97 napi_typeof(env, args[0], &type); in AddTask()
98 if (type == napi_object) { in AddTask()
102 ErrorHelper::ThrowError(env, ErrorHelper::TYPE_ERROR, "the type of the params must be task."); in AddTask()
113 } else if (type == napi_function) { in AddTask()
126 ErrorHelper::ThrowError(env, ErrorHelper::TYPE_ERROR, "the type of the first param must be object or function."); in AddTask()
H A Dtask.cpp73 "the type of the first or second param of task must be function."); in TaskConstructor()
185 Task* Task::GenerateFunctionTask(napi_env env, napi_value func, napi_value* args, size_t argc, TaskType type) in GenerateFunctionTask() argument
201 Task* task = new Task(env, type, nameStr); in GenerateFunctionTask()
293 "the type of setTransferList first param must be array."); in SetTransferList()
308 "the type of the element in array must be arraybuffer."); in SetTransferList()
333 ErrorHelper::ThrowError(env, ErrorHelper::TYPE_ERROR, "the type of setCloneList first param must be array."); in SetCloneList()
353 "the type of setCloneList elements in array must be arraybuffer or sendable."); in SetCloneList()
402 napi_valuetype type; in OnReceiveData() local
403 NAPI_CALL(env, napi_typeof(env, args[0], &type)); in OnReceiveData()
404 if (type ! in OnReceiveData()
713 napi_valuetype type; OnEnqueued() local
750 napi_valuetype type; OnStartExecution() local
800 napi_valuetype type; OnExecutionFailed() local
838 napi_valuetype type; OnExecutionSucceeded() local
[all...]
/commonlibrary/ets_utils/js_api_module/buffer/
H A Dconverter.h78 std::string Base64Encode(const unsigned char *src, size_t len, EncodingType type);
79 std::string Base64Decode(std::string const& encodedStr, EncodingType type);
H A Dconverter.cpp153 string Base64Encode(const unsigned char *src, size_t len, EncodingType type) in Base64Encode() argument
177 if (type == BASE64URL) { in Base64Encode()
215 if (type == BASE64URL) { in Base64Encode()
224 string Base64Decode(string const& encodedStr, EncodingType type) in Base64Decode() argument
234 if (type == BASE64URL) { in Base64Decode()
/commonlibrary/memory_utils/libpurgeablemem/cpp/src/
H A Dpurgeable_mem.cpp97 int type = static_cast<int>(utype); in CreatePurgeableData() local
99 dataPtr_ = mmap(nullptr, size, PROT_READ | PROT_WRITE, type, -1, 0); in CreatePurgeableData()
/commonlibrary/ets_utils/js_util_module/util/test/
H A Dtest_util.cpp35 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \
40 ASSERT_EQ(valueType, type); \
45 * @tc.type: FUNC
56 * @tc.type: FUNC
67 * @tc.type: FUNC
73 napi_typedarray_type type = napi_int8_array; in HWTEST_F() local
78 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); in HWTEST_F()
84 * @tc.type: FUNC
90 napi_typedarray_type type = napi_int8_array; in HWTEST_F() local
95 napi_get_typedarray_info(env, arr, &type, in HWTEST_F()
109 napi_typedarray_type type = napi_int8_array; HWTEST_F() local
129 napi_typedarray_type type = napi_int8_array; HWTEST_F() local
149 napi_typedarray_type type = napi_int8_array; HWTEST_F() local
283 napi_typedarray_type type; HWTEST_F() local
315 napi_typedarray_type type; HWTEST_F() local
345 napi_typedarray_type type; HWTEST_F() local
379 napi_typedarray_type type; HWTEST_F() local
428 napi_typedarray_type type; HWTEST_F() local
463 napi_typedarray_type type; HWTEST_F() local
498 napi_typedarray_type type; HWTEST_F() local
533 napi_typedarray_type type; HWTEST_F() local
568 napi_typedarray_type type; HWTEST_F() local
1666 napi_typedarray_type type; HWTEST_F() local
1701 napi_typedarray_type type; HWTEST_F() local
1737 napi_typedarray_type type; HWTEST_F() local
1771 napi_typedarray_type type; HWTEST_F() local
1805 napi_typedarray_type type; HWTEST_F() local
1865 napi_typedarray_type type; HWTEST_F() local
2095 napi_typedarray_type type; HWTEST_F() local
2130 napi_typedarray_type type; HWTEST_F() local
2159 napi_typedarray_type type; HWTEST_F() local
2188 napi_typedarray_type type; HWTEST_F() local
2216 napi_typedarray_type type; HWTEST_F() local
[all...]
/commonlibrary/utils_lite/kal/timer/include/
H A Dkal.h39 KalTimerId KalTimerCreate(KalTimerProc func, KalTimerType type, void* arg, unsigned int millisec);
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dasync_lock_manager.cpp166 napi_valuetype type; in Constructor() local
167 NAPI_CALL(env, napi_typeof(env, args[0], &type)); in Constructor()
168 if (type != napi_string) { in Constructor()
294 napi_valuetype type; in Query() local
295 napi_typeof(env, arg, &type); in Query()
296 if (type != napi_string) { in Query()
297 ErrorHelper::ThrowError(env, ErrorHelper::TYPE_ERROR, "Invalid argument type"); in Query()
/commonlibrary/memory_utils/libpurgeablemem/c/src/
H A Dpurgeable_mem_c.c80 int type = TypeCast(); in PurgMemCreate_() local
81 pugObj->dataPtr = mmap(NULL, size, PROT_READ | PROT_WRITE, type, -1, 0); in PurgMemCreate_()
443 int type = (int) utype; in TypeCast() local
444 return type; in TypeCast()

Completed in 22 milliseconds

12