/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ListUtils.java | 30 public static <T> boolean listContains(List<T> list, T needle) { in listContains() argument 31 if (list == null) { in listContains() 34 return list.contains(needle); in listContains() 42 public static <T> boolean listElementsEqualTo(List<T> list, T single) { in listElementsEqualTo() argument 43 if (list == null) { in listElementsEqualTo() 47 return (list.size() == 1 && list.contains(single)); in listElementsEqualTo() 53 public static <T> String listToString(List<T> list) { in listToString() argument 54 if (list == null) { in listToString() 61 int size = list.size(); in listToString() 63 for (T elem : list) { in listToString() [all …]
|
D | ArrayUtils.java | 78 List<String> list, String[] convertFrom, int[] convertTo) { in convertStringListToIntArray() argument 79 if (list == null) { in convertStringListToIntArray() 83 List<Integer> convertedList = convertStringListToIntList(list, convertFrom, convertTo); in convertStringListToIntArray() 108 List<String> list, String[] convertFrom, int[] convertTo) { in convertStringListToIntList() argument 109 if (list == null) { in convertStringListToIntList() 113 List<Integer> convertedList = new ArrayList<>(list.size()); in convertStringListToIntList() 115 for (String str : list) { in convertStringListToIntList() 144 public static int[] toIntArray(List<Integer> list) { in toIntArray() argument 145 if (list == null) { in toIntArray() 149 int[] arr = new int[list.size()]; in toIntArray() [all …]
|
/frameworks/compile/mclinker/tools/mcld/include/mcld/ |
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<bool>& m_BDynamicList; [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaInserter.java | 60 List<ContentValues> list = rowmap.get(tableUri); in insert() local 61 if (list == null) { in insert() 62 list = new ArrayList<ContentValues>(); in insert() 63 rowmap.put(tableUri, list); in insert() 65 list.add(new ContentValues(values)); in insert() 66 if (list.size() >= mBufferSizePerUri) { in insert() 68 flush(tableUri, list); in insert() 75 List<ContentValues> list = mRowMap.get(tableUri); in flushAll() local 76 flush(tableUri, list); in flushAll() 83 List<ContentValues> list = mPriorityRowMap.get(tableUri); in flushAllPriority() local [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | OpReorderer.java | 44 private void swapMoveOp(List<UpdateOp> list, int badMove, int next) { in swapMoveOp() argument 45 final UpdateOp moveOp = list.get(badMove); in swapMoveOp() 46 final UpdateOp nextOp = list.get(next); in swapMoveOp() 49 swapMoveRemove(list, badMove, moveOp, next, nextOp); in swapMoveOp() 52 swapMoveAdd(list, badMove, moveOp, next, nextOp); in swapMoveOp() 55 swapMoveUpdate(list, badMove, moveOp, next, nextOp); in swapMoveOp() 60 void swapMoveRemove(List<UpdateOp> list, int movePos, UpdateOp moveOp, in swapMoveRemove() argument 90 list.remove(removePos); in swapMoveRemove() 109 list.set(movePos, removeOp); in swapMoveRemove() 110 list.remove(removePos); in swapMoveRemove() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | AidlTest.java | 113 public TestParcelable listParcelableLonger(List<TestParcelable> list, int index) { in listParcelableLonger() argument 114 list.add(list.get(index)); in listParcelableLonger() 115 return list.get(index); in listParcelableLonger() 118 public int listParcelableShorter(List<TestParcelable> list, int index) { in listParcelableShorter() argument 119 list.remove(index); in listParcelableShorter() 120 return list.size(); in listParcelableShorter() 241 List<TestParcelable> list = Lists.newArrayList(); in testListParcelableLonger() local 242 list.add(new TestParcelable(33, "asdf")); in testListParcelableLonger() 243 list.add(new TestParcelable(34, "jkl;")); in testListParcelableLonger() 245 TestParcelable result = mRemote.listParcelableLonger(list, 1); in testListParcelableLonger() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
D | HandlerThread_Delegate.java | 42 List<HandlerThread> list = sThreads.get(context); in cleanUp() local 43 if (list != null) { in cleanUp() 44 for (HandlerThread thread : list) { in cleanUp() 48 list.clear(); in cleanUp() 59 List<HandlerThread> list = sThreads.get(context); in run() local 60 if (list == null) { in run() 61 list = new ArrayList<HandlerThread>(); in run() 62 sThreads.put(context, list); in run() 65 list.add(theThread); in run()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcTestLib.cpp | 408 hwc_display_contents_1_t *list; in hwcTestCreateLayerList() local 411 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) { in hwcTestCreateLayerList() 414 list->flags = HWC_GEOMETRY_CHANGED; in hwcTestCreateLayerList() 415 list->numHwLayers = numLayers; in hwcTestCreateLayerList() 417 return list; in hwcTestCreateLayerList() 424 void hwcTestFreeLayerList(hwc_display_contents_1_t *list) in hwcTestFreeLayerList() argument 426 free(list); in hwcTestFreeLayerList() 430 void hwcTestDisplayList(hwc_display_contents_1_t *list) in hwcTestDisplayList() argument 432 testPrintI(" flags: %#x%s", list->flags, in hwcTestDisplayList() 433 (list->flags & HWC_GEOMETRY_CHANGED) ? " GEOMETRY_CHANGED" : ""); in hwcTestDisplayList() [all …]
|
D | hwcStress.cpp | 411 hwc_display_contents_1_t *list; in main() local 412 list = hwcTestCreateLayerList(testRandMod(frames.size()) + 1); in main() 413 if (list == NULL) { in main() 420 selectedFrames = vectorRandSelect(frames, list->numHwLayers); in main() 427 for (unsigned int n1 = 0; n1 < list->numHwLayers; n1++) { in main() 430 hwc_layer_1_t *layer = &list->hwLayers[n1]; in main() 479 if (verbose) { testPrintI("Prepare:"); hwcTestDisplayList(list); } in main() 480 hwcDevice->prepare(hwcDevice, 1, &list); in main() 483 hwcTestDisplayListPrepareModifiable(list); in main() 487 list->flags &= ~HWC_GEOMETRY_CHANGED; in main() [all …]
|
D | hwcColorEquiv.cpp | 346 hwc_display_contents_1_t *list; in main() local 348 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) { in main() 352 list->flags = HWC_GEOMETRY_CHANGED; in main() 353 list->numHwLayers = numFrames; in main() 355 hwc_layer_1_t *layer = &list->hwLayers[0]; in main() 384 if (verbose) { testPrintI("Prepare:"); hwcTestDisplayList(list); } in main() 385 hwcDevice->prepare(hwcDevice, 1, &list); in main() 388 hwcTestDisplayListPrepareModifiable(list); in main() 392 list->flags &= ~HWC_GEOMETRY_CHANGED; in main() 394 if (verbose) {hwcTestDisplayListHandles(list); } in main() [all …]
|
D | hwcRects.cpp | 164 list<Rectangle> rectangle; 309 hwc_display_contents_1_t *list; in main() local 310 list = hwcTestCreateLayerList(rectangle.size()); in main() 311 if (list == NULL) { in main() 316 hwc_layer_1_t *layer = &list->hwLayers[0]; in main() 317 for (std::list<Rectangle>::iterator it = rectangle.begin(); in main() 330 if (verbose) { testPrintI("Prepare:"); hwcTestDisplayList(list); } in main() 331 hwcDevice->prepare(hwcDevice, 1, &list); in main() 334 hwcTestDisplayListPrepareModifiable(list); in main() 338 list->flags &= ~HWC_GEOMETRY_CHANGED; in main() [all …]
|
/frameworks/compile/mclinker/tools/mcld/lib/ |
D | PositionalOptions.cpp | 22 llvm::cl::list<mcld::sys::fs::Path> ArgInputObjectFiles(llvm::cl::Positional, 27 llvm::cl::list<std::string> ArgLinkerScript("T", 35 llvm::cl::list<std::string> ArgNameSpecList("l", 49 llvm::cl::list<bool> ArgWholeArchiveList("whole-archive", 55 llvm::cl::list<bool> ArgNoWholeArchiveList("no-whole-archive", 60 llvm::cl::list<bool> ArgAsNeededList("as-needed", 66 llvm::cl::list<bool> ArgNoAsNeededList("no-as-needed", 71 llvm::cl::list<bool> ArgAddNeededList("add-needed", 77 llvm::cl::list<bool> ArgNoAddNeededList("no-add-needed", 82 llvm::cl::list<bool> ArgBDynamicList("Bdynamic", [all …]
|
D | SearchPathOptions.cpp | 23 llvm::cl::list<std::string, 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; in parse() 89 llvm::cl::list<std::string>::iterator sdEnd = m_SearchDirList.end(); in parse() 103 llvm::cl::list<std::string>::iterator rp; in parse() 104 llvm::cl::list<std::string>::iterator rpEnd = m_RuntimePath.end(); in parse()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ParceledListSliceTest.java | 14 List<SmallObject> list = new ArrayList<SmallObject>(); in testSmallList() local 16 list.add(new SmallObject(i * 2, (i * 2) + 1)); in testSmallList() 23 parcel.writeParcelable(new ParceledListSlice<SmallObject>(list), 0); in testSmallList() 59 List<LargeObject> list = new ArrayList<LargeObject>(); in testLargeList() local 61 list.add(new LargeObject( in testLargeList() 74 parcel.writeParcelable(new ParceledListSlice<LargeObject>(list), 0); in testLargeList() 98 List<BaseObject> list = new ArrayList<BaseObject>(); in testHomogeneousElements() local 99 list.add(new LargeObject(0, 1, 2, 3, 4)); in testHomogeneousElements() 100 list.add(new SmallObject(5, 6)); in testHomogeneousElements() 101 list.add(new SmallObject(7, 8)); in testHomogeneousElements() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListViewHeightTest.java | 56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list); in testButtons() local 57 assertEquals("Unexpected items in adapter", 0, list.getCount()); in testButtons() 58 assertEquals("Unexpected children in list view", 0, list.getChildCount()); in testButtons() 66 assertTrue("List not be visible after clicking button1", list.isShown()); in testButtons() 67 assertTrue("List incorrect height", list.getHeight() == 200); in testButtons() 75 assertTrue("List not be visible after clicking button2", list.isShown()); in testButtons() 83 assertFalse("List should not be visible clicking button3", list.isShown()); in testButtons()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | Size.java | 40 ArrayList<Size> list = new ArrayList<Size>(cameraSizes.size()); in buildListFromCameraSizes() local 42 list.add(new Size(cameraSize)); in buildListFromCameraSizes() 44 return list; in buildListFromCameraSizes() 54 ArrayList<Size> list = new ArrayList<Size>(androidSizes.size()); in buildListFromAndroidSizes() local 56 list.add(new Size(androidSize)); in buildListFromAndroidSizes() 58 return list; in buildListFromAndroidSizes() 84 ArrayList<Size> list = new ArrayList<>(); in stringToList() local 88 list.add(new Size(width,height)); in stringToList() 90 return list; in stringToList()
|
/frameworks/native/services/sensorservice/ |
D | SensorFusion.cpp | 30 sensor_t const* list; in ANDROID_SINGLETON_STATIC_INSTANCE() local 32 ssize_t count = mSensorDevice.getSensorList(&list); in ANDROID_SINGLETON_STATIC_INSTANCE() 35 if (list[i].type == SENSOR_TYPE_ACCELEROMETER) { in ANDROID_SINGLETON_STATIC_INSTANCE() 36 mAcc = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 38 if (list[i].type == SENSOR_TYPE_MAGNETIC_FIELD) { in ANDROID_SINGLETON_STATIC_INSTANCE() 39 mMag = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 41 if (list[i].type == SENSOR_TYPE_GYROSCOPE) { in ANDROID_SINGLETON_STATIC_INSTANCE() 42 mGyro = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 44 if (list[i].type == SENSOR_TYPE_GYROSCOPE_UNCALIBRATED) { in ANDROID_SINGLETON_STATIC_INSTANCE() 45 uncalibratedGyro = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE()
|
/frameworks/compile/mclinker/lib/CodeGen/ |
D | MCLinker.cpp | 67 static cl::list<mcld::sys::fs::Path> 75 static cl::list<std::string> 91 static cl::list<bool> 98 static cl::list<bool> 104 static cl::list<bool> 111 static cl::list<bool> 117 static cl::list<bool> 124 static cl::list<bool> 130 static cl::list<bool> 145 static cl::list<bool> [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 57 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList); in dump() local 63 const size_t c = list.size(); in dump() 65 const alloc_rec_t& rec(list.valueAt(i)); in dump() 68 list.keyAt(i), rec.size/1024.0f, in dump() 72 list.keyAt(i), in dump() 112 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList); in alloc() local 126 list.add(*handle, rec); in alloc() 142 KeyedVector<buffer_handle_t, alloc_rec_t>& list(sAllocList); in free() local 143 list.removeItem(handle); in free()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | Config.java | 56 List<String> list = new ArrayList<String>(4); in getResourceDirs() local 59 list.add(GINGERBREAD_DIR); in getResourceDirs() 63 list.add(JELLYBEAN_DIR); in getResourceDirs() 67 list.add(KITKAT_DIR); in getResourceDirs() 69 list.add(DEFAULT_RESOURCE_DIR); in getResourceDirs() 71 return Collections.unmodifiableList(list); in getResourceDirs()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 97 Sensor const* const list = sensorList[next]; in nativeGetNextSensor() local 99 jstring name = env->NewStringUTF(list->getName().string()); in nativeGetNextSensor() 100 jstring vendor = env->NewStringUTF(list->getVendor().string()); in nativeGetNextSensor() 101 jstring stringType = env->NewStringUTF(list->getStringType().string()); in nativeGetNextSensor() 102 jstring requiredPermission = env->NewStringUTF(list->getRequiredPermission().string()); in nativeGetNextSensor() 105 env->SetIntField(sensor, sensorOffsets.version, list->getVersion()); in nativeGetNextSensor() 106 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle()); in nativeGetNextSensor() 107 env->SetIntField(sensor, sensorOffsets.type, list->getType()); in nativeGetNextSensor() 108 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue()); in nativeGetNextSensor() 109 env->SetFloatField(sensor, sensorOffsets.resolution, list->getResolution()); in nativeGetNextSensor() [all …]
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | lists.jd | 9 <li><a href="#add-list">Add a List View</a></li> 26 <p>The Wearable UI Library includes the <code>WearableListView</code> class, which is a list 33 <p>To create a list in your Android Wear apps:</p> 37 <li>Create a custom layout implementation for your list items.</li> 38 <li>Use this implementation to create a layout definition file for your list items.</li> 42 A list view on Android Wear.</p> 44 <li>Create an adapter to populate the list.</li> 51 <h2 id="add-list">Add a List View</h2> 53 <p>The following layout adds a list view to an activity using a <code>BoxInsetLayout</code>, so 54 the list is displayed properly on both round and square devices:</p> [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TransparentListActivity.java | 87 ListView list = (ListView) findViewById(R.id.list); in onCreate() local 88 list.setAdapter(adapter); in onCreate() 89 list.setCacheColorHint(0); in onCreate() 90 list.setVerticalFadingEdgeEnabled(true); in onCreate() 92 registerForContextMenu(list); in onCreate()
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
D | WebBackForwardListChromium.java | 85 private WebBackForwardListChromium(List<WebHistoryItemChromium> list, in WebBackForwardListChromium() argument 87 mHistroryItemList = list; in WebBackForwardListChromium() 96 List<WebHistoryItemChromium> list = in clone() local 99 list.add(mHistroryItemList.get(i).clone()); in clone() 101 return new WebBackForwardListChromium(list, mCurrentIndex); in clone()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduHeaders.java | 563 ArrayList<EncodedStringValue> list = in getEncodedStringValues() local 565 if (null == list) { in getEncodedStringValues() 568 EncodedStringValue[] values = new EncodedStringValue[list.size()]; in getEncodedStringValues() 569 return list.toArray(values); in getEncodedStringValues() 637 ArrayList<EncodedStringValue> list = new ArrayList<EncodedStringValue>(); in setEncodedStringValues() local 639 list.add(value[i]); in setEncodedStringValues() 641 mHeaderMap.put(field, list); in setEncodedStringValues() 666 ArrayList<EncodedStringValue> list = in appendEncodedStringValue() local 668 if (null == list) { in appendEncodedStringValue() 669 list = new ArrayList<EncodedStringValue>(); in appendEncodedStringValue() [all …]
|