Home
last modified time | relevance | path

Searched refs:intArray (Results 1 – 25 of 25) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/util/
DInts.java26 int[] intArray = new int[integerList.size()]; in toArray() local
29 intArray[i++] = data; in toArray()
31 return intArray; in toArray()
34 public static List<Integer> asList(int[] intArray) { in asList() argument
35 List<Integer> integerList = new ArrayList<>(intArray.length); in asList()
36 for (int data : intArray) { in asList()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DUtilitiesTest.kt73 val intArray = IntArray(3) in testRoundArray() constant
74 Utilities.roundArray(floatArray, intArray) in testRoundArray()
75 assertArrayEquals(intArrayOf(1, 4, 6), intArray) in testRoundArray()
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DTestSafeParcelableV2.java101 public int[] intArray; field in TestSafeParcelableV2
205 @Param(id = 16) int[] intArray, in TestSafeParcelableV2()
250 this.intArray = intArray; in TestSafeParcelableV2()
DSafeParcelableTest.java1342 p2.intArray = new int[] {8, 9, 10, 11}; in testSafeParcelableFields()
1428 assertThat(readP2.intArray).isEqualTo(p2.intArray); in testSafeParcelableFields()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/
DAbstractAtomConverter.java199 int[] intArray = new int[objList.size()]; in setPersistableBundleArrayField() local
201 intArray[i] = (Integer) objList.get(i); in setPersistableBundleArrayField()
203 bundle.putIntArray(name, intArray); in setPersistableBundleArrayField()
/packages/services/Car/packages/ScriptExecutor/src/
DJniUtils.cpp120 jintArray intArray = static_cast<jintArray>(value.get()); in pushBundleToLuaTable() local
121 const auto kLength = env->GetArrayLength(intArray); in pushBundleToLuaTable()
126 jint* rawIntArray = env->GetIntArrayElements(intArray, nullptr); in pushBundleToLuaTable()
136 env->ReleaseIntArrayElements(intArray, rawIntArray, JNI_ABORT); in pushBundleToLuaTable()
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp65 const vector<int>& intArray) { in makeRepeatedIntLogEvent() argument
68 AStatsEvent_writeInt32Array(statsEvent, intArray.data(), intArray.size()); in makeRepeatedIntLogEvent()
206 vector<int> intArray = {21, 9, 13}; in TEST() local
207 makeRepeatedIntLogEvent(&event, 123, intArray); in TEST()
228 vector<int> intArray = {21, 9, 13}; in TEST() local
229 makeRepeatedIntLogEvent(&event, 123, intArray); in TEST()
250 vector<int> intArray = {21, 9, 13}; in TEST() local
251 makeRepeatedIntLogEvent(&event, 123, intArray); in TEST()
886 vector<int> intArray = {3, 6}; in TEST() local
898 12345, intArray, longArray, floatArray, stringArray, boolArray, boolArrayLength, in TEST()
[all …]
DLogEntryMatcher_test.cpp112 const vector<int>& intArray) { in makeRepeatedIntLogEvent() argument
115 AStatsEvent_writeInt32Array(statsEvent, intArray.data(), intArray.size()); in makeRepeatedIntLogEvent()
120 const vector<int>& intArray) { in makeRepeatedUidLogEvent() argument
123 AStatsEvent_writeInt32Array(statsEvent, intArray.data(), intArray.size()); in makeRepeatedUidLogEvent()
447 vector<int> intArray = {1111, 3333, 2222}; in TEST() local
449 makeRepeatedIntLogEvent(&event1, TAG_ID, intArray); in TEST()
465 makeRepeatedUidLogEvent(&event2, TAG_ID, intArray); in TEST()
726 vector<int> intArray = {21, 9}; in TEST() local
727 makeRepeatedIntLogEvent(&event, TAG_ID, intArray); in TEST()
768 vector<int> intArray = {21, 9}; in TEST() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java347 Integer[] intArray = null; in testCloneOrNull() local
348 assertThat(ArrayUtils.cloneOrNull(intArray)).isNull(); in testCloneOrNull()
350 intArray = new Integer[]{1}; in testCloneOrNull()
351 assertThat(ArrayUtils.cloneOrNull(intArray)).isEqualTo(intArray); in testCloneOrNull()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DArrayUtils.java311 public static long[] convertToLongArray(@Nullable int[] intArray) { in convertToLongArray() argument
312 if (intArray == null) return null; in convertToLongArray()
313 long[] array = new long[intArray.length]; in convertToLongArray()
314 for (int i = 0; i < intArray.length; i++) { in convertToLongArray()
315 array[i] = (long) intArray[i]; in convertToLongArray()
/packages/modules/StatsD/statsd/tests/e2e/
DEventMetric_e2e_test.cpp124 vector<int> intArray = {3, 6}; in TEST_F() local
136 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST_F()
168 EXPECT_THAT(atom.repeated_int_field(), ElementsAreArray(intArray)); in TEST_F()
DGaugeMetric_e2e_push_test.cpp337 vector<int> intArray = {3, 6}; in TEST_F() local
349 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST_F()
DCountMetric_e2e_test.cpp1177 vector<int> intArray = {3, 6}; in TEST() local
1189 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST()
DDurationMetric_e2e_test.cpp1599 vector<int> intArray = {3, 6}; in TEST() local
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dint_array_view_test.cpp49 std::array<int, ARRAY_SIZE> intArray; in TEST() local
50 const auto intArrayView = IntArrayView::fromArray(intArray); in TEST()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java878 int[] intArray = null; in getParameterIntArray() local
883 intArray = new int[2]; in getParameterIntArray()
896 intArray = new int[numBands]; in getParameterIntArray()
904 for (int i = 0; i < intArray.length; i++) { in getParameterIntArray()
905 intArray[i] = prefs.getInt(key.toString() + i, 0); in getParameterIntArray()
912 return intArray; in getParameterIntArray()
/packages/services/BuiltInPrintService/jni/lib/
DwprintJNI.c877 jintArray intArray; in _convertPrinterCaps_to_Java() local
881 intArray = (*env)->NewIntArray(env, wprintPrinterCaps->numSupportedMediaTypes); in _convertPrinterCaps_to_Java()
882 intArrayPtr = (*env)->GetIntArrayElements(env, intArray, NULL); in _convertPrinterCaps_to_Java()
886 (*env)->ReleaseIntArrayElements(env, intArray, intArrayPtr, 0); in _convertPrinterCaps_to_Java()
888 _LocalPrinterCapabilitiesField__supportedMediaTypes, intArray); in _convertPrinterCaps_to_Java()
889 (*env)->DeleteLocalRef(env, intArray); in _convertPrinterCaps_to_Java()
891 intArray = (*env)->NewIntArray(env, wprintPrinterCaps->numSupportedMediaSizes); in _convertPrinterCaps_to_Java()
892 intArrayPtr = (*env)->GetIntArrayElements(env, intArray, NULL); in _convertPrinterCaps_to_Java()
896 (*env)->ReleaseIntArrayElements(env, intArray, intArrayPtr, 0); in _convertPrinterCaps_to_Java()
898 _LocalPrinterCapabilitiesField__supportedMediaSizes, intArray); in _convertPrinterCaps_to_Java()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java1070 Integer[] intArray = new Integer[size]; in get() local
1072 intArray[i] = propValue.getInt32Value(i); in get()
1074 return (T) intArray; in get()
1091 int[] intArray = new int[size]; in get() local
1093 intArray[i] = propValue.getInt32Value(i); in get()
1095 return (T) intArray; in get()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java2052 private static List<Integer> asList(int[] intArray) { in asList() argument
2053 List<Integer> zoneIdList = new ArrayList<Integer>(intArray.length); in asList()
2054 for (int index = 0; index < intArray.length; index++) { in asList()
2055 zoneIdList.add(intArray[index]); in asList()
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DEmergencyCallDomainSelector.java1853 private static String arrayToString(int[] intArray, IntFunction<String> func) { in arrayToString() argument
1854 int length = intArray.length; in arrayToString()
1858 sb.append(func.apply(intArray[i++])); in arrayToString()
1860 sb.append(", ").append(func.apply(intArray[i++])); in arrayToString()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java554 private static ArrayList<Integer> intArrayToIntegerArrayList(int[] intArray) { in intArrayToIntegerArrayList() argument
555 return Arrays.stream(intArray).boxed().collect(Collectors.toCollection(ArrayList::new)); in intArrayToIntegerArrayList()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DStatsPublisher.java316 int[] intArray = (int[]) array; in isBundleLargeData() local
317 bytes += intArray.length * Integer.BYTES; in isBundleLargeData()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java2077 private static ByteBuffer toByteBuffer(int[] intArray) { in toByteBuffer() argument
2078 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(intArray.length * Integer.BYTES); in toByteBuffer()
2079 for (int element : intArray) { in toByteBuffer()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/
Dtink-android-1.5.0.jarcom/google/crypto/tink/subtle/prf/StreamingPrf.class StreamingPrf.java package ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...