/aosp14/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
H A D | Cube.java | 34 -one, -one, -one, in Cube() 35 one, -one, -one, in Cube() 36 one, one, -one, in Cube() 37 -one, one, -one, in Cube() 38 -one, -one, one, in Cube() 39 one, -one, one, in Cube() 40 one, one, one, in Cube() 41 -one, one, one, in Cube() 47 one, one, 0, one, in Cube() 51 one, one, one, one, in Cube() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
H A D | Duration64Test.java | 129 assertNtpEraOfInstant(one, 0); in testBetween_sameEra0() 131 checkDuration64Behavior(one, one); in testBetween_sameEra0() 136 checkDuration64Behavior(one, two); in testBetween_sameEra0() 137 checkDuration64Behavior(two, one); in testBetween_sameEra0() 144 assertNtpEraOfInstant(one, 1); in testBetween_sameEra1() 146 checkDuration64Behavior(one, one); in testBetween_sameEra1() 151 checkDuration64Behavior(one, two); in testBetween_sameEra1() 152 checkDuration64Behavior(two, one); in testBetween_sameEra1() 168 assertNtpEraOfInstant(one, 0); in testBetween_adjacentEras() 170 checkDuration64Behavior(one, one); in testBetween_adjacentEras() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
H A D | TelephonyTimeZoneSuggestionTest.java | 43 assertEquals(one, one); in testEquals() 51 assertEquals(one, two); in testEquals() 52 assertEquals(two, one); in testEquals() 70 assertNotEquals(one, two); in testEquals() 79 assertNotEquals(one, two); in testEquals() 86 assertEquals(one, two); in testEquals() 94 assertNotEquals(one, two); in testEquals() 101 assertEquals(one, two); in testEquals() 110 assertNotEquals(one, two); in testEquals() 118 assertEquals(one, two); in testEquals() [all …]
|
H A D | ManualTimeZoneSuggestionTest.java | 41 ManualTimeZoneSuggestion one = new ManualTimeZoneSuggestion(ARBITRARY_ZONE_ID1); in testEquals() local 42 assertEquals(one, one); in testEquals() 45 assertEquals(one, two); in testEquals() 46 assertEquals(two, one); in testEquals() 49 assertNotEquals(one, three); in testEquals() 50 assertNotEquals(three, one); in testEquals() 53 one.addDebugInfo("Debug info 1"); in testEquals() 55 assertEquals(one, two); in testEquals()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/timedetector/ |
H A D | TelephonyTimeSuggestionTest.java | 38 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local 39 assertEquals(one, one); in testEquals() 44 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local 46 assertEquals(one, two); in testEquals() 47 assertEquals(two, one); in testEquals() 53 assertEquals(one, one); in testEquals() 60 assertEquals(one, two); in testEquals() 61 assertEquals(two, one); in testEquals() 70 assertNotEquals(one, three); in testEquals() 71 assertNotEquals(three, one); in testEquals() [all …]
|
H A D | ManualTimeSuggestionTest.java | 37 ManualTimeSuggestion one = new ManualTimeSuggestion(ARBITRARY_TIME); in testEquals() local 38 assertEquals(one, one); in testEquals() 41 assertEquals(one, two); in testEquals() 42 assertEquals(two, one); in testEquals() 48 assertNotEquals(one, three); in testEquals() 49 assertNotEquals(three, one); in testEquals() 52 one.addDebugInfo("Debug info 1"); in testEquals() 54 assertEquals(one, two); in testEquals()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/service/timezone/ |
H A D | TimeZoneProviderSuggestionTest.java | 61 TimeZoneProviderSuggestion one, TimeZoneProviderSuggestion two) { in assertNotEquivalentTo() argument 62 if (one == null && two == null) { in assertNotEquivalentTo() 65 if (one != null) { in assertNotEquivalentTo() 66 assertFalse("one=" + one + ", two=" + two, one.isEquivalentTo(two)); in assertNotEquivalentTo() 69 assertFalse("one=" + one + ", two=" + two, two.isEquivalentTo(one)); in assertNotEquivalentTo() 74 TimeZoneProviderSuggestion one, TimeZoneProviderSuggestion two) { in assertIsEquivalentTo() argument 75 if (one == null || two == null) { in assertIsEquivalentTo() 78 assertTrue("one=" + one + ", two=" + two, one.isEquivalentTo(two)); in assertIsEquivalentTo() 79 assertTrue("one=" + one + ", two=" + two, two.isEquivalentTo(one)); in assertIsEquivalentTo()
|
H A D | TimeZoneProviderEventTest.java | 313 TimeZoneProviderEvent one, TimeZoneProviderEvent two) { in assertNotEquivalentTo() argument 314 if (one == null && two == null) { in assertNotEquivalentTo() 317 if (one != null) { in assertNotEquivalentTo() 318 assertFalse("one=" + one + ", two=" + two, one.isEquivalentTo(two)); in assertNotEquivalentTo() 321 assertFalse("one=" + one + ", two=" + two, two.isEquivalentTo(one)); in assertNotEquivalentTo() 325 private static void assertIsEquivalentTo(TimeZoneProviderEvent one, TimeZoneProviderEvent two) { in assertIsEquivalentTo() argument 326 if (one == null || two == null) { in assertIsEquivalentTo() 329 assertTrue("one=" + one + ", two=" + two, one.isEquivalentTo(two)); in assertIsEquivalentTo() 330 assertTrue("one=" + one + ", two=" + two, two.isEquivalentTo(one)); in assertIsEquivalentTo()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
H A D | NetworkTimeSuggestionTest.java | 37 NetworkTimeSuggestion one = new NetworkTimeSuggestion( in testEquals() local 39 assertEquals(one, one); in testEquals() 43 assertEquals(one, two); in testEquals() 44 assertEquals(two, one); in testEquals() 51 assertNotEquals(one, three); in testEquals() 52 assertNotEquals(three, one); in testEquals() 57 assertNotEquals(one, four); in testEquals() 58 assertNotEquals(four, one); in testEquals() 61 one.addDebugInfo("Debug info 1"); in testEquals() 63 assertEquals(one, two); in testEquals()
|
H A D | GnssTimeSuggestionTest.java | 36 GnssTimeSuggestion one = new GnssTimeSuggestion(ARBITRARY_TIME); in testEquals() local 37 assertEquals(one, one); in testEquals() 40 assertEquals(one, two); in testEquals() 41 assertEquals(two, one); in testEquals() 47 assertNotEquals(one, three); in testEquals() 48 assertNotEquals(three, one); in testEquals() 51 one.addDebugInfo("Debug info 1"); in testEquals() 53 assertEquals(one, two); in testEquals()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/time/ |
H A D | TimeZoneDetectorStatusTest.java | 43 TimeZoneDetectorStatus one = new TimeZoneDetectorStatus(DETECTOR_STATUS_RUNNING, in testEquals() local 45 assertEqualsAndHashCode(one, one); in testEquals() 50 assertEqualsAndHashCode(one, two); in testEquals() 56 assertNotEquals(one, three); in testEquals() 57 assertNotEquals(three, one); in testEquals() 67 assertNotEquals(one, three); in testEquals() 68 assertNotEquals(three, one); in testEquals() 81 assertNotEquals(one, three); in testEquals() 82 assertNotEquals(three, one); in testEquals()
|
H A D | TimeZoneCapabilitiesTest.java | 56 TimeZoneCapabilities one = builder1.build(); in testEquals() local 58 assertEquals(one, two); in testEquals() 63 TimeZoneCapabilities one = builder1.build(); in testEquals() local 65 assertNotEquals(one, two); in testEquals() 72 assertEquals(one, two); in testEquals() 79 assertNotEquals(one, two); in testEquals() 86 assertEquals(one, two); in testEquals() 93 assertNotEquals(one, two); in testEquals() 100 assertEquals(one, two); in testEquals() 107 assertNotEquals(one, two); in testEquals() [all …]
|
H A D | TelephonyTimeZoneAlgorithmStatusTest.java | 32 TelephonyTimeZoneAlgorithmStatus one = new TelephonyTimeZoneAlgorithmStatus( in testEquals() local 34 assertEqualsAndHashCode(one, one); in testEquals() 39 assertEqualsAndHashCode(one, two); in testEquals() 45 assertNotEquals(one, three); in testEquals() 46 assertNotEquals(three, one); in testEquals()
|
H A D | TimeCapabilitiesTest.java | 57 TimeCapabilities one = builder1.build(); in testEquals() local 59 assertEqualsAndHashCode(one, two); in testEquals() 64 TimeCapabilities one = builder1.build(); in testEquals() local 66 assertNotEquals(one, two); in testEquals() 71 TimeCapabilities one = builder1.build(); in testEquals() local 73 assertEqualsAndHashCode(one, two); in testEquals() 78 TimeCapabilities one = builder1.build(); in testEquals() local 80 assertNotEquals(one, two); in testEquals() 85 TimeCapabilities one = builder1.build(); in testEquals() local 87 assertEqualsAndHashCode(one, two); in testEquals()
|
H A D | ParcelableTestSupport.java | 55 public static void assertEqualsAndHashCode(Object one, Object two) { in assertEqualsAndHashCode() argument 56 assertEquals(one, two); in assertEqualsAndHashCode() 57 assertEquals(two, one); in assertEqualsAndHashCode() 58 assertEquals(one.hashCode(), two.hashCode()); in assertEqualsAndHashCode()
|
H A D | LocationTimeZoneAlgorithmStatusTest.java | 103 LocationTimeZoneAlgorithmStatus one = new LocationTimeZoneAlgorithmStatus( in testEquals() local 107 assertEqualsAndHashCode(one, one); in testEquals() 114 assertEqualsAndHashCode(one, two); in testEquals() 122 assertNotEquals(one, three); in testEquals() 123 assertNotEquals(three, one); in testEquals()
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | WuQuantizer.java | 268 maximize(one, Direction.RED, one.r0 + 1, one.r1, wholeR, wholeG, wholeB, wholeW); in cut() 270 maximize(one, Direction.GREEN, one.g0 + 1, one.g1, wholeR, wholeG, wholeB, wholeW); in cut() 272 maximize(one, Direction.BLUE, one.b0 + 1, one.b1, wholeR, wholeG, wholeB, wholeW); in cut() 288 two.r1 = one.r1; in cut() 289 two.g1 = one.g1; in cut() 290 two.b1 = one.b1; in cut() 295 two.r0 = one.r1; in cut() 296 two.g0 = one.g0; in cut() 297 two.b0 = one.b0; in cut() 301 two.r0 = one.r0; in cut() [all …]
|
/aosp14/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInputStream.java | 63 byte[] one = mOneByte; in read() 65 one = mOneByte = new byte[1]; in read() 67 mData.readEntityData(one, 0, 1); in read() 68 return one[0]; in read()
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/LibOne/src/com/android/aapt/staticlib/one/ |
H A D | StaticLibOne.java | 16 package com.android.aapt.staticlib.one; 20 public static int FooId = com.android.aapt.staticlib.one.R.string.Foo; 21 public static int LayoutId = com.android.aapt.staticlib.one.R.layout.layout;
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/App/src/com/android/aapt/app/one/ |
H A D | AppOne.java | 16 package com.android.aapt.app.one; 20 public static int FooId = com.android.aapt.staticlib.one.R.string.Foo; 21 public static int LayoutId = com.android.aapt.staticlib.one.R.layout.layout;
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | CreateViewTest.java | 56 ViewOne one = new ViewOne(mContext); in testLayout3() local 57 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 94 TextView one = new TextView(mContext); in testLayout6() local 95 one.setText("S"); in testLayout6() 96 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
|
H A D | InsetsStateTest.java | 445 Rect one = new Rect(0, 1, 2, 3); in testEquals_samePrivacyIndicator() local 447 Rect[] bounds = new Rect[] { one, two, one, two }; in testEquals_samePrivacyIndicator() 455 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorStaticBounds() local 458 Rect[] boundsOne = new Rect[] { one, two, one, two }; in testEquals_differentPrivacyIndicatorStaticBounds() 459 Rect[] boundsDifferent = new Rect[] { one, two, three, one }; in testEquals_differentPrivacyIndicatorStaticBounds() 460 Rect[] boundsDifferentOrder = new Rect[] { two, one, one, two }; in testEquals_differentPrivacyIndicatorStaticBounds() 461 Rect[] boundsDifferentLength = new Rect[] { one, two }; in testEquals_differentPrivacyIndicatorStaticBounds() 480 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorRotation() local 482 Rect[] arr = new Rect[] { one, two, one, two}; in testEquals_differentPrivacyIndicatorRotation()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceUserInfoTest.java | 362 private void assertUserInfoEquals(UserInfo one, UserInfo two, boolean parcelCopy) { in assertUserInfoEquals() argument 363 assertEquals("Id not preserved", one.id, two.id); in assertUserInfoEquals() 364 assertEquals("Name not preserved", one.name, two.name); in assertUserInfoEquals() 365 assertEquals("Icon path not preserved", one.iconPath, two.iconPath); in assertUserInfoEquals() 366 assertEquals("Flags not preserved", one.flags, two.flags); in assertUserInfoEquals() 367 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals() 368 assertEquals("profile group not preserved", one.profileGroupId, in assertUserInfoEquals() 372 assertEquals("profile badge not preserved", one.profileBadge, two.profileBadge); in assertUserInfoEquals() 373 assertEquals("partial not preserved", one.partial, two.partial); in assertUserInfoEquals() 374 assertEquals("guestToRemove not preserved", one.guestToRemove, two.guestToRemove); in assertUserInfoEquals() [all …]
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/LibTwo/src/com/android/aapt/staticlib/two/ |
H A D | StaticLibTwo.java | 20 public static int FooId = com.android.aapt.staticlib.one.R.string.Foo; 21 public static int LayoutId = com.android.aapt.staticlib.one.R.layout.layout;
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 84 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { in intersectSortedDistinctRanges() argument 88 while (ix < one.length && in intersectSortedDistinctRanges() 89 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges() 92 while (ix < one.length && in intersectSortedDistinctRanges() 93 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges() 94 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges() 97 if (ix == one.length) { in intersectSortedDistinctRanges() 100 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges() 101 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
|