Home
last modified time | relevance | path

Searched refs:array2 (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DSparseRectFArrayTest.java108 final SparseRectFArray array2 = builder.build(); in testBuilder() local
111 assertEquals(expectedRect, array2.get(i)); in testBuilder()
113 assertEquals(i, array2.getFlags(i, 0x1234 /* valueIfKeyNotFound */)); in testBuilder()
114 assertEquals(i, array2.getFlags(i, 0x4321 /* valueIfKeyNotFound */)); in testBuilder()
116 assertEquals(0x1234, array2.getFlags(i, 0x1234 /* valueIfKeyNotFound */)); in testBuilder()
117 assertEquals(0x4321, array2.getFlags(i, 0x4321 /* valueIfKeyNotFound */)); in testBuilder()
120 assertEqualRects(array, array2); in testBuilder()
/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/
DBundleUtilTest.java133 SparseArray<Parcelable> array2 = new SparseArray<>(); in testDeepEquals_sparseArray() local
134 array2.put(1, parcelable1); in testDeepEquals_sparseArray()
135 array2.put(10, parcelable3); // Different in testDeepEquals_sparseArray()
142 b2.putSparseParcelableArray("array1", array2); in testDeepEquals_sparseArray()
188 SparseArray<Parcelable> array2 = new SparseArray<>(); in testHashCode_sparseArray() local
189 array2.put(1, parcelable1); in testHashCode_sparseArray()
190 array2.put(10, parcelable3); // Different in testHashCode_sparseArray()
197 b2.putSparseParcelableArray("array1", array2); in testHashCode_sparseArray()
/frameworks/base/core/tests/coretests/src/android/util/
DSparseLongArrayTest.java48 @NonNull SparseLongArray array2) { in isSame() argument
49 if (array1.size() != array2.size()) { in isSame()
53 if (array1.keyAt(i) != array2.keyAt(i) || array1.valueAt(i) != array2.valueAt(i)) { in isSame()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java183 String[] array2 = { "3", "4" }; in testConcatElements_threeWay() local
187 String[] concatResult = ArrayUtils.concatElements(String.class, array1, array2, array3); in testConcatElements_threeWay()
194 String[] array2 = null; in testConcatElements_threeWayWithNull() local
198 String[] concatResult = ArrayUtils.concatElements(String.class, array1, array2, array3); in testConcatElements_threeWayWithNull()
/frameworks/rs/
DrsType.cpp243 if (t->getArray(2) != params->array2) continue; in getTypeRef()
277 if (params->array2 > 0) nt->mHal.state.arrayCount ++; in getTypeRef()
283 if (params->array2 > 2) nt->mHal.state.arrays[2] = params->array2; in getTypeRef()
DrsInternalDefines.h223 uint32_t array2; member
/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java96 public static boolean equals(byte[] array1, byte[] array2, int length) { in equals() argument
101 if (array1 == array2) { in equals()
104 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in equals()
108 if (array1[i] != array2[i]) { in equals()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransitionController.java508 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3) { in collectActivityTypes() argument
513 for (int i = array2.size() - 1; i >= 0; i--) { in collectActivityTypes()
514 result.add(array2.valueAt(i).getActivityType()); in collectActivityTypes()
523 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3, in lookForHighestTokenWithFilter() argument
526 final int array3base = array2.size() + array2base; in lookForHighestTokenWithFilter()
534 ? array2.valueAt(i - array2base) in lookForHighestTokenWithFilter()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DEventRecurrence.java453 private static boolean arraysEqual(int[] array1, int count1, int[] array2, int count2) { in arraysEqual() argument
459 if (array1[i] != array2[i]) in arraysEqual()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java1556 final int[] array2 = makeRandomArray(); in isAnyAppIdUnexempt() local
1558 final boolean expected = isAnyAppIdUnexemptSlow(array1, array2); in isAnyAppIdUnexempt()
1559 final boolean actual = AppStateTrackerImpl.isAnyAppIdUnexempt(array1, array2); in isAnyAppIdUnexempt()
1561 assertEquals("Input: " + Arrays.toString(array1) + " " + Arrays.toString(array2), in isAnyAppIdUnexempt()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java1322 byte[] array2 = { in createPDU()
1325 mWspHeader = array2; in createPDU()
1327 mWspHeaderLen = array2.length; in createPDU()