/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_rename_part1_test.cpp | 165 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 214 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 261 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 311 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 363 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 406 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 449 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 489 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 532 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); 573 ret = BuildParamSetWithParam(¶mSet, &storageLevel, sizeof(storageLevel) / sizeof(HksParam)); [all …]
|
H A D | hks_rename_part2_test.cpp | 60 static int32_t TestGenerateKey(const struct HksBlob *keyAlias, uint32_t storageLevel) in TestGenerateKey() argument 72 { .tag = HKS_TAG_AUTH_STORAGE_LEVEL, .uint32Param = storageLevel }, in TestGenerateKey() 167 struct HksParam storageLevel[] = { variable 171 …ret = BuildParamSetWithParam(¶mSet, storageLevel, sizeof(storageLevel) / sizeof(storageLevel[0… 214 struct HksParam storageLevel[] = { variable 218 …ret = BuildParamSetWithParam(¶mSet, storageLevel, sizeof(storageLevel) / sizeof(storageLevel[0…
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_manager.c | 62 *storageLevel = storageLevelParam->uint32Param; in GetStorageLevelAndStoreUserIdParam() 66 HksTransferFileIfNeed(*storageLevel, *storeUserId); in GetStorageLevelAndStoreUserIdParam() 165 static bool GetIsPlainPath(uint32_t storageLevel) in GetIsPlainPath() argument 167 (void)storageLevel; in GetIsPlainPath() 169 switch (storageLevel) { in GetIsPlainPath() 186 int32_t storageLevel, struct HksStoreMaterial *outMaterial) in GetPathType() argument 202 switch (storageLevel) { in GetPathType() 220 HKS_LOG_E("invalid storage level %" LOG_PUBLIC "d.", storageLevel); in GetPathType() 238 uint32_t storageLevel = HKS_AUTH_STORAGE_LEVEL_DE; in InitStorageMaterial() local 248 bool isPlainPath = GetIsPlainPath(storageLevel); in InitStorageMaterial() [all …]
|
H A D | hks_storage_utils.c | 358 static int32_t CheckIfBothTagExist(const struct HksParam *storageLevel, in CheckIfBothTagExist() argument 361 if (storageLevel->uint32Param == HKS_AUTH_STORAGE_LEVEL_DE) { in CheckIfBothTagExist() 377 const struct HksParam *storageLevel) in CheckIfOnlyStorageLevelTagExist() argument 379 if (storageLevel->uint32Param != HKS_AUTH_STORAGE_LEVEL_DE && in CheckIfOnlyStorageLevelTagExist() 381 storageLevel->uint32Param != HKS_AUTH_STORAGE_LEVEL_OLD_DE_TMP && in CheckIfOnlyStorageLevelTagExist() 401 struct HksParam *storageLevel = NULL; in CheckSpecificUserIdAndStorageLevel() local 404 …bool storageLevelExist = HksGetParam(paramSet, HKS_TAG_AUTH_STORAGE_LEVEL, &storageLevel) == HKS_S… in CheckSpecificUserIdAndStorageLevel() 407 ret = CheckIfBothTagExist(storageLevel, specificUserId); in CheckSpecificUserIdAndStorageLevel() 409 ret = CheckIfOnlyStorageLevelTagExist(processInfo, storageLevel); in CheckSpecificUserIdAndStorageLevel()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/ |
H A D | hks_osaccount_check.cpp | 48 extern "C" void HksTransferFileIfNeed(const uint32_t storageLevel, const int32_t storeUserId) in HksTransferFileIfNeed() argument 56 if (storageLevel == HKS_AUTH_STORAGE_LEVEL_CE && HksIsOsAccountVerified(storeUserId)) { in HksTransferFileIfNeed()
|
H A D | hks_osaccount_check.h | 25 void HksTransferFileIfNeed(const uint32_t storageLevel, const int32_t storeUserId);
|
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/extension/src/ |
H A D | js_work_scheduler_extension.cpp | 271 void SetStorageInfo(napi_env env, napi_value workInfoData, WorkCondition::Storage storageLevel) in SetStorageInfo() argument 273 if (storageLevel != WorkCondition::Storage::STORAGE_UNKNOWN) { in SetStorageInfo() 275 napi_create_int32(env, storageLevel, &storageLevelValue); in SetStorageInfo() 357 WorkCondition::Storage storageLevel = workInfo.GetStorageLevel(); in OnWorkStart() local 381 SetStorageInfo(env, workInfoData, storageLevel); in OnWorkStart() 409 WorkCondition::Storage storageLevel = workInfo.GetStorageLevel(); in OnWorkStop() local 433 SetStorageInfo(env, workInfoData, storageLevel); in OnWorkStop()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
H A D | hks_core_service_test.cpp | 113 struct HksParam storageLevel = { in ConstructNewParamSet() local 117 ret = HksAddParams(*newParamSet, &storageLevel, 1); in ConstructNewParamSet() 519 …struct HksParam storageLevel = { .tag = HKS_TAG_AUTH_STORAGE_LEVEL, .uint32Param = HKS_AUTH_STORAG… variable 520 ret = BuildParamSetWithParam(¶mSet, &storageLevel); 661 …struct HksParam storageLevel = { .tag = HKS_TAG_AUTH_STORAGE_LEVEL, .uint32Param = HKS_AUTH_STORAG… variable 662 ret = BuildParamSetWithParam(¶mSet, &storageLevel);
|
/ohos5.0/base/security/huks/test/unittest/huks_common_test/src/ |
H A D | hks_test_adapt_for_de.c | 65 struct HksParam storageLevel = { in ConstructNewParamSet() local 69 ret = HksAddParams(*newParamSet, &storageLevel, 1); in ConstructNewParamSet()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/core/src/ |
H A D | hks_client_service_test.cpp | 111 struct HksParam storageLevel = { in ConstructNewParamSet() local 115 ret = HksAddParams(*newParamSet, &storageLevel, 1); in ConstructNewParamSet()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
H A D | hks_client_service.c | 119 …rageLevelForSkipUpgradeApp(const struct HksProcessInfo *processInfo, struct HksParam *storageLevel) in GetStorageLevelForSkipUpgradeApp() argument 128 storageLevel->uint32Param = HKS_AUTH_STORAGE_LEVEL_OLD_DE_TMP; in GetStorageLevelForSkipUpgradeApp() 136 struct HksParam *storageLevel = NULL; in AddStorageLevelToParamSet() local 137 int32_t ret = HksGetParam(paramSet, HKS_TAG_AUTH_STORAGE_LEVEL, &storageLevel); in AddStorageLevelToParamSet()
|