/libcore/ojluni/src/main/java/java/io/ |
ExpiringCache.java | 32 import java.util.Map; 38 private Map map; field in class:ExpiringCache 66 map = new LinkedHashMap() { 67 protected boolean removeEldestEntry(Map.Entry eldest) { 93 map.put(key, new Entry(System.currentTimeMillis(), val)); 98 map.clear(); 102 Entry entry = (Entry) map.get(key); 106 map.remove(key); 114 Set keySet = map.keySet() [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
MapTest.java | 30 import java.util.Map; 42 * Unit tests for extension methods on Map 46 private static final Map<Integer, String> EXPECTED = new HashMap<>(); 48 private Map<Integer, String> map; field in class:MapTest 71 map = new HashMap<>(EXPECTED); 76 map.clear(); 77 map = null; 83 map.forEach((k, v) -> {values.add(v);}); 89 map.replaceAll((k, v) -> {return v.toUpperCase();}) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/manifest/ |
ManifestInfoTest.java | 40 import java.util.Map; 55 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 56 assertEquals(map.toString(), 0, map.size()); 69 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 70 assertEquals(map.toString(), 0, map.size()); 83 Map<String, ActivityAttributes> map = info.getActivityAttributesMap() local 115 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 150 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 165 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 187 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local 204 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); local [all...] |
/external/v8/test/mjsunit/es6/ |
mirror-iterators.js | 45 var map = new Map(); 46 map.set(41, 42); 47 map.set(o1, o2); 49 testIteratorMirror(map.keys(), 0, [41, o1]); 50 testIteratorMirror(map.values(), 0, [42, o2]); 51 testIteratorMirror(map.entries(), 0, [[41, 42], [o1, o2]]); 53 testIteratorMirror(map.keys(), 1, [o1]); 54 testIteratorMirror(map.values(), 1, [o2]); 55 testIteratorMirror(map.entries(), 1, [[o1, o2]]) [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
LocalLoadingCacheTest.java | 33 import java.util.Map; 141 ConcurrentMap<Object, Object> map = cache.localCache; // modifiable map view local 145 assertNull(map.put(one, one)); 146 assertSame(one, map.get(one)); 147 assertTrue(map.containsKey(one)); 148 assertTrue(map.containsValue(one)); 150 assertSame(one, map.replace(one, two)); 151 assertTrue(map.containsKey(one)); 152 assertFalse(map.containsValue(one)) 243 ConcurrentMap<Object, Object> map = cache.asMap(); local 297 ConcurrentMap<Object, Object> map = cache.asMap(); local [all...] |
/external/llvm/unittests/Support/ |
YAMLIOTest.cpp | 122 // Test the reading of a map containing a yaml sequence of mappings 176 // Test the reading of a map containing a malformed yaml sequence 293 BuiltInTypes map; local 313 yin >> map; local 316 EXPECT_TRUE(map.str.equals("hello there")); 317 EXPECT_TRUE(map.stdstr == "hello where?"); 318 EXPECT_EQ(map.u64, 5000000000ULL); 319 EXPECT_EQ(map.u32, 4000000000U); 320 EXPECT_EQ(map.u16, 65000); 321 EXPECT_EQ(map.u8, 255) 342 BuiltInTypes map; local 363 yout << map; local 368 BuiltInTypes map; local 369 yin >> map; local 452 StringTypes map; local 478 yout << map; local 502 StringTypes map; local 503 yin >> map; local 571 ColorMap map; local 578 yin >> map; local 643 FlagsMap map; local 649 yin >> map; local 665 FlagsMap map; local 673 yout << map; local 755 MyCustomTypeMap map; local 764 yout << map; local 843 MultilineStringTypeMap map; local 854 yout << map; local 999 NameAndNumbers map; local 1010 yout << map; local 1045 NameAndNumbersFlow map; local 1055 yout << map; local 1604 ColorMap map; local 1612 yin >> map; local 1621 FlagsMap map; local 1629 yin >> map; local [all...] |
/art/runtime/ |
parsed_options_test.cc | 74 RuntimeArgumentMap map; local 75 bool parsed = ParsedOptions::Parse(options, false, &map); 77 ASSERT_NE(0u, map.Size()); 81 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) 82 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) 91 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); 92 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); 93 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); 94 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); 108 auto&& properties_list = map.GetOrDefault(Opt::PropertiesList) 118 RuntimeArgumentMap map; local 137 RuntimeArgumentMap map; local 156 RuntimeArgumentMap map; local [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ComputingConcurrentHashMapTest.java | 76 ComputingConcurrentHashMap<Object, Object> map = local 78 assertSame(computingFunction, map.computingFunction); 85 ComputingConcurrentHashMap<Object, Object> map = local 90 Object value = map.getOrCompute(key); 92 assertEquals(value, map.getOrCompute(key)); 98 ComputingMapAdapter<Object, Object> map = makeAdaptedMap(createMapMaker(), computingFunction); local 100 map.get(new Object()); 108 ComputingConcurrentHashMap<Object, Object> map = local 110 Segment<Object, Object> segment = map.segments[0]; 115 int hash = map.hash(key) 151 ComputingConcurrentHashMap<Object, Object> map = local 166 ComputingConcurrentHashMap<Object, Object> map = makeComputingMap(maker, computingFunction); local 195 ComputingConcurrentHashMap<Object, Object> map = makeComputingMap(maker, computingFunction); local 225 ComputingConcurrentHashMap<Object, Object> map = makeComputingMap(maker, computingFunction); local 260 final ComputingConcurrentHashMap<Object, Object> map = local [all...] |
/external/v8/test/cctest/ |
test-unboxed-doubles.cc | 32 Map* map, DescriptorArray* descriptors, 34 map->InitializeDescriptors(descriptors, layout_descriptor); 35 CHECK(layout_descriptor->IsConsistentWithMap(map, true)); 175 Handle<Map> map = Map::Create(isolate, kPropsCount); local 177 layout_descriptor = LayoutDescriptor::New(map, descriptors, kPropsCount); 180 InitializeVerifiedMapDescriptors(*map, *descriptors, *layout_descriptor); 191 Handle<Map> map = Map::Create(isolate, inobject_properties) local 208 Handle<Map> map = Map::Create(isolate, inobject_properties); local 541 Handle<Map> map = Map::Create(isolate, 0); local 548 Handle<Map> map = Map::Create(isolate, 1); local 555 Handle<Map> map = Map::Create(isolate, 2); local 568 Handle<Map> map = Map::Create(isolate, inobject_properties); local 618 Handle<Map> map = Map::Create(isolate, inobject_properties); local 763 Map* map = *last_map; local 774 Handle<Map> map; local 910 Handle<Map> map = Map::Create(isolate, kPropsCount); local 951 Handle<Map> map = Map::Create(isolate, kFieldCount); local 1039 Handle<Map> map = Map::Create(isolate, 10); local 1101 Handle<Map> map = Map::Create(isolate, 10); local 1180 Handle<Map> map = Map::Create(isolate, inobject_properties); local 1328 Handle<Map> map = Map::Create(isolate, 64); local 1373 Handle<Map> map = Map::Create(isolate, 10); local 1589 Handle<Map> map = Map::Create(isolate, 10); local [all...] |
test-field-type-tracking.cc | 29 // keep map in fast mode. 253 bool Check(Map* map, int expected_nof) const { 255 CHECK_EQ(expected_nof, map->NumberOfOwnDescriptors()); 256 CHECK(!map->is_dictionary_map()); 258 DescriptorArray* descriptors = map->instance_descriptors(); 273 bool Check(Map* map) const { return Check(map, number_of_properties_); } 278 // given |map| [all...] |
/development/ndk/platforms/android-3/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-13/arch-x86/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-14/arch-arm/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-14/arch-mips/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-14/arch-x86/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-15/arch-arm/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-15/arch-mips/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-15/arch-x86/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-16/arch-arm/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |
/prebuilts/ndk/current/platforms/android-16/arch-mips/usr/include/ |
zconf.h | 317 # pragma map(deflateInit_,"DEIN") 318 # pragma map(deflateInit2_,"DEIN2") 319 # pragma map(deflateEnd,"DEEND") 320 # pragma map(deflateBound,"DEBND") 321 # pragma map(inflateInit_,"ININ") 322 # pragma map(inflateInit2_,"ININ2") 323 # pragma map(inflateEnd,"INEND") 324 # pragma map(inflateSync,"INSY") 325 # pragma map(inflateSetDictionary,"INSEDI") 326 # pragma map(compressBound,"CMBND" [all...] |