Home
last modified time | relevance | path

Searched refs:arrayList (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java163 ArrayList<Object> arrayList = new ArrayList<Object>();
168 arrayList.add(elem);
171 int arraySize = arrayList.size();
172 array = copyListToArray(arrayList, Array.newInstance(mComponentClass, arraySize));
218 private Object copyListToArray(ArrayList<?> arrayList, Object arrayDest) {
219 return arrayList.toArray((T[]) arrayDest);
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java321 ArrayList arrayList = (ArrayList) people; in getExtraPeopleForKey() local
323 if (arrayList.isEmpty()) { in getExtraPeopleForKey()
327 if (arrayList.get(0) instanceof String) { in getExtraPeopleForKey()
328 ArrayList<String> stringArray = (ArrayList<String>) arrayList; in getExtraPeopleForKey()
332 if (arrayList.get(0) instanceof CharSequence) { in getExtraPeopleForKey()
333 ArrayList<CharSequence> charSeqList = (ArrayList<CharSequence>) arrayList; in getExtraPeopleForKey()
342 if (arrayList.get(0) instanceof Person) { in getExtraPeopleForKey()
343 ArrayList<Person> list = (ArrayList<Person>) arrayList; in getExtraPeopleForKey()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java176 final ArrayList<Person> arrayList = in testPeopleArrayList() local
178 arrayList.add(new Person.Builder().setName("test").build()); in testPeopleArrayList()
179 arrayList.add(new Person.Builder().setUri(expected[1]).build()); in testPeopleArrayList()
180 bundle.putParcelableArrayList(Notification.EXTRA_PEOPLE_LIST, arrayList); in testPeopleArrayList()
/frameworks/base/media/jni/
Dandroid_media_MediaMetadataRetriever.cpp507 jobject arrayList = env->NewObject(fields.arrayListClazz, fields.arrayListInit); in android_media_MediaMetadataRetriever_getFrameAtIndex() local
508 if (arrayList == NULL) { in android_media_MediaMetadataRetriever_getFrameAtIndex()
529 env->CallBooleanMethod(arrayList, fields.arrayListAdd, bitmapObj); in android_media_MediaMetadataRetriever_getFrameAtIndex()
534 env->DeleteLocalRef(arrayList); in android_media_MediaMetadataRetriever_getFrameAtIndex()
541 return arrayList; in android_media_MediaMetadataRetriever_getFrameAtIndex()
Dandroid_media_MediaDrm.cpp236 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init); in hidlLogMessagesToJavaList() local
243 env->CallBooleanMethod(arrayList, gFields.arraylist.add, jLog); in hidlLogMessagesToJavaList()
245 return arrayList; in hidlLogMessagesToJavaList()
550 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init); in sendKeysChange() local
556 env->CallBooleanMethod(arrayList, gFields.arraylist.add, jKeyStatus); in sendKeysChange()
560 .jKeyStatusList = arrayList, in sendKeysChange()
706 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init); in ListOfVectorsToArrayListOfByteArray() local
710 env->CallBooleanMethod(arrayList, gFields.arraylist.add, byteArray); in ListOfVectorsToArrayListOfByteArray()
715 return arrayList; in ListOfVectorsToArrayListOfByteArray()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioConfig.java472 ArrayList<Integer> arrayList = new ArrayList<>(arr.length); in primitiveArrayToArrayList() local
474 arrayList.add(i); in primitiveArrayToArrayList()
476 return arrayList; in primitiveArrayToArrayList()
DRIL.java7205 ArrayList<Byte> arrayList = new ArrayList<>(arr.length); in primitiveArrayToArrayList() local
7207 arrayList.add(b); in primitiveArrayToArrayList()
7209 return arrayList; in primitiveArrayToArrayList()
7214 ArrayList<Integer> arrayList = new ArrayList<>(arr.length); in primitiveArrayToArrayList() local
7216 arrayList.add(i); in primitiveArrayToArrayList()
7218 return arrayList; in primitiveArrayToArrayList()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp815 jobject arrayList = env->NewObject(gMetadataOffsets.mArrayList, in CameraMetadata_getAllVendorKeys() local
867 env->CallBooleanMethod(arrayList, gMetadataOffsets.mArrayListAdd, key); in CameraMetadata_getAllVendorKeys()
876 return arrayList; in CameraMetadata_getAllVendorKeys()
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp1018 jobject arrayList = env->NewObject(class_arrayList, in translateAllGnssAntennaInfos() local
1024 env->CallBooleanMethod(arrayList, method_arrayListAdd, in translateAllGnssAntennaInfos()
1030 return arrayList; in translateAllGnssAntennaInfos()
1146 jobject arrayList = translateAllGnssAntennaInfos(env, gnssAntennaInfos); in translateAndReportGnssAntennaInfo() local
1148 reportAntennaInfo(env, arrayList); in translateAndReportGnssAntennaInfo()
1150 env->DeleteLocalRef(arrayList); in translateAndReportGnssAntennaInfo()