Home
last modified time | relevance | path

Searched refs:hashCode (Results 1 – 15 of 15) sorted by relevance

/base/startup/init/services/utils/
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, h… in OH_HashMapAdd()
87 HashNode *tmp = GetHashNodeByNode(tab, tab->buckets[hashCode], node); in OH_HashMapAdd()
92 node->next = tab->buckets[hashCode]; in OH_HashMapAdd()
93 tab->buckets[hashCode] = node; in OH_HashMapAdd()
101 int hashCode = tab->keyHash(key); in OH_HashMapRemove() local
102 hashCode = (hashCode < 0) ? -hashCode : hashCode; in OH_HashMapRemove()
103 hashCode = hashCode % tab->maxBucket; in OH_HashMapRemove()
[all …]
/base/security/selinux_adapter/interfaces/policycoreutils/src/
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] = node; in HashMapAdd()
114 int hashCode = GenerateHashCode(key, len); in HashMapGet() local
115 hashCode = (hashCode < 0) ? -hashCode : hashCode; in HashMapGet()
116 hashCode = hashCode % MAX_BUCKET; in HashMapGet()
118 return GetHashNodeByKey(handle->buckets[hashCode], key); in HashMapGet()
/base/startup/init/services/init/standard/
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 + 1) << 16) | cmd->cmdId; // 16 left shift in PluginGetCmdIndex()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
Dapp_event_observer_dao.cpp59 int64_t AppEventObserverDao::Insert(const std::string& observer, int64_t hashCode) in Insert() argument
63 bucket.PutLong(Observers::FIELD_HASH, hashCode); in Insert()
71 int64_t AppEventObserverDao::QuerySeq(const std::string& observer, int64_t hashCode) in QuerySeq() argument
75 predicates.EqualTo(Observers::FIELD_HASH, hashCode); in QuerySeq()
79 observer.c_str(), hashCode); in QuerySeq()
87 observerSeq, observer.c_str(), hashCode); in QuerySeq()
Dapp_event_store.cpp192 int64_t AppEventStore::InsertObserver(const std::string& observer, int64_t hashCode) in InsertObserver() argument
199 return appEventObserverDao_->Insert(observer, hashCode); in InsertObserver()
353 int64_t AppEventStore::QueryObserverSeq(const std::string& observer, int64_t hashCode) in QueryObserverSeq() argument
360 return appEventObserverDao_->QuerySeq(observer, hashCode); in QueryObserverSeq()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/include/
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);
Dapp_event_store.h42 int64_t InsertObserver(const std::string& observer, int64_t hashCode = 0);
50 int64_t QueryObserverSeq(const std::string& observer, int64_t hashCode = 0);
/base/startup/init/interfaces/innerkits/include/
Dinit_hashmap.h61 int hashCode, const void *key, HashKeyCompare keyCompare);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
Dapp_event_observer_mgr.cpp53 const std::string& name, int64_t hashCode) in InitObserverFromDb() argument
55 int64_t observerSeq = AppEventStore::GetInstance().QueryObserverSeq(name, hashCode); in InitObserverFromDb()
58 name.c_str(), hashCode); in InitObserverFromDb()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DFetcher.java237 public int hashCode() { in hashCode() method in Fetcher
238 return datas.hashCode() + languageTag.hashCode(); in hashCode()
DUtils.java178 public static void writeHeader(DataOutputStream out, int hashCode, int localesCount, in writeHeader() argument
180 out.writeInt(hashCode); // reserved hashcode in writeHeader()
/base/startup/init/test/unittest/param/
Dparamservice_unittest.cpp538 int hashCode = CheckWatchTriggerTimeout(); variable
539 EXPECT_EQ(hashCode, 0);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon.cpp1026 napi_value hashCode = nullptr; in GetHashCodes() local
1027 napi_get_element(env, value, i, &hashCode); in GetHashCodes()
1028 NAPI_CALL(env, napi_typeof(env, hashCode, &valuetype)); in GetHashCodes()
1035 NAPI_CALL(env, napi_get_value_string_utf8(env, hashCode, str, STR_MAX_SIZE - 1, &strLen)); in GetHashCodes()
/base/notification/distributed_notification_service/services/ans/src/
Dadvanced_notification_service.cpp1555 void AdvancedNotificationService::TriggerAutoDelete(const std::string &hashCode, int32_t reason) in TriggerAutoDelete() argument
1564 if (record->notification->GetKey() == hashCode) { in TriggerAutoDelete()
/base/notification/distributed_notification_service/services/ans/include/
Dadvanced_notification_service.h970 void TriggerAutoDelete(const std::string &hashCode, int32_t reason);