Home
last modified time | relevance | path

Searched refs:func (Results 1 - 25 of 304) sorted by relevance

12345678910>>...13

/base/security/dlp_permission_service/frameworks/test/mock/
H A Dopenssl_mock.cpp77 RandBytesFunc func = reinterpret_cast<RandBytesFunc>(GetOpensslLibFunc("RAND_bytes")); in RAND_bytes() local
78 if (func == nullptr) { in RAND_bytes()
81 return (*func)(buf, num); in RAND_bytes()
90 EvpAes128Ctr func = reinterpret_cast<EvpAes128Ctr>(GetOpensslLibFunc("EVP_aes_128_ctr")); in EVP_aes_128_ctr() local
91 if (func == nullptr) { in EVP_aes_128_ctr()
94 return (*func)(); in EVP_aes_128_ctr()
103 EvpAes192Ctr func = reinterpret_cast<EvpAes192Ctr>(GetOpensslLibFunc("EVP_aes_192_ctr")); in EVP_aes_192_ctr() local
104 if (func == nullptr) { in EVP_aes_192_ctr()
107 return (*func)(); in EVP_aes_192_ctr()
116 EvpAes256Ctr func in EVP_aes_256_ctr() local
129 ErrGetError func = reinterpret_cast<ErrGetError>(GetOpensslLibFunc("ERR_get_error")); ERR_get_error() local
142 ErrErrorStringN func = reinterpret_cast<ErrErrorStringN>(GetOpensslLibFunc("ERR_error_string_n")); ERR_error_string_n() local
155 EvpCipherCtxNew func = reinterpret_cast<EvpCipherCtxNew>(GetOpensslLibFunc("EVP_CIPHER_CTX_new")); EVP_CIPHER_CTX_new() local
169 EvpEncryptInitEx func = reinterpret_cast<EvpEncryptInitEx>(GetOpensslLibFunc("EVP_EncryptInit_ex")); EVP_EncryptInit_ex() local
183 EvpDecryptInitEx func = reinterpret_cast<EvpDecryptInitEx>(GetOpensslLibFunc("EVP_DecryptInit_ex")); EVP_DecryptInit_ex() local
196 EvpCipherCtxFree func = reinterpret_cast<EvpCipherCtxFree>(GetOpensslLibFunc("EVP_CIPHER_CTX_free")); EVP_CIPHER_CTX_free() local
209 EvpCipherCtxSetPadding func = EVP_CIPHER_CTX_set_padding() local
223 EvpEncryptUpdate func = EVP_EncryptUpdate() local
237 EvpEncryptFinalEx func = EVP_EncryptFinal_ex() local
251 EvpDecryptUpdate func = EVP_DecryptUpdate() local
265 EvpDecryptFinalEx func = EVP_DecryptFinal_ex() local
279 EvpSha256 func = EVP_sha256() local
293 EvpSha384 func = EVP_sha384() local
307 EvpSha512 func = EVP_sha512() local
322 EvpDigest func = EVP_Digest() local
336 EvpMDCtxNew func = EVP_MD_CTX_new() local
350 EvpDigestInitEx func = EVP_DigestInit_ex() local
364 EvpMdCtxSetFlags func = EVP_MD_CTX_set_flags() local
378 EvpMdCtxFree func = EVP_MD_CTX_free() local
392 EvpDigestUpdate func = EVP_DigestUpdate() local
406 EvpDigestFinalEx func = EVP_DigestFinal_ex() local
[all...]
H A Dfile_io_mock.cpp37 LseekFuncT func = reinterpret_cast<LseekFuncT>(dlsym(RTLD_NEXT, "lseek")); in lseek() local
38 if (func == nullptr) { in lseek()
41 return (*func)(fd, offset, whence); in lseek()
50 WriteFuncT func = reinterpret_cast<WriteFuncT>(dlsym(RTLD_NEXT, "write")); in write() local
51 if (func == nullptr) { in write()
54 return (*func)(fd, buf, count); in write()
63 FtruncateFuncT func = reinterpret_cast<FtruncateFuncT>(dlsym(RTLD_NEXT, "ftruncate")); in ftruncate() local
64 if (func == nullptr) { in ftruncate()
67 return (*func)(fd, length); in ftruncate()
77 MemcpyFuncT func in memcpy_s() local
[all...]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_mbedtls_engine.c47 Hmac func = (Hmac)GetAbility(HKS_CRYPTO_ABILITY_HMAC); in HksCryptoHalHmac() local
48 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmac()
49 return func(key, digestAlg, msg, mac); in HksCryptoHalHmac()
59 HmacInit func = (HmacInit)GetAbility(HKS_CRYPTO_ABILITY_HMAC_INIT); in HksCryptoHalHmacInit() local
60 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmacInit()
62 return func(ctx, key, digestAlg); in HksCryptoHalHmacInit()
72 HmacUpdate func = (HmacUpdate)GetAbility(HKS_CRYPTO_ABILITY_HMAC_UPDATE); in HksCryptoHalHmacUpdate() local
73 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmacUpdate()
75 return func(ctx, chunk); in HksCryptoHalHmacUpdate()
85 HmacFinal func in HksCryptoHalHmacFinal() local
93 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_HMAC_FREE_CTX); HksCryptoHalHmacFreeCtx() local
110 CmacInit func = (CmacInit)GetAbility(HKS_CRYPTO_ABILITY_CMAC_INIT); HksCryptoHalCmacInit() local
123 CmacUpdate func = (CmacUpdate)GetAbility(HKS_CRYPTO_ABILITY_CMAC_UPDATE); HksCryptoHalCmacUpdate() local
137 CmacFinal func = (CmacFinal)GetAbility(HKS_CRYPTO_ABILITY_CMAC_FINAL); HksCryptoHalCmacFinal() local
145 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_CMAC_FREE_CTX); HksCryptoHalCmacFreeCtx() local
158 Hash func = (Hash)GetAbility(HKS_CRYPTO_ABILITY_HASH); HksCryptoHalHash() local
165 HashInit func = (HashInit)GetAbility(HKS_CRYPTO_ABILITY_HASH_INIT); HksCryptoHalHashInit() local
178 HashUpdate func = (HashUpdate)GetAbility(HKS_CRYPTO_ABILITY_HASH_UPDATE); HksCryptoHalHashUpdate() local
191 HashFinal func = (HashFinal)GetAbility(HKS_CRYPTO_ABILITY_HASH_FINAL); HksCryptoHalHashFinal() local
199 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_HASH_FREE_CTX); HksCryptoHalHashFreeCtx() local
213 BnExpMod func = (BnExpMod)GetAbility(HKS_CRYPTO_ABILITY_BN_EXP_MOD); HksCryptoHalBnExpMod() local
226 GenerateKey func = (GenerateKey)GetAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(spec->algType)); HksCryptoHalGenerateKey() local
245 PubKey func = (PubKey)GetAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(key->keyAlg)); HksCryptoHalGetPubKey() local
254 DeriveKey func = (DeriveKey)GetAbility(HKS_CRYPTO_ABILITY_DERIVE_KEY(derivationSpec->algType)); HksCryptoHalDeriveKey() local
269 AgreeKey func = (AgreeKey)GetAbility(HKS_CRYPTO_ABILITY_AGREE_KEY(spec->algType)); HksCryptoHalAgreeKey() local
283 Sign func = (Sign)GetAbility(HKS_CRYPTO_ABILITY_SIGN(usageSpec->algType)); HksCryptoHalSign() local
297 Verify func = (Verify)GetAbility(HKS_CRYPTO_ABILITY_VERIFY(usageSpec->algType)); HksCryptoHalVerify() local
312 Sign func = (Sign)GetAbility(HKS_CRYPTO_ABILITY_SIGN_ISO_IEC_9796_2); HksCryptoHalSignIsoIec97962() local
326 Verify func = (Verify)GetAbility(HKS_CRYPTO_ABILITY_VERIFY_ISO_IEC_9796_2); HksCryptoHalVerifyIsoIec97962() local
334 FillRandom func = (FillRandom)GetAbility(HKS_CRYPTO_ABILITY_FILL_RANDOM); HksCryptoHalFillRandom() local
350 Encrypt func = (Encrypt)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT(usageSpec->algType)); HksCryptoHalEncrypt() local
360 EncryptInit func = (EncryptInit)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_INIT(usageSpec->algType)); HksCryptoHalEncryptInit() local
373 EncryptUpdate func = (EncryptUpdate)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_UPDATE(algtype)); HksCryptoHalEncryptUpdate() local
389 EncryptFinal func = (EncryptFinal)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FINAL(algtype)); HksCryptoHalEncryptFinal() local
397 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FREE_CTX(algtype)); HksCryptoHalEncryptFreeCtx() local
412 Decrypt func = (Decrypt)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT(usageSpec->algType)); HksCryptoHalDecrypt() local
422 DecryptInit func = (DecryptInit)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_INIT(usageSpec->algType)); HksCryptoHalDecryptInit() local
434 DecryptUpdate func = (DecryptUpdate)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_UPDATE(algtype)); HksCryptoHalDecryptUpdate() local
451 DecryptFinalDes func = (DecryptFinalDes)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_FINAL(algtype)); HksCryptoHalDecryptFinal() local
456 DecryptFinal func = (DecryptFinal)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_FINAL(algtype)); HksCryptoHalDecryptFinal() local
464 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_FREE_CTX(algtype)); HksCryptoHalDecryptFreeCtx() local
475 GetMainKey func = (GetMainKey)GetAbility(HKS_CRYPTO_ABILITY_GET_MAIN_KEY); HksCryptoHalGetMainKey() local
[all...]
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
H A DcJSON.c68 cJSON* (*func)(const cJSON* const object, const char* const string); in cJSON_GetObjectItem()
69 func = (cJSON* (*)(const cJSON* const object, const char* const string))dlsym(g_handle, "cJSON_GetObjectItem"); in cJSON_GetObjectItem()
70 if (func == NULL) { in cJSON_GetObjectItem()
73 cJSON* res = func(object, string); in cJSON_GetObjectItem()
83 cJSON_bool (*func)(const cJSON* const item); in cJSON_IsNumber()
84 func = (cJSON_bool (*)(const cJSON* const item))dlsym(g_handle, "cJSON_IsNumber"); in cJSON_IsNumber()
85 if (func == NULL) { in cJSON_IsNumber()
88 cJSON_bool res = func(item); in cJSON_IsNumber()
101 cJSON_bool (*func)(const cJSON* const item); in cJSON_IsString()
102 func in cJSON_IsString()
[all...]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_engine.c177 FillRandom func = (FillRandom)GetAbility(HKS_CRYPTO_ABILITY_FILL_RANDOM); in HksCryptoHalFillRandom() local
178 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalFillRandom()
179 return func(randomData); in HksCryptoHalFillRandom()
186 FillRandom func = (FillRandom)GetAbility(HKS_CRYPTO_ABILITY_FILL_PRI_RANDOM); in HksCryptoHalFillPrivRandom() local
187 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalFillPrivRandom()
188 return func(randomData); in HksCryptoHalFillPrivRandom()
205 PubKey func = (PubKey)GetAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(key->keyAlg)); in HksCryptoHalGetPubKey() local
206 HKS_IF_NULL_LOGE_RETURN(func, HKS_ERROR_INVALID_ARGUMENT, in HksCryptoHalGetPubKey()
207 "PubKey func is null, keyAlg:%" LOG_PUBLIC "d", key->keyAlg) in HksCryptoHalGetPubKey()
208 return func(keyI in HksCryptoHalGetPubKey()
218 Hmac func = (Hmac)GetAbility(HKS_CRYPTO_ABILITY_HMAC); HksCryptoHalHmac() local
230 HmacInit func = (HmacInit)GetAbility(HKS_CRYPTO_ABILITY_HMAC_INIT); HksCryptoHalHmacInit() local
243 HmacUpdate func = (HmacUpdate)GetAbility(HKS_CRYPTO_ABILITY_HMAC_UPDATE); HksCryptoHalHmacUpdate() local
256 HmacFinal func = (HmacFinal)GetAbility(HKS_CRYPTO_ABILITY_HMAC_FINAL); HksCryptoHalHmacFinal() local
264 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_HMAC_FREE_CTX); HksCryptoHalHmacFreeCtx() local
275 Hash func = (Hash)GetAbility(HKS_CRYPTO_ABILITY_HASH); HksCryptoHalHash() local
282 HashInit func = (HashInit)GetAbility(HKS_CRYPTO_ABILITY_HASH_INIT); HksCryptoHalHashInit() local
292 HashUpdate func = (HashUpdate)GetAbility(HKS_CRYPTO_ABILITY_HASH_UPDATE); HksCryptoHalHashUpdate() local
300 HashFinal func = (HashFinal)GetAbility(HKS_CRYPTO_ABILITY_HASH_FINAL); HksCryptoHalHashFinal() local
308 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_HASH_FREE_CTX); HksCryptoHalHashFreeCtx() local
320 BnExpMod func = (BnExpMod)GetAbility(HKS_CRYPTO_ABILITY_BN_EXP_MOD); HksCryptoHalBnExpMod() local
330 GenerateKey func = (GenerateKey)GetAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(spec->algType)); HksCryptoHalGenerateKey() local
341 AgreeKey func = (AgreeKey)GetAbility(HKS_CRYPTO_ABILITY_AGREE_KEY(spec->algType)); HksCryptoHalAgreeKey() local
352 Sign func = (Sign)GetAbility(HKS_CRYPTO_ABILITY_SIGN(usageSpec->algType)); HksCryptoHalSign() local
363 Verify func = (Verify)GetAbility(HKS_CRYPTO_ABILITY_VERIFY(usageSpec->algType)); HksCryptoHalVerify() local
374 DeriveKey func = (DeriveKey)GetAbility(HKS_CRYPTO_ABILITY_DERIVE_KEY(derivationSpec->algType)); HksCryptoHalDeriveKey() local
385 Encrypt func = (Encrypt)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT(usageSpec->algType)); HksCryptoHalEncrypt() local
399 EncryptInit func = (EncryptInit)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_INIT(usageSpec->algType)); HksCryptoHalEncryptInit() local
414 EncryptUpdate func = (EncryptUpdate)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_UPDATE(algtype)); HksCryptoHalEncryptUpdate() local
430 EncryptFinal func = (EncryptFinal)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FINAL(algtype)); HksCryptoHalEncryptFinal() local
438 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FREE_CTX(algtype)); HksCryptoHalEncryptFreeCtx() local
453 Decrypt func = (Decrypt)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT(usageSpec->algType)); HksCryptoHalDecrypt() local
464 DecryptInit func = (DecryptInit)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_INIT(usageSpec->algType)); HksCryptoHalDecryptInit() local
479 DecryptUpdate func = (DecryptUpdate)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_UPDATE(algtype)); HksCryptoHalDecryptUpdate() local
494 DecryptFinal func = (DecryptFinal)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_FINAL(algtype)); HksCryptoHalDecryptFinal() local
502 FreeCtx func = (FreeCtx)GetAbility(HKS_CRYPTO_ABILITY_DECRYPT_FREE_CTX(algtype)); HksCryptoHalDecryptFreeCtx() local
513 GetMainKey func = (GetMainKey)GetAbility(HKS_CRYPTO_ABILITY_GET_MAIN_KEY); HksCryptoHalGetMainKey() local
[all...]
/base/security/device_auth/frameworks/deviceauth_lite/source/log/
H A Dlog.c32 static void hc_logd(const char *tag, const char *func, const char *format, ...);
33 static void hc_logi(const char *tag, const char *func, const char *format, ...);
34 static void hc_logw(const char *tag, const char *func, const char *format, ...);
35 static void hc_loge(const char *tag, const char *func, const char *format, ...);
78 static void hc_logd(const char *tag, const char *func, const char *format, ...) in hc_logd() argument
81 (void)func; in hc_logd()
85 static void hc_logi(const char *tag, const char *func, const char *format, ...) in hc_logi() argument
88 (void)func; in hc_logi()
92 static void hc_logw(const char *tag, const char *func, const char *format, ...) in hc_logw() argument
95 (void)func; in hc_logw()
99 hc_loge(const char *tag, const char *func, const char *format, ...) hc_loge() argument
[all...]
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/tasks/
H A Dtask_imsa.h34 auto func = [=]() { in TaskImsaStartInput() local
37 actions_.emplace_back(std::make_unique<Action>(func)); in TaskImsaStartInput()
46 auto func = [=]() { in TaskImsaStopInput() local
49 actions_.emplace_back(std::make_unique<Action>(func)); in TaskImsaStopInput()
58 auto func = [=]() { in TaskImsaShowKeyboard() local
61 actions_.emplace_back(std::make_unique<Action>(func)); in TaskImsaShowKeyboard()
70 auto func = [=]() { in TaskImsaHideKeyboard() local
73 actions_.emplace_back(std::make_unique<Action>(func)); in TaskImsaHideKeyboard()
82 auto func = [=]() { in TaskImsaOnClientInactive() local
85 actions_.emplace_back(std::make_unique<Action>(func)); in TaskImsaOnClientInactive()
94 auto func = [=]() { TaskImsaInitInputCtrlChannel() local
106 auto func = [=]() { TaskImsaOnCursorUpdate() local
119 auto func = [=]() { TaskImsaOnSelectionChange() local
131 auto func = [=]() { TaskImsaAttributeChange() local
143 auto func = [=]() { TaskImsaStopInputService() local
155 auto func = [=]() { TaskImsaOnSetSubProperty() local
167 auto func = [=]() { TaskImsaSetCoreAndAgent() local
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/
H A Dfuse_mock.cpp56 void *func = dlsym(g_libfuseHandle, funcName); in GetLibfuseLibFunc() local
57 return func; in GetLibfuseLibFunc()
70 AddArgsT func = reinterpret_cast<AddArgsT>(GetLibfuseLibFunc(__func__)); in fuse_opt_add_arg() local
71 if (func == nullptr) { in fuse_opt_add_arg()
74 return (*func)(args, arg); in fuse_opt_add_arg()
87 FreeArgsT func = reinterpret_cast<FreeArgsT>(GetLibfuseLibFunc(__func__)); in fuse_opt_free_args() local
88 if (func == nullptr) { in fuse_opt_free_args()
91 (*func)(args); in fuse_opt_free_args()
104 NewSessionT func = reinterpret_cast<NewSessionT>(GetLibfuseLibFunc(__func__)); in fuse_session_new() local
105 if (func in fuse_session_new()
121 MountSessionT func = reinterpret_cast<MountSessionT>(GetLibfuseLibFunc(__func__)); fuse_session_mount() local
138 DestorySessionT func = reinterpret_cast<DestorySessionT>(GetLibfuseLibFunc(__func__)); fuse_session_destroy() local
155 LoopSessionT func = reinterpret_cast<LoopSessionT>(GetLibfuseLibFunc(__func__)); fuse_session_loop() local
172 FuseReplyErrT func = reinterpret_cast<FuseReplyErrT>(GetLibfuseLibFunc(__func__)); fuse_reply_err() local
189 FuseReplyEntryT func = reinterpret_cast<FuseReplyEntryT>(GetLibfuseLibFunc(__func__)); fuse_reply_entry() local
206 FuseReplyAttrT func = reinterpret_cast<FuseReplyAttrT>(GetLibfuseLibFunc(__func__)); fuse_reply_attr() local
223 FuseReplyOpenT func = reinterpret_cast<FuseReplyOpenT>(GetLibfuseLibFunc(__func__)); fuse_reply_open() local
240 FuseReplyBufT func = reinterpret_cast<FuseReplyBufT>(GetLibfuseLibFunc(__func__)); fuse_reply_buf() local
257 FuseReplyWriteT func = reinterpret_cast<FuseReplyWriteT>(GetLibfuseLibFunc(__func__)); fuse_reply_write() local
275 FuseAddDirentryT func = reinterpret_cast<FuseAddDirentryT>(GetLibfuseLibFunc(__func__)); fuse_add_direntry() local
[all...]
/base/security/device_auth/services/frameworks/inc/hiview_adapter/
H A Dhidump_adapter.h30 #define DEV_AUTH_REG_DUMP_FUNC(func)
31 #define DEV_AUTH_REG_PERFORM_DUMP_FUNC(func)
36 #define DEV_AUTH_REG_DUMP_FUNC(func) RegisterDumpFunc(func)
37 #define DEV_AUTH_REG_PERFORM_DUMP_FUNC(func) RegisterPerformDumpFunc(func)
45 void RegisterDumpFunc(DumpCallBack func);
46 void RegisterPerformDumpFunc(PerformanceDumpCallBack func);
/base/inputmethod/imf/test/fuzztest/settingsdatautils_fuzzer/
H A Dsettingsdatautils_fuzzer.cpp35 void FuzzCreateAndRegisterObserver(const std::string &key, SettingsDataObserver::CallbackFunc func) in FuzzCreateAndRegisterObserver() argument
37 SettingsDataUtils::GetInstance()->CreateAndRegisterObserver(key, func); in FuzzCreateAndRegisterObserver()
40 void FuzzRegisterObserver(const std::string &key, SettingsDataObserver::CallbackFunc &func) in FuzzRegisterObserver() argument
42 sptr<SettingsDataObserver> observer = new SettingsDataObserver(key, func); in FuzzRegisterObserver()
46 void FuzzUnregisterObserver(const std::string &key, SettingsDataObserver::CallbackFunc &func) in FuzzUnregisterObserver() argument
48 sptr<SettingsDataObserver> observer = new SettingsDataObserver(key, func); in FuzzUnregisterObserver()
63 SettingsDataObserver::CallbackFunc func; in LLVMFuzzerTestOneInput() local
67 OHOS::FuzzCreateAndRegisterObserver(fuzzedString, func); in LLVMFuzzerTestOneInput()
68 OHOS::FuzzRegisterObserver(fuzzedString, func); in LLVMFuzzerTestOneInput()
69 OHOS::FuzzUnregisterObserver(fuzzedString, func); in LLVMFuzzerTestOneInput()
[all...]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwind/
H A Dunwind_local_benchmark.cpp32 NOINLINE static size_t TestFunc5(size_t (*func)(void)) in TestFunc5() argument
34 return func(); in TestFunc5()
37 NOINLINE static size_t TestFunc4(size_t (*func)(void)) in TestFunc4() argument
39 return TestFunc5(func); in TestFunc4()
42 NOINLINE static size_t TestFunc3(size_t (*func)(void)) in TestFunc3() argument
44 return TestFunc4(func); in TestFunc3()
47 NOINLINE static size_t TestFunc2(size_t (*func)(void)) in TestFunc2() argument
49 return TestFunc3(func); in TestFunc2()
52 NOINLINE static size_t TestFunc1(size_t (*func)(void)) in TestFunc1() argument
54 return TestFunc2(func); in TestFunc1()
82 Run(benchmark::State& state, size_t (*func)(void)) Run() argument
[all...]
H A Dunwind_remote_benchmark.cpp33 NOINLINE static void TestFunc6(MAYBE_UNUSED void (*func)(void*)) in TestFunc6() argument
39 NOINLINE static void TestFunc5(void (*func)(void*)) in TestFunc5() argument
41 return TestFunc6(func); in TestFunc5()
44 NOINLINE static void TestFunc4(void (*func)(void*)) in TestFunc4() argument
46 return TestFunc5(func); in TestFunc4()
49 NOINLINE static void TestFunc3(void (*func)(void*)) in TestFunc3() argument
51 return TestFunc4(func); in TestFunc3()
54 NOINLINE static void TestFunc2(void (*func)(void*)) in TestFunc2() argument
56 return TestFunc3(func); in TestFunc2()
59 NOINLINE static void TestFunc1(void (*func)(voi argument
[all...]
/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/src/
H A Dsandbox_manager_client.cpp64 std::function<int32_t(sptr<ISandboxManager> &)> func = in CleanPersistPolicyByPath() local
66 return CallProxyWithRetry(func, __FUNCTION__); in CleanPersistPolicyByPath()
71 std::function<int32_t(sptr<ISandboxManager> &)> func = in PersistPolicy() local
73 return CallProxyWithRetry(func, __FUNCTION__); in PersistPolicy()
78 std::function<int32_t(sptr<ISandboxManager> &)> func = in UnPersistPolicy() local
80 return CallProxyWithRetry(func, __FUNCTION__); in UnPersistPolicy()
86 std::function<int32_t(sptr<ISandboxManager> &)> func = in PersistPolicyByTokenId() local
88 return CallProxyWithRetry(func, __FUNCTION__); in PersistPolicyByTokenId()
94 std::function<int32_t(sptr<ISandboxManager> &)> func = in UnPersistPolicyByTokenId() local
96 return CallProxyWithRetry(func, __FUNCTION_ in UnPersistPolicyByTokenId()
102 std::function<int32_t(sptr<ISandboxManager> &)> func = SetPolicy() local
109 std::function<int32_t(sptr<ISandboxManager> &)> func = UnSetPolicy() local
117 std::function<int32_t(sptr<ISandboxManager> &)> func = SetPolicyAsync() local
124 std::function<int32_t(sptr<ISandboxManager> &)> func = UnSetPolicyAsync() local
132 std::function<int32_t(sptr<ISandboxManager> &)> func = CheckPolicy() local
140 std::function<int32_t(sptr<ISandboxManager> &)> func = StartAccessingPolicy() local
147 std::function<int32_t(sptr<ISandboxManager> &)> func = StopAccessingPolicy() local
155 std::function<int32_t(sptr<ISandboxManager> &)> func = CheckPersistPolicy() local
162 std::function<int32_t(sptr<ISandboxManager> &)> func = StartAccessingByTokenId() local
169 std::function<int32_t(sptr<ISandboxManager> &)> func = UnSetAllPolicyByToken() local
209 CallProxyWithRetry( const std::function<int32_t(sptr<ISandboxManager> &)> &func, const char *funcName) CallProxyWithRetry() argument
[all...]
/base/web/webview/ohos_interface/ohos_glue/scripts/
H A Dmake_ctocpp_impl.py27 def ctocpp_make_impl_proto(cls, func):
29 parts = func.get_cpp_parts(True)
31 proto += 'ARK_WEB_GLOBAL ' + parts['retval'] + ' ' + func.get_name() + '(' + ', '.join(parts['args']) + ') {'
35 if isinstance(func, file_parser.obj_function_virtual):
37 if func.is_const():
39 proto += '::' + func.get_name() + '(' + ', '.join(parts['args']) + ')' + const + ' {'
43 def verify_ctocpp_func_args(func, retval_default):
45 args = func.get_arguments()
67 def restore_ctocpp_func_args(func):
69 args = func
[all...]
H A Dmake_file_base.py149 def get_func_hash_name(func, prefix):
150 args = func.get_arguments()
151 func_digest = prefix + '_' + func.get_capi_name() + ','.join(arg.get_raw_type() for arg in args)
160 for func in funcs:
161 name_list.append(func.get_capi_name())
196 def get_func_pointer_name(cls, func, prefix, suffix):
198 func_name = func.get_capi_name() + suffix
200 func_name = prefix + '_' + func.get_capi_name() + suffix
201 func_type = cls.get_name() + func.get_name() + 'Func' + suffix
208 def get_func_variable_name(func, suffi
[all...]
H A Dmake_cpptoc_impl.py27 def make_cpptoc_impl_proto(name, func, parts, flag):
28 if isinstance(func, file_parser.obj_function_virtual):
39 def verify_cpptoc_func_args(func, retval_default, macro_retval_default):
41 if isinstance(func, file_parser.obj_function_virtual):
45 args = func.get_arguments()
70 def restore_cpptoc_func_args(func):
72 args = func.get_arguments()
102 def translate_cpptoc_func_args(func):
105 args = func.get_arguments()
167 def make_cpptoc_function_impl(cls, name, func, defined_name
[all...]
H A Dmake_capi_header.py32 for func in funcs:
33 if func.get_retval().get_type().is_result_string():
37 new_list = make_file_base.get_func_name_count(func.get_capi_name(), old_list, new_list)
38 if new_list.count(func.get_capi_name()) != 0:
39 suffix = str(new_list.count(func.get_capi_name()))
41 result += '\n' + indent + 'ARK_WEB_EXPORT ' + func.get_capi_proto(defined_names, suffix) + ';\n'
52 for func in funcs:
54 if func.get_retval().get_type().is_result_string():
58 new_list = make_file_base.get_func_name_count(func.get_capi_name(), old_list, new_list)
59 if new_list.count(func
[all...]
/base/security/access_token/interfaces/innerkits/el5filekeymanager/src/
H A Del5_filekey_manager_client.cpp47 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { in AcquireAccess() local
50 return CallProxyWithRetry(func, __FUNCTION__); in AcquireAccess()
55 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { in ReleaseAccess() local
58 return CallProxyWithRetry(func, __FUNCTION__); in ReleaseAccess()
63 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { in GenerateAppKey() local
66 return CallProxyWithRetry(func, __FUNCTION__); in GenerateAppKey()
71 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { in DeleteAppKey() local
74 return CallProxyWithRetry(func, __FUNCTION__); in DeleteAppKey()
80 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { in GetUserAppKey() local
83 return CallProxyWithRetry(func, __FUNCTION_ in GetUserAppKey()
89 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { ChangeUserAppkeysLoadInfo() local
97 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { SetFilePathPolicy() local
105 std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> func = [&](sptr<El5FilekeyManagerInterface> &proxy) { RegisterCallback() local
139 CallProxyWithRetry( const std::function<int32_t(sptr<El5FilekeyManagerInterface> &)> &func, const char *funcName) CallProxyWithRetry() argument
[all...]
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
H A Dhuks_hdi.h51 #define HDI_CONVERTER_FUNC_GENERATEKEY(keyAlias, paramSet, keyIn, keyOut, ret, func) \
60 ret = (func)(HDI_ADAPTER_PARAM(keyAlias, &keyAliasCore), \
66 #define HDI_CONVERTER_FUNC_IMPORTKEY(keyAlias, key, paramSet, keyOut, ret, func) \
75 ret = (func)(HDI_ADAPTER_PARAM(keyAlias, &keyAliasCore), \
81 #define HDI_CONVERTER_FUNC_IMPORTWRAPPEDKEY(wrappedKeyAlias, key, wrappedKeyData, paramSet, keyOut, ret, func) \
92 ret = (func)(HDI_ADAPTER_PARAM(wrappingKeyAlias, &wrappedKeyDataCore), \
99 #define HDI_CONVERTER_FUNC_EXPORTPUBLICKEY(key, paramSet, keyOut, ret, func) \
106 ret = (func)(HDI_ADAPTER_PARAM(key, &keyCore), \
111 #define HDI_CONVERTER_FUNC_INIT(key, paramSet, handle, token, ret, func) \
120 ret = (func)(HDI_ADAPTER_PARA
[all...]
/base/powermgr/power_manager/services/native/src/setting/
H A Dsetting_helper.h41 static sptr<SettingObserver> RegisterSettingDisplayAcScreenOffTimeObserver(SettingObserver::UpdateFunc& func);
45 static sptr<SettingObserver> RegisterSettingDisplayDcScreenOffTimeObserver(SettingObserver::UpdateFunc& func);
49 static sptr<SettingObserver> RegisterSettingAcSuspendSourcesObserver(SettingObserver::UpdateFunc& func);
53 static sptr<SettingObserver> RegisterSettingDcSuspendSourcesObserver(SettingObserver::UpdateFunc& func);
57 static sptr<SettingObserver> RegisterSettingDisplayOffTimeObserver(SettingObserver::UpdateFunc& func);
58 static sptr<SettingObserver> RegisterSettingSuspendSourcesObserver(SettingObserver::UpdateFunc& func);
65 static sptr<SettingObserver> RegisterSettingAutoAdjustBrightnessObserver(SettingObserver::UpdateFunc& func);
71 static sptr<SettingObserver> RegisterSettingVibrationObserver(SettingObserver::UpdateFunc& func);
75 static sptr<SettingObserver> RegisterSettingWindowRotationObserver(SettingObserver::UpdateFunc& func);
79 static sptr<SettingObserver> RegisterSettingIntellVoiceObserver(SettingObserver::UpdateFunc& func);
[all...]
H A Dsetting_helper.cpp112 const std::string& key, SettingObserver::UpdateFunc& func) in RegisterSettingKeyObserver()
115 auto settingObserver = settingProvider.CreateObserver(key, func); in RegisterSettingKeyObserver()
156 void SettingHelper::RegisterSettingWakeupPickupObserver(SettingObserver::UpdateFunc& func) in RegisterSettingWakeupPickupObserver() argument
162 pickUpObserver_ = RegisterSettingKeyObserver(SETTING_POWER_WAKEUP_PICKUP_KEY, func); in RegisterSettingWakeupPickupObserver()
197 sptr<SettingObserver> SettingHelper::RegisterSettingDisplayAcScreenOffTimeObserver(SettingObserver::UpdateFunc& func) in RegisterSettingDisplayAcScreenOffTimeObserver() argument
199 return RegisterSettingKeyObserver(SETTING_DISPLAY_AC_OFF_TIME_KEY, func); in RegisterSettingDisplayAcScreenOffTimeObserver()
217 sptr<SettingObserver> SettingHelper::RegisterSettingDisplayDcScreenOffTimeObserver(SettingObserver::UpdateFunc& func) in RegisterSettingDisplayDcScreenOffTimeObserver() argument
219 return RegisterSettingKeyObserver(SETTING_DISPLAY_DC_OFF_TIME_KEY, func); in RegisterSettingDisplayDcScreenOffTimeObserver()
237 sptr<SettingObserver> SettingHelper::RegisterSettingDisplayOffTimeObserver(SettingObserver::UpdateFunc& func) in RegisterSettingDisplayOffTimeObserver() argument
239 return RegisterSettingKeyObserver(SETTING_DISPLAY_OFF_TIME_KEY, func); in RegisterSettingDisplayOffTimeObserver()
111 RegisterSettingKeyObserver( const std::string& key, SettingObserver::UpdateFunc& func) RegisterSettingKeyObserver() argument
258 RegisterSettingAutoAdjustBrightnessObserver(SettingObserver::UpdateFunc& func) RegisterSettingAutoAdjustBrightnessObserver() argument
288 RegisterSettingVibrationObserver(SettingObserver::UpdateFunc& func) RegisterSettingVibrationObserver() argument
308 RegisterSettingWindowRotationObserver(SettingObserver::UpdateFunc& func) RegisterSettingWindowRotationObserver() argument
328 RegisterSettingIntellVoiceObserver(SettingObserver::UpdateFunc& func) RegisterSettingIntellVoiceObserver() argument
334 RegisterSettingAcSuspendSourcesObserver(SettingObserver::UpdateFunc& func) RegisterSettingAcSuspendSourcesObserver() argument
360 RegisterSettingDcSuspendSourcesObserver(SettingObserver::UpdateFunc& func) RegisterSettingDcSuspendSourcesObserver() argument
380 RegisterSettingSuspendSourcesObserver(SettingObserver::UpdateFunc& func) RegisterSettingSuspendSourcesObserver() argument
401 RegisterSettingWakeupSourcesObserver(SettingObserver::UpdateFunc& func) RegisterSettingWakeupSourcesObserver() argument
444 RegisterSettingWakeupDoubleObserver(SettingObserver::UpdateFunc& func) RegisterSettingWakeupDoubleObserver() argument
473 RegisterSettingPowerModeObserver(SettingObserver::UpdateFunc& func) RegisterSettingPowerModeObserver() argument
510 RegisterSettingWakeupLidObserver(SettingObserver::UpdateFunc& func) RegisterSettingWakeupLidObserver() argument
[all...]
/base/usb/usb_manager/test/fuzztest/usbmgrsetcurrentfunctions_fuzzer/
H A Dusbmgrsetcurrentfunctions_fuzzer.cpp30 int32_t func = *reinterpret_cast<const int32_t *>(data); in UsbMgrSetCurrentFunctionsFuzzTest() local
31 if (func <= MAX_FUNC_NUM) { in UsbMgrSetCurrentFunctionsFuzzTest()
32 func += MAX_FUNC_NUM; in UsbMgrSetCurrentFunctionsFuzzTest()
35 if (usbSrvClient.SetCurrentFunctions(func) == UEC_OK) { in UsbMgrSetCurrentFunctionsFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrusbfunctionstostring_fuzzer/
H A Dusbmgrusbfunctionstostring_fuzzer.cpp30 int32_t func = *reinterpret_cast<const int32_t *>(data); in UsbMgrUsbFunctionsToStringFuzzTest() local
31 if (func <= MAX_FUNC_NUM) { in UsbMgrUsbFunctionsToStringFuzzTest()
32 func += MAX_FUNC_NUM; in UsbMgrUsbFunctionsToStringFuzzTest()
35 if (usbSrvClient.UsbFunctionsToString(func) != "") { in UsbMgrUsbFunctionsToStringFuzzTest()
/base/security/certificate_framework/frameworks/core/life/
H A Dcf_api.c30 CfObjectAbilityFunc func; member
42 int32_t ret = tmp->func.get(tmp->base, in, out); in CfLifeGet()
54 int32_t ret = tmp->func.check(tmp->base, in, out); in CfLifeCheck()
66 tmp->func.destroy(&tmp->base); in CfLifeDestroy()
79 CfObjectAbilityFunc *func = (CfObjectAbilityFunc *)GetAbility(CF_ABILITY(CF_ABILITY_TYPE_OBJECT, objType)); in CfCreate() local
80 if ((func == NULL) || (func->base.type != CF_MAGIC(CF_MAGIC_TYPE_OBJ_FUNC, objType))) { in CfCreate()
81 CF_LOG_E("invalid func type"); in CfCreate()
91 int32_t ret = func->create(in, &tmp->base); in CfCreate()
97 (void)memcpy_s(&tmp->func, sizeo in CfCreate()
[all...]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/
H A Dunwind_local_benchmark.cpp44 NOINLINE static size_t TestFunc5(size_t (*func)(void*), void* data) in TestFunc5() argument
46 return func(data); in TestFunc5()
49 NOINLINE static size_t TestFunc4(size_t (*func)(void*), void* data) in TestFunc4() argument
51 return TestFunc5(func, data); in TestFunc4()
54 NOINLINE static size_t TestFunc3(size_t (*func)(void*), void* data) in TestFunc3() argument
56 return TestFunc4(func, data); in TestFunc3()
59 NOINLINE static size_t TestFunc2(size_t (*func)(void*), void* data) in TestFunc2() argument
61 return TestFunc3(func, data); in TestFunc2()
64 NOINLINE static size_t TestFunc1(size_t (*func)(void*), void* data) in TestFunc1() argument
66 return TestFunc2(func, dat in TestFunc1()
91 Run(benchmark::State& state, size_t (*func)(void*), void* data) Run() argument
[all...]

Completed in 11 milliseconds

12345678910>>...13