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

123456789

/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/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/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);
H A DListActivity.java89 ListView list = (ListView) findViewById(R.id.list);
90 list.setAdapter(adapter);
92 registerForContextMenu(list);
H A DViewLayersActivity2.java46 final ListView list = (ListView) findViewById(listId);
47 list.setAdapter(new SimpleListAdapter(this));
48 list.setLayerType(View.LAYER_TYPE_HARDWARE, null);
/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/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),
112 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList);
126 list.add(*handle, rec);
142 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList);
143 list.removeItem(handle);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp399 * Dynamically creates layer list with numLayers worth
404 hwc_display_contents_1_t *list; local
407 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) {
410 list->flags = HWC_GEOMETRY_CHANGED;
411 list->numHwLayers = numLayers;
413 return list;
420 void hwcTestFreeLayerList(hwc_display_contents_1_t *list) argument
422 free(list);
425 // Display the settings of the layer list pointed to by list
426 hwcTestDisplayList(hwc_display_contents_1_t *list) argument
497 hwcTestDisplayListPrepareModifiable(hwc_display_contents_1_t *list) argument
525 hwcTestDisplayListHandles(hwc_display_contents_1_t *list) argument
[all...]
H A DhwcColorEquiv.cpp347 hwc_display_contents_1_t *list; local
349 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) {
350 testPrintE("Allocate list failed");
353 list->flags = HWC_GEOMETRY_CHANGED;
354 list->numHwLayers = numFrames;
356 hwc_layer_1_t *layer = &list->hwLayers[0];
385 if (verbose) { testPrintI("Prepare:"); hwcTestDisplayList(list); }
386 hwcDevice->prepare(hwcDevice, 1, &list);
389 hwcTestDisplayListPrepareModifiable(list);
393 list
[all...]
H A DhwcStress.cpp221 * b. Create a HWC list with room to specify a prandomly
226 * of the layers in the HWC list.
228 * d. Prandomly fill in the HWC list with handles
231 * e. Pass the populated list to the HWC prepare call.
233 * f. Pass the populated list to the HWC set call.
412 hwc_display_contents_1_t *list; local
413 list = hwcTestCreateLayerList(testRandMod(frames.size()) + 1);
414 if (list == NULL) {
421 selectedFrames = vectorRandSelect(frames, list->numHwLayers);
428 for (unsigned int n1 = 0; n1 < list
[all...]
/frameworks/compile/slang/
H A Dslang_pragma_recorder.h20 #include <list>
33 typedef std::list< std::pair<std::string, std::string> > PragmaList;
/frameworks/native/services/sensorservice/
H A DSensorFusion.cpp30 sensor_t const* list; local
31 ssize_t count = mSensorDevice.getSensorList(&list);
34 if (list[i].type == SENSOR_TYPE_ACCELEROMETER) {
35 mAcc = Sensor(list + i);
37 if (list[i].type == SENSOR_TYPE_MAGNETIC_FIELD) {
38 mMag = Sensor(list + i);
40 if (list[i].type == SENSOR_TYPE_GYROSCOPE) {
41 mGyro = Sensor(list + i);
H A DSensorDevice.cpp56 sensor_t const* list; local
57 ssize_t count = mSensorModule->get_sensors_list(mSensorModule, &list);
61 mActivationCount.add(list[i].handle, model);
62 mSensorDevice->activate(mSensorDevice, list[i].handle, 0);
71 sensor_t const* list; local
72 ssize_t count = mSensorModule->get_sensors_list(mSensorModule, &list);
79 const Info& info = mActivationCount.valueFor(list[i].handle);
81 list[i].handle,
95 ssize_t SensorDevice::getSensorList(sensor_t const** list) { argument
97 ssize_t count = mSensorModule->get_sensors_list(mSensorModule, list);
[all...]
/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/libs/androidfw/
H A DKeyboard.cpp171 static int lookupValueByLabel(const char* literal, const KeycodeLabel *list) { argument
172 while (list->literal) {
173 if (strcmp(literal, list->literal) == 0) {
174 return list->value;
176 list++;
178 return list->value;
181 static const char* lookupLabelByValue(int value, const KeycodeLabel *list) { argument
182 while (list->literal) {
183 if (list->value == value) {
184 return list
[all...]
/frameworks/compile/libbcc/tools/mcld/
H A DMain.cpp77 static llvm::cl::list<std::string>
80 llvm::cl::desc("Add path searchdir to the list of paths that "
137 static llvm::cl::list<std::string>
142 static llvm::cl::list<std::string>
146 "namespec to the list of files to link."),
153 static llvm::cl::list<std::string>
159 static llvm::cl::list<std::string>
246 llvm::cl::list<std::string>::iterator wrap, wrap_end = OptWrapList.end();
252 llvm::cl::list<std::string>::iterator portable, portable_end = OptPortableList.end();
258 llvm::cl::list<st
[all...]
/frameworks/compile/mclinker/tools/mcld/
H A Dmain.cpp70 static llvm::cl::list<std::string>
73 llvm::cl::desc("Add path searchdir to the list of paths that "
130 static llvm::cl::list<std::string>
135 static llvm::cl::list<std::string>
139 "namespec to the list of files to link."),
146 static llvm::cl::list<std::string>
152 static llvm::cl::list<std::string>
239 llvm::cl::list<std::string>::iterator wrap, wrap_end = OptWrapList.end();
245 llvm::cl::list<std::string>::iterator portable, portable_end = OptPortableList.end();
251 llvm::cl::list<st
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DServiceStateTracker.java165 * Danmarkshavn (Denmark). The list must be sorted by code.
191 List<CellInfo> list; field in class:ServiceStateTracker.CellInfoResult
384 result.list = null;
386 result.list = (List<CellInfo>) ar.result;
389 log("EVENT_GET_CELL_INFO_LIST: size=" + result.list.size()
390 + " list=" + result.list);
394 mLastCellInfoList = result.list;
405 List<CellInfo> list = (List<CellInfo>) ar.result;
407 log("EVENT_UNSOL_CELL_INFO_LIST: size=" + list
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp82 Sensor const* const list = sensorList[next]; local
84 jstring name = env->NewStringUTF(list->getName().string());
85 jstring vendor = env->NewStringUTF(list->getVendor().string());
88 env->SetIntField(sensor, sensorOffsets.version, list->getVersion());
89 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle());
90 env->SetIntField(sensor, sensorOffsets.type, list->getType());
91 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue());
92 env->SetFloatField(sensor, sensorOffsets.resolution, list->getResolution());
93 env->SetFloatField(sensor, sensorOffsets.power, list->getPowerUsage());
94 env->SetIntField(sensor, sensorOffsets.minDelay, list
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceManager.java184 * Returns a list of {@link Activity} (indirectly) that match a given
188 * @return The list of {@link ResolveInfo} that point to the matched
605 List<OnActivityResultListener> list;
609 list = new ArrayList<OnActivityResultListener>(mActivityResultListeners);
612 final int N = list.size();
614 if (list.get(i).onActivityResult(requestCode, resultCode, data)) {
655 List<OnActivityStopListener> list;
659 list = new ArrayList<OnActivityStopListener>(mActivityStopListeners);
662 final int N = list.size();
664 list
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DPredicatesTest.java69 ArrayList<E> list = new ArrayList<E>();
70 Collections.addAll(list, elements);
71 return list;

Completed in 3778 milliseconds

123456789