Searched refs:list (Results 1 - 25 of 321) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DListUtils.java22 * Various assortment of list utilities.
24 * <p>Using a {@code null} list is supported and will almost always return the default value
29 /** Return {@code} true if the {@code list} contains the {@code needle}. */
30 public static <T> boolean listContains(List<T> list, T needle) { argument
31 if (list == null) {
34 return list.contains(needle);
39 * Return {@code true} if the {@code list} is only a single element equal to
42 public static <T> boolean listElementsEqualTo(List<T> list, T single) { argument
43 if (list == null) {
47 return (list
53 listToString(List<T> list) argument
87 listSelectFirstFrom(List<T> list, T[] choices) argument
[all...]
H A DArrayUtils.java71 * @param list Source list of strings
72 * @param convertFrom Conversion list of strings
73 * @param convertTo Conversion list of ints
75 * or {@code null} if {@code list} was {@code null}
78 List<String> list, String[] convertFrom, int[] convertTo) {
79 if (list == null) {
83 List<Integer> convertedList = convertStringListToIntList(list, convertFrom, convertTo);
101 * @param list Source list o
77 convertStringListToIntArray( List<String> list, String[] convertFrom, int[] convertTo) argument
107 convertStringListToIntList( List<String> list, String[] convertFrom, int[] convertTo) argument
144 toIntArray(List<Integer> list) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DEvents.java107 public static void writeEvent(Context context, int tag, Object... list) { argument
110 if (list != null && list.length > 0) {
116 (Boolean) list[1] ? 1 : 0);
117 sb.append(SHOW_REASONS[(Integer) list[0]]).append(" keyguard=").append(list[1]);
121 (Boolean) list[0]);
122 sb.append(list[0]);
126 sb.append(DISMISS_REASONS[(Integer) list[0]]);
130 (Integer) list[
214 writeEvent(long time, int tag, Object[] list) argument
[all...]
/frameworks/base/core/java/com/google/android/collect/
H A DLists.java47 * <p>{@code List<Base> list = Lists.newArrayList(sub1, sub2);}
53 * <p>{@code List<Base> list = Lists.<Base>newArrayList(sub1, sub2);}
55 * @param elements the elements that the list should contain, in order
60 ArrayList<E> list = new ArrayList<E>(capacity);
61 Collections.addAll(list, elements);
62 return list;
/frameworks/base/media/java/android/media/
H A DMediaInserter.java60 List<ContentValues> list = rowmap.get(tableUri);
61 if (list == null) {
62 list = new ArrayList<ContentValues>();
63 rowmap.put(tableUri, list);
65 list.add(new ContentValues(values));
66 if (list.size() >= mBufferSizePerUri) {
68 flush(tableUri, list);
75 List<ContentValues> list = mRowMap.get(tableUri);
76 flush(tableUri, list);
83 List<ContentValues> list
89 flush(Uri tableUri, List<ContentValues> list) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DHandlerThread_Delegate.java42 List<HandlerThread> list = sThreads.get(context);
43 if (list != null) {
44 for (HandlerThread thread : list) {
48 list.clear();
59 List<HandlerThread> list = sThreads.get(context);
60 if (list == null) {
61 list = new ArrayList<HandlerThread>();
62 sThreads.put(context, list);
65 list.add(theThread);
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
H A DGenericAdapter.java30 public static <T> void setListText(TextView view, List<T> list) { argument
31 setText(view, list);
35 public static <T> void setCollectionText(TextView view, Collection<T> list) { argument
36 setText(view, list);
45 public static <T> void setListAndArray(TextView view, List<T> list, T[] values) { argument
46 setText(view, list);
49 @BindingAdapter("list")
54 @BindingAdapter({"list", "array"})
55 public static <T> void setGenericListAndArray(GenericView<T> view, List<T> list, T[] values) { argument
56 view.setList(list);
60 setGenericList(TextView view, List<String> list) argument
65 setGenericIntegerList(TextView view, List<Integer> list) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListViewHeightTest.java56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list);
57 assertEquals("Unexpected items in adapter", 0, list.getCount());
58 assertEquals("Unexpected children in list view", 0, list.getChildCount());
66 assertTrue("List not be visible after clicking button1", list.isShown());
67 assertTrue("List incorrect height", list.getHeight() == 200);
75 assertTrue("List not be visible after clicking button2", list.isShown());
83 assertFalse("List should not be visible clicking button3", list.isShown());
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DMotionStatsAggregator.java27 String [] list = new String[1];
28 list[0] = CURRENT_MOTION;
29 return list;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOpReorderer.java37 // we push them to the end of the list so that they can be handled easily.
44 private void swapMoveOp(List<UpdateOp> list, int badMove, int next) { argument
45 final UpdateOp moveOp = list.get(badMove);
46 final UpdateOp nextOp = list.get(next);
49 swapMoveRemove(list, badMove, moveOp, next, nextOp);
52 swapMoveAdd(list, badMove, moveOp, next, nextOp);
55 swapMoveUpdate(list, badMove, moveOp, next, nextOp);
60 void swapMoveRemove(List<UpdateOp> list, int movePos, UpdateOp moveOp, argument
90 list.remove(removePos);
109 list
159 swapMoveAdd(List<UpdateOp> list, int move, UpdateOp moveOp, int add, UpdateOp addOp) argument
180 swapMoveUpdate(List<UpdateOp> list, int move, UpdateOp moveOp, int update, UpdateOp updateOp) argument
217 getLastMoveOutOfOrder(List<UpdateOp> list) argument
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DGenericAdapterTest.java36 List<String> list = Arrays.asList(arr);
37 getBinder().setList(list);
44 assertEquals(list, getBinder().view5.getList());
45 assertEquals(list, getBinder().view6.getList());
/frameworks/data-binding/library/src/main/java/android/databinding/
H A DListChangeRegistry.java64 * Notify registered callbacks that there was an unknown or whole-list change.
66 * @param list The list that changed.
68 public void notifyChanged(ObservableList list) { argument
69 notifyCallbacks(list, ALL, null);
75 * @param list The list that changed.
79 public void notifyChanged(ObservableList list, int start, int count) { argument
81 notifyCallbacks(list, CHANGED, listChanges);
87 * @param list Th
91 notifyInserted(ObservableList list, int start, int count) argument
104 notifyMoved(ObservableList list, int from, int to, int count) argument
116 notifyRemoved(ObservableList list, int start, int count) argument
[all...]
/frameworks/compile/libbcc/include/bcc/Renderscript/
H A DRSCompilerDriver.h25 #include <list>
150 const std::list<std::list<std::pair<int, int>>>& toFuse,
151 const std::list<std::string>& fused,
152 const std::list<std::list<std::pair<int, int>>>& invokes,
153 const std::list<std::string>& invokeBatchNames);
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DSize.java33 * An helper method to build a list of this class from a list of
37 * @return The built list.
40 ArrayList<Size> list = new ArrayList<Size>(cameraSizes.size());
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}.
51 * @return The built list.
54 ArrayList<Size> list
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransparentListActivity.java87 ListView list = (ListView) findViewById(R.id.list);
88 list.setAdapter(adapter);
89 list.setCacheColorHint(0);
90 list.setVerticalFadingEdgeEnabled(true);
92 registerForContextMenu(list);
H A DViewLayersActivity3.java42 final ListView list = (ListView) findViewById(listId);
43 list.setAdapter(new SimpleListAdapter(this));
44 list.setLayerType(View.LAYER_TYPE_HARDWARE, null);
45 ((View) list.getParent()).setLayerType(View.LAYER_TYPE_HARDWARE, null);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DConfig.java58 List<String> list = new ArrayList<String>(4);
61 list.add(GINGERBREAD_DIR);
65 list.add(JELLYBEAN_DIR);
69 list.add(KITKAT_DIR);
71 list.add(DEFAULT_RESOURCE_DIR);
73 return Collections.unmodifiableList(list);
/frameworks/base/core/tests/coretests/src/android/os/
H A DAidlTest.java113 public TestParcelable listParcelableLonger(List<TestParcelable> list, int index) { argument
114 list.add(list.get(index));
115 return list.get(index);
118 public int listParcelableShorter(List<TestParcelable> list, int index) { argument
119 list.remove(index);
120 return list.size();
241 List<TestParcelable> list = Lists.newArrayList();
242 list.add(new TestParcelable(33, "asdf"));
243 list
[all...]
/frameworks/base/libs/hwui/unit_tests/
H A DClipAreaTests.cpp61 RectangleList list; local
62 EXPECT_TRUE(list.isEmpty());
67 list.set(r, m45);
68 EXPECT_FALSE(list.isEmpty());
71 list.intersectWith(r2, m45);
72 EXPECT_FALSE(list.isEmpty());
73 EXPECT_EQ(1, list.getTransformedRectanglesCount());
78 list.intersectWith(r2, m30);
79 EXPECT_FALSE(list.isEmpty());
80 EXPECT_EQ(2, list
[all...]
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSIsThreadablePass.cpp81 bool isPresent(std::vector<std::string> &list, std::string name) { argument
82 auto lower = std::lower_bound(list.begin(),
83 list.end(),
86 if (lower != list.end() && name.compare(*lower) == 0)
H A DRSScreenFunctionsPass.cpp39 bool isPresent(std::vector<std::string> &list, std::string name) { argument
40 auto lower = std::lower_bound(list.begin(),
41 list.end(),
44 if (lower != list.end() && name.compare(*lower) == 0)
/frameworks/native/services/sensorservice/
H A DSensorFusion.cpp30 sensor_t const* list; local
32 ssize_t count = mSensorDevice.getSensorList(&list);
35 if (list[i].type == SENSOR_TYPE_ACCELEROMETER) {
36 mAcc = Sensor(list + i);
38 if (list[i].type == SENSOR_TYPE_MAGNETIC_FIELD) {
39 mMag = Sensor(list + i);
41 if (list[i].type == SENSOR_TYPE_GYROSCOPE) {
42 mGyro = Sensor(list + i);
44 if (list[i].type == SENSOR_TYPE_GYROSCOPE_UNCALIBRATED) {
45 uncalibratedGyro = Sensor(list
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp57 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList);
63 const size_t c = list.size();
65 const alloc_rec_t& rec(list.valueAt(i));
68 list.keyAt(i), rec.size/1024.0f,
72 list.keyAt(i),
121 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList);
130 list.add(*handle, rec);
146 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList);
147 list.removeItem(handle);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DParceledListSliceTest.java14 List<SmallObject> list = new ArrayList<SmallObject>();
16 list.add(new SmallObject(i * 2, (i * 2) + 1));
23 parcel.writeParcelable(new ParceledListSlice<SmallObject>(list), 0);
51 * Test that when the list is large, the data is successfully parceled
52 * and unparceled (the implementation will send pieces of the list in
59 List<LargeObject> list = new ArrayList<LargeObject>();
61 list.add(new LargeObject(
74 parcel.writeParcelable(new ParceledListSlice<LargeObject>(list), 0);
98 List<BaseObject> list = new ArrayList<BaseObject>();
99 list
124 writeEvilParceledListSlice(Parcel dest, List<T> list) argument
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp401 * Dynamically creates layer list with numLayers worth
406 hwc_display_contents_1_t *list; local
409 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) {
412 list->flags = HWC_GEOMETRY_CHANGED;
413 list->numHwLayers = numLayers;
415 return list;
422 void hwcTestFreeLayerList(hwc_display_contents_1_t *list) argument
424 free(list);
427 // Display the settings of the layer list pointed to by list
428 hwcTestDisplayList(hwc_display_contents_1_t *list) argument
499 hwcTestDisplayListPrepareModifiable(hwc_display_contents_1_t *list) argument
527 hwcTestDisplayListHandles(hwc_display_contents_1_t *list) argument
[all...]

Completed in 2926 milliseconds

1234567891011>>