Home
last modified time | relevance | path

Searched refs:hashCode (Results 1 – 10 of 10) 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/startup/init/services/include/
Dinit_hashmap.h61 int hashCode, const void *key, HashKeyCompare keyCompare);
/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.cpp539 int hashCode = CheckWatchTriggerTimeout(); variable
540 EXPECT_EQ(hashCode, 0);
/base/notification/distributed_notification_service/services/ans/include/
Dadvanced_notification_service.h831 void TriggerAutoDelete(std::string hashCode);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon.cpp4256 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/
Dadvanced_notification_service.cpp4649 void AdvancedNotificationService::TriggerAutoDelete(std::string hashCode) in TriggerAutoDelete() argument
4657 if (record->notification->GetKey() == hashCode) { in TriggerAutoDelete()