HomeSort by relevance Sort by last modified time
    Searched refs:hashmap (Results 1 - 25 of 32) sorted by null

1 2

  /external/e2fsprogs/contrib/android/
hashmap.h 7 struct hashmap { struct
22 struct hashmap *hashmap_create(uint32_t(*hash_fct)(const void*),
24 void hashmap_add(struct hashmap *h, void *data, const void *key);
25 void *hashmap_lookup(struct hashmap *h, const void *key);
26 void *hashmap_iter_in_order(struct hashmap *h, struct hashmap_entry **it);
27 void hashmap_del(struct hashmap *h, struct hashmap_entry *e);
28 void hashmap_free(struct hashmap *h);
base_fs.h 5 # include "hashmap.h"
16 struct hashmap *basefs_parse(const char *file, const char *mountpoint);
hashmap.c 1 #include "hashmap.h"
15 struct hashmap *hashmap_create(uint32_t(*hash_fct)(const void*),
18 struct hashmap *h = calloc(sizeof(struct hashmap) +
27 void hashmap_add(struct hashmap *h, void *data, const void *key)
46 void *hashmap_lookup(struct hashmap *h, const void *key)
57 void *hashmap_iter_in_order(struct hashmap *h, struct hashmap_entry **it)
63 void hashmap_free(struct hashmap *h)
basefs_allocator.c 5 #include "hashmap.h"
9 struct hashmap *entries;
41 struct hashmap *entries = basefs_parse(file, mountpoint);
base_fs.c 102 struct hashmap *basefs_parse(const char *file, const char *mountpoint)
105 struct hashmap *entries = NULL;
  /art/test/004-InterfaceTest/src/
Main.java 18 import java.util.HashMap;
22 public static long test_virtual(HashMap map) {
45 HashMap hashmap = new HashMap(); local
46 long elapsed = test_virtual(hashmap);
48 hashmap.clear();
50 elapsed = test_interface(hashmap);
  /external/guava/guava-tests/test/com/google/common/collect/
ForwardingMapTest.java 36 import java.util.HashMap;
217 forward().putAll(new HashMap<String, Boolean>());
352 Map<String, String> hashmap = Maps.newHashMap();
353 hashmap.put("foo", "bar");
354 hashmap.put(null, "baz");
362 assertEquals(hashmap.toString(), forwardingMap.toString());
366 Map<String, String> hashmap = Maps.newHashMap();
367 hashmap.put("foo", "bar");
368 hashmap.put("baz", null);
376 assertEquals(hashmap.toString(), forwardingMap.toString())
    [all...]
MapsTest.java 52 import java.util.HashMap;
82 HashMap<Integer, Integer> map = Maps.newHashMap();
91 HashMap<String, Integer> map = Maps.newHashMap(original);
100 HashMap<Object, Object> map =
117 * As of jdk7u40, HashMap has an empty-map optimization. The argument to
118 * new HashMap(int) is noted, but the initial table is a zero-length array.
129 HashMap<Integer, Void> map1 = Maps.newHashMapWithExpectedSize(size);
147 HashMap<Integer, Void> map2 = Maps.newHashMapWithExpectedSize(size);
155 private static int bucketsOf(HashMap<?, ?> hashMap) throws Exception
327 Map<String, String> hashmap = Maps.newHashMap(); local
335 Map<String, String> hashmap = Maps.newHashMap(); local
    [all...]
  /external/protobuf/ruby/ext/google/protobuf_c/
map.c 206 * this may be an ordinary Ruby hashmap or another Map instance with identical
210 * value_type). The contents of this initial hashmap or Map instance are
221 // hashmap).
397 // Ruby hashmap's :[]= method also returns the inserted value.
705 VALUE Map_merge(VALUE _self, VALUE hashmap) {
707 return Map_merge_into_self(dupped, hashmap);
716 VALUE Map_merge_into_self(VALUE _self, VALUE hashmap) {
717 if (TYPE(hashmap) == T_HASH) {
718 rb_hash_foreach(hashmap, merge_into_self_callback, _self);
719 } else if (RB_TYPE_P(hashmap, T_DATA) && RTYPEDDATA_P(hashmap) &
    [all...]
protobuf.h 75 keep a global hashmap, accessed by get_def_obj/add_def_obj below.
425 VALUE Map_merge(VALUE _self, VALUE hashmap);
426 VALUE Map_merge_into_self(VALUE _self, VALUE hashmap);
  /external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
RubyMap.java 51 import java.util.HashMap;
94 * this may be an ordinary Ruby hashmap or another Map instance with identical
98 * value_type). The contents of this initial hashmap or Map instance are
106 this.table = new HashMap<IRubyObject, IRubyObject>();
378 protected RubyMap mergeIntoSelf(final ThreadContext context, IRubyObject hashmap) {
379 if (hashmap instanceof RubyHash) {
380 ((RubyHash) hashmap).visitAll(new RubyHash.Visitor() {
386 } else if (hashmap instanceof RubyMap) {
387 RubyMap other = (RubyMap) hashmap;
416 newMap.table = new HashMap<IRubyObject, IRubyObject>()
    [all...]
  /prebuilts/go/darwin-x86/misc/cgo/testplugin/src/issue18676/
main.go 15 // the itab hashmap yet (so the entire linked list must be searched).
  /prebuilts/go/linux-x86/misc/cgo/testplugin/src/issue18676/
main.go 15 // the itab hashmap yet (so the entire linked list must be searched).
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
MapsTest.java 43 import java.util.HashMap;
70 HashMap<Integer, Integer> map = Maps.newHashMap();
79 HashMap<String, Integer> map = Maps.newHashMap(original);
88 HashMap<Object, Object> map =
160 HashMap<Object, Object> map
251 HashMap<SomeEnum, Integer> original = Maps.newHashMap();
266 Map<String, String> hashmap = Maps.newHashMap(); local
267 hashmap.put("foo", "bar");
268 hashmap.put(null, "baz");
270 assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap))
274 Map<String, String> hashmap = Maps.newHashMap(); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
HashMapTest.java 33 import java.util.HashMap;
95 HashMap hm;
104 * java.util.HashMap#HashMap()
107 // Test for method java.util.HashMap()
108 new Support_MapTest2(new HashMap()).runTest();
110 HashMap hm2 = new HashMap();
111 assertEquals("Created incorrect HashMap", 0, hm2.size());
115 * java.util.HashMap#HashMap(int
229 HashMap hashmap = new HashMap(); local
    [all...]
  /frameworks/base/media/jni/
android_media_MediaDrm.cpp 139 HashmapFields hashmap; member in struct:android::fields_t
460 import java.util.HashMap;
465 HashMap<k, v> hm;
472 JNIEnv *env, jobject &hashMap, bool* pIsOK) {
477 jobject entrySet = env->CallObjectMethod(hashMap, gFields.hashmap.entrySet);
488 "HashMap key is not a String");
498 "HashMap value is not a String");
524 jobject hashMap = env->NewObject(clazz, gFields.hashmap.init)
    [all...]
  /system/core/libcutils/
str_parms.c 27 #include <cutils/hashmap.h>
35 * because its ownership is released to other object like a hashmap,
49 Hashmap *map;
241 // For new keys, hashmap takes ownership of tmp_key and tmp_val.
246 // For existing keys, hashmap takes ownership of tmp_val.
hashmap.c 17 #include <cutils/hashmap.h>
34 struct Hashmap {
43 Hashmap* hashmapCreate(size_t initialCapacity,
48 Hashmap* map = malloc(sizeof(Hashmap));
83 static inline int hashKey(Hashmap* map, void* key) {
96 size_t hashmapSize(Hashmap* map) {
104 static void expandIfNecessary(Hashmap* map) {
135 void hashmapLock(Hashmap* map) {
139 void hashmapUnlock(Hashmap* map)
    [all...]
  /hardware/qcom/audio/hal/audio_extn/
sndmonitor.c 40 #include <cutils/hashmap.h>
88 Hashmap * listeners; // from stream * -> callback func
560 Hashmap * map = sndmonitor.listeners;
569 Hashmap * map = sndmonitor.listeners;
  /prebuilts/go/darwin-x86/src/cmd/compile/internal/gc/
reflect.go 71 // Make sure this stays in sync with ../../../../runtime/hashmap.go!
151 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
178 // Make sure this stays in sync with ../../../../runtime/hashmap.go!
227 // must match ../../../../runtime/hashmap.go:hiter.
    [all...]
walk.go 806 if t.Val().Width <= 128 { // Check ../../runtime/hashmap.go:maxValueSize before changing.
836 if w := t.Val().Width; w <= 1024 { // 1024 must match ../../../../runtime/hashmap.go:maxZero
1166 if t.Val().Width <= 128 { // Check ../../runtime/hashmap.go:maxValueSize before changing.
1184 if w := t.Val().Width; w <= 1024 { // 1024 must match ../../../../runtime/hashmap.go:maxZero
    [all...]
  /prebuilts/go/linux-x86/src/cmd/compile/internal/gc/
reflect.go 71 // Make sure this stays in sync with ../../../../runtime/hashmap.go!
151 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
178 // Make sure this stays in sync with ../../../../runtime/hashmap.go!
227 // must match ../../../../runtime/hashmap.go:hiter.
    [all...]
walk.go 806 if t.Val().Width <= 128 { // Check ../../runtime/hashmap.go:maxValueSize before changing.
836 if w := t.Val().Width; w <= 1024 { // 1024 must match ../../../../runtime/hashmap.go:maxZero
1166 if t.Val().Width <= 128 { // Check ../../runtime/hashmap.go:maxValueSize before changing.
1184 if w := t.Val().Width; w <= 1024 { // 1024 must match ../../../../runtime/hashmap.go:maxZero
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/link/internal/ld/
dwarf.go 651 // synthesizemaptypes is way too closely married to runtime/hashmap.c
688 // compute size info like hashmap.c does.
    [all...]
  /prebuilts/go/linux-x86/src/cmd/link/internal/ld/
dwarf.go 651 // synthesizemaptypes is way too closely married to runtime/hashmap.c
688 // compute size info like hashmap.c does.
    [all...]

Completed in 1508 milliseconds

1 2