/dalvik/dx/src/com/android/dx/dex/file/ |
TypeListItem.java | 26 * Representation of a list of class references. 38 /** {@code non-null;} the actual list */ 39 private final TypeList list; field in class:TypeListItem 44 * @param list {@code non-null;} the actual list 46 public TypeListItem(TypeList list) { 47 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); 49 this.list = list; 55 return StdTypeList.hashContents(list); [all...] |
/prebuilts/go/darwin-x86/test/ken/ |
rob1.go | 7 // Test general operation using a list implementation. 20 type List struct { 24 func (list *List) Init() { 25 list.head = nil 28 func (list *List) Insert(i Item) { 31 item.next = list.head 32 list.head = item 35 func (list *List) Print() string [all...] |
/prebuilts/go/linux-x86/test/ken/ |
rob1.go | 7 // Test general operation using a list implementation. 20 type List struct { 24 func (list *List) Init() { 25 list.head = nil 28 func (list *List) Insert(i Item) { 31 item.next = list.head 32 list.head = item 35 func (list *List) Print() string [all...] |
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/ |
UniqueModuleCountUtilTest.java | 30 import java.util.List; 39 List<IModuleDef> emptyList = new ArrayList<>(); 45 List<IModuleDef> list = new ArrayList<>(); local 46 list.add(new ModuleDef("moduleA", new Abi("arm64", "64"), new TestStub(), 48 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub(), 50 assertEquals(2, UniqueModuleCountUtil.countUniqueModules(list)); 55 List<IModuleDef> list = new ArrayList<>(); local 56 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub() 65 List<IModuleDef> list = new ArrayList<>(); local [all...] |
/external/elfutils/libelf/ |
elf_nextscn.c | 69 Elf_ScnList *list = scn->list; local 71 if (scn + 1 < &list->data[list->cnt]) 73 else if (scn + 1 == &list->data[list->max] 74 && (list = list->next) != NULL) 76 /* If there is another element in the section list it must 78 assert (list->cnt > 0) [all...] |
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
ProtobufArrayList.java | 10 // notice, this list of conditions and the following disclaimer. 12 // copyright notice, this list of conditions and the following disclaimer 36 import java.util.List; 53 private final List<E> list; field in class:ProtobufArrayList 59 private ProtobufArrayList(List<E> list) { 60 this.list = list; 68 List<E> newList = new ArrayList<E>(capacity) [all...] |
LazyStringArrayList.java | 10 // notice, this list of conditions and the following disclaimer. 12 // copyright notice, this list of conditions and the following disclaimer 38 import java.util.List; 49 * and at least one of the threads modifies the list structurally, it 54 * synchronizing on some object that naturally encapsulates the list. 60 * will not result in any corruption of the list or change in behavior other 80 private final List<Object> list; field in class:LazyStringArrayList 91 list = new ArrayList<Object>(from.size()); 95 public LazyStringArrayList(List<String> from) 329 private final LazyStringArrayList list; field in class:LazyStringArrayList.ByteArrayListView 373 private final LazyStringArrayList list; field in class:LazyStringArrayList.ByteStringListView [all...] |
/external/protobuf/src/google/protobuf/compiler/ |
zip_output_unittest.sh | 12 # notice, this list of conditions and the following disclaimer. 14 # copyright notice, this list of conditions and the following disclaimer 61 unzip -t $TEST_TMPDIR/testzip.zip > $TEST_TMPDIR/testzip.list || fail 'unzip failed.' 63 grep 'testing: testzip\.pb\.cc *OK$' $TEST_TMPDIR/testzip.list > /dev/null \ 65 grep 'testing: testzip\.pb\.h *OK$' $TEST_TMPDIR/testzip.list > /dev/null \ 67 grep 'testing: testzip_pb2\.py *OK$' $TEST_TMPDIR/testzip.list > /dev/null \ 69 grep -i 'manifest' $TEST_TMPDIR/testzip.list > /dev/null \ 77 jar tf $TEST_TMPDIR/testzip.jar > $TEST_TMPDIR/testzip.list || fail 'jar failed.' 79 grep '^test/jar/Foo\.java$' $TEST_TMPDIR/testzip.list > /dev/null \ 81 grep '^test/jar/Bar\.java$' $TEST_TMPDIR/testzip.list > /dev/null [all...] |
/external/selinux/libselinux/src/ |
is_customizable_type.c | 17 char **list = NULL; local 33 list = 36 if (list) { 41 list[i] = (char *) strdup(buf); 42 if (!list[i]) { 45 free(list[j]); 46 free(list); 47 list = NULL; 56 if (!list) 58 *retlist = list; [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue73/ |
ArrayListTest.java | 26 * interface List 32 ArrayList<String> list = new ArrayList<String>(3); local 33 list.add("zzz"); 34 list.add("xxx"); 35 list.add("ccc"); 36 bean.setList(list); 46 private ArrayList<String> list; field in class:ArrayListTest.Bean1 50 return list; 53 public void setList(ArrayList<String> list) { 54 this.list = list [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_mdpcomp.h | 43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list); 45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0; 51 int drawOverlap(hwc_context_t *ctx, hwc_display_contents_1_t* list); 100 /* maps layer list to mdp list */ 104 /* maps mdp list to layer list */ 137 void cacheAll(hwc_display_contents_1_t* list); 140 hwc_display_contents_1_t* list); 145 hwc_display_contents_1_t* list) = 0 [all...] |
/prebuilts/misc/common/swig/include/2.0.11/std/ |
std_list.i | 2 // std::list 7 // List 9 %define %std_list_methods(list) 10 %std_sequence_methods(list) 20 %define %std_list_methods_val(list) 21 %std_sequence_methods_val(list) 31 void merge(list& x); 35 // std::list 40 // -- f(std::list<T>), f(const std::list<T>&) [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.cons/ |
move.pass.cpp | 10 // <list> 12 // list(list&& c); 14 #include <list> 24 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); 25 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); 31 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); 37 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); 38 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); 44 std::list<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l) [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/containers/sequences/list/list.cons/ |
move.pass.cpp | 10 // <list> 12 // list(list&& c); 14 #include <list> 24 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); 25 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); 31 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); 37 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); 38 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); 44 std::list<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/ |
split.h | 10 /* Overallocate the initial list to reduce the number of reallocs for small
28 if (PyList_Append(list, sub)) { \
41 PyList_SET_ITEM(list, count, sub); \
43 if (PyList_Append(list, sub)) { \
53 /* Always force the list to the expected size. */
54 #define FIX_PREALLOC_SIZE(list) Py_SIZE(list) = count
62 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount));
local 65 if (list == NULL)
78 /* No whitespace in str_obj, so just use it as list[0] */ 111 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 154 PyObject *list, *sub; local 201 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 252 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 296 PyObject *list, *sub; local 353 PyObject *list = PyList_New(0); local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/ |
split.h | 10 /* Overallocate the initial list to reduce the number of reallocs for small
28 if (PyList_Append(list, sub)) { \
41 PyList_SET_ITEM(list, count, sub); \
43 if (PyList_Append(list, sub)) { \
53 /* Always force the list to the expected size. */
54 #define FIX_PREALLOC_SIZE(list) Py_SIZE(list) = count
62 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount));
local 65 if (list == NULL)
78 /* No whitespace in str_obj, so just use it as list[0] */ 111 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 154 PyObject *list, *sub; local 201 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 252 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 296 PyObject *list, *sub; local 353 PyObject *list = PyList_New(0); local [all...] |
/external/python/cpython2/Objects/stringlib/ |
split.h | 10 /* Overallocate the initial list to reduce the number of reallocs for small 28 if (PyList_Append(list, sub)) { \ 41 PyList_SET_ITEM(list, count, sub); \ 43 if (PyList_Append(list, sub)) { \ 53 /* Always force the list to the expected size. */ 54 #define FIX_PREALLOC_SIZE(list) Py_SIZE(list) = count 62 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 65 if (list == NULL) 78 /* No whitespace in str_obj, so just use it as list[0] * 111 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 154 PyObject *list, *sub; local 201 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 252 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); local 296 PyObject *list, *sub; local 353 PyObject *list = PyList_New(0); local [all...] |
/external/webrtc/webrtc/base/ |
network_unittest.cc | 56 const NetworkManager::NetworkList& list, 59 network_manager.MergeNetworkList(list, changed, &stats); 70 NetworkManager::NetworkList list; local 71 network_manager.CreateNetworks(include_ignored, &list); 72 return list; 112 struct ifaddrs* AddIpv6Address(struct ifaddrs* list, 124 if_addr->ifa_next = list; 129 void ReleaseIfAddrs(struct ifaddrs* list) { 130 struct ifaddrs* if_addr = list; 172 // TODO(phoglund): Remove when ignore list goes away 269 NetworkManager::NetworkList list; local 377 NetworkManager::NetworkList list; local 416 NetworkManager::NetworkList list; local 491 NetworkManager::NetworkList list; local 527 NetworkManager::NetworkList list; local 582 NetworkManager::NetworkList list; local 606 NetworkManager::NetworkList list = GetNetworks(manager, true); local 622 NetworkManager::NetworkList list; local 673 NetworkManager::NetworkList list; local 707 ifaddrs list; local 721 ifaddrs* list = nullptr; local 737 ifaddrs list; local 764 NetworkManager::NetworkList list; local 801 NetworkManager::NetworkList list; local 843 NetworkManager::NetworkList list; local [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ListsTest.java | 52 import java.util.List; 89 private static final List<Integer> SOME_LIST 92 private static final List<Integer> SOME_SEQUENTIAL_LIST 95 private static final List<String> SOME_STRING_LIST 116 @Override protected List<String> create(String[] elements) { 129 @Override protected List<String> create(String[] elements) { 145 @Override protected List<String> create(String[] elements) { 146 List<String> fromList = Lists.newArrayList(); 161 @Override protected List<String> create(String[] elements) { 162 List<String> fromList = Lists.newLinkedList() 275 ArrayList<Integer> list = Lists.newArrayList(); local 276 assertEquals(Collections.emptyList(), list); local 280 ArrayList<Integer> list = Lists.newArrayListWithCapacity(0); local 281 assertEquals(Collections.emptyList(), list); local 296 ArrayList<Integer> list = Lists.newArrayListWithExpectedSize(0); local 297 assertEquals(Collections.emptyList(), list); local 312 ArrayList<Integer> list = Lists.newArrayList(0, 1, 1); local 326 ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION); local 331 ArrayList<Integer> list = Lists.newArrayList(SOME_ITERABLE); local 336 ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION.iterator()); local 341 LinkedList<Integer> list = Lists.newLinkedList(); local 342 assertEquals(Collections.emptyList(), list); local 346 LinkedList<Integer> list = Lists.newLinkedList(SOME_COLLECTION); local 351 LinkedList<Integer> list = Lists.newLinkedList(SOME_ITERABLE); local 357 CopyOnWriteArrayList<Integer> list = Lists.newCopyOnWriteArrayList(); local 358 assertEquals(Collections.emptyList(), list); local 363 CopyOnWriteArrayList<Integer> list = Lists.newCopyOnWriteArrayList( local 406 List<String> list = Lists.asList("foo", new String[] { "bar", "baz" }); local 431 List<String> list = Lists.asList("foo", new String[0]); local 448 List<String> list = Lists.asList("foo", "bar", new String[] { "baz" }); local 462 List<String> list = Lists.asList("foo", "bar", new String[0]); local 529 private static <E> List<E> list(E... elements) { method in class:ListsTest 583 List<String> list = Collections.nCopies(10000, "foo"); local 591 List<String> list = Lists.transform(SOME_LIST, SOME_FUNCTION); local 596 List<String> list = Lists.transform(SOME_SEQUENTIAL_LIST, SOME_FUNCTION); local 602 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 608 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 626 assertEquals(Collections.emptyList(), list); local 663 List<String> list = Lists.transform(SOME_LIST, SOME_FUNCTION); local 668 List<String> list = Lists.transform(SOME_SEQUENTIAL_LIST, SOME_FUNCTION); local 674 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 680 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 740 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 746 List<String> list = Lists.transform(fromList, SOME_FUNCTION); local 872 List<Integer> list = asList(1, 2, 3); local 896 List<Integer> list = asList(1, 2, 3); local [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue100/ |
MergeJavaBeanTest.java | 19 import java.util.List; 36 List<Data> list = (List<Data>) yaml.load(input); local 37 for (Data data : list) { 49 List<?> list = (List<?>) yaml.load(input); local 51 assertEquals(list.get(0).getClass(), Data.class); 52 assertEquals(11, ((Data) list.get(0)).getAge()) 101 List<Object> list = (List<Object>) yaml.load(input); local 117 List<Object> list = (List<Object>) yaml.load(input); local 144 List<Data> list = (List<Data>) yaml.load(input); local [all...] |
/external/libcxx/test/std/containers/sequences/list/list.cons/ |
default_stack_alloc.pass.cpp | 10 // <list> 12 // explicit list(const Alloc& = Alloc()); 14 #include <list> 22 std::list<int> l; 27 std::list<int> l((std::allocator<int>())); 32 std::list<int, limited_allocator<int, 4> > l; 38 std::list<int, min_allocator<int>> l; 43 std::list<int, min_allocator<int>> l((min_allocator<int>()));
|
/external/libmojo/base/android/java/src/org/chromium/base/ |
CollectionUtil.java | 29 ArrayList<E> list = new ArrayList<E>(elements.length); local 30 Collections.addAll(list, elements); 31 return list; 36 ArrayList<E> list = new ArrayList<E>(); local 38 list.add(element); 40 return list;
|
/external/valgrind/coregrind/m_gdbserver/ |
inferiors.c | 41 void add_inferior_to_list (struct inferior_list *list, 45 if (list->tail != NULL) 46 list->tail->next = new_inferior; 48 list->head = new_inferior; 49 list->tail = new_inferior; 52 void for_each_inferior (struct inferior_list *list, 55 struct inferior_list_entry *cur = list->head, *next; 64 void change_inferior_id (struct inferior_list *list, 67 if (list->head != list->tail [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
MultiHashMap.java | 34 ArrayList<V> list = get(key); local 35 if (list == null) { 36 list = new ArrayList<>(); 37 list.add(value); 38 put(key, list); 40 list.add(value);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
Collapser.java | 25 * function that takes an ArrayList of items and returns a list of the same items collapsed into 45 * Collapses a list of Collapsible items into a list of collapsed items. Items are collapsed 49 * @param list ArrayList of Objects of type <T extends Collapsible<T>> to be collapsed. 51 public static <T extends Collapsible<T>> void collapseList(ArrayList<T> list) { 53 int listSize = list.size(); 56 T iItem = list.get(i); 59 T jItem = list.get(j); 63 list.set(j, null); 71 Iterator<T> itr = list.iterator() [all...] |