Home
last modified time | relevance | path

Searched refs:HashTab (Results 1 - 5 of 5) sorted by relevance

/base/startup/init/services/utils/
H A Dinit_hashmap.c27 } HashTab; typedef
36 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode*) * info->maxBucket); in OH_HashMapCreate()
49 static HashNode *GetHashNodeByNode(const HashTab *tab, const HashNode *root, const HashNode *new) in GetHashNodeByNode()
62 static HashNode *GetHashNodeByKey(const HashTab *tab, const HashNode *root, const void *key, HashKeyCompare keyCompare) in GetHashNodeByKey()
80 HashTab *tab = (HashTab *)handle; in OH_HashMapAdd()
100 HashTab *tab = (HashTab *)handl in OH_HashMapRemove()
[all...]
/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dselinux_map.h35 } HashTab; typedef
42 HashTab *handle;
58 int32_t HashMapCreate(HashTab **handle);
59 void HashMapDestroy(HashTab *handle);
60 int32_t HashMapAdd(HashTab *handle, HashNode *hashNode);
61 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len);
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dselinux_map.c55 int32_t HashMapCreate(HashTab **handle) in HashMapCreate()
61 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode *) * MAX_BUCKET); in HashMapCreate()
93 int32_t HashMapAdd(HashTab *handle, HashNode *node) in HashMapAdd()
112 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len) in HashMapGet()
138 void HashMapDestroy(HashTab *handle) in HashMapDestroy()
/base/security/selinux_adapter/test/unittest/parameter_static/
H A Dunit_test.cpp77 * @tc.desc: Test 'int32_t HashMapCreate(HashTab **handle)' with invalid params.
88 * @tc.desc: Test 'int32_t HashMapCreate(HashTab **handle)' with valid params.
94 HashTab *handle = nullptr; in HWTEST_F()
101 * @tc.desc: Test 'void HashMapDestroy(HashTab *handle)' with handle nullptr.
107 HashTab *handle = nullptr; in HWTEST_F()
114 * @tc.desc: Test 'void HashMapDestroy(HashTab *handle)' with handle valid.
120 HashTab *handle = nullptr; in HWTEST_F()
134 * @tc.desc: Test 'int32_t HashMapAdd(HashTab *handle, HashNode *node)' with handle nullptr
148 * @tc.desc: Test 'int32_t HashMapAdd(HashTab *handle, HashNode *node)' with node nullptr
154 HashTab *handl in HWTEST_F()
[all...]
/base/startup/init/test/unittest/loopevent/
H A Dloopevent_unittest.cpp37 using HashTab = struct {

Completed in 3 milliseconds