/external/guava/guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ |
D | AtomicLongMapTest.java | 43 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local 44 assertFalse(map.isEmpty()); in testCreate_map() 45 assertSame(3, map.size()); in testCreate_map() 46 assertTrue(map.containsKey("1")); in testCreate_map() 47 assertTrue(map.containsKey("2")); in testCreate_map() 48 assertTrue(map.containsKey("3")); in testCreate_map() 49 assertEquals(1L, map.get("1")); in testCreate_map() 50 assertEquals(2L, map.get("2")); in testCreate_map() 51 assertEquals(3L, map.get("3")); in testCreate_map() 55 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet() local [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicLongMapTest.java | 52 AtomicLongMap<Object> map = AtomicLongMap.create(); in testNulls() local 53 tester.testAllPublicInstanceMethods(map); in testNulls() 58 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local 59 assertFalse(map.isEmpty()); in testCreate_map() 60 assertSame(3, map.size()); in testCreate_map() 61 assertTrue(map.containsKey("1")); in testCreate_map() 62 assertTrue(map.containsKey("2")); in testCreate_map() 63 assertTrue(map.containsKey("3")); in testCreate_map() 64 assertEquals(1L, map.get("1")); in testCreate_map() 65 assertEquals(2L, map.get("2")); in testCreate_map() [all …]
|
/external/clang/test/OpenMP/ |
D | target_map_messages.cpp | 9 …#pragma omp target map(marr[2][0:2][0:2]) // expected-error {{array section does not specify conti… in foo() 11 #pragma omp target map(marr[:][0:][:]) in foo() 13 …#pragma omp target map(marr[:][1:][:]) // expected-error {{array section does not specify contiguo… in foo() 15 #pragma omp target map(marr[:][n:][:]) in foo() 30 #pragma omp target map(arg,a,d) in func() 32 …#pragma omp target map(arg[2:2],a,d) // expected-error {{subscripted value is not an array or poin… in func() 34 …#pragma omp target map(arg,a*2) // expected-error {{expected expression containing only member acc… in func() 36 …#pragma omp target map(arg,(c+1)[2]) // expected-error {{expected expression containing only membe… in func() 38 …#pragma omp target map(arg,a[:2],d) // expected-error {{subscripted value is not an array or point… in func() 40 …#pragma omp target map(arg,a,d[:2]) // expected-error {{subscripted value is not an array or point… in func() [all …]
|
D | target_parallel_map_messages.cpp | 67 #pragma omp target parallel map // expected-error {{expected '(' after 'map'}} in tmain() 69 #pragma omp target parallel map( // expected-error {{expected ')'}} expected-note {{to match this '… in tmain() 71 #pragma omp target parallel map() // expected-error {{expected expression}} in tmain() 73 #pragma omp target parallel map(alloc) // expected-error {{use of undeclared identifier 'alloc'}} in tmain() 75 #pragma omp target parallel map(to argc // expected-error {{expected ')'}} expected-note {{to match… in tmain() 77 #pragma omp target parallel map(to:) // expected-error {{expected expression}} in tmain() 79 #pragma omp target parallel map(from: argc, // expected-error {{expected expression}} expected-erro… in tmain() 81 #pragma omp target parallel map(x: y) // expected-error {{incorrect map type, expected one of 'to',… in tmain() 83 #pragma omp target parallel map(x) in tmain() 85 #pragma omp target parallel map(tofrom: t[:I]) in tmain() [all …]
|
D | target_map_codegen.cpp | 1160 #pragma omp target map(alloc:a) in explicit_maps_single() 1181 #pragma omp target map(to:arra) in explicit_maps_single() 1200 #pragma omp target map(from:arra[20:60]) in explicit_maps_single() 1219 #pragma omp target map(tofrom:arra[:60]) in explicit_maps_single() 1238 #pragma omp target map(alloc:arra[:]) in explicit_maps_single() 1257 #pragma omp target map(to:arra[15]) in explicit_maps_single() 1280 #pragma omp target map(tofrom:arra[ii:ii+23]) in explicit_maps_single() 1303 #pragma omp target map(alloc:arra[:ii]) in explicit_maps_single() 1322 #pragma omp target map(tofrom:arra[ii]) in explicit_maps_single() 1343 #pragma omp target map(from:pa) in explicit_maps_single() [all …]
|
D | target_parallel_for_map_messages.cpp | 67 #pragma omp target parallel for map // expected-error {{expected '(' after 'map'}} in tmain() 69 #pragma omp target parallel for map( // expected-error {{expected ')'}} expected-note {{to match th… in tmain() 71 #pragma omp target parallel for map() // expected-error {{expected expression}} in tmain() 73 #pragma omp target parallel for map(alloc) // expected-error {{use of undeclared identifier 'alloc'… in tmain() 75 #pragma omp target parallel for map(to argc // expected-error {{expected ')'}} expected-note {{to m… in tmain() 77 #pragma omp target parallel for map(to:) // expected-error {{expected expression}} in tmain() 79 #pragma omp target parallel for map(from: argc, // expected-error {{expected expression}} expected-… in tmain() 81 #pragma omp target parallel for map(x: y) // expected-error {{incorrect map type, expected one of '… in tmain() 83 #pragma omp target parallel for map(x) in tmain() 85 #pragma omp target parallel for map(tofrom: t[:I]) in tmain() [all …]
|
/external/toolchain-utils/crosperf/perf_files/ |
D | perf.data.report.0 | 16 0.48% 1297 chrome perf-24199.map [.] 0x0000115bb6c35d7a 17 0.47% 1286 chrome perf-24199.map [.] 0x0000115bb7ba9b54 20 0.37% 991 chrome perf-24199.map [.] 0x0000115bb6c35d72 21 0.28% 762 chrome perf-24199.map [.] 0x0000115bb6c35d76 22 0.27% 735 chrome perf-24199.map [.] 0x0000115bb6aa463a 23 0.22% 608 chrome perf-24199.map [.] 0x0000115bb7ba9ebf 24 0.17% 468 chrome perf-24199.map [.] 0x0000115bb6a7afc3 26 0.17% 450 chrome perf-24199.map [.] 0x0000115bb6af7457 27 0.16% 444 chrome perf-24199.map [.] 0x0000115bb7c6edd1 28 0.16% 438 chrome perf-24199.map [.] 0x0000115bb7c6f93d [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | MapInterfaceTest.java | 155 protected final boolean supportsValuesHashCode(Map<K, V> map) { in supportsValuesHashCode() argument 157 Collection<V> values = map.values(); in supportsValuesHashCode() 179 protected final void assertInvariants(Map<K, V> map) { in assertInvariants() argument 180 Set<K> keySet = map.keySet(); in assertInvariants() 181 Collection<V> valueCollection = map.values(); in assertInvariants() 182 Set<Entry<K, V>> entrySet = map.entrySet(); in assertInvariants() 184 assertEquals(map.size() == 0, map.isEmpty()); in assertInvariants() 185 assertEquals(map.size(), keySet.size()); in assertInvariants() 191 V value = map.get(key); in assertInvariants() 193 assertTrue(map.containsKey(key)); in assertInvariants() [all …]
|
/external/tensorflow/tensorflow/core/lib/gtl/ |
D | flatmap_test.cc | 33 int32 Get(const NumMap& map, int64 k, int32 def = -1) { in Get() argument 34 auto iter = map.find(k); in Get() 35 if (iter == map.end()) { in Get() 36 EXPECT_EQ(map.count(k), 0); in Get() 39 EXPECT_EQ(map.count(k), 1); in Get() 40 EXPECT_EQ(&map.at(k), &iter->second); in Get() 48 NumMapContents Contents(const NumMap& map) { in Contents() argument 50 for (const auto& p : map) { in Contents() 58 void Fill(NumMap* map, int64 start, int64 limit) { in Fill() argument 60 map->insert({i, i * 100}); in Fill() [all …]
|
/external/u-boot/board/synopsys/hsdk/ |
D | env-lib.c | 11 static void env_clear_common(u32 index, const struct env_map_common *map) in env_clear_common() argument 13 map[index].val->val = 0; in env_clear_common() 14 map[index].val->set = false; in env_clear_common() 17 static int env_read_common(u32 index, const struct env_map_common *map) in env_read_common() argument 21 if (!env_get_yesno(map[index].env_name)) { in env_read_common() 22 if (map[index].type == ENV_HEX) { in env_read_common() 23 val = (u32)env_get_hex(map[index].env_name, 0); in env_read_common() 24 debug("ENV: %s: = %#x\n", map[index].env_name, val); in env_read_common() 26 val = (u32)env_get_ulong(map[index].env_name, 10, 0); in env_read_common() 27 debug("ENV: %s: = %d\n", map[index].env_name, val); in env_read_common() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages() 53 var clone = map.Clone(); in Clone_ClonesMessages() 54 map["x"].C = 30; in Clone_ClonesMessages() 68 var map = new MapField<int, T>(); in TestNullValues() 70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues() 71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues() 72 map.Add(1, nonNullValue); in TestNullValues() 73 map[1] = nonNullValue; in TestNullValues() 79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys() 80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys() [all …]
|
/external/libxkbcommon/xkbcommon/test/data/types/ |
D | level5 | 10 map[None] = Level1; 11 map[Shift] = Level2; 12 map[LevelThree] = Level3; 13 map[Shift+LevelThree] = Level4; 14 map[LevelFive] = Level5; 15 map[Shift+LevelFive] = Level6; 16 map[LevelThree+LevelFive] = Level7; 17 map[Shift+LevelThree+LevelFive] = Level8; 30 map[None] = Level1; 31 map[Shift] = Level2; [all …]
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | stream_map.cc | 28 void grpc_chttp2_stream_map_init(grpc_chttp2_stream_map* map, in grpc_chttp2_stream_map_init() argument 31 map->keys = in grpc_chttp2_stream_map_init() 33 map->values = in grpc_chttp2_stream_map_init() 35 map->count = 0; in grpc_chttp2_stream_map_init() 36 map->free = 0; in grpc_chttp2_stream_map_init() 37 map->capacity = initial_capacity; in grpc_chttp2_stream_map_init() 40 void grpc_chttp2_stream_map_destroy(grpc_chttp2_stream_map* map) { in grpc_chttp2_stream_map_destroy() argument 41 gpr_free(map->keys); in grpc_chttp2_stream_map_destroy() 42 gpr_free(map->values); in grpc_chttp2_stream_map_destroy() 59 void grpc_chttp2_stream_map_add(grpc_chttp2_stream_map* map, uint32_t key, in grpc_chttp2_stream_map_add() argument [all …]
|
/external/grpc-grpc/test/core/transport/chttp2/ |
D | stream_map_test.cc | 27 grpc_chttp2_stream_map map; in test_no_op() local 31 grpc_chttp2_stream_map_init(&map, 8); in test_no_op() 32 grpc_chttp2_stream_map_destroy(&map); in test_no_op() 37 grpc_chttp2_stream_map map; in test_empty_find() local 41 grpc_chttp2_stream_map_init(&map, 8); in test_empty_find() 42 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_find(&map, 39128)); in test_empty_find() 43 grpc_chttp2_stream_map_destroy(&map); in test_empty_find() 48 grpc_chttp2_stream_map map; in test_double_deletion() local 52 grpc_chttp2_stream_map_init(&map, 8); in test_double_deletion() 53 GPR_ASSERT(0 == grpc_chttp2_stream_map_size(&map)); in test_double_deletion() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | IntervalMapTest.cpp | 24 UUMap map(allocator); in TEST() local 25 EXPECT_TRUE(map.empty()); in TEST() 28 EXPECT_EQ(0u, map.lookup(0)); in TEST() 29 EXPECT_EQ(7u, map.lookup(0, 7)); in TEST() 30 EXPECT_EQ(0u, map.lookup(~0u-1)); in TEST() 31 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); in TEST() 34 EXPECT_TRUE(map.begin() == map.begin()); in TEST() 35 EXPECT_TRUE(map.begin() == map.end()); in TEST() 36 EXPECT_TRUE(map.end() == map.end()); in TEST() 37 EXPECT_FALSE(map.begin() != map.begin()); in TEST() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | LinkedListMultimapTest.java | 112 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local 113 map.put("bar", 1); in testLinkedGetAdd() 114 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd() 117 map.put("bar", 4); in testLinkedGetAdd() 118 map.put("foo", 5); in testLinkedGetAdd() 119 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd() 121 map.entries().toString()); in testLinkedGetAdd() 125 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local 126 map.put("bar", 1); in testLinkedGetInsert() 127 List<Integer> foos = map.get("foo"); in testLinkedGetInsert() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | UrlComponentEncodingTester.java | 42 Map<Integer, Encoding> map = new LinkedHashMap<>(); 43 map.put( 0x0, Encoding.PERCENT); // Null character 44 map.put( 0x1, Encoding.PERCENT); // Start of Header 45 map.put( 0x2, Encoding.PERCENT); // Start of Text 46 map.put( 0x3, Encoding.PERCENT); // End of Text 47 map.put( 0x4, Encoding.PERCENT); // End of Transmission 48 map.put( 0x5, Encoding.PERCENT); // Enquiry 49 map.put( 0x6, Encoding.PERCENT); // Acknowledgment 50 map.put( 0x7, Encoding.PERCENT); // Bell 51 map.put((int) '\b', Encoding.PERCENT); // Backspace in map.put() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | IntervalMapTest.cpp | 22 UUMap map(allocator); in TEST() local 23 EXPECT_TRUE(map.empty()); in TEST() 26 EXPECT_EQ(0u, map.lookup(0)); in TEST() 27 EXPECT_EQ(7u, map.lookup(0, 7)); in TEST() 28 EXPECT_EQ(0u, map.lookup(~0u-1)); in TEST() 29 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); in TEST() 32 EXPECT_TRUE(map.begin() == map.begin()); in TEST() 33 EXPECT_TRUE(map.begin() == map.end()); in TEST() 34 EXPECT_TRUE(map.end() == map.end()); in TEST() 35 EXPECT_FALSE(map.begin() != map.begin()); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | IntervalMapTest.cpp | 22 UUMap map(allocator); in TEST() local 23 EXPECT_TRUE(map.empty()); in TEST() 26 EXPECT_EQ(0u, map.lookup(0)); in TEST() 27 EXPECT_EQ(7u, map.lookup(0, 7)); in TEST() 28 EXPECT_EQ(0u, map.lookup(~0u-1)); in TEST() 29 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); in TEST() 32 EXPECT_TRUE(map.begin() == map.begin()); in TEST() 33 EXPECT_TRUE(map.begin() == map.end()); in TEST() 34 EXPECT_TRUE(map.end() == map.end()); in TEST() 35 EXPECT_FALSE(map.begin() != map.begin()); in TEST() [all …]
|
/external/wayland/tests/ |
D | map-test.c | 35 struct wl_map map; in TEST() local 38 wl_map_init(&map, WL_MAP_SERVER_SIDE); in TEST() 39 i = wl_map_insert_new(&map, 0, &a); in TEST() 40 j = wl_map_insert_new(&map, 0, &b); in TEST() 41 k = wl_map_insert_new(&map, 0, &c); in TEST() 46 assert(wl_map_lookup(&map, i) == &a); in TEST() 47 assert(wl_map_lookup(&map, j) == &b); in TEST() 48 assert(wl_map_lookup(&map, k) == &c); in TEST() 49 wl_map_release(&map); in TEST() 51 wl_map_init(&map, WL_MAP_CLIENT_SIDE); in TEST() [all …]
|
/external/u-boot/test/dm/ |
D | regmap.c | 19 struct regmap *map; in dm_test_regmap_base() local 24 map = syscon_get_regmap(dev); in dm_test_regmap_base() 25 ut_assertok_ptr(map); in dm_test_regmap_base() 26 ut_asserteq(1, map->range_count); in dm_test_regmap_base() 27 ut_asserteq(0x10, map->ranges[0].start); in dm_test_regmap_base() 28 ut_asserteq(4, map->ranges[0].size); in dm_test_regmap_base() 29 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); in dm_test_regmap_base() 32 map = syscon_get_regmap(dev); in dm_test_regmap_base() 33 ut_assertok_ptr(map); in dm_test_regmap_base() 34 ut_asserteq(4, map->range_count); in dm_test_regmap_base() [all …]
|
/external/tensorflow/tensorflow/core/grappler/graph_analyzer/ |
D | gen_node_test.cc | 77 GenNodeMap map; in TEST() local 79 map["node1"] = absl::make_unique<GenNode>(&node1); in TEST() 81 auto gn1 = map["node1"].get(); in TEST() 82 ASSERT_THAT(gn1->ParseInputs(&map), Eq(Status::OK())); in TEST() 88 GenNodeMap map; in TEST() local 91 map["node1"] = absl::make_unique<GenNode>(&node1); in TEST() 94 map["node2"] = absl::make_unique<GenNode>(&node2); in TEST() 99 map["node3"] = absl::make_unique<GenNode>(&node3); in TEST() 101 auto gn1 = map["node1"].get(); in TEST() 102 auto gn2 = map["node2"].get(); in TEST() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | SmallSortedMapTest.java | 137 for (SmallSortedMap<Integer, Integer> map : allMaps) { in runPutAndGetTest() 138 assertEquals(numElements, map.size()); in runPutAndGetTest() 140 assertEquals(new Integer(i + 1), map.get(i)); in runPutAndGetTest() 150 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() local 152 assertNull(map.put(i, i + 1)); in testReplacingPut() 153 assertNull(map.remove(i + 1)); in testReplacingPut() 156 assertEquals(new Integer(i + 1), map.put(i, i + 2)); in testReplacingPut() 161 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() local 163 assertNull(map.put(i, i + 1)); in testRemove() 164 assertNull(map.remove(i + 1)); in testRemove() [all …]
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary_unittest.cc | 37 TestMap map; in TEST() local 39 const TestMap::Entry* entry = TestMap::Iterator(map).Next(); in TEST() 43 map.SetKeyValue("key1", "value1"); in TEST() 44 entry = TestMap::Iterator(map).Next(); in TEST() 50 map.SetKeyValue("key1", "value3"); in TEST() 57 map.RemoveKey("key1"); in TEST() 93 NonAllocatingMap<10, 10, 10> map; in TEST() local 94 map.SetKeyValue("one", "a"); in TEST() 95 map.SetKeyValue("two", "b"); in TEST() 96 map.SetKeyValue("three", "c"); in TEST() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-map.cc | 52 hb_map_t *map; in hb_map_create() local 54 if (!(map = hb_object_create<hb_map_t> ())) in hb_map_create() 57 map->init_shallow (); in hb_map_create() 59 return map; in hb_map_create() 84 hb_map_reference (hb_map_t *map) in hb_map_reference() argument 86 return hb_object_reference (map); in hb_map_reference() 96 hb_map_destroy (hb_map_t *map) in hb_map_destroy() argument 98 if (!hb_object_destroy (map)) return; in hb_map_destroy() 100 map->fini_shallow (); in hb_map_destroy() 102 free (map); in hb_map_destroy() [all …]
|