/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/ |
Helpers.java | 37 import java.util.List; 51 public static <E> List<E> copyToList(Iterable<? extends E> elements) { 52 List<E> list = new ArrayList<E>(); local 53 addAll(list, elements); 54 return list; 57 public static <E> List<E> copyToList(E[] elements) { 79 List<?> exp = copyToList(expected); 80 List<?> act = copyToList(actual); 110 static <T> Iterable<T> reverse(final List<T> list) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
Helpers.java | 39 import java.util.List; 53 public static <E> List<E> copyToList(Iterable<? extends E> elements) { 54 List<E> list = new ArrayList<E>(); local 55 addAll(list, elements); 56 return list; 59 public static <E> List<E> copyToList(E[] elements) { 81 List<?> exp = copyToList(expected); 82 List<?> act = copyToList(actual); 112 static <T> Iterable<T> reverse(final List<T> list) [all...] |
NavigableSetTestSuiteBuilder.java | 30 import java.util.List; 50 protected List<TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder< 52 List<TestSuite> derivedSuites = new ArrayList<TestSuite>( 109 List<Feature<?>> features = new ArrayList<Feature<?>>(); 126 public Iterable<E> order(List<E> insertionOrder) { 127 List<E> list = new ArrayList<E>(); local 129 list.add(e); 131 Collections.reverse(list); 132 return list; [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
ListGenerators.java | 33 import java.util.List; 46 @Override protected List<String> create(String[] elements) { 52 @Override protected List<String> create(String[] elements) { 63 @Override protected List<String> create(String[] elements) { 72 @Override protected List<String> create(String[] elements) { 73 List<String> list = asList(elements); local 74 Collections.reverse(list); 75 return ImmutableList.copyOf(list).reverse(); 81 @Override protected List<String> create(String[] elements) [all...] |
ListMultimapRemoveTester.java | 30 import java.util.List; 49 List<V> list = multimap().get(k); local 51 assertThat(list).has().exactly(v1, v0).inOrder(); 61 List<V> values = Arrays.asList(v0, v1, v0); 65 List<V> expectedValues = copyToList(values); 81 List<V> values = Arrays.asList(v0, v1, v0); 85 List<V> expectedValues = copyToList(values); 87 List<V> asMapValue = (List<V>) multimap().asMap().get(k) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
MultiReaderTest.java | 58 Iterable<? extends CharSource> list = ImmutableList.of(source, source); local 59 Reader joinedReader = CharSource.concat(list).openStream(); 106 Iterable<CharSource> list = ImmutableList.of(source, source); 107 Reader joinedReader = CharSource.concat(list).openStream();
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
IsMapWithSizeTest.java | 50 Map<String, Integer> list = mapWithKeys("a", "b"); local 51 assertMatches("correct size", aMapWithSize(equalTo(2)), list); 52 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), list); 56 Map<?, ?> list = mapWithKeys("a", "b"); local 57 assertMatches("correct size", aMapWithSize(equalTo(2)), list); 58 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), list);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUNotifier.java | 15 import java.util.List; 21 * This queues the listener list on the notification thread, which 22 * eventually dequeues the list and calls notifyListener on each 23 * listener in the list.</p> 37 private List<EventListener> listeners; 120 private final List<EventListener[]> queue = new ArrayList<EventListener[]>(); 129 public void queue(EventListener[] list) { 131 queue.add(list); 142 EventListener[] list; local 149 list = queue.remove(0) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
RBNFParseTest.java | 122 String[] list = lists[i]; local 123 String s = list[0]; 124 String target_en = list[1]; 125 String target_fr = list[2];
|
/external/icu/icu4c/source/common/unicode/ |
uniset.h | 122 * complete list of supported property patterns, see the User's Guide 280 int32_t len; // length of list used; 0 <= len <= capacity 281 int32_t capacity; // capacity of list 282 UChar32* list; // MUST be terminated with HIGH member in class:U_FINAL 295 * representation from the inversion list. 652 * pairs list for the parsed pattern is returned. This method calls [all...] |
/external/iproute2/rdma/ |
rdma.h | 22 #include "list.h" 33 struct list_head list; member in struct:dev_map
|
/external/ipsec-tools/src/racoon/ |
rsalist.c | 14 * notice, this list of conditions and the following disclaimer. 16 * notice, this list of conditions and the following disclaimer in the 65 int prsa_parse_file(struct genlist *list, const char *fname, enum rsa_key_type type); 68 rsa_key_insert(struct genlist *list, struct netaddr *src, 86 genlist_append(list, rsa_key); 106 rsa_key_dump(struct genlist *list) 108 genlist_foreach(list, rsa_key_dump_one, NULL); 120 rsa_list_count(struct genlist *list) 123 genlist_foreach(list, rsa_list_count_one, &count); 158 /* Always traverse the whole list */ 165 struct genlist *list; local [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
BundleCoverageImpl.java | 102 Collection<T> list = map.get(name); local 103 if (list == null) { 104 list = new ArrayList<T>(); 105 map.put(name, list); 107 list.add(value);
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/ |
SortIndexTest.java | 20 import java.util.List; 48 final List<Integer> list = createList(1); local 49 index.init(list); 50 assertSequence(list); 55 final List<Integer> list = createList(20); local 56 index.init(list); 57 assertSequence(list); 63 final List<Integer> list = createList(20) local 70 final List<Integer> list = createList(57); local 78 final List<Integer> list = createList(71); local 85 List<Integer> list = new ArrayList<Integer>(length); local [all...] |
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/ |
CsmElement.java | 30 import java.util.List; 83 static CsmElement conditional(List<ObservableProperty> properties, CsmConditional.Condition condition, CsmElement thenElement, CsmElement elseElement) { 109 static CsmElement list(ObservableProperty property) { method in interface:CsmElement 113 static CsmElement list(ObservableProperty property, CsmElement separator) { method in interface:CsmElement 117 static CsmElement list(ObservableProperty property, CsmElement separator, CsmElement preceeding, CsmElement following) { method in interface:CsmElement 121 static CsmElement list(ObservableProperty property, CsmElement separatorPre, CsmElement separatorPost, CsmElement preceeding, CsmElement following) { method in interface:CsmElement
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/utils/ |
Utils.java | 38 public static <T> List<T> ensureNotNull(List<T> list) { 39 return list == null ? new ArrayList<T>() : list; 98 * Puts varargs in a mutable list. 101 public static <T> List<T> arrayToList(T[] array){ 102 List<T> list = new LinkedList<>(); local 103 Collections.addAll(list, array) [all...] |
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
VisitorSetTest.java | 30 import java.util.List;
70 List<CompilationUnit> list = new ArrayList<>();
local 71 list.add(JavaParser.parse("class X{}"));
72 list.add(JavaParser.parse("class X{}"));
75 set.addAll(list);
76 assertTrue(set.size() == 2 && set.containsAll(list));
107 List<CompilationUnit> list = new ArrayList<>();
local 108 list.add(JavaParser.parse("class X{}")); 119 List<CompilationUnit> list = new ArrayList<>(); local 132 List<CompilationUnit> list = new ArrayList<>(); local [all...] |
/external/jmdns/src/javax/jmdns/ |
JmDNS.java | 338 * <b>Note:</b> Unregistered services will not disappear form the list of services immediately. According to the specification, when unregistering services we send goodbye packets and then wait <b>1s</b> before purging the cache.<br/> 370 * List Services and serviceTypes. Debugging Only 378 * Returns a list of service infos of the specified type. 384 public abstract ServiceInfo[] list(String type); method in class:JmDNS 387 * Returns a list of service infos of the specified type. 395 public abstract ServiceInfo[] list(String type, long timeout); method in class:JmDNS 398 * Returns a list of service infos of the specified type sorted by subtype. Any service that do not register a subtype is listed in the empty subtype section. 407 * Returns a list of service infos of the specified type sorted by subtype. Any service that do not register a subtype is listed in the empty subtype section.
|
/external/kmod/testsuite/ |
test-list.c | 27 static int len(struct kmod_list *list) 31 kmod_list_foreach(l, list) 39 struct kmod_list *list = NULL, *last; local 45 list = kmod_list_append(list, v[i]); 46 assert_return(len(list) == N, EXIT_FAILURE); 48 last = kmod_list_last(list); 54 .description = "test for the last element of a list"); 59 struct kmod_list *list = NULL, *l, *p; local 64 l = kmod_list_prev(list, list) 88 struct kmod_list *list = NULL, *l; local 114 struct kmod_list *list = NULL, *l; local 173 struct kmod_list *list = NULL, *l; local 207 struct kmod_list *list = NULL, *l; local [all...] |
/external/libchrome/base/ |
observer_list_threadsafe.h | 28 // A thread-safe container for a list of observers. 37 // * Observers can remove themselves from the observer list inside 40 // removing itself from the observer list, the notifications will 43 // The drawback of the threadsafe observer list is that notifications 84 // Add an observer to the list. An observer should not be added to 85 // the same list more than once. 92 ObserverList<ObserverType>* list = nullptr; 100 list = &(observer_lists_[thread_id]->list); 102 list->AddObserver(obs) 120 ObserverList<ObserverType>& list = it->second->list; local 167 ObserverList<ObserverType> list; member in struct:base::ObserverListThreadSafe::ObserverListContext [all...] |
/external/libchrome/dbus/ |
values_util.cc | 82 case base::Value::Type::LIST: 279 case base::Value::Type::LIST: { 280 const base::ListValue* list = NULL; local 281 value.GetAsList(&list); 284 for (const auto& value : *list) {
|
/external/libdrm/freedreno/kgsl/ |
kgsl_pipe.c | 127 /* add buffer to submit list when it is referenced in cmdstream: */ 133 struct list_head *list = &kgsl_bo->list[pipe->id]; local 134 if (LIST_IS_EMPTY(list)) { 137 list_del(list); 139 list_addtail(list, &kgsl_pipe->submit_list); 142 /* prepare buffers on submit list before flush: */ 151 LIST_FOR_EACH_ENTRY(kgsl_bo, &kgsl_pipe->submit_list, list[pipe->id]) { 158 /* process buffers on submit list after flush: */ 165 LIST_FOR_EACH_ENTRY_SAFE(kgsl_bo, tmp, &kgsl_pipe->submit_list, list[pipe->id]) 166 struct list_head *list = &kgsl_bo->list[pipe->id]; local 185 struct list_head *list = &kgsl_bo->list[pipe->id]; local [all...] |
/external/libdrm/nouveau/ |
bufctx.c | 48 struct nouveau_bufref_priv *list; member in struct:nouveau_bufbin_priv 109 while ((pref = pbin->list)) { 111 pbin->list = pref->next; 140 pref->next = pbin->list; 141 pbin->list = pref;
|
/external/libdrm/tests/ |
drmsl.c | 1 /* drmsl.c -- Skip list test 30 * This file contains a straightforward skip list implementation.n 47 static void print(void* list) 52 if (drmSLFirst(list, &key, &value)) { 55 } while (drmSLNext(list, &key, &value)); 61 void *list; local 71 list = drmSLCreate(); 76 drmSLInsert(list, keys[i], NULL); 80 if (drmSLFirst(list, &key, &value)) { 86 } while (drmSLNext(list, &key, &value)) 126 void* list; local [all...] |
/external/libxml2/doc/ |
libxml-doc.el | 74 ;; - Now keeps the list of symbols between calls to speed things up. 92 ;; - keep (match-string 1) in a variable (libxmldoc-get-list-of-symbols) 120 "The list of libxml-symbols.") 128 ;; Build up a symbol list if necessary 130 (setq libxmldoc-symbols (libxmldoc-get-list-of-symbols))) 158 (list (cdr (assoc symbol libxmldoc-symbols))))) 180 (defun libxmldoc-get-list-of-symbols() 181 "Get the list of html-links in the libxml-documentation." 208 ;; this needs add-to-list because i.e. xmlChar appears often 210 (add-to-list 'symbols (cons (match-string 1) uri))) [all...] |