/system/core/crash_reporter/ |
crash_collector_test.h | 22 #include <map> 32 bool(std::map<std::string, std::string> *sessions));
|
/system/netd/server/ |
ClatdController.h | 20 #include <map> 35 std::map<std::string, pid_t> mClatdPids;
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/mach-o/ |
zerofill-1.d | 1 #objdump: -P map
|
/external/guava/guava-tests/test/com/google/common/collect/ |
LinkedListMultimapTest.java | 49 import java.util.Map; 50 import java.util.Map.Entry; 159 LinkedListMultimap<String, Integer> map = create(); local 160 map.put("bar", 1); 161 Collection<Integer> foos = map.get("foo"); 164 map.put("bar", 4); 165 map.put("foo", 5); 166 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); 168 map.entries().toString()); 172 ListMultimap<String, Integer> map = create() local 185 Multimap<String, Integer> map = create(); local 194 Multimap<String, Integer> map = create(); local 214 Multimap<String, Integer> map = create(); local 226 ListMultimap<String, Integer> map = create(); local 242 Multimap<String, Integer> map = create(); local 253 Multimap<String, Integer> map = create(); local 266 Multimap<String, Integer> map = create(); local 277 Multimap<String, Integer> map = create(); local 298 Multimap<String, Integer> map = create(); local [all...] |
WellBehavedMapTest.java | 24 import java.util.Map; 34 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( local 36 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3)); 39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); 40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); 43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); 46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); 50 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( local 52 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3)); 54 for (Map.Entry<Foo, Integer> entry : map.entrySet()) 58 assertEquals(ImmutableMap.of(Foo.X, 6, Foo.Y, 7, Foo.Z, 8), map); local 62 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( local 89 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( local [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
MapMakerTest.java | 26 import java.util.Map; 87 Map<?, ?> map = new MapMaker() local 90 assertTrue(map instanceof ConcurrentHashMap); 94 /** Tests of the built map with maximumSize. */ 97 ConcurrentMap<Object, Object> map = local 99 assertEquals(0, map.size()); 100 map.put(new Object(), new Object()); 101 assertEquals(0, map.size()); 107 ConcurrentMap<Object, Object> map local 146 ConcurrentMap<Integer, String> map = new MapMaker() local 162 ConcurrentMap<Object, Object> map = new MapMaker().makeComputingMap( local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
AbstractMapTest.java | 31 import java.util.Map; 49 mySet.add(new Map.Entry() { 83 Map map3 = Collections.EMPTY_MAP; 142 AbstractMap map = new HashMap(); local 143 map.put(1, 1); 144 map.clear(); 145 assertTrue(map.isEmpty()); 175 AbstractMap map = new AMT(); local 177 assertFalse(map.containsKey("k")); 178 assertFalse(map.containsKey(null)) 194 AbstractMap map = new AMT(); local 212 AbstractMap map = new AMT(); local 256 private Map map = new HashMap(); field in class:AbstractMapTest.MyMap 279 MyMap map = new MyMap(); local [all...] |
/external/ceres-solver/internal/ceres/ |
execution_summary.h | 34 #include <map> 59 const map<string, double>& times() const { return times_; } 60 const map<string, int>& calls() const { return calls_; } 64 map<string, double> times_; 67 map<string, int> calls_;
|
/external/libcxx/test/std/containers/associative/map/map.cons/ |
default_noexcept.pass.cpp | 10 // <map> 12 // map() 20 #include <map> 37 typedef std::map<MoveOnly, MoveOnly> C; 41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
dtor_noexcept.pass.cpp | 10 // <map> 12 // ~map() // implied noexcept; 14 #include <map> 35 typedef std::map<MoveOnly, MoveOnly> C; 39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
move_assign_noexcept.pass.cpp | 10 // <map> 12 // map& operator=(map&& c) 20 #include <map> 37 typedef std::map<MoveOnly, MoveOnly> C; 41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
move_noexcept.pass.cpp | 10 // <map> 12 // map(map&&) 18 #include <map> 35 typedef std::map<MoveOnly, MoveOnly> C; 39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/pooling/arrays/ |
GeneratorArray.java | 9 private final HashMap<Integer, VoronoiDiagram.Generator[]> map = field in class:GeneratorArray 15 if (!map.containsKey(length)) { 16 map.put(length, getInitializedArray(length)); 19 assert (map.get(length).length == length) : "Array not built of correct length"; 20 return map.get(length);
|
/external/skia/tests/ |
HashTest.cpp | 13 // Tests use of const foreach(). map.count() is of course the better way to do this. 14 static int count(const SkTHashMap<int, double>& map) { 16 map.foreach([&n](int, double) { n++; }); 21 SkTHashMap<int, double> map; local 23 map.set(3, 4.0); 24 REPORTER_ASSERT(r, map.count() == 1); 26 REPORTER_ASSERT(r, map.approxBytesUsed() > 0); 28 double* found = map.find(3); 32 map.foreach([](int key, double* d){ *d = -key; }); 33 REPORTER_ASSERT(r, count(map) == 1) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.cons/ |
default_noexcept.pass.cpp | 10 // <map> 12 // map() 20 #include <map> 37 typedef std::map<MoveOnly, MoveOnly> C; 41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
dtor_noexcept.pass.cpp | 10 // <map> 12 // ~map() // implied noexcept; 14 #include <map> 35 typedef std::map<MoveOnly, MoveOnly> C; 39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
move_assign_noexcept.pass.cpp | 10 // <map> 12 // map& operator=(map&& c) 20 #include <map> 37 typedef std::map<MoveOnly, MoveOnly> C; 41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
move_noexcept.pass.cpp | 10 // <map> 12 // map(map&&) 18 #include <map> 35 typedef std::map<MoveOnly, MoveOnly> C; 39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.special/ |
swap_noexcept.pass.cpp | 10 // <map> 12 // void swap(map& c) 18 #include <map> 40 typedef std::map<MoveOnly, MoveOnly> C; 45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 50 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 55 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
MapBenchmark.java | 29 import java.util.Map; 34 * A microbenchmark that tests the performance of get() and iteration on various map 45 @Override Map<Element, Element> create(Collection<Element> keys) { 46 Map<Element, Element> map = Maps.newHashMap(); local 48 map.put(element, element); 50 return map; 54 @Override Map<Element, Element> create(Collection<Element> keys) { 55 Map<Element, Element> map = Maps.newLinkedHashMap() local 74 Map<Element, Element> map = Maps.newTreeMap(); local 83 Map<Element, Element> map = new ConcurrentSkipListMap<Element, Element>(); local 92 Map<Element, Element> map = local 102 Map<Element, Element> map = local 112 Map<Element, Element> map = new MapMaker() local 123 Map<Element, Element> map = new MapMaker() local 197 Map<Element, Element> map = mapToTest; local 220 Map<Element, Element> map = mapToTest; local 232 Map<Element, Element> map = mapToTest; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
SimpleCache.java | 16 import java.util.Map; 24 private volatile Reference<Map<K, V>> cacheRef = null; 45 Reference<Map<K, V>> ref = cacheRef; 47 Map<K, V> map = ref.get(); local 48 if (map != null) { 49 return map.get(key); 56 Reference<Map<K, V>> ref = cacheRef; 57 Map<K, V> map = null local [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/ |
SimpleCache.java | 15 import java.util.Map; 20 private Reference<Map<K, V>> cacheRef = null; 41 Reference<Map<K, V>> ref = cacheRef; 43 Map<K, V> map = ref.get(); local 44 if (map != null) { 45 return map.get(key); 52 Reference<Map<K, V>> ref = cacheRef; 53 Map<K, V> map = null local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
SimpleCache.java | 15 import java.util.Map; 20 private volatile Reference<Map<K, V>> cacheRef = null; 41 Reference<Map<K, V>> ref = cacheRef; 43 Map<K, V> map = ref.get(); local 44 if (map != null) { 45 return map.get(key); 52 Reference<Map<K, V>> ref = cacheRef; 53 Map<K, V> map = null local [all...] |
/frameworks/base/tools/validatekeymaps/ |
Main.cpp | 81 sp<KeyLayoutMap> map; local 82 status_t status = KeyLayoutMap::load(String8(filename), &map); 91 sp<KeyCharacterMap> map; local 93 KeyCharacterMap::FORMAT_ANY, &map); 95 fprintf(stderr, "Error %d parsing key character map file.\n\n", status); 102 PropertyMap* map; local 103 status_t status = PropertyMap::load(String8(filename), &map); 108 delete map; 113 VirtualKeyMap* map; local 114 status_t status = VirtualKeyMap::load(String8(filename), &map); [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug212.go | 9 type S struct { f map[I]int } 10 var v1 = S{ make(map[int]int) } // ERROR "cannot|illegal|incompatible|wrong" 11 var v2 map[I]int = map[int]int{} // ERROR "cannot|illegal|incompatible|wrong" 12 var v3 = S{ make(map[uint]int) } // ERROR "cannot|illegal|incompatible|wrong"
|