/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/ |
D | nativetoken_kit_test.cpp | 150 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 …]
|
D | nativetoken_oper_test.cpp | 75 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/ |
D | nativetoken_oper_test.cpp | 75 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/ |
D | nativetoken.c | 112 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 …]
|
D | nativetoken_json_oper.c | 178 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/ |
D | nativetoken_kit.h | 32 const char **dcaps; member
|
D | nativetoken.h | 79 char *dcaps[MAX_DCAPS_NUM]; member
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | remote_native_token.cpp | 29 .dcaps = nullptr, in SetNativeToken()
|
/base/telephony/cellular_data/test/fuzztest/common_fuzzer/ |
D | adddatatoken_fuzzer.cpp | 36 .dcaps = nullptr, in AddDataTokenFuzzer()
|
/base/telephony/call_manager/test/fuzztest/common_fuzzer/ |
D | addcalltoken_fuzzer.cpp | 39 .dcaps = nullptr, in AddCallTokenFuzzer()
|
/base/telephony/core_service/test/fuzztest/common_fuzzer/ |
D | addcoreservicetoken_fuzzer.cpp | 46 .dcaps = nullptr, in AddCoreServiceTokenFuzzer()
|
/base/telephony/cellular_call/test/fuzztest/common_fuzzer/ |
D | addcellularcalltoken_fuzzer.cpp | 41 .dcaps = nullptr, in AddCellularCallTokenFuzzer()
|
/base/telephony/sms_mms/test/fuzztest/common_fuzzer/ |
D | addsmstoken_fuzzer.cpp | 39 .dcaps = nullptr, in AddSmsTokenFuzzer()
|
/base/useriam/pin_auth/test/unittest/src/ |
D | pin_auth_service_test.cpp | 41 .dcaps = nullptr, in SetUpTestCase()
|
D | pin_auth_register_test.cpp | 44 .dcaps = nullptr, in SetUpTestCase()
|
/base/time/time_service/test/fuzztest/timeservice_fuzzer/ |
D | timeservice_fuzzer.cpp | 45 .dcaps = nullptr, in GrantNativePermission()
|
/base/useriam/face_auth/test/unittest/ |
D | face_auth_service_test.cpp | 48 .dcaps = nullptr, in SetUpTestCase()
|
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/ |
D | datatransmitmgr_fuzzer.cpp | 83 .dcaps = nullptr, in NativeTokenGetFUZZ()
|
/base/inputmethod/imf/test/fuzztest/systemabilitystub_fuzzer/ |
D | systemabilitystub_fuzzer.cpp | 41 .dcaps = nullptr, in GrantNativePermission()
|
/base/location/test/location_common/source/ |
D | common_utils_test.cpp | 58 .dcaps = nullptr, in MockNativePermission() 79 .dcaps = nullptr, in MockNativeApproxiPermission() 100 .dcaps = nullptr, in MockNativeAccurateLocation()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | native_token_receptor_test.cpp | 79 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/ |
D | location_approximately_permission_test.cpp | 52 .dcaps = nullptr, in MockNativePermission()
|
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/ |
D | wallpaper_manager_fuzzer.cpp | 43 .dcaps = nullptr, in GrantNativePermission()
|
/base/location/test/location_geocode/source/ |
D | geo_convert_service_test.cpp | 74 .dcaps = nullptr, in MockNativePermission()
|
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/ |
D | privacy_kit_test.cpp | 300 const char **dcaps = new const char *[2]; variable 301 dcaps[0] = "AT_CAP"; 302 dcaps[1] = "ST_CAP"; 314 .dcaps = dcaps, 324 delete[] dcaps;
|