Home
last modified time | relevance | path

Searched refs:randStr (Results 1 - 23 of 23) sorted by relevance

/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_installer.h45 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 Dbundle_installer.h40 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 Dbundle_util.h52 static void DeleteJsonFile(const char *bundleName, const char *randStr);
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Ddsoftbus_aes_crypto_test.cpp53 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 Ddsoftbus_crypto_test.cpp244 * @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 Dbundle_installer.cpp113 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 Dgt_bundle_installer.cpp195 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 Dbundle_util.cpp302 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 Dlnn_node_weight_test.cpp89 unsigned char randStr = 20;
91 .WillRepeatedly(DoAll(SetArgPointee<0>(randStr), Return(SOFTBUS_OK)));
H A Dlnn_service_mock.cpp213 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 Dtrans_common_mock.cpp46 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 Dethernet_client_fuzzer.cpp293 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 Dlnn_local_ledger_deps_mock.cpp91 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) in SoftBusGenerateRandomArray() argument
93 return GetLocalLedgerDepsInterface()->SoftBusGenerateRandomArray(randStr, len); in SoftBusGenerateRandomArray()
H A Dlnn_local_ledger_deps_mock.h40 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len);
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeFuzzTest.cpp122 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 DNativeFuzzTest.cpp123 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 Dtrans_common_mock.h31 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) = 0;
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_crypto.h75 int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len);
/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c356 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 Dsoftbus_adapter_crypto.c219 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 DInnerFuzzTest.cpp121 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 DInnerFuzzTest.cpp122 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 Dlnn_service_mock.h84 virtual int32_t SoftBusGenerateRandomArray(unsigned char *randStr, uint32_t len) = 0;

Completed in 15 milliseconds