/base/startup/init/services/utils/ |
H A D | init_hashmap.c | 81 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 D | selinux_map.c | 98 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 D | app_event_observer_dao.cpp | 62 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 D | app_event_store.cpp | 219 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 D | init_cmdexecutor.c | 160 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 D | app_event_observer_dao.h | 30 int64_t Insert(const std::string& observer, int64_t hashCode);
31 int64_t QuerySeq(const std::string& observer, int64_t hashCode);
|
H A D | app_event_store.h | 45 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 D | crypto_x509_cert_chain_test_ex.cpp | 149 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 D | crypto_x509_crl_test_part2.cpp | 394 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 D | crypto_x509_certificate_test_part3.cpp | 896 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 D | x509_crl_entry.h | 52 /** Get the hashCode of x509 CRL Entry. */ 53 CfResult (*hashCode)(HcfX509CrlEntry *self, CfBlob *out); member
|
H A D | x509_cert_chain.h | 43 /** Get the hashCode of Cert Chain. */ 44 CfResult (*hashCode)(HcfCertChain *self, CfBlob *out); member
|
H A D | x509_certificate.h | 98 /** Get the hashCode of ceritificate. */ 99 CfResult (*hashCode)(HcfX509Certificate *self, CfBlob *out); member
|
H A D | x509_crl.h | 84 /** Get the hashCode of crl. */ 85 CfResult (*hashCode)(HcfX509Crl *self, CfBlob *out); member
|
/base/startup/init/interfaces/innerkits/include/ |
H A D | init_hashmap.h | 61 int hashCode, const void *key, HashKeyCompare keyCompare);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
H A D | app_event_observer_mgr.cpp | 86 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 D | Fetcher.java | 246 public int hashCode() { in hashCode() method in Fetcher 247 return datas.hashCode() + languageTag.hashCode(); in hashCode()
|
H A D | Utils.java | 176 * @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 D | x509certchain_fuzzer.cpp | 164 (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 D | x509certificate_fuzzer.cpp | 153 (void)x509CertObj->hashCode(x509CertObj, &hashCodeOut); in TestQueryName()
|
/base/security/certificate_framework/frameworks/core/v1.0/certificate/ |
H A D | x509_cert_chain.c | 188 impl->base.hashCode = HashCode; in HcfCertChainCreate()
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509crl_fuzzer/ |
H A D | x509crl_fuzzer.cpp | 167 (void)x509CrlPem->hashCode(x509CrlPem, &hashCodeBlob); in TestX509CrlPemName() 224 entry->hashCode(entry, &hashCodeBlob); in TestX509CrlEntryName()
|
/base/startup/init/test/unittest/param/ |
H A D | paramservice_unittest.cpp | 535 int hashCode = CheckWatchTriggerTimeout(); in HWTEST_F() local 536 EXPECT_EQ(hashCode, 0); in HWTEST_F()
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 792 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 D | notification_utils.h | 200 char* hashCode; member
|