/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ListUtils.java | 22 * 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 D | ArrayUtils.java | 71 * @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/compile/mclinker/tools/mcld/include/mcld/ |
H A D | PositionalOptions.h | 51 llvm::cl::list<mcld::sys::fs::Path>& m_InputObjectFiles; 52 llvm::cl::list<std::string>& m_LinkerScript; 53 llvm::cl::list<std::string>& m_NameSpecList; 54 llvm::cl::list<bool>& m_WholeArchiveList; 55 llvm::cl::list<bool>& m_NoWholeArchiveList; 56 llvm::cl::list<bool>& m_AsNeededList; 57 llvm::cl::list<bool>& m_NoAsNeededList; 58 llvm::cl::list<bool>& m_AddNeededList; 59 llvm::cl::list<bool>& m_NoAddNeededList; 60 llvm::cl::list<boo [all...] |
H A D | ScriptOptions.h | 31 llvm::cl::list<std::string>& m_WrapList; 32 llvm::cl::list<std::string>& m_PortList; 33 llvm::cl::list<std::string>& m_AddressMapList;
|
H A D | OptimizationOptions.h | 34 llvm::cl::list<std::string>& m_Plugin; 35 llvm::cl::list<std::string>& m_PluginOpt;
|
H A D | SearchPathOptions.h | 32 llvm::cl::list<std::string, 36 llvm::cl::list<std::string, 41 llvm::cl::list<std::string, 44 llvm::cl::list<std::string>& m_Y;
|
/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/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | OpReorderer.java | 37 // 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 216 getLastMoveOutOfOrder(List<UpdateOp> list) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | Config.java | 56 List<String> list = new ArrayList<String>(4); 59 list.add(GINGERBREAD_DIR); 63 list.add(JELLYBEAN_DIR); 67 list.add(KITKAT_DIR); 69 list.add(DEFAULT_RESOURCE_DIR); 71 return Collections.unmodifiableList(list);
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | Size.java | 33 * 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/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);
|
/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/base/core/tests/coretests/src/android/content/pm/ |
H A D | ParceledListSliceTest.java | 14 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 D | hwcTestLib.cpp | 403 * Dynamically creates layer list with numLayers worth 408 hwc_display_contents_1_t *list; local 411 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) { 414 list->flags = HWC_GEOMETRY_CHANGED; 415 list->numHwLayers = numLayers; 417 return list; 424 void hwcTestFreeLayerList(hwc_display_contents_1_t *list) argument 426 free(list); 429 // Display the settings of the layer list pointed to by list 430 hwcTestDisplayList(hwc_display_contents_1_t *list) argument 501 hwcTestDisplayListPrepareModifiable(hwc_display_contents_1_t *list) argument 529 hwcTestDisplayListHandles(hwc_display_contents_1_t *list) argument [all...] |
/frameworks/compile/mclinker/tools/mcld/lib/ |
H A D | SearchPathOptions.cpp | 23 llvm::cl::list<std::string, 27 llvm::cl::desc("Add [searchdir] to the list of search paths"), 39 llvm::cl::list<std::string, 51 llvm::cl::list<std::string, 58 llvm::cl::list<std::string> ArgY("Y", 88 llvm::cl::list<std::string>::iterator sd; 89 llvm::cl::list<std::string>::iterator sdEnd = m_SearchDirList.end(); 103 llvm::cl::list<std::string>::iterator rp; 104 llvm::cl::list<std::string>::iterator rpEnd = m_RuntimePath.end();
|
/frameworks/compile/slang/ |
H A D | slang_pragma_recorder.h | 20 #include <list> 33 typedef std::list< std::pair<std::string, std::string> > PragmaList;
|
/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();
|