Home
last modified time | relevance | path

Searched +full:source +full:- +full:map (Results 1 – 25 of 1292) sorted by relevance

12345678910>>...52

/external/google-fruit/tests/data_structures/
Dtest_semistatic_map.py8 # http://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS-IS" BASIS,
31 source = '''
36 … SemistaticMap<int, std::string> map(values.begin(), values.end(), values.size(), memory_pool);
37 Assert(map.find(0) == nullptr);
38 Assert(map.find(2) == nullptr);
39 Assert(map.find(5) == nullptr);
44 source,
48 source = '''
53 … SemistaticMap<int, std::string> map(values.begin(), values.end(), values.size(), memory_pool);
[all …]
/external/fonttools/Tests/varLib/data/
DBuildAvarIdentityMaps.designspace1 <?xml version='1.0' encoding='utf-8'?>
5 <map input="100.0" output="26" />
6 <map input="200.0" output="39" />
7 <map input="300.0" output="58" />
8 <map input="400.0" output="90" />
9 <map input="500.0" output="108" />
10 <map input="600.0" output="128" />
11 <map input="700.0" output="151" />
12 <map input="800.0" output="169" />
13 <map input="900.0" output="190" />
[all …]
DBuildAvarSingleAxis.designspace1 <?xml version='1.0' encoding='utf-8'?>
5 <map input="100.0" output="26" />
6 <map input="200.0" output="39" />
7 <map input="300.0" output="58" />
8 <map input="400.0" output="90" />
9 <map input="500.0" output="108" />
10 <map input="600.0" output="128" />
11 <map input="700.0" output="151" />
12 <map input="800.0" output="169" />
13 <map input="900.0" output="190" />
[all …]
DBuildAvar2.designspace1 <?xml version='1.0' encoding='utf-8'?>
5 <map input="100.0" output="26" />
6 <map input="200.0" output="39" />
7 <map input="300.0" output="58" />
8 <map input="400.0" output="90" />
9 <map input="500.0" output="108" />
10 <map input="600.0" output="128" />
11 <map input="700.0" output="151" />
12 <map input="800.0" output="169" />
13 <map input="900.0" output="190" />
[all …]
/external/dagger2/javatests/dagger/internal/codegen/
DMapRequestRepresentationWithGuavaTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
19 import androidx.room.compiler.processing.util.Source;
46 Source mapModuleFile = in mapBindings()
57 "import java.util.Map;", in mapBindings()
61 " @Multibinds Map<String, String> stringMap();", in mapBindings()
67 Source subcomponentModuleFile = in mapBindings()
78 "import java.util.Map;", in mapBindings()
86 Source componentFile = in mapBindings()
92 "import java.util.Map;", in mapBindings()
97 " Map<String, String> strings();", in mapBindings()
[all …]
DMapMultibindingValidationTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
19 import androidx.room.compiler.processing.util.Source;
43 Source module = in duplicateMapKeys_UnwrappedMapKey()
64 // If they're all there, report only Map<K, V>. in duplicateMapKeys_UnwrappedMapKey()
68 "Map<String, Object> objects();", in duplicateMapKeys_UnwrappedMapKey()
69 "Map<String, Provider<Object>> objectProviders();", in duplicateMapKeys_UnwrappedMapKey()
70 "Producer<Map<String, Producer<Object>>> objectProducers();")) in duplicateMapKeys_UnwrappedMapKey()
73 subject -> { in duplicateMapKeys_UnwrappedMapKey()
76 "The same map key is bound more than once for Map<String,Object>"); in duplicateMapKeys_UnwrappedMapKey()
88 subject -> { in duplicateMapKeys_UnwrappedMapKey()
[all …]
DMapBindingComponentProcessorTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
23 import androidx.room.compiler.processing.util.Source;
53 Source mapModuleOneFile = in mapBindingsWithEnumKey()
68 Source mapModuleTwoFile = in mapBindingsWithEnumKey()
83 Source enumKeyFile = in mapBindingsWithEnumKey()
96 Source pathEnumFile = in mapBindingsWithEnumKey()
106 Source handlerFile = in mapBindingsWithEnumKey()
112 Source loginHandlerFile = in mapBindingsWithEnumKey()
120 Source adminHandlerFile = in mapBindingsWithEnumKey()
128 Source componentFile = in mapBindingsWithEnumKey()
[all …]
DMultibindingTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
19 import androidx.room.compiler.processing.util.Source;
30 Source module = in providesWithTwoMultibindingAnnotations_failsToCompile()
52 subject -> { in providesWithTwoMultibindingAnnotations_failsToCompile()
62 subject.hasErrorContaining("@Provides methods of type map must declare a map key") in providesWithTwoMultibindingAnnotations_failsToCompile()
70 Source someType = in appliedOnInvalidMethods_failsToCompile()
76 "import java.util.Map;", in appliedOnInvalidMethods_failsToCompile()
85 " @IntoMap Map<Integer, Double> map();", in appliedOnInvalidMethods_failsToCompile()
90 subject -> { in appliedOnInvalidMethods_failsToCompile()
96 subject.hasErrorContaining(error).onSource(someType).onLineContaining("map();"); in appliedOnInvalidMethods_failsToCompile()
[all …]
/external/rust/crates/mls-rs/src/group/proposal_filter/
Dbundle.rs3 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
52 pub fn add(&mut self, proposal: Proposal, sender: Sender, source: ProposalSource) { in add()
57 source, in add()
63 source, in add()
68 source, in add()
74 source, in add()
79 source, in add()
84 source, in add()
90 source, in add()
97 source, in add()
[all …]
/external/fonttools/Tests/designspaceLib/data/
Dtest_avar2.designspace1 <?xml version='1.0' encoding='UTF-8'?>
4 <axis tag="JSTF" name="Justify" minimum="-100" maximum="100" default="0"/>
6 <map input="100" output="26"/>
7 <map input="200" output="39"/>
8 <map input="300" output="58"/>
9 <map input="400" output="90"/>
10 <map input="500" output="108"/>
11 <map input="600" output="128"/>
12 <map input="700" output="151"/>
13 <map input="800" output="169"/>
[all …]
/external/rust/crates/config/src/
Dsource.rs7 use crate::map::Map;
12 pub trait Source: Debug { trait
13 fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>; in clone_into_box()
15 /// Collect all configuration properties available from this source and return
16 /// a Map.
17 fn collect(&self) -> Result<Map<String, Value>>; in collect()
20 fn collect_to(&self, cache: &mut Value) -> Result<()> { in collect_to()
47 /// For those reasons, it is left to other crates to implement runtime-specific or proprietary
55 … // Sync is supertrait due to https://docs.rs/async-trait/0.1.50/async_trait/index.html#dyn-traits
57 /// Collects all configuration properties available from this source and return
[all …]
/external/javassist/src/main/javassist/bytecode/analysis/
DMultiType.java2 * Javassist, a Java-bytecode translator toolkit.
3 * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
19 import java.util.Map;
29 * is done by eliminating non-assignable types from the typeset when the
31 * {@link Type#isAssignableFrom(Type)}, as well as removing non-intersecting
42 /* TODO - A better, but more involved, approach would be to track the instruction
49 private Map<String,CtClass> interfaces;
55 public MultiType(Map<String,CtClass> interfaces) { in MultiType()
59 public MultiType(Map<String,CtClass> interfaces, Type potentialClass) { in MultiType()
126 Map<String,CtClass> map = mergeMultiAndSingle(this, type); in isAssignableTo() local
[all …]
/external/cronet/third_party/libc++/src/test/std/containers/associative/map/map.cons/
Ddeduct.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // <map>
13 // class Compare = less<iter-value-type<InputIterator>>,
14 // class Allocator = allocator<iter-value-type<InputIterator>>>
15 // map(InputIterator, InputIterator,
17 // -> map<iter-value-type<InputIterator>, Compare, Allocator>;
19 // map(initializer_list<Key>, Compare = Compare(), Allocator = Allocator())
20 // -> map<Key, Compare, Allocator>;
[all …]
/external/doclava/doclet_adapter/src/main/java/com/google/doclava/javadoc/
DContext.java2 * Copyright (C) 2022 The Android Open Source Project
8 * http://www.apache.org/licenses/LICENSE-2.0
20 import com.sun.source.doctree.DocTree;
21 import com.sun.source.doctree.ParamTree;
22 import com.sun.source.doctree.SeeTree;
23 import com.sun.source.doctree.SerialFieldTree;
24 import com.sun.source.doctree.ThrowsTree;
26 import java.util.Map;
57 public final Map<TypeElement, ClassDocImpl> classes = new HashMap<>();
58 public final Map<TypeElement, AnnotationTypeDocImpl> annotations = new HashMap<>();
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Drtp_header_extension_map_unittest.cc4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
8 * be found in the AUTHORS file in the root of the source tree.
15 #include "modules/rtp_rtcp/source/rtp_header_extensions.h"
21 RtpHeaderExtensionMap map; in TEST() local
22 EXPECT_FALSE(map.IsRegistered(TransmissionOffset::kId)); in TEST()
24 EXPECT_TRUE(map.RegisterByType(3, TransmissionOffset::kId)); in TEST()
26 EXPECT_TRUE(map.IsRegistered(TransmissionOffset::kId)); in TEST()
27 EXPECT_EQ(3, map.GetId(TransmissionOffset::kId)); in TEST()
28 EXPECT_EQ(TransmissionOffset::kId, map.GetType(3)); in TEST()
[all …]
/external/rust/crates/log/src/kv/
Dsource.rs1 //! Sources for key-value pairs.
12 /// A source of key-value pairs.
14 /// The source may be a single pair, a set of pairs, or a filter over a set of pairs.
16 /// in a source.
17 pub trait Source { trait
18 /// Visit key-value pairs.
20 /// A source doesn't have to guarantee any ordering or uniqueness of key-value pairs.
21 /// If the given visitor returns an error then the source may early-return with it,
22 /// even if there are more key-value pairs.
26 /// A source should yield the same key-value pairs to a subsequent visitor unless
[all …]
/external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/locale/
DXCldrStub.java20 import java.util.Map;
21 import java.util.Map.Entry;
37 private final Map<K,Set<V>> map; field in XCldrStub.Multimap
41 private Multimap(Map<K,Set<V>> map, Class<?> setClass) { in Multimap() argument
42 this.map = map; in Multimap()
65 public void putAll(Multimap<K, V> source) { in putAll() argument
66 for (Entry<K, Set<V>> entry : source.map.entrySet()) { in putAll()
74 Set<V> old = map.get(key); in createSetIfMissing()
76 map.put(key, old = getInstance()); in createSetIfMissing()
88 Set<V> result = map.get(key); in get()
[all …]
/external/google-cloud-java/java-debugger-client/proto-google-devtools-source-protos/src/main/java/com/google/devtools/source/v1/
DExtendedSourceContext.java8 * https://www.apache.org/licenses/LICENSE-2.0
17 // source: google/devtools/source/v1/source_context.proto
19 package com.google.devtools.source.v1;
29 * Protobuf type {@code google.devtools.source.v1.ExtendedSourceContext}
33 // @@protoc_insertion_point(message_implements:google.devtools.source.v1.ExtendedSourceContext)
55 return com.google.devtools.source.v1.SourceContextProto in getDescriptor()
66 throw new RuntimeException("Invalid map field number: " + number); in internalGetMapField()
73 return com.google.devtools.source.v1.SourceContextProto in internalGetFieldAccessorTable()
76 com.google.devtools.source.v1.ExtendedSourceContext.class, in internalGetFieldAccessorTable()
77 com.google.devtools.source.v1.ExtendedSourceContext.Builder.class); in internalGetFieldAccessorTable()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXCldrStub.java1 /* GENERATED SOURCE. DO NOT MODIFY. */
21 import java.util.Map;
22 import java.util.Map.Entry;
42 private final Map<K,Set<V>> map; field in XCldrStub.Multimap
46 private Multimap(Map<K,Set<V>> map, Class<?> setClass) { in Multimap() argument
47 this.map = map; in Multimap()
70 public void putAll(Multimap<K, V> source) { in putAll() argument
71 for (Entry<K, Set<V>> entry : source.map.entrySet()) { in putAll()
79 Set<V> old = map.get(key); in createSetIfMissing()
81 map.put(key, old = getInstance()); in createSetIfMissing()
[all …]
/external/rappor/tests/
Danalyze_assoc.R9 # http://www.apache.org/licenses/LICENSE-2.0
17 # Reads map files, report files, and RAPPOR parameters to run
21 # $ ./analyze_assoc.R -map1 map_1.csv -map2 map_2.csv \
22 # -reports reports.csv \
38 option_list <- list(
40 make_option(c("--map1", "-m1"), default = "map_1.csv",
42 make_option(c("--map2", "-m2"), default = "map_2.csv",
44 make_option(c("--reports", "-r"), default = "reports.csv",
46 make_option(c("--params", "-p"), default = "params.csv",
49 opts <- parse_args(OptionParser(option_list = option_list))
[all …]
/external/wayland/src/
Dwayland-util.c2 * Copyright © 2008-2011 Kristian Høgsberg
34 #include "wayland-util.h"
35 #include "wayland-private.h"
40 list->prev = list; in wl_list_init()
41 list->next = list; in wl_list_init()
47 elm->prev = list; in wl_list_insert()
48 elm->next = list->next; in wl_list_insert()
49 list->next = elm; in wl_list_insert()
50 elm->next->prev = elm; in wl_list_insert()
56 elm->prev->next = elm->next; in wl_list_remove()
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/
DXLikelySubtags.java13 import java.util.Map;
14 import java.util.Map.Entry;
28 private static final Map<String, Map<String, R2<List<String>, String>>> aliasInfo =
30 private static final Map<String, R2<List<String>, String>> REGION_ALIASES =
32 private static final Map<String, R2<List<String>, String>> LANGUAGE_ALIASES =
46 public <K, V> V getSubtable(Map<K, V> langTable, final K language) { in getSubtable()
58 public Map<Object, Object> make() {
67 public Map<Object, Object> make() {
114 result.append('-').append(script); in toString()
117 result.append('-').append(region); in toString()
[all …]
/external/selinux/python/sepolicy/sepolicy/
Dtransition.py19 # 02111-1307 USA
27 trans = sepolicy.search([sepolicy.ALLOW], {sepolicy.SOURCE: src})
28 …return map(lambda y: y[sepolicy.TARGET], filter(lambda x: "entrypoint" in x[sepolicy.PERMS], trans…
33 …trans_list = list(filter(lambda x: x['source'] in src_list and x['class'] == 'process', sepolicy.g…
39 def __init__(self, source, dest=None): argument
42 self.source = source
44 self._process(self.source)
46 def _process(self, source): argument
47 if source in self.sdict:
48 return self.sdict[source]
[all …]
/external/fonttools/Tests/designspaceLib/data/split_output/
DAktivGroteskVF_Wght.designspace1 <?xml version='1.0' encoding='UTF-8'?>
5 <map input="100" output="22"/>
6 <map input="200" output="38"/>
7 <map input="300" output="57"/>
8 <map input="400" output="84"/>
9 <map input="500" output="98"/>
10 <map input="600" output="115"/>
11 <map input="700" output="133"/>
12 <map input="800" output="158"/>
13 <map input="900" output="185"/>
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DFlowOnTest.kt2 …* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen…
15 val source = Source(42) in <lambda>() constant
18 val flow = source::produce.asFlow() in <lambda>()
23 assertEquals("ctx1", source.contextName) in <lambda>()
30 assertEquals("ctx2", source.contextName) in <lambda>()
36 val source = Source(42) in <lambda>() constant
39 val mapper: suspend (Int) -> Int = { in <lambda>()
44 val flow = source::produce.asFlow() in <lambda>()
45 flow.map(mapper) in <lambda>()
47 .map(mapper) in <lambda>()
[all …]

12345678910>>...52