| /base/startup/init/services/utils/ |
| 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, 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/ |
| 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] = 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/ |
| 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 + 1) << 16) | cmd->cmdId; // 16 left shift in PluginGetCmdIndex()
|
| /base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/ |
| D | app_event_observer_dao.cpp | 59 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()
|
| D | app_event_store.cpp | 192 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/ |
| 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);
|
| D | app_event_store.h | 42 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/ |
| D | init_hashmap.h | 61 int hashCode, const void *key, HashKeyCompare keyCompare);
|
| /base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
| D | app_event_observer_mgr.cpp | 53 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/ |
| D | Fetcher.java | 237 public int hashCode() { in hashCode() method in Fetcher 238 return datas.hashCode() + languageTag.hashCode(); in hashCode()
|
| D | Utils.java | 178 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/ |
| D | paramservice_unittest.cpp | 538 int hashCode = CheckWatchTriggerTimeout(); variable 539 EXPECT_EQ(hashCode, 0);
|
| /base/notification/distributed_notification_service/frameworks/js/napi/src/ |
| D | common.cpp | 1026 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/ |
| D | advanced_notification_service.cpp | 1555 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/ |
| D | advanced_notification_service.h | 970 void TriggerAutoDelete(const std::string &hashCode, int32_t reason);
|