Home
last modified time | relevance | path

Searched refs:g_arraySyscap (Results 1 – 6 of 6) sorted by relevance

/developtools/syscap_codec/test/
Dsyscap_define_check.c23 int size = (int)sizeof(g_arraySyscap) / sizeof(SyscapWithNum); in CheckSortBySyscapNum()
27 if (g_arraySyscap[i].num != i) { in CheckSortBySyscapNum()
29 g_arraySyscap[i].str, g_arraySyscap[i].num, i); in CheckSortBySyscapNum()
/developtools/syscap_codec/src/
Dcreate_pcid.c157 size_t numOfSyscapAll = sizeof(g_arraySyscap) / sizeof(SyscapWithNum); in CreateWholeSyscapJsonObj()
160 cJSON_AddItemToObject(root, g_arraySyscap[i].str, cJSON_CreateNumber(g_arraySyscap[i].num)); in CreateWholeSyscapJsonObj()
392 for (j = 0; j < sizeof(g_arraySyscap) / sizeof(SyscapWithNum); j++) { in DecodePCID()
393 if (g_arraySyscap[j].num == indexOfSyscap[i]) { in DecodePCID()
394 if (!cJSON_AddItemToArray(capVectorPtr, cJSON_CreateString(g_arraySyscap[j].str))) { in DecodePCID()
613 for (j = 0; j < sizeof(g_arraySyscap) / sizeof(SyscapWithNum); j++) { in AddOsSyscapToJsonObj()
614 if (index[i] != g_arraySyscap[j].num) { in AddOsSyscapToJsonObj()
617 if (!cJSON_AddItemToArray(sysCapArray, cJSON_CreateString(g_arraySyscap[j].str))) { in AddOsSyscapToJsonObj()
Dsyscap_tool.c167 size_t allSyscapNum = sizeof(g_arraySyscap) / sizeof(SyscapWithNum); in CreateWholeSyscapJsonObj()
170 cJSON_AddItemToObject(root, g_arraySyscap[i].str, cJSON_CreateNumber(g_arraySyscap[i].num)); in CreateWholeSyscapJsonObj()
668 const size_t allSyscapNum = sizeof(g_arraySyscap) / sizeof(SyscapWithNum); in ComparePcidWithRpcidString()
717 printf("Missing: %s\n", g_arraySyscap[pos].str); in ComparePcidWithRpcidString()
/developtools/syscap_codec/interfaces/inner_api/
Dsyscap_interface.c221 for (j = 0; j < sizeof(g_arraySyscap) / sizeof(SyscapWithNum); j++) { in DecodeOsSyscap()
222 if (g_arraySyscap[j].num == indexOfSyscap[i]) { in DecodeOsSyscap()
223 nRet = strcpy_s(*strSyscap, SINGLE_SYSCAP_LEN, g_arraySyscap[j].str); in DecodeOsSyscap()
324 size_t numOfSyscapAll = sizeof(g_arraySyscap) / sizeof(SyscapWithNum); in CreateWholeSyscapJsonObj()
327 cJSON_AddItemToObject(root, g_arraySyscap[i].str, cJSON_CreateNumber(g_arraySyscap[i].num)); in CreateWholeSyscapJsonObj()
594g_arraySyscap[(i - 2) * INT_BIT + k].str); // 2, header of pcid & rpcid in ComparePcidString()
/developtools/syscap_codec/
DREADME_ZH.md176 - 添加 syscap,请在 SyscapNum 和 g_arraySyscap 末尾添加相应数据。
177 - 数组 g_arraySyscap 按照 SyscapNum 枚举值从小到大排序。
/developtools/syscap_codec/include/
Dsyscap_define.h278 const static SyscapWithNum g_arraySyscap[] = { variable