Searched defs:list (Results 1 - 25 of 78) sorted by relevance

1234

/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/native/services/sensorservice/
H A DCorrectedGyroSensor.cpp32 CorrectedGyroSensor::CorrectedGyroSensor(sensor_t const* list, size_t count) argument
37 if (list[i].type == SENSOR_TYPE_GYROSCOPE) {
38 mGyro = Sensor(list + i);
H A DGravitySensor.cpp32 GravitySensor::GravitySensor(sensor_t const* list, size_t count) argument
37 if (list[i].type == SENSOR_TYPE_ACCELEROMETER) {
38 mAccelerometer = Sensor(list + i);
H A DLinearAccelerationSensor.cpp32 LinearAccelerationSensor::LinearAccelerationSensor(sensor_t const* list, size_t count) argument
34 mGravitySensor(list, count)
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...]
H A DSensorDevice.cpp62 sensor_t const* list; local
63 ssize_t count = mSensorModule->get_sensors_list(mSensorModule, &list);
67 mActivationCount.add(list[i].handle, model);
70 list[i].handle, 0);
79 sensor_t const* list; local
80 ssize_t count = mSensorModule->get_sensors_list(mSensorModule, &list);
87 const Info& info = mActivationCount.valueFor(list[i].handle);
88 result.appendFormat("handle=0x%08x, active-count=%zu, batch_period(ms)={ ", list[i].handle,
97 result.appendFormat("handle=0x%08x, active-count=%zu, batch_timeout(ms)={ ", list[i].handle,
108 ssize_t SensorDevice::getSensorList(sensor_t const** list) { argument
[all...]
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebBackForwardListChromium.java85 private WebBackForwardListChromium(List<WebHistoryItemChromium> list, argument
87 mHistroryItemList = list;
96 List<WebHistoryItemChromium> list =
99 list.add(mHistroryItemList.get(i).clone());
101 return new WebBackForwardListChromium(list, mCurrentIndex);
/frameworks/av/media/libmedia/
H A DIMediaDeathNotifier.cpp82 SortedVector< wp<IMediaDeathNotifier> > list; local
86 list = sObitRecipients;
92 size_t count = list.size();
94 sp<IMediaDeathNotifier> notifier = list[iter].promote();
/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/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp66 Sensor const* const* list; local
67 ssize_t count = mgr.getSensorList(&list);
/frameworks/base/core/java/android/content/pm/
H A DParceledListSlice.java30 * Transfer a large list of Parcelable objects across an IPC. Splits into
54 public ParceledListSlice(List<T> list) { argument
55 mList = list;
119 + actual.getName() + " in list of type "
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DColumnAdapter.java55 public static void prepare(ListView list) { argument
56 list.setItemsCanFocus(true);
/frameworks/compile/mclinker/lib/Core/
H A DModule.cpp78 AliasList& list = **list_it; local
79 alias_iterator alias_it, alias_it_e=list.end();
80 for (alias_it=list.begin(); alias_it!=alias_it_e; ++alias_it) {
82 return &list;
/frameworks/native/include/input/
H A DInputEventLabels.h41 // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
351 // Refer to frameworks/base/core/java/android/view/MotionEvent.java for the full list.
383 static int lookupValueByLabel(const char* literal, const InputEventLabel *list) { argument
384 while (list->literal) {
385 if (strcmp(literal, list->literal) == 0) {
386 return list->value;
388 list++;
390 return list->value;
393 static const char* lookupLabelByValue(int value, const InputEventLabel* list) { argument
394 while (list
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DVNodeBuilder.java143 private String listToString(List<String> list){ argument
144 int size = list.size();
147 for (String type : list) {
156 return list.get(0);
/frameworks/rs/cpu_ref/linkloader/android/
H A Dlibrsloader.cpp225 char const **list) {
234 symtab->getFuncNameList(size, list);
223 rsloaderGetFuncNameList(RSExecRef object, size_t size, char const **list) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_dpb.h80 dpbPicture_t **list; member in struct:__anon602
/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelperBase.java109 boolean isKeyInList(String key, String[] list) { argument
110 for (String s: list) {
/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/base/core/tests/coretests/src/android/widget/
H A DSimpleCursorAdapterTest.java69 ArrayList<ArrayList> list = Lists.newArrayList();
74 list.add(col);
82 return list;
240 private static MatrixCursor createCursor(String[] columns, ArrayList<ArrayList> list) { argument
241 MatrixCursor cursor = new MatrixCursor(columns, list.size());
242 for (ArrayList row : list) {
/frameworks/base/include/androidfw/
H A DAssetDir.h36 * The list of files will be sorted in ascending order by ASCII value.
138 void setFileList(SortedVector<FileInfo>* list) { mFileInfo = list; } argument
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPermissionMonitor.java175 private int[] toIntArray(List<Integer> list) { argument
176 int[] array = new int[list.size()];
177 for (int i = 0; i < list.size(); i++) {
178 array[i] = list.get(i);
187 List<Integer> list = app.getValue() ? system : network;
189 list.add(UserHandle.getUid(user, app.getKey()));
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDeviceList.java30 * A class representing a Wi-Fi P2p device list.
73 /** Clear the list @hide */
81 * Add/update a device to the list. If the device is not found, a new device entry
128 * Fetch a device from the list
144 * Remove a device from the list
154 /** Returns true if any device the list was removed @hide */
155 public boolean remove(WifiP2pDeviceList list) { argument
157 for (WifiP2pDevice d : list.mDevices.values()) {
163 /** Get the list of devices */
/frameworks/native/libs/binder/
H A DIServiceManager.cpp218 Vector<String16> list = listServices(); local
219 const size_t N = list.size();
222 reply->writeString16(list[i]);

Completed in 930 milliseconds

1234