/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | gt_bundle_installer.h | 45 uint8_t ProcessBundleInstall(const char *path, const char *randStr, InstallRecord &installRecord, 47 uint8_t HandleFileAndBackUpRecord(const InstallRecord &record, const char *tmpPath, const char *randStr, 54 bool RenameJsonFile(const char *fileName, const char *randStr); 117 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, signatureInfo, randStr) \ 123 BundleUtil::DeleteJsonFile(bundleInfo->bundleName, randStr); \
|
H A D | bundle_installer.h | 40 uint8_t ProcessBundleInstall(const std::string &path, const char *randStr, InstallRecord &installRecord, 42 uint8_t HandleFileAndBackUpRecord(const char *codePath, const char *randStr, InstallRecord &record, 56 bool RenameJsonFile(const char *fileName, const char *randStr); 101 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, abilityRes, randStr) \ 107 BundleUtil::DeleteJsonFile((bundleInfo)->bundleName, randStr); \
|
H A D | bundle_util.h | 52 static void DeleteJsonFile(const char *bundleName, const char *randStr);
|
/foundation/communication/dsoftbus/tests/adapter/unittest/ |
H A D | dsoftbus_aes_crypto_test.cpp | 53 uint8_t randStr[randLen]; in HWTEST_F() local 57 int32_t ret = SoftBusGenerateRandomArray(randStr, randLen); in HWTEST_F() 61 EncryptKey randomKey = { randStr, randLen }; in HWTEST_F() 78 uint8_t randStr[randLen]; in HWTEST_F() local 82 int32_t ret = SoftBusGenerateRandomArray(randStr, randLen); in HWTEST_F() 86 EncryptKey randomKey = { randStr, randLen }; in HWTEST_F() 109 uint8_t randStr[randLen]; in HWTEST_F() local 113 int32_t ret = SoftBusGenerateRandomArray(randStr, randLen); in HWTEST_F() 117 EncryptKey randomKey = { randStr, randLen }; in HWTEST_F() 136 uint8_t randStr[randLe in HWTEST_F() local 175 uint8_t randStr[randLen]; HWTEST_F() local 227 uint8_t randStr[randLen]; HWTEST_F() local 272 uint8_t randStr[randLen]; HWTEST_F() local [all...] |
H A D | dsoftbus_crypto_test.cpp | 244 * @tc.desc: randStr and len is valid param 250 char randStr[64]; in HWTEST_F() local 251 int32_t ret = SoftBusGenerateRandomArray((unsigned char *)randStr, sizeof(randStr)); in HWTEST_F() 257 * @tc.desc: randStr and len is invalid param 264 char randStr[64]; in HWTEST_F() local 268 ret = SoftBusGenerateRandomArray((unsigned char *)randStr, len1); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_installer.cpp | 113 char randStr[RAND_NUM] = { 0 }; in Install() local 114 BundleUtil::CreateRandStr(randStr, RAND_NUM); in Install() 115 if (strlen(randStr) == 0) { in Install() 138 uint8_t errorCode = ProcessBundleInstall(realPath, randStr, installRecord, hapType); in Install() 144 std::string uidTmpJsonPath = std::string(JSON_PATH) + UID_GID_MAP + randStr + JSON_SUFFIX; in Install() 152 if (!RenameJsonFile(UID_GID_MAP, randStr) || !RenameJsonFile(installRecord.bundleName, randStr)) { in Install() 168 uint8_t BundleInstaller::ProcessBundleInstall(const std::string &path, const char *randStr, in ProcessBundleInstall() argument 224 std::string tmpCodePath = codePath + randStr; in ProcessBundleInstall() 230 errorCode = HandleFileAndBackUpRecord(codePath.c_str(), randStr, installRecor in ProcessBundleInstall() 345 HandleFileAndBackUpRecord(const char *codePath, const char *randStr, InstallRecord &record, bool isUpdate, uint8_t hapType) HandleFileAndBackUpRecord() argument 729 RenameJsonFile(const char *fileName, const char *randStr) RenameJsonFile() argument [all...] |
H A D | gt_bundle_installer.cpp | 195 char randStr[RADN_NUM] = { 0 }; in Install() local 196 BundleUtil::CreateRandStr(randStr, RADN_NUM); in Install() 197 if (strlen(randStr) == 0) { in Install() 203 uint8_t errorCode = ProcessBundleInstall(path, randStr, installRecord, bundleStyle, installerCallback, isUpdate); in Install() 211 if (!RenameJsonFile(installRecord.bundleName, randStr)) { in Install() 228 uint8_t GtBundleInstaller::ProcessBundleInstall(const char *path, const char *randStr, InstallRecord &installRecord, in ProcessBundleInstall() argument 276 char *tmpCodePathComp[] = {installRecord.codePath, const_cast<char *>(randStr)}; in ProcessBundleInstall() 301 errorCode = HandleFileAndBackUpRecord(installRecord, tmpCodePath, randStr, bundleInfo->dataPath, isUpdate); in ProcessBundleInstall() 303 CHECK_PRO_ROLLBACK(errorCode, permissions, bundleInfo, signatureInfo, randStr); in ProcessBundleInstall() 307 CHECK_PRO_ROLLBACK(errorCode, permissions, bundleInfo, signatureInfo, randStr); in ProcessBundleInstall() 449 HandleFileAndBackUpRecord(const InstallRecord &record, const char *tmpPath, const char *randStr, const char *dataPath, bool isUpdate) HandleFileAndBackUpRecord() argument 811 RenameJsonFile(const char *fileName, const char *randStr) RenameJsonFile() argument [all...] |
H A D | bundle_util.cpp | 302 void BundleUtil::DeleteJsonFile(const char *bundleName, const char *randStr) in DeleteJsonFile() argument 304 if (bundleName == nullptr || randStr == nullptr) { in DeleteJsonFile() 308 const_cast<char *>(JSON_PATH), const_cast<char *>(bundleName), const_cast<char *>(randStr), in DeleteJsonFile()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_node_weight_test.cpp | 89 unsigned char randStr = 20; 91 .WillRepeatedly(DoAll(SetArgPointee<0>(randStr), Return(SOFTBUS_OK)));
|
H A D | lnn_service_mock.cpp | 213 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument 215 return GetServiceInterface()->SoftBusGenerateRandomArray(randStr, len); in SoftBusGenerateRandomArray()
|
/foundation/communication/dsoftbus/tests/core/transmission/common/mock/src/ |
H A D | trans_common_mock.cpp | 46 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument 48 return GetCommonInterface()->SoftBusGenerateRandomArray(randStr, len); in SoftBusGenerateRandomArray()
|
/foundation/communication/netmanager_ext/test/ethernetmanager/fuzztest/ethernetclient_fuzzer/ |
H A D | ethernet_client_fuzzer.cpp | 293 std::string randStr = GetStringFromData(IFACE_LEN); in SetInterfaceConfigFuzzTest() local 295 if (!parcel.WriteString(randStr)) { in SetInterfaceConfigFuzzTest() 298 if (!parcel.WriteString(randStr)) { in SetInterfaceConfigFuzzTest() 301 if (!parcel.WriteString(randStr)) { in SetInterfaceConfigFuzzTest() 304 if (!parcel.WriteString(randStr)) { in SetInterfaceConfigFuzzTest() 313 if (!parcel.WriteString(randStr)) { in SetInterfaceConfigFuzzTest()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/ |
H A D | lnn_local_ledger_deps_mock.cpp | 91 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument 93 return GetLocalLedgerDepsInterface()->SoftBusGenerateRandomArray(randStr, len); in SoftBusGenerateRandomArray()
|
H A D | lnn_local_ledger_deps_mock.h | 40 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len);
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 122 string randStr = rand_str(strLen); in HWTEST_F() local 123 handle = decoderDemo->NativeCreateByMime(randStr.c_str()); in HWTEST_F() 149 string randStr = rand_str(strLen); in HWTEST_F() local 150 handle = decoderDemo->NativeCreateByName(randStr.c_str()); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 123 string randStr = rand_str(strLen); in HWTEST_F() local 124 handle = encoderDemo->NativeCreateByMime(randStr.c_str()); in HWTEST_F() 149 string randStr = rand_str(strLen); in HWTEST_F() local 150 handle = encoderDemo->NativeCreateByName(randStr.c_str()); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/transmission/common/mock/include/ |
H A D | trans_common_mock.h | 31 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) = 0;
|
/foundation/communication/dsoftbus/adapter/common/include/ |
H A D | softbus_adapter_crypto.h | 75 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len);
|
/foundation/communication/dsoftbus/adapter/common/openssl/ |
H A D | softbus_adapter_crypto.c | 356 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument 358 if (randStr == NULL || len == 0) { in SoftBusGenerateRandomArray() 375 RAND_seed(randStr, (int32_t)len); in SoftBusGenerateRandomArray() 379 ret = RAND_bytes(randStr, (int32_t)len); in SoftBusGenerateRandomArray()
|
/foundation/communication/dsoftbus/adapter/common/mbedtls/ |
H A D | softbus_adapter_crypto.c | 219 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument 221 if (randStr == NULL || len == 0) { in SoftBusGenerateRandomArray() 251 ret = mbedtls_ctr_drbg_random(&ctrDrbg, randStr, len); in SoftBusGenerateRandomArray()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 121 string randStr = getRandStr(strLen); in HWTEST_F() local 122 encoderDemo->InnerCreateByMime(randStr.c_str()); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 122 string randStr = getRandStr(strLen); in HWTEST_F() local 123 decoderDemo->InnerCreateByMime(randStr.c_str()); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_service_mock.h | 84 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) = 0;
|