| /external/google-fruit/tests/data_structures/ |
| D | test_semistatic_map.py | 8 # 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/ |
| D | BuildAvarIdentityMaps.designspace | 1 <?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 …]
|
| D | BuildAvarSingleAxis.designspace | 1 <?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 …]
|
| D | BuildAvar2.designspace | 1 <?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/ |
| D | MapRequestRepresentationWithGuavaTest.java | 8 * 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 …]
|
| D | MapMultibindingValidationTest.java | 8 * 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 …]
|
| D | MapBindingComponentProcessorTest.java | 8 * 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 …]
|
| D | MultibindingTest.java | 8 * 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/ |
| D | bundle.rs | 3 // 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/ |
| D | test_avar2.designspace | 1 <?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/ |
| D | source.rs | 7 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/ |
| D | MultiType.java | 2 * 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/ |
| D | deduct.pass.cpp | 1 //===----------------------------------------------------------------------===// 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/ |
| D | Context.java | 2 * 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/ |
| D | rtp_header_extension_map_unittest.cc | 4 * 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/ |
| D | source.rs | 1 //! 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/ |
| D | XCldrStub.java | 20 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/ |
| D | ExtendedSourceContext.java | 8 * 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/ |
| D | XCldrStub.java | 1 /* 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/ |
| D | analyze_assoc.R | 9 # 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/ |
| D | wayland-util.c | 2 * 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/ |
| D | XLikelySubtags.java | 13 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/ |
| D | transition.py | 19 # 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/ |
| D | AktivGroteskVF_Wght.designspace | 1 <?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/ |
| D | FlowOnTest.kt | 2 …* 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 …]
|