Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/format/binary/
DResEntryWriter_test.cpp89 std::unique_ptr<Array> array2 = util::make_unique<Array>(); in TEST_F() local
90 array2->elements.push_back( in TEST_F()
92 array2->elements.push_back( in TEST_F()
97 .AddValue("com.app.test:array/arr2", std::move(array2)) in TEST_F()
158 std::unique_ptr<Array> array2 = util::make_unique<Array>(); in TEST_F() local
159 array2->elements.push_back( in TEST_F()
161 array2->elements.push_back( in TEST_F()
166 .AddValue("com.app.test:array/arr2", std::move(array2)) in TEST_F()
/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/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.java201 String[] array2 = { "3", "4" }; in testConcat_threeObjectArrays() local
205 assertArrayEquals(expectation, ArrayUtils.concat(String.class, array1, array2, array3)); in testConcat_threeObjectArrays()
210 String[] array2 = null; in testConcat_threeObjectArraysWithNull() local
214 assertArrayEquals(expectation, ArrayUtils.concat(String.class, array1, array2, array3)); in testConcat_threeObjectArraysWithNull()
251 byte[] array2 = { 3, 4 }; in testConcat_threeByteArrays()
255 assertArrayEquals(expectation, ArrayUtils.concat(array1, array2, array3)); in testConcat_threeByteArrays()
260 byte[] array2 = null; in testConcat_threeByteArraysWithNull()
264 assertArrayEquals(expectation, ArrayUtils.concat(array1, array2, array3)); in testConcat_threeByteArraysWithNull()
/frameworks/base/media/java/android/media/
DAudioProfile.java183 private static boolean hasIdenticalElements(int[] array1, int[] array2) { in hasIdenticalElements() argument
186 int[] sortedArray2 = Arrays.copyOf(array2, array2.length); in hasIdenticalElements()
/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/packages/SettingsProvider/test/src/com/android/providers/settings/
DGenerationRegistryTest.java186 final MemoryIntArray array2 = getArray(b); in testGlobalSettings() local
188 assertThat(array).isEqualTo(array2); in testGlobalSettings()
/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java95 public static boolean equals(byte[] array1, byte[] array2, int length) { in equals() argument
100 if (array1 == array2) { in equals()
103 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in equals()
107 if (array1[i] != array2[i]) { in equals()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransitionController.java850 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3) { in collectActivityTypes() argument
855 for (int i = array2.size() - 1; i >= 0; i--) { in collectActivityTypes()
856 result.add(array2.valueAt(i).getActivityType()); in collectActivityTypes()
865 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3, in lookForHighestTokenWithFilter() argument
868 final int array3base = array2.size() + array2base; in lookForHighestTokenWithFilter()
876 ? 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.java1801 final int[] array2 = makeRandomArray(); in isAnyAppIdUnexempt() local
1803 final boolean expected = isAnyAppIdUnexemptSlow(array1, array2); in isAnyAppIdUnexempt()
1804 final boolean actual = AppStateTrackerImpl.isAnyAppIdUnexempt(array1, array2); in isAnyAppIdUnexempt()
1806 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()