/frameworks/base/tools/aapt2/format/binary/ |
D | ResEntryWriter_test.cpp | 89 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/InputMethodCoreTests/src/android/view/inputmethod/ |
D | SparseRectFArrayTest.java | 108 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/ |
D | SparseLongArrayTest.java | 48 @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/media/java/android/media/ |
D | AudioProfile.java | 183 private static boolean hasIdenticalElements(int[] array1, int[] array2) { in hasIdenticalElements() argument 186 int[] sortedArray2 = Arrays.copyOf(array2, array2.length); in hasIdenticalElements()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 236 String[] array2 = { "3", "4" }; in testConcat_threeObjectArrays() local 240 assertArrayEquals(expectation, ArrayUtils.concat(String.class, array1, array2, array3)); in testConcat_threeObjectArrays() 246 String[] array2 = null; in testConcat_threeObjectArraysWithNull() local 250 assertArrayEquals(expectation, ArrayUtils.concat(String.class, array1, array2, array3)); in testConcat_threeObjectArraysWithNull() 293 byte[] array2 = { 3, 4 }; in testConcat_threeByteArrays() 297 assertArrayEquals(expectation, ArrayUtils.concat(array1, array2, array3)); in testConcat_threeByteArrays() 303 byte[] array2 = null; in testConcat_threeByteArraysWithNull() 307 assertArrayEquals(expectation, ArrayUtils.concat(array1, array2, array3)); in testConcat_threeByteArraysWithNull()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DeferredDisplayUpdaterDiffTest.java | 228 final SparseArray<RefreshRateRange> array2 = new SparseArray<>(); in setDifferentFieldValues() local 229 array2.set(0, new RefreshRateRange(20, 80)); in setDifferentFieldValues() 231 field.set(second, array2); in setDifferentFieldValues()
|
/frameworks/rs/ |
D | rsType.cpp | 243 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()
|
D | rsInternalDefines.h | 223 uint32_t array2; member
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | GenerationRegistryTest.java | 186 final MemoryIntArray array2 = getArray(b); in testGlobalSettings() local 188 assertThat(array).isEqualTo(array2); in testGlobalSettings()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ArrayUtils.java | 135 public static boolean equals(byte[] array1, byte[] array2, int length) { in equals() argument 140 if (array1 == array2) { in equals() 143 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in equals() 147 if (array1[i] != array2[i]) { in equals()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransitionController.java | 849 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3) { in collectActivityTypes() argument 854 for (int i = array2.size() - 1; i >= 0; i--) { in collectActivityTypes() 855 result.add(array2.valueAt(i).getActivityType()); in collectActivityTypes() 864 ArraySet<ActivityRecord> array2, ArraySet<WindowContainer> array3, in lookForHighestTokenWithFilter() argument 867 final int array3base = array2.size() + array2base; in lookForHighestTokenWithFilter() 875 ? array2.valueAt(i - array2base) in lookForHighestTokenWithFilter()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | EventRecurrence.java | 453 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/ |
D | AppStateTrackerTest.java | 1803 final int[] array2 = makeRandomArray(); in isAnyAppIdUnexempt() local 1805 final boolean expected = isAnyAppIdUnexemptSlow(array1, array2); in isAnyAppIdUnexempt() 1806 final boolean actual = AppStateTrackerImpl.isAnyAppIdUnexempt(array1, array2); in isAnyAppIdUnexempt() 1808 assertEquals("Input: " + Arrays.toString(array1) + " " + Arrays.toString(array2), in isAnyAppIdUnexempt()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | WapPushTest.java | 1322 byte[] array2 = { in createPDU() 1325 mWspHeader = array2; in createPDU() 1327 mWspHeaderLen = array2.length; in createPDU()
|