/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableMapKeySet.java | 21 import java.util.Map.Entry; 33 private final ImmutableMap<K, V> map; field in class:ImmutableMapKeySet 35 ImmutableMapKeySet(ImmutableMap<K, V> map) { 36 this.map = map; 41 return map.size(); 51 return map.containsKey(object); 56 final ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
|
/external/v8/src/ |
contexts-inl.h | 85 Map* map = this->map(); local 86 return map == map->GetHeap()->native_context_map(); 91 Map* map = this->map(); local 92 return map == map->GetHeap()->function_context_map() 97 Map* map = this->map(); local 103 Map* map = this->map(); local 109 Map* map = this->map(); local 115 Map* map = this->map(); local 121 Map* map = this->map(); local [all...] |
field-index-inl.h | 14 inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) { 17 DCHECK(map == NULL || 18 index < (map->GetInObjectPropertyOffset(0) / kPointerSize + 19 map->GetInObjectProperties())); 24 inline FieldIndex FieldIndex::ForPropertyIndex(Map* map, 27 DCHECK(map->instance_type() >= FIRST_NONSTRING_TYPE); 28 int inobject_properties = map->GetInObjectProperties(); 32 first_inobject_offset = map->GetInObjectPropertyOffset(0) [all...] |
/libcore/ojluni/src/main/java/java/beans/ |
ChangeListenerMap.java | 33 import java.util.Map; 34 import java.util.Map.Entry; 48 private Map<String, L[]> map; field in class:ChangeListenerMap 78 if (this.map == null) { 79 this.map = new HashMap<String, L[]>(); 81 L[] array = this.map.get(name); 91 this.map.put(name, clone); 103 if (this.map != null) { 104 L[] array = this.map.get(name) [all...] |
/system/core/liblog/ |
event_tag_map.c | 40 * Map. 53 static int processFile(EventTagMap* map); 54 static int countMapLines(const EventTagMap* map); 55 static int parseMapLines(EventTagMap* map); 57 static int sortTags(EventTagMap* map); 61 * Open the map file and allocate a structure to manage it. 78 fprintf(stderr, "%s: unable to open map '%s': %s\n", 86 fprintf(stderr, "%s: unable to seek map '%s'\n", OUT_TAG, fileName); 112 * Close the map. 114 LIBLOG_ABI_PUBLIC void android_closeEventTagMap(EventTagMap* map) [all...] |
/external/llvm/unittests/ADT/ |
IntervalMapTest.cpp | 19 // Empty map tests 22 UUMap map(allocator); 23 EXPECT_TRUE(map.empty()); 25 // Lookup on empty map. 26 EXPECT_EQ(0u, map.lookup(0)); 27 EXPECT_EQ(7u, map.lookup(0, 7)); 28 EXPECT_EQ(0u, map.lookup(~0u-1)); 29 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); 32 EXPECT_TRUE(map.begin() == map.begin()) [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
TreeSubMapTest.java | 13 import java.util.Map; 34 * Returns a new map from Integers 1-5 to Strings "A"-"E". 37 TreeMap map = new TreeMap(); local 38 assertTrue(map.isEmpty()); 39 map.put(zero, "Z"); 40 map.put(one, "A"); 41 map.put(five, "E"); 42 map.put(three, "C"); 43 map.put(two, "B"); 44 map.put(four, "D") 52 TreeMap map = new TreeMap(); local 61 TreeMap map = new TreeMap(); local 74 TreeMap map = new TreeMap(); local 83 NavigableMap map = map5(); local 105 NavigableMap map = map5(); local 114 NavigableMap map = map5(); local 124 NavigableMap map = map5(); local 135 NavigableMap map = map5(); local 144 NavigableMap map = map5(); local 152 NavigableMap map = map5(); local 160 NavigableMap map = map5(); local 174 NavigableMap map = map5(); local [all...] |
ConcurrentSkipListMapTest.java | 14 import java.util.Map; 37 * Returns a new map from Integers 1-5 to Strings "A"-"E". 40 ConcurrentSkipListMap map = new ConcurrentSkipListMap(); local 41 assertTrue(map.isEmpty()); 42 map.put(one, "A"); 43 map.put(five, "E"); 44 map.put(three, "C"); 45 map.put(two, "B"); 46 map.put(four, "D"); 47 assertFalse(map.isEmpty()) 56 ConcurrentSkipListMap map = map5(); local 65 ConcurrentSkipListMap map = map5(); local 87 ConcurrentSkipListMap map = map5(); local 96 ConcurrentSkipListMap map = map5(); local 106 ConcurrentSkipListMap map = map5(); local 117 ConcurrentSkipListMap map = map5(); local 126 ConcurrentSkipListMap map = map5(); local 134 ConcurrentSkipListMap map = map5(); local 142 ConcurrentSkipListMap map = map5(); local 155 ConcurrentSkipListMap map = map5(); local 168 ConcurrentSkipListMap map = map5(); local 182 ConcurrentSkipListMap map = map5(); local 220 ConcurrentSkipListMap map = map5(); local 239 ConcurrentSkipListMap map = map5(); local [all...] |
ConcurrentSkipListSubMapTest.java | 13 import java.util.Map; 35 * Returns a new map from Integers 1-5 to Strings "A"-"E". 38 ConcurrentSkipListMap map = new ConcurrentSkipListMap(); local 39 assertTrue(map.isEmpty()); 40 map.put(zero, "Z"); 41 map.put(one, "A"); 42 map.put(five, "E"); 43 map.put(three, "C"); 44 map.put(two, "B"); 45 map.put(four, "D") 56 ConcurrentSkipListMap map = new ConcurrentSkipListMap(); local 69 ConcurrentSkipListMap map = new ConcurrentSkipListMap(); local 75 ConcurrentSkipListMap map = new ConcurrentSkipListMap(); local 84 ConcurrentNavigableMap map = map5(); local 106 ConcurrentNavigableMap map = map5(); local 115 ConcurrentNavigableMap map = map5(); local 125 ConcurrentNavigableMap map = map5(); local 136 ConcurrentNavigableMap map = map5(); local 145 ConcurrentNavigableMap map = map5(); local 153 ConcurrentNavigableMap map = map5(); local 161 ConcurrentNavigableMap map = map5(); local 175 ConcurrentNavigableMap map = map5(); local [all...] |
ConcurrentHashMapTest.java | 17 import java.util.Map; 37 * Returns a new map from Integers 1-5 to Strings "A"-"E". 40 ConcurrentHashMap map = new ConcurrentHashMap<Integer, String>(5); local 41 assertTrue(map.isEmpty()); 42 map.put(one, "A"); 43 map.put(two, "B"); 44 map.put(three, "C"); 45 map.put(four, "D"); 46 map.put(five, "E"); 47 assertFalse(map.isEmpty()) 184 ConcurrentHashMap<Object, Object> map = local 217 ConcurrentHashMap map = map5(); local 239 ConcurrentHashMap<Integer,String> map = map5(); local 250 ConcurrentHashMap map = map5(); local 259 ConcurrentHashMap map = map5(); local 268 ConcurrentHashMap map = map5(); local 278 ConcurrentHashMap map = map5(); local 293 ConcurrentHashMap map = map5(); local 305 ConcurrentHashMap map = map5(); local 314 ConcurrentHashMap map = map5(); local 328 ConcurrentHashMap map = map5(); local 342 ConcurrentHashMap map = map5(); local 355 ConcurrentHashMap map = map5(); local 371 ConcurrentHashMap map = map5(); local 385 ConcurrentHashMap map = map5(); local 399 ConcurrentHashMap map = map5(); local 419 ConcurrentHashMap map = map5(); local 433 ConcurrentHashMap map = map5(); local 442 ConcurrentHashMap map = map5(); local 450 ConcurrentHashMap map = map5(); local 459 ConcurrentHashMap map = map5(); local 468 ConcurrentHashMap map = map5(); local 478 ConcurrentHashMap map = map5(); local 488 ConcurrentHashMap map = map5(); local 498 ConcurrentHashMap map = map5(); local 511 ConcurrentHashMap map = map5(); local 521 ConcurrentHashMap map = map5(); local 794 ConcurrentHashMap map = new ConcurrentHashMap(2, 5.0f, 1); local [all...] |
/external/icu/icu4c/source/test/intltest/ |
pluralmaptest.cpp | 41 PluralMapForPluralMapTest &map); 90 PluralMapForPluralMapTest map; local 91 addVariant(PluralMapBase::OTHER, "pickles", map); 92 addVariant(PluralMapBase::ONE, "pickle", map); 93 addVariant(PluralMapBase::FEW, "picklefew", map); 94 assertEquals("", "pickles", map.get(PluralMapBase::OTHER)); 95 assertEquals("", "pickle", map.get(PluralMapBase::ONE)); 96 assertEquals("", "picklefew", map.get(PluralMapBase::FEW)); 97 assertEquals("", "pickles", map.get(PluralMapBase::MANY)); 98 assertEquals("", "pickles", map.get(PluralMapBase::NONE)) 110 PluralMapForPluralMapTest map; local 146 PluralMapForPluralMapTest map; local 155 PluralMapForPluralMapTest map; local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_UnmodifiableMapTest.java | 22 import java.util.Map; 28 Map<String, Integer> map; field in class:Support_UnmodifiableMapTest 30 // must be a map containing the string keys "0"-"99" paired with the Integer 37 public Support_UnmodifiableMapTest(String p1, Map<String, Integer> m) { 39 map = m; 45 assertTrue("UnmodifiableMapTest - Should contain the key \"0\"", map 47 assertTrue("UnmodifiableMapTest - Should contain the key \"50\"", map 50 !map.containsKey("100")); 53 assertTrue("UnmodifiableMapTest - Should contain the value 0", map [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ImmutableMapEntrySet.java | 23 import java.util.Map.Entry; 37 abstract ImmutableMap<K, V> map(); method in class:ImmutableMapEntrySet 41 return map().size(); 48 V value = map().get(entry.getKey()); 56 return map().isPartialView(); 62 return new EntrySetSerializedForm<K, V>(map()); 67 final ImmutableMap<K, V> map; field in class:ImmutableMapEntrySet.EntrySetSerializedForm 68 EntrySetSerializedForm(ImmutableMap<K, V> map) { 69 this.map = map; [all...] |
RegularImmutableMultiset.java | 21 import java.util.Map; 35 private final transient ImmutableMap<E, Integer> map; field in class:RegularImmutableMultiset 38 RegularImmutableMultiset(ImmutableMap<E, Integer> map, int size) { 39 this.map = map; 45 return map.isPartialView(); 50 Integer value = map.get(element); 61 return map.containsKey(element); 66 return map.keySet(); 71 Map.Entry<E, Integer> mapEntry = map.entrySet().asList().get(index) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
AbstractMultimapAsMapImplementsMapTest.java | 23 import java.util.Map; 62 * this particular Map implementation, because {@code map.get()} returns a 64 * Thus, the expectation doesn't hold that {@code map.remove(x)} returns the 65 * same value which {@code map.get(x)} did immediately beforehand. 68 final Map<String, Collection<Integer>> map; local 71 map = makePopulatedMap(); 75 keyToRemove = map.keySet().iterator().next(); 77 int initialSize = map.size() [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_span.c | 38 GLboolean map) 42 if (map) 47 framebuffer_map_unmap(struct gl_context *ctx, struct gl_framebuffer *fb, GLboolean map) 52 renderbuffer_map_unmap(ctx, fb->_ColorDrawBuffers[i], map); 54 renderbuffer_map_unmap(ctx, fb->_ColorReadBuffer, map); 57 renderbuffer_map_unmap(ctx, fb->Attachment[BUFFER_DEPTH].Renderbuffer, map); 61 span_map_unmap(struct gl_context *ctx, GLboolean map) 65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map); 68 framebuffer_map_unmap(ctx, ctx->ReadBuffer, map); 71 if (map) [all...] |
/prebuilts/go/darwin-x86/test/ |
bigmap.go | 7 // Internally a map holds elements in up to 255 bytes of key+value. 30 m := make(map[int][1000]byte) 43 m := make(map[T]V) 48 panic("bad map") 54 m := make(map[T]V) 59 panic("bad map") 65 m := make(map[T]V) 70 panic("bad map") 76 m := make(map[T]V) 81 panic("bad map") [all...] |
/prebuilts/go/linux-x86/test/ |
bigmap.go | 7 // Internally a map holds elements in up to 255 bytes of key+value. 30 m := make(map[int][1000]byte) 43 m := make(map[T]V) 48 panic("bad map") 54 m := make(map[T]V) 59 panic("bad map") 65 m := make(map[T]V) 70 panic("bad map") 76 m := make(map[T]V) 81 panic("bad map") [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue139/ |
MergeValueTest.java | 18 import java.util.Map; 31 Map<String, Integer> map = (Map<String, Integer>) yaml.load(simple); local 32 assertEquals(1, map.size()); 33 assertEquals(new Integer(2), map.get("key")); 46 Map<String, Object> map = (Map<String, Object>) yaml.load(input); local 47 assertEquals(2, map.size()) 63 Map<String, Object> map = (Map<String, Object>) yaml.load(input); local [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
SessionMap.h | 42 * Adds a new value in the session map table. It expects memory to be allocated already 53 map.add(key, value); 72 * returns the number of objects in the session map table 78 return map.size(); 82 * returns the session object by the index in the session map table 92 if (map.size() > index) { 93 value = map.valueAt(index); 99 * deletes the object from session map. It also frees up memory for the session object. 107 map.removeItem(key); 126 map = objectCopy.map 131 KeyedVector<int, TValue> map; member in class:android::SessionMap [all...] |
/external/v8/src/compiler/ |
access-info.cc | 21 bool CanInlineElementAccess(Handle<Map> map) { 22 if (!map->IsJSObjectMap()) return false; 23 if (map->is_access_check_needed()) return false; 24 if (map->has_indexed_interceptor()) return false; 25 ElementsKind const elements_kind = map->elements_kind(); 32 bool CanInlinePropertyAccess(Handle<Map> map) { 37 if (map->IsBooleanMap()) return true; 38 if (map->instance_type() < LAST_PRIMITIVE_TYPE) return true [all...] |
/bionic/tests/ |
sys_mman_test.cpp | 27 void* map = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); local 28 ASSERT_NE(MAP_FAILED, map); 29 ASSERT_EQ(0, munmap(map, 4096)); 33 void* map = mmap64(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); local 34 ASSERT_NE(MAP_FAILED, map); 35 ASSERT_EQ(0, munmap(map, 4096)); 41 void* map = mmap(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); local 42 ASSERT_EQ(MAP_FAILED, map); 48 void* map = mmap64(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); local 49 ASSERT_EQ(MAP_FAILED, map); 62 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); local 77 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); local 113 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); local 149 void* map = mmap(NULL, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); local 184 void* map = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, tempfile.fd, 0); local 202 void* map = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); local 231 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); local [all...] |
/external/pcre/dist/ |
pcre_stringpiece_unittest.cc | 9 #include <map> 38 typedef std::map<StringPiece, int> TestMap; 39 TestMap map; local 41 map.insert(std::make_pair(p1, 0)); 42 map.insert(std::make_pair(p2, 1)); 43 map.insert(std::make_pair(p3, 2)); 45 CHECK(map.size() == 3); 47 TestMap::const_iterator iter = map.begin(); 54 CHECK(iter == map.end()); 56 TestMap::iterator new_iter = map.find("zot") [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
SocketOptionRegistry.java | 33 import java.util.Map; 57 static final Map<RegistryKey,OptionKey> options = options(); 58 private static Map<RegistryKey,OptionKey> options() { 59 Map<RegistryKey,OptionKey> map = local 61 map.put(new RegistryKey(StandardSocketOptions.SO_BROADCAST, Net.UNSPEC), new OptionKey(1, 6)); 62 map.put(new RegistryKey(StandardSocketOptions.SO_KEEPALIVE, Net.UNSPEC), new OptionKey(1, 9)); 63 map.put(new RegistryKey(StandardSocketOptions.SO_LINGER, Net.UNSPEC), new OptionKey(1, 13)); 64 map.put(new RegistryKey(StandardSocketOptions.SO_SNDBUF, Net.UNSPEC), new OptionKey(1, 7)); 65 map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8)) [all...] |
/external/eigen/demos/mix_eigen_and_c/ |
example.c | 44 struct C_Map_MatrixXd *map; local 53 map = Map_MatrixXd_new(array, 5, 1); 54 Map_MatrixXd_add(map, map, map); 55 Map_MatrixXd_delete(map);
|