/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/startup/init/services/include/ |
D | init_hashmap.h | 61 int hashCode, const void *key, HashKeyCompare keyCompare);
|
/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 | 539 int hashCode = CheckWatchTriggerTimeout(); variable 540 EXPECT_EQ(hashCode, 0);
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | advanced_notification_service.h | 831 void TriggerAutoDelete(std::string hashCode);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | common.cpp | 4256 napi_value hashCode = nullptr; in GetHashCodes() local 4257 napi_get_element(env, value, i, &hashCode); in GetHashCodes() 4258 NAPI_CALL(env, napi_typeof(env, hashCode, &valuetype)); in GetHashCodes() 4265 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 | 4649 void AdvancedNotificationService::TriggerAutoDelete(std::string hashCode) in TriggerAutoDelete() argument 4657 if (record->notification->GetKey() == hashCode) { in TriggerAutoDelete()
|