Home
last modified time | relevance | path

Searched refs:hashCode (Results 1 - 25 of 36) sorted by relevance

12

/base/startup/init/services/utils/
H A Dinit_hashmap.c81 int hashCode = tab->nodeHash(node); in OH_HashMapAdd() local
82 hashCode = (hashCode < 0) ? -hashCode : hashCode; in OH_HashMapAdd()
83 hashCode = hashCode % tab->maxBucket; in OH_HashMapAdd()
84 INIT_ERROR_CHECK(hashCode < tab->maxBucket, return -1, "Invalid hashcode %d %d", tab->maxBucket, hashCode); in OH_HashMapAdd()
87 HashNode *tmp = GetHashNodeByNode(tab, tab->buckets[hashCode], nod in OH_HashMapAdd()
101 int hashCode = tab->keyHash(key); OH_HashMapRemove() local
127 int hashCode = tab->keyHash(key); OH_HashMapGet() local
160 OH_HashMapFind(HashMapHandle handle, int hashCode, const void *key, HashKeyCompare keyCompare) OH_HashMapFind() argument
[all...]
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dselinux_map.c98 int hashCode = GroupNodeGetNodeHashCode(node); in HashMapAdd() local
99 hashCode = (hashCode < 0) ? -hashCode : hashCode; in HashMapAdd()
100 hashCode = hashCode % MAX_BUCKET; in HashMapAdd()
103 HashNode *tmp = GetHashNodeByNode(handle->buckets[hashCode], node); in HashMapAdd()
107 node->next = handle->buckets[hashCode]; in HashMapAdd()
108 handle->buckets[hashCode] in HashMapAdd()
118 int hashCode = GenerateHashCode(key, len); HashMapGet() local
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
H A Dapp_event_observer_dao.cpp62 int64_t AppEventObserverDao::Insert(const std::string& observer, int64_t hashCode) in Insert() argument
66 bucket.PutLong(Observers::FIELD_HASH, hashCode); in Insert()
74 int64_t AppEventObserverDao::QuerySeq(const std::string& observer, int64_t hashCode) in QuerySeq() argument
78 predicates.EqualTo(Observers::FIELD_HASH, hashCode); in QuerySeq()
82 observer.c_str(), hashCode); in QuerySeq()
90 observerSeq, observer.c_str(), hashCode); in QuerySeq()
H A Dapp_event_store.cpp219 int64_t AppEventStore::InsertObserver(const std::string& observer, int64_t hashCode) in InsertObserver() argument
225 return appEventObserverDao_->Insert(observer, hashCode); in InsertObserver()
441 int64_t AppEventStore::QueryObserverSeq(const std::string& observer, int64_t hashCode) in QueryObserverSeq() argument
447 return appEventObserverDao_->QuerySeq(observer, hashCode); in QueryObserverSeq()
/base/startup/init/services/init/standard/
H A Dinit_cmdexecutor.c160 int hashCode = (((unsigned int)index >> 16) & 0x0000ffff) - 1; // 16 left shift in GetPluginCmdByIndex() local
163 hashCode, (const void *)&cmdId, CompareCmdId); in GetPluginCmdByIndex()
219 int hashCode = GenerateHashCode(cmdName); in PluginGetCmdIndex() local
220 hashCode = (hashCode < 0) ? -hashCode : hashCode; in PluginGetCmdIndex()
221 hashCode = hashCode % GROUP_HASHMAP_BUCKET; in PluginGetCmdIndex()
222 *index = ((hashCode in PluginGetCmdIndex()
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/include/
H A Dapp_event_observer_dao.h30 int64_t Insert(const std::string& observer, int64_t hashCode);
31 int64_t QuerySeq(const std::string& observer, int64_t hashCode);
H A Dapp_event_store.h45 int64_t InsertObserver(const std::string& observer, int64_t hashCode = 0);
54 int64_t QueryObserverSeq(const std::string& observer, int64_t hashCode = 0);
/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_cert_chain_test_ex.cpp149 CfResult ret = g_certChainP7b->hashCode(g_certChainP7b, &blob); in HWTEST_F()
154 ret = g_certChainP7b->hashCode(g_certChainP7b, &blob); in HWTEST_F()
161 ret = g_certChainP7b->hashCode(&certChain, &blob); in HWTEST_F()
164 ret = g_certChainP7b->hashCode(NULL, &blob); in HWTEST_F()
167 ret = g_certChainP7b->hashCode(g_certChainP7b, NULL); in HWTEST_F()
170 ret = g_certChainP7b->hashCode(NULL, NULL); in HWTEST_F()
177 ret = g_certChainP7b->hashCode(g_certChainP7b, &blob); in HWTEST_F()
185 ret = g_certChainP7b->hashCode(g_certChainP7b, &blob); in HWTEST_F()
191 ret = g_certChainP7b->hashCode(g_certChainP7b, &blob); in HWTEST_F()
H A Dcrypto_x509_crl_test_part2.cpp394 CfResult ret = g_x509Crl->hashCode(g_x509Crl, &blob); in HWTEST_F()
402 ret = g_x509Crl->hashCode(&invalidCrl, &blob); in HWTEST_F()
405 ret = g_x509Crl->hashCode(NULL, &blob); in HWTEST_F()
408 ret = g_x509Crl->hashCode(g_x509Crl, NULL); in HWTEST_F()
411 ret = g_x509Crl->hashCode(NULL, NULL); in HWTEST_F()
475 CfResult ret = g_crlEntry->hashCode(g_crlEntry, &blob); in HWTEST_F()
483 ret = g_crlEntry->hashCode(&invalidCrlEntry, &blob); in HWTEST_F()
486 ret = g_crlEntry->hashCode(NULL, &blob); in HWTEST_F()
489 ret = g_crlEntry->hashCode(g_crlEntry, NULL); in HWTEST_F()
492 ret = g_crlEntry->hashCode(NUL in HWTEST_F()
[all...]
H A Dcrypto_x509_certificate_test_part3.cpp896 CfResult ret = g_x509CertExtAttrObj->hashCode(g_x509CertExtAttrObj, &blob); in HWTEST_F()
901 ret = g_x509CertExtAttrObj->hashCode(g_x509CertExtAttrObj, &blob); in HWTEST_F()
907 ret = g_x509CertExtAttrObj->hashCode(g_x509CertExtAttrObj, &blob); in HWTEST_F()
913 ret = g_x509CertExtAttrObj->hashCode(g_x509CertExtAttrObj, &blob); in HWTEST_F()
920 ret = g_x509CertExtAttrObj->hashCode(&invalidCert, &blob); in HWTEST_F()
923 ret = g_x509CertExtAttrObj->hashCode(NULL, &blob); in HWTEST_F()
926 ret = g_x509CertExtAttrObj->hashCode(g_x509CertExtAttrObj, NULL); in HWTEST_F()
929 ret = g_x509CertExtAttrObj->hashCode(NULL, NULL); in HWTEST_F()
/base/security/certificate_framework/interfaces/inner_api/certificate/
H A Dx509_crl_entry.h52 /** Get the hashCode of x509 CRL Entry. */
53 CfResult (*hashCode)(HcfX509CrlEntry *self, CfBlob *out); member
H A Dx509_cert_chain.h43 /** Get the hashCode of Cert Chain. */
44 CfResult (*hashCode)(HcfCertChain *self, CfBlob *out); member
H A Dx509_certificate.h98 /** Get the hashCode of ceritificate. */
99 CfResult (*hashCode)(HcfX509Certificate *self, CfBlob *out); member
H A Dx509_crl.h84 /** Get the hashCode of crl. */
85 CfResult (*hashCode)(HcfX509Crl *self, CfBlob *out); member
/base/startup/init/interfaces/innerkits/include/
H A Dinit_hashmap.h61 int hashCode, const void *key, HashKeyCompare keyCompare);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dapp_event_observer_mgr.cpp86 const std::string& name, int64_t hashCode) in InitObserverFromDb()
88 int64_t observerSeq = AppEventStore::GetInstance().QueryObserverSeq(name, hashCode); in InitObserverFromDb()
91 name.c_str(), hashCode); in InitObserverFromDb()
101 if (hashCode == 0) { in InitObserverFromDb()
85 InitObserverFromDb(std::shared_ptr<AppEventObserver> observer, const std::string& name, int64_t hashCode) InitObserverFromDb() argument
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
H A DFetcher.java246 public int hashCode() { in hashCode() method in Fetcher
247 return datas.hashCode() + languageTag.hashCode(); in hashCode()
H A DUtils.java176 * @param hashCode reserved for future use
181 public static void writeHeader(DataOutputStream out, int hashCode, int localesCount, in writeHeader() argument
183 out.writeInt(hashCode); // reserved hashcode in writeHeader()
/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/
H A Dx509certchain_fuzzer.cpp164 (void)certChain->hashCode(certChain, &blob); in TestHashCode()
169 (void)certChain->hashCode(&testCertChain, &blob); in TestHashCode()
170 (void)certChain->hashCode(nullptr, &blob); in TestHashCode()
171 (void)certChain->hashCode(certChain, nullptr); in TestHashCode()
172 (void)certChain->hashCode(nullptr, nullptr); in TestHashCode()
/base/security/certificate_framework/test/fuzztest/v1.0/x509certificate_fuzzer/
H A Dx509certificate_fuzzer.cpp153 (void)x509CertObj->hashCode(x509CertObj, &hashCodeOut); in TestQueryName()
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
H A Dx509_cert_chain.c188 impl->base.hashCode = HashCode; in HcfCertChainCreate()
/base/security/certificate_framework/test/fuzztest/v1.0/x509crl_fuzzer/
H A Dx509crl_fuzzer.cpp167 (void)x509CrlPem->hashCode(x509CrlPem, &hashCodeBlob); in TestX509CrlPemName()
224 entry->hashCode(entry, &hashCodeBlob); in TestX509CrlEntryName()
/base/startup/init/test/unittest/param/
H A Dparamservice_unittest.cpp535 int hashCode = CheckWatchTriggerTimeout(); in HWTEST_F() local
536 EXPECT_EQ(hashCode, 0); in HWTEST_F()
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp792 napi_value hashCode = nullptr; in GetHashCodes() local
793 napi_get_element(env, value, i, &hashCode); in GetHashCodes()
794 NAPI_CALL(env, napi_typeof(env, hashCode, &valuetype)); in GetHashCodes()
801 NAPI_CALL(env, napi_get_value_string_utf8(env, hashCode, str, STR_MAX_SIZE - 1, &strLen)); in GetHashCodes()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h200 char* hashCode; member

Completed in 45 milliseconds

12