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

1 2

  /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/avahi/avahi-core/
cache.c 44 t = avahi_hashmap_lookup(c->hashmap, e->record->key);
47 avahi_hashmap_replace(c->hashmap, t->record->key, t);
49 avahi_hashmap_remove(c->hashmap, e->record->key);
79 if (!(c->hashmap = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, NULL, NULL))) {
100 avahi_hashmap_free(c->hashmap);
111 return avahi_hashmap_lookup(c->hashmap, k);
328 avahi_hashmap_replace(c->hashmap, r->key, e);
355 avahi_hashmap_replace(c->hashmap, e->record->key, first);
412 avahi_hashmap_foreach(c->hashmap, dump_callback, &data);
cache.h 29 #include "hashmap.h"
70 AvahiHashmap *hashmap; member in struct:AvahiCache
Android.mk 32 hashmap.c \
hashmap.c 31 #include "hashmap.h"
38 AvahiHashmap *hashmap; member in struct:Entry
143 e->hashmap = m;
177 e->hashmap = m;
iface.h 63 AvahiHashmap *hashmap; member in struct:AvahiInterfaceMonitor
iface.c 320 avahi_hashmap_remove(hw->monitor->hashmap, &hw->index);
400 avahi_hashmap_insert(m->hashmap, &hw->index, hw);
497 m->hashmap = avahi_hashmap_new(avahi_int_hash, avahi_int_equal, NULL, NULL);
522 if (m->hashmap)
523 avahi_hashmap_free(m->hashmap);
551 return avahi_hashmap_lookup(m->hashmap, &idx);
  /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/avahi/tests/
c-plus-plus-test.cc 50 #include <avahi-core/hashmap.h>
  /system/core/libcutils/
Android.mk 24 hashmap.c \
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...]
  /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
459 import java.util.HashMap;
464 HashMap<k, v> hm;
471 JNIEnv *env, jobject &hashMap, bool* pIsOK) {
476 jobject entrySet = env->CallObjectMethod(hashMap, gFields.hashmap.entrySet);
487 "HashMap key is not a String");
497 "HashMap value is not a String");
523 jobject hashMap = env->NewObject(clazz, gFields.hashmap.init)
    [all...]
  /hardware/qcom/audio/hal/audio_extn/
sndmonitor.c 40 #include <cutils/hashmap.h>
88 Hashmap * listeners; // from stream * -> callback func
556 Hashmap * map = sndmonitor.listeners;
565 Hashmap * map = sndmonitor.listeners;
  /prebuilts/go/darwin-x86/pkg/bootstrap/src/bootstrap/compile/internal/gc/
reflect.go 115 // Make sure this stays in sync with ../../runtime/hashmap.go!
189 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
220 // Make sure this stays in sync with ../../runtime/hashmap.go!
271 // must match ../../runtime/hashmap.go:hash_iter.
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/compile/internal/gc/
reflect.go 112 // Make sure this stays in sync with ../../runtime/hashmap.go!
186 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
217 // Make sure this stays in sync with ../../runtime/hashmap.go!
268 // must match ../../runtime/hashmap.go:hash_iter.
    [all...]
  /prebuilts/go/linux-x86/pkg/bootstrap/src/bootstrap/compile/internal/gc/
reflect.go 115 // Make sure this stays in sync with ../../runtime/hashmap.go!
189 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
220 // Make sure this stays in sync with ../../runtime/hashmap.go!
271 // must match ../../runtime/hashmap.go:hash_iter.
    [all...]
  /prebuilts/go/linux-x86/src/cmd/compile/internal/gc/
reflect.go 112 // Make sure this stays in sync with ../../runtime/hashmap.go!
186 // See comment on hmap.overflow in ../../../../runtime/hashmap.go.
217 // Make sure this stays in sync with ../../runtime/hashmap.go!
268 // must match ../../runtime/hashmap.go:hash_iter.
    [all...]
  /prebuilts/go/darwin-x86/pkg/bootstrap/src/bootstrap/link/internal/ld/
dwarf.go 1235 // synthesizemaptypes is way too closely married to runtime/hashmap.c
1271 // compute size info like hashmap.c does.
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/link/internal/ld/
dwarf.go 1232 // synthesizemaptypes is way too closely married to runtime/hashmap.c
1268 // compute size info like hashmap.c does.
    [all...]
  /prebuilts/go/linux-x86/pkg/bootstrap/src/bootstrap/link/internal/ld/
dwarf.go 1235 // synthesizemaptypes is way too closely married to runtime/hashmap.c
1271 // compute size info like hashmap.c does.
    [all...]
  /prebuilts/go/linux-x86/src/cmd/link/internal/ld/
dwarf.go 1232 // synthesizemaptypes is way too closely married to runtime/hashmap.c
1268 // compute size info like hashmap.c does.
    [all...]

Completed in 2301 milliseconds

1 2