Home
last modified time | relevance | path

Searched refs:dcaps (Results 1 – 25 of 49) sorted by relevance

12

/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp150 const char **dcaps = new (std::nothrow) const char *[2]; in Start() local
151 if (dcaps == nullptr) { in Start()
154 dcaps[0] = "AT_CAP"; in Start()
155 dcaps[1] = "ST_CAP"; in Start()
172 .dcaps = dcaps, in Start()
179 delete[] dcaps; in Start()
193 const char **dcaps = new (std::nothrow) const char *[2]; variable
194 ASSERT_NE(dcaps, nullptr);
195 dcaps[0] = "AT_CAP";
196 dcaps[1] = "ST_CAP";
[all …]
Dnativetoken_oper_test.cpp75 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
83 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
95 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
225 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/
Dnativetoken_oper_test.cpp75 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
106 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])";
137 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])";
164 tokenNode.dcaps[0] = static_cast<char *>(malloc(sizeof(char) * MAX_DCAP_LEN));
165 EXPECT_NE(tokenNode.dcaps[0], nullptr);
166 (void)strcpy_s(tokenNode.dcaps[0], MAX_DCAP_LEN, "x");
172 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])";
194 free(tokenNode.dcaps[0]);
210 tokenNode.dcaps[0] = static_cast<char *>(malloc(sizeof(char) * MAX_DCAP_LEN));
211 EXPECT_NE(tokenNode.dcaps[0], nullptr);
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken.c112 ret |= GetInfoArrFromJson(cjsonItem, tokenNode->dcaps, &(tokenNode->dcapsNum), &attr); in GetNativeTokenFromJson()
121 FreeStrArray(tokenNode->dcaps, tokenNode->dcapsNum - 1); in GetNativeTokenFromJson()
129 FreeStrArray(tokenNode->dcaps, tokenNode->dcapsNum - 1); in GetNativeTokenFromJson()
420 …uint32_t retDcap = CheckStrArray(tokenInfo->dcaps, tokenInfo->dcapsNum, MAX_DCAPS_NUM, MAX_DCAP_LE… in CheckProcessInfo()
490 if (CreateStrArray(tokenInfo->dcapsNum, tokenInfo->dcaps, tokenNode->dcaps) != ATRET_SUCCESS) { in AddNewTokenToListAndFile()
495 FreeStrArray(tokenNode->dcaps, tokenInfo->dcapsNum - 1); in AddNewTokenToListAndFile()
500 FreeStrArray(tokenNode->dcaps, tokenInfo->dcapsNum - 1); in AddNewTokenToListAndFile()
525 if (strcmp(tokenNode->dcaps[i], dcapsIn[i]) != 0) { in CompareTokenInfo()
572 uint32_t ret = UpdateStrArrayInList(tokenNode->dcaps, &(tokenNode->dcapsNum), in UpdateTokenInfoInList()
573 tokenInfo->dcaps, tokenInfo->dcapsNum); in UpdateTokenInfoInList()
[all …]
Dnativetoken_json_oper.c178 int32_t ret = AddStrArrayInfo(object, curr->dcaps, curr->dcapsNum, DCAPS_KEY_NAME); in SetNativeTokenJsonObject()
257 … uint32_t ret = UpdateStrArrayType(tokenNode->dcaps, tokenNode->dcapsNum, DCAPS_KEY_NAME, record); in UpdateItemcontent()
/base/security/access_token/interfaces/innerkits/nativetoken/include/
Dnativetoken_kit.h32 const char **dcaps; member
Dnativetoken.h79 char *dcaps[MAX_DCAPS_NUM]; member
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dremote_native_token.cpp29 .dcaps = nullptr, in SetNativeToken()
/base/telephony/cellular_data/test/fuzztest/common_fuzzer/
Dadddatatoken_fuzzer.cpp36 .dcaps = nullptr, in AddDataTokenFuzzer()
/base/telephony/call_manager/test/fuzztest/common_fuzzer/
Daddcalltoken_fuzzer.cpp39 .dcaps = nullptr, in AddCallTokenFuzzer()
/base/telephony/core_service/test/fuzztest/common_fuzzer/
Daddcoreservicetoken_fuzzer.cpp46 .dcaps = nullptr, in AddCoreServiceTokenFuzzer()
/base/telephony/cellular_call/test/fuzztest/common_fuzzer/
Daddcellularcalltoken_fuzzer.cpp41 .dcaps = nullptr, in AddCellularCallTokenFuzzer()
/base/telephony/sms_mms/test/fuzztest/common_fuzzer/
Daddsmstoken_fuzzer.cpp39 .dcaps = nullptr, in AddSmsTokenFuzzer()
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_service_test.cpp41 .dcaps = nullptr, in SetUpTestCase()
Dpin_auth_register_test.cpp44 .dcaps = nullptr, in SetUpTestCase()
/base/time/time_service/test/fuzztest/timeservice_fuzzer/
Dtimeservice_fuzzer.cpp45 .dcaps = nullptr, in GrantNativePermission()
/base/useriam/face_auth/test/unittest/
Dface_auth_service_test.cpp48 .dcaps = nullptr, in SetUpTestCase()
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/
Ddatatransmitmgr_fuzzer.cpp83 .dcaps = nullptr, in NativeTokenGetFUZZ()
/base/inputmethod/imf/test/fuzztest/systemabilitystub_fuzzer/
Dsystemabilitystub_fuzzer.cpp41 .dcaps = nullptr, in GrantNativePermission()
/base/location/test/location_common/source/
Dcommon_utils_test.cpp58 .dcaps = nullptr, in MockNativePermission()
79 .dcaps = nullptr, in MockNativeApproxiPermission()
100 .dcaps = nullptr, in MockNativeAccurateLocation()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dnative_token_receptor_test.cpp79 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]},)"\
81 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])";
695 const char *dcaps[1]; variable
696 dcaps[0] = "AT_CAP_01";
705 .dcaps = dcaps,
/base/location/test/location_locator/source/
Dlocation_approximately_permission_test.cpp52 .dcaps = nullptr, in MockNativePermission()
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
Dwallpaper_manager_fuzzer.cpp43 .dcaps = nullptr, in GrantNativePermission()
/base/location/test/location_geocode/source/
Dgeo_convert_service_test.cpp74 .dcaps = nullptr, in MockNativePermission()
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/
Dprivacy_kit_test.cpp300 const char **dcaps = new const char *[2]; variable
301 dcaps[0] = "AT_CAP";
302 dcaps[1] = "ST_CAP";
314 .dcaps = dcaps,
324 delete[] dcaps;

12