/external/snakeyaml/src/test/java/org/yaml/snakeyaml/representer/ |
SafeRepresenterTest.java | 23 import java.util.List; 46 List<Number> list = new ArrayList<Number>(); local 47 list.add(new Byte((byte) 3)); 48 list.add(new Short((short) 4)); 49 list.add(new Integer(5)); 50 list.add(new BigInteger("6")); 51 list.add(new Long(7L)); 52 list.add(Double.POSITIVE_INFINITY); 53 list.add(Double.NEGATIVE_INFINITY) 61 List<Date> list = new ArrayList<Date>(); local 85 List<Integer> list = new ArrayList<Integer>(); local 103 List<Integer> list = new ArrayList<Integer>(); local 120 List<Integer> list = new ArrayList<Integer>(); local [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
OpReorderer.java | 26 import java.util.List; 36 void reorderOps(List<UpdateOp> ops) { 38 // we push them to the end of the list so that they can be handled easily. 45 private void swapMoveOp(List<UpdateOp> list, int badMove, int next) { 46 final UpdateOp moveOp = list.get(badMove); 47 final UpdateOp nextOp = list.get(next); 50 swapMoveRemove(list, badMove, moveOp, next, nextOp); 53 swapMoveAdd(list, badMove, moveOp, next, nextOp); 56 swapMoveUpdate(list, badMove, moveOp, next, nextOp) [all...] |
/frameworks/base/core/tests/benchmarks/src/android/util/ |
StreamsBenchmark.java | 28 import java.util.List; 85 List<Pair<Integer, Integer>> callsList = 104 private static List<Pair<Integer, Integer>> getOpenSessionCallsList( 106 ArrayList<Pair<Integer, Integer>> list = new ArrayList<>(openSessionCalls.size()); local 109 list.add(new Pair<>(uid, openSessionCalls.get(uid))); 112 return list;
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
EffectsTest.java | 96 ListView list = (ListView) findViewById(R.id.effect_list); local 97 list.setAdapter(new EffectListAdapter(this, descriptors));
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ViewLayersActivity.java | 97 final ListView list = findViewById(listId); local 98 list.setAdapter(new SimpleListAdapter(this));
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
Size.java | 24 import java.util.List; 33 * An helper method to build a list of this class from a list of 37 * @return The built list. 39 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) { 40 ArrayList<Size> list = new ArrayList<Size>(cameraSizes.size()); local 42 list.add(new Size(cameraSize)); 44 return list; 48 * A helper method to build a list of this class from a list of {@link android.util.Size} 54 ArrayList<Size> list = new ArrayList<Size>(androidSizes.size()); local 84 ArrayList<Size> list = new ArrayList<>(); local [all...] |
/frameworks/layoutlib/bridge/src/android/os/ |
HandlerThread_Delegate.java | 25 import java.util.List; 38 private static Map<BridgeContext, List<HandlerThread>> sThreads = 39 new HashMap<BridgeContext, List<HandlerThread>>(); 42 List<HandlerThread> list = sThreads.get(context); local 43 if (list != null) { 44 for (HandlerThread thread : list) { 48 list.clear(); 59 List<HandlerThread> list = sThreads.get(context) local [all...] |
/frameworks/support/media/src/androidTest/java/androidx/media/ |
TestUtils.java | 32 import java.util.List; 106 * @param size list size 109 public static List<MediaItem2> createPlaylist(int size) { 110 final List<MediaItem2> list = new ArrayList<>(); local 113 list.add(new MediaItem2.Builder(MediaItem2.FLAG_PLAYABLE) 117 return list;
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/ |
TestUtils.java | 32 import java.util.List; 107 * @param size list size 110 public static List<MediaItem2> createPlaylist(int size) { 111 final List<MediaItem2> list = new ArrayList<>(); local 114 list.add(new MediaItem2.Builder(MediaItem2.FLAG_PLAYABLE) 118 return list;
|
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/ |
AppBarActivity.java | 50 PagedListView list = findViewById(R.id.list); local 51 list.setAdapter(new ListItemAdapter(this, new SampleProvider(this, 50)));
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
GapWorkerTest.java | 84 ArrayList<GapWorker.Task> list = new ArrayList<>(); local 85 list.add(new GapWorker.Task()); 86 list.add(new GapWorker.Task()); 87 list.add(new GapWorker.Task()); 89 list.get(0).view = null; 90 list.get(1).view = new RecyclerView(getContext()); 91 list.get(2).view = null; 93 Collections.sort(list, GapWorker.sTaskComparator); 95 assertNotNull(list.get(0).view); 96 assertNull(list.get(1).view) 101 ArrayList<GapWorker.Task> list = new ArrayList<>(); local 119 ArrayList<GapWorker.Task> list = new ArrayList<>(); local 142 ArrayList<GapWorker.Task> list = new ArrayList<>(); local [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
OpReorderer.java | 19 import java.util.List; 29 void reorderOps(List<AdapterHelper.UpdateOp> ops) { 31 // we push them to the end of the list so that they can be handled easily. 38 private void swapMoveOp(List<AdapterHelper.UpdateOp> list, int badMove, int next) { 39 final AdapterHelper.UpdateOp moveOp = list.get(badMove); 40 final AdapterHelper.UpdateOp nextOp = list.get(next); 43 swapMoveRemove(list, badMove, moveOp, next, nextOp); 46 swapMoveAdd(list, badMove, moveOp, next, nextOp); 49 swapMoveUpdate(list, badMove, moveOp, next, nextOp) [all...] |
/libcore/luni/src/test/java/libcore/libcore/util/ |
CollectionUtilsTest.java | 25 import java.util.List; 33 List<Reference<String>> refs = new ArrayList<Reference<String>>(); 69 private <T> List<T> toList(Iterable<T> iterable) { 70 List<T> result = new ArrayList<T>(); 78 List<String> list = new ArrayList<String>(); local 79 CollectionUtils.removeDuplicates(list, String.CASE_INSENSITIVE_ORDER); 80 assertTrue(list.isEmpty()); 84 List<String> list = Arrays.asList("A") local 90 List<String> list = new ArrayList<String>(); local [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
SimpleBuilderTest.java | 67 NodeList list = root.getElementsByTagName("nestedStuff"); local 68 assertNotNull(list); 69 assertEquals(list.getLength(), 4); 71 Element one = (Element) list.item(0); 72 Element two = (Element) list.item(1); 73 Element three = (Element) list.item(2); 74 Element four = (Element) list.item(3); 90 list = document.getChildNodes(); 91 assertNotNull(list); 96 for (int i = 0; i < list.getLength(); i++) [all...] |
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
LoggingTestCase.java | 28 import java.util.List; 53 List<Object> list = new ArrayList<>(); local 54 Collections.addAll(list, result.getParameters()); 55 list.add(context.toString()); 56 result.setParameters(list.toArray(new Object[list.size()]));
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
MyCertificateFactorySpi.java | 36 import java.util.List; 47 // mode: false - list of encodings is empty 48 // mode: true - list of encodings consists of 2 elements 52 private Set<String> list; field in class:MyCertificateFactorySpi 57 list = new HashSet<String>(); 58 list.add("aa"); 59 list.add("bb"); 124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) { 135 list.clear(); 137 return list.iterator() [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint/ |
FingerprintEnrollIntroductionTest.java | 39 import java.util.List; 87 private List<Fingerprint> generateFingerprintList(int num) { 88 ArrayList<Fingerprint> list = new ArrayList<>(); local 90 list.add(new Fingerprint("Fingerprint " + i, 0, i, 0)); 92 return list;
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
AddressList.java | 29 * An immutable, random-access list of Address objects. 49 * The number of elements in this list. 65 * Returns a flat list of all mailboxes represented 66 * in this address list. Use this if you don't care 94 * Dumps a representation of this address list to 105 * Parse the address list string, such as the value 129 AddressList list = parse(line); local 130 list.print();
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
RecurrenceSetTest.java | 27 import java.util.List; 113 List<ICalendar.Property> list = component.getProperties("DTSTART"); local 114 assertTrue(list.size() == 1); 115 assertEquals("19700101T000000Z", list.get(0).getValue()); 117 list = component.getProperties("RRULE"); 118 assertTrue(list.size() == 1); 119 assertEquals(RRULE_LESS_THAN_75_CHARS,list.get(0).getValue()); 130 list = component.getProperties("RRULE"); 131 assertTrue(list.size() == 1) [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
TypeList.java | 23 public TypeItem[] list; field in class:TypeList 30 list = new TypeItem[size]; 32 (list[i] = new TypeItem()).read(file); 41 for (TypeItem typeItem : list) { 48 for (TypeItem type : list) { 60 if (list[i].typeIdx < other.list[i].typeIdx) { 62 } else if (list[i].typeIdx > other.list[i].typeIdx) {
|
/bionic/linker/tests/ |
linked_list_test.cpp | 9 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer in 61 std::string test_list_to_string(test_list_t& list) { 63 list.for_each([&] (const char* c) { 74 test_list_t list; local 75 ASSERT_EQ("", test_list_to_string(list)); 78 list.push_front("a"); 81 ASSERT_EQ("a", test_list_to_string(list)); 82 list.push_front("b"); 83 ASSERT_EQ("ba", test_list_to_string(list)); 112 test_list_t list; local 132 test_list_t list; local 149 test_list_t list; local 166 test_list_t list; local 211 test_list_t list; local [all...] |
/build/blueprint/bpfmt/ |
bpfmt.go | 23 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's") 87 if *list { 106 if !*list && !*overwriteSourceFile && !*doDiff { 130 if !*writeToStout && !*overwriteSourceFile && !*doDiff && !*list { 21 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's") var
|
/build/make/target/product/vndk/ |
Android.mk | 5 # Create the list of vndk libraries from the source code. 21 # This is the up-to-date list of vndk libs. 22 # TODO(b/62012285): the lib list should be stored somewhere under 34 # Check the generate list against the latest list stored in the 36 .PHONY: check-vndk-list 38 # Check if vndk list is changed 39 droidcore: check-vndk-list 41 check-vndk-list-timestamp := $(call intermediates-dir-for,PACKAGING,vndk)/check-list-timestam [all...] |
/build/soong/bpfix/cmd/ |
bpfix.go | 38 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's") 91 if *list { 109 if !*list && !*write && !*doDiff { 36 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's") var
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/ |
ListPresentation.java | 17 package com.android.cts.verifier.projection.list; 32 * Render a list view that scrolls 36 private static final int NUM_ITEMS = 50; // Enough to make the list scroll
|