/frameworks/base/core/java/com/google/android/collect/ |
H A D | Lists.java | 47 * <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 D | MediaInserter.java | 60 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 D | HandlerThread_Delegate.java | 42 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 D | ListViewHeightTest.java | 56 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 D | MotionStatsAggregator.java | 27 String [] list = new String[1]; 28 list[0] = CURRENT_MOTION; 29 return list;
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebBackForwardListChromium.java | 85 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | TransparentListActivity.java | 87 ListView list = (ListView) findViewById(R.id.list); 88 list.setAdapter(adapter); 89 list.setCacheColorHint(0); 90 list.setVerticalFadingEdgeEnabled(true); 92 registerForContextMenu(list);
|
H A D | ViewLayersActivity3.java | 42 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 D | ListActivity.java | 85 final ListView list = (ListView) findViewById(R.id.list); 86 list.setAdapter(adapter); 88 registerForContextMenu(list);
|
H A D | ViewLayersActivity2.java | 46 final ListView list = (ListView) findViewById(listId); 47 list.setAdapter(new SimpleListAdapter(this)); 48 list.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
H A D | ViewLayersActivity4.java | 50 final ListView list = (ListView) findViewById(listId); 51 list.setAdapter(new SimpleListAdapter(this)); 52 list.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | AidlTest.java | 113 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/services/sensorservice/ |
H A D | SensorFusion.cpp | 30 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 D | GraphicBufferAllocator.cpp | 57 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 D | hwcTestLib.cpp | 399 * 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 D | hwcColorEquiv.cpp | 347 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 D | hwcStress.cpp | 221 * 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 D | slang_pragma_recorder.h | 20 #include <list> 33 typedef std::list< std::pair<std::string, std::string> > PragmaList;
|
H A D | slang_rs.h | 22 #include <list> 55 // FIXME: Should be std::list<RSExportable *> here. But currently we only 92 // built-in APIs) should only need its names (we need a "list" of RS 135 bool compile(const std::list<std::pair<const char*, const char*> > &IOFiles, 136 const std::list<std::pair<const char*, const char*> > &DepFiles,
|
/frameworks/av/media/libmedia/ |
H A D | IMediaDeathNotifier.cpp | 82 SortedVector< wp<IMediaDeathNotifier> > list; local 86 list = sObitRecipients; 92 size_t count = list.size(); 94 sp<IMediaDeathNotifier> notifier = list[iter].promote();
|
/frameworks/native/libs/input/ |
H A D | Keyboard.cpp | 170 static int lookupValueByLabel(const char* literal, const KeycodeLabel *list) { argument 171 while (list->literal) { 172 if (strcmp(literal, list->literal) == 0) { 173 return list->value; 175 list++; 177 return list->value; 180 static const char* lookupLabelByValue(int value, const KeycodeLabel *list) { argument 181 while (list->literal) { 182 if (list->value == value) { 183 return list [all...] |
/frameworks/compile/mclinker/tools/mcld/ |
H A D | main.cpp | 70 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/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 184 * 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/jni/ |
H A D | android_hardware_SensorManager.cpp | 88 Sensor const* const list = sensorList[next]; local 90 jstring name = env->NewStringUTF(list->getName().string()); 91 jstring vendor = env->NewStringUTF(list->getVendor().string()); 94 env->SetIntField(sensor, sensorOffsets.version, list->getVersion()); 95 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle()); 96 env->SetIntField(sensor, sensorOffsets.type, list->getType()); 97 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue()); 98 env->SetFloatField(sensor, sensorOffsets.resolution, list->getResolution()); 99 env->SetFloatField(sensor, sensorOffsets.power, list->getPowerUsage()); 100 env->SetIntField(sensor, sensorOffsets.minDelay, list [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | PredicatesTest.java | 69 ArrayList<E> list = new ArrayList<E>(); 70 Collections.addAll(list, elements); 71 return list;
|