Home
last modified time | relevance | path

Searched refs:array1 (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/
DJavaMidiTestModule.java209 private byte[] concatByteArrays(byte[] array1, byte[] array2) { in concatByteArrays() argument
210 byte[] result = Arrays.copyOf(array1, array1.length + array2.length); in concatByteArrays()
211 System.arraycopy(array2, 0, result, array1.length, array2.length); in concatByteArrays()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java547 private boolean isSame(byte[] array1, byte[] array2, int length) { in isSame() argument
551 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in isSame()
555 if (array1[i] != array2[i]) { in isSame()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DActivityTransitionTests.java687 private boolean arrayEquals(float[] array1, float[] array2) { in arrayEquals() argument
688 return arrayEquals(array1, array2, COLOR_VALUE_VARIANCE_TOLERANCE); in arrayEquals()
691 private boolean arrayEquals(float[] array1, float[] array2, float varianceTolerance) { in arrayEquals() argument
692 if (array1.length != array2.length) { in arrayEquals()
695 for (int i = 0; i < array1.length; i++) { in arrayEquals()
696 if (Math.abs(array1[i] - array2[i]) > varianceTolerance) { in arrayEquals()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java840 int[]array1 = mResources.getIntArray(R.array.strings); in testGetIntArray() local
843 checkArrayEqual(expectedArray1, array1); in testGetIntArray()
848 private void checkArrayEqual(int[] array1, int[] array2) { in checkArrayEqual() argument
850 assertEquals(array1.length, array2.length); in checkArrayEqual()
851 for (int i = 0; i < array1.length; i++) { in checkArrayEqual()
852 assertEquals(array1[i], array2[i]); in checkArrayEqual()