/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/ |
H A D | BundleUtil.java | 43 if (one == null && two == null) { in deepEquals() 46 if (one == null || two == null) { in deepEquals() 49 if (one.size() != two.size()) { in deepEquals() 52 if (!one.keySet().equals(two.keySet())) { in deepEquals() 71 if (one == null && two == null) { in bundleValueEquals() 74 if (one == null || two == null) { in bundleValueEquals() 77 if (one.equals(two)) { in bundleValueEquals() 81 return deepEquals((Bundle) one, (Bundle) two); in bundleValueEquals() 83 return Arrays.equals((int[]) one, (int[]) two); in bundleValueEquals() 100 Object[] arrayTwo = (Object[]) two; in bundleValueEquals() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
H A D | TelephonyTimeZoneSuggestionTest.java | 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() 126 two.addDebugInfo("Debug info 2"); in testEquals() [all …]
|
H A D | ManualTimeZoneSuggestionTest.java | 44 ManualTimeZoneSuggestion two = new ManualTimeZoneSuggestion(ARBITRARY_ZONE_ID1); in testEquals() local 45 assertEquals(one, two); in testEquals() 46 assertEquals(two, one); in testEquals() 54 two.addDebugInfo("Debug info 2"); in testEquals() 55 assertEquals(one, two); in testEquals()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/time/ |
H A D | TimeZoneCapabilitiesTest.java | 55 TimeZoneCapabilities two = builder2.build(); in testEquals() local 56 assertEquals(one, two); in testEquals() 62 TimeZoneCapabilities two = builder2.build(); in testEquals() local 63 assertNotEquals(one, two); in testEquals() 69 TimeZoneCapabilities two = builder2.build(); in testEquals() local 70 assertEquals(one, two); in testEquals() 76 TimeZoneCapabilities two = builder2.build(); in testEquals() local 77 assertNotEquals(one, two); in testEquals() 84 assertEquals(one, two); in testEquals() 91 assertNotEquals(one, two); in testEquals() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/timedetector/ |
H A D | TelephonyTimeSuggestionTest.java | 43 TelephonyTimeSuggestion two = builder2.build(); in testEquals() local 44 assertEquals(one, two); in testEquals() 45 assertEquals(two, one); in testEquals() 57 TelephonyTimeSuggestion two = builder2.build(); in testEquals() local 58 assertEquals(one, two); in testEquals() 59 assertEquals(two, one); in testEquals() 77 TelephonyTimeSuggestion two = builder2.build(); in testEquals() local 78 assertEquals(one, two); in testEquals()
|
H A D | GnssTimeSuggestionTest.java | 39 GnssTimeSuggestion two = new GnssTimeSuggestion(ARBITRARY_TIME); in testEquals() local 40 assertEquals(one, two); in testEquals() 41 assertEquals(two, one); in testEquals() 52 two.addDebugInfo("Debug info 2"); in testEquals() 53 assertEquals(one, two); in testEquals()
|
H A D | ManualTimeSuggestionTest.java | 39 ManualTimeSuggestion two = new ManualTimeSuggestion(ARBITRARY_TIME); in testEquals() local 40 assertEquals(one, two); in testEquals() 41 assertEquals(two, one); in testEquals() 52 two.addDebugInfo("Debug info 2"); in testEquals() 53 assertEquals(one, two); in testEquals()
|
H A D | NetworkTimeSuggestionTest.java | 39 NetworkTimeSuggestion two = new NetworkTimeSuggestion(ARBITRARY_TIME); in testEquals() local 40 assertEquals(one, two); in testEquals() 41 assertEquals(two, one); in testEquals() 52 two.addDebugInfo("Debug info 2"); in testEquals() 53 assertEquals(one, two); in testEquals()
|
/aosp12/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | s_tanhf.c | 23 static const float one=1.0, two=2.0, huge = 1.0e30; variable 46 t = expm1f(two*fabsf(x)); in tanhf() 47 z = one - two/(t+two); in tanhf() 49 t = expm1f(-two*fabsf(x)); in tanhf() 50 z= -t/(t+two); in tanhf()
|
H A D | s_tanh.c | 46 static const double one = 1.0, two = 2.0, huge = 1.0e300; variable 69 t = expm1(two*fabs(x)); in tanh() 70 z = one - two/(t+two); in tanh() 72 t = expm1(-two*fabs(x)); in tanh() 73 z= -t/(t+two); in tanh()
|
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/ |
H A D | NetworkTest.java | 127 Network two = new Network(2); in testGetNetworkHandle() local 132 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle() 136 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle() 138 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle() 142 assertNotEquals(0, two.getNetworkHandle()); in testGetNetworkHandle() 146 assertNotEquals(one.getNetworkHandle(), two.getNetworkHandle()); in testGetNetworkHandle() 148 assertNotEquals(two.getNetworkHandle(), three.getNetworkHandle()); in testGetNetworkHandle() 152 assertNotEquals(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle() 158 assertEquals(11995631629L, two.getNetworkHandle()); in testGetNetworkHandle()
|
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | WuQuantizer.java | 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() 302 two.g0 = one.g1; in cut() 303 two.b0 = one.b0; in cut() 307 two.r0 = one.r0; in cut() [all …]
|
/aosp12/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/reader/ |
H A D | IntValueTable.java | 50 static boolean equal(TableEntry one, Object two) { in equal() argument 51 if (one == null && two == null) { in equal() 54 if (!(two instanceof TableEntry) || one == null || one.getClass() != two.getClass()) { in equal() 57 TableEntry other = (TableEntry) two; in equal()
|
H A D | LongValueTable.java | 48 static boolean equal(TableEntry one, Object two) { in equal() argument 49 if (one == null && two == null) { in equal() 52 if (!(two instanceof TableEntry) || one == null || one.getClass() != two.getClass()) { in equal() 55 TableEntry other = (TableEntry) two; in equal()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/ |
H A D | BundleUtilTest.java | 50 Bundle two = new Bundle(); in testDeepEquals_simple() local 51 two.putString("a", "a"); in testDeepEquals_simple() 53 assertThat(one).isNotEqualTo(two); in testDeepEquals_simple() 54 assertThat(BundleUtil.deepEquals(one, two)).isTrue(); in testDeepEquals_simple() 62 Bundle two = new Bundle(); in testDeepEquals_keyMismatch() local 63 two.putString("a", "a"); in testDeepEquals_keyMismatch() 64 two.putString("b", "b"); in testDeepEquals_keyMismatch() 65 assertThat(BundleUtil.deepEquals(one, two)).isFalse(); in testDeepEquals_keyMismatch() 96 Bundle two = new Bundle(); in testDeepEquals_nestedNotEquals() local 97 two.putBundle("b", one); in testDeepEquals_nestedNotEquals() [all …]
|
/aosp12/system/unwinding/libbacktrace/ |
H A D | backtrace_testlib.cpp | 38 int test_level_four(int one, int two, int three, int four, void (*callback_func)(void*), in test_level_four() argument 46 return one + two + three + four; in test_level_four() 49 int test_level_three(int one, int two, int three, int four, void (*callback_func)(void*), in test_level_three() argument 51 return test_level_four(one + 3, two + 6, three + 9, four + 12, callback_func, data) + 3; in test_level_three() 54 int test_level_two(int one, int two, int three, int four, void (*callback_func)(void*), void* data)… in test_level_two() argument 55 return test_level_three(one + 2, two + 4, three + 6, four + 8, callback_func, data) + 2; in test_level_two() 58 int test_level_one(int one, int two, int three, int four, void (*callback_func)(void*), void* data)… in test_level_one() argument 59 return test_level_two(one + 1, two + 2, three + 3, four + 4, callback_func, data) + 1; in test_level_one()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | GeolocationTimeZoneSuggestionTest.java | 40 GeolocationTimeZoneSuggestion two = new GeolocationTimeZoneSuggestion(ARBITRARY_ZONE_IDS1); in testEquals() local 41 assertEquals(one, two); in testEquals() 42 assertEquals(two, one); in testEquals() 56 two.addDebugInfo("Debug info 2"); in testEquals() 57 assertEquals(one, two); in testEquals()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceUserInfoTest.java | 264 private void assertUserInfoEquals(UserInfo one, UserInfo two, boolean parcelCopy) { in assertUserInfoEquals() argument 265 assertEquals("Id not preserved", one.id, two.id); in assertUserInfoEquals() 266 assertEquals("Name not preserved", one.name, two.name); in assertUserInfoEquals() 267 assertEquals("Icon path not preserved", one.iconPath, two.iconPath); in assertUserInfoEquals() 268 assertEquals("Flags not preserved", one.flags, two.flags); in assertUserInfoEquals() 269 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals() 271 two.profileGroupId); in assertUserInfoEquals() 273 two.restrictedProfileParentId); in assertUserInfoEquals() 275 assertEquals("partial not preserved", one.partial, two.partial); in assertUserInfoEquals() 277 assertEquals("preCreated not preserved", one.preCreated, two.preCreated); in assertUserInfoEquals() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/timezone/ |
H A D | DistroFormatVersionTest.java | 40 DistroFormatVersion two = new DistroFormatVersion(1, 2); in equalsAndHashCode() local 41 assertEqualsContract(one, two); in equalsAndHashCode() 81 private static void assertEqualsContract(DistroFormatVersion one, DistroFormatVersion two) { in assertEqualsContract() argument 82 assertEquals(one, two); in assertEqualsContract() 83 assertEquals(one.hashCode(), two.hashCode()); in assertEqualsContract()
|
H A D | DistroRulesVersionTest.java | 40 DistroRulesVersion two = new DistroRulesVersion("2016a", 2); in equalsAndHashCode() local 41 assertEqualsContract(one, two); in equalsAndHashCode() 81 private static void assertEqualsContract(DistroRulesVersion one, DistroRulesVersion two) { in assertEqualsContract() argument 82 assertEquals(one, two); in assertEqualsContract() 83 assertEquals(one.hashCode(), two.hashCode()); in assertEqualsContract()
|
/aosp12/frameworks/compile/mclinker/unittests/ |
H A D | RTLinearAllocatorTest.h | 38 Data() : one(1), two(2), three(3), four(4) {} in Data() 45 two = pTwo; in Data() 52 two = -2; in ~Data() 58 unsigned int two; member
|
H A D | LinearAllocatorTest.h | 25 Data() : one(1), two(2), three(3), four(4) {} in Data() 32 two = pTwo; in Data() 39 two = -2; in ~Data() 45 unsigned int two; member
|
/aosp12/frameworks/rs/script_api/ |
H A D | rs_vector_math.spec | 45 summary: Cross product of two vectors 47 Computes the cross product of two vectors. 70 summary: Distance between two points 72 Compute the distance between two points. 97 summary: Dot product of two vectors 99 Computes the dot product of two vectors. 122 summary: Approximate distance between two points 124 Computes the approximate distance between two points. 205 summary: Approximate distance between two points 207 Computes the approximate distance between two points.
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | RawContactDeltaComparator.java | 41 public int compare(RawContactDelta one, RawContactDelta two) { in compare() argument 43 if (one.equals(two)) { in compare() 51 String accountType2 = two.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in compare() 52 String dataSet2 = two.getValues().getAsString(RawContacts.DATA_SET); in compare() 111 String twoAccount = two.getAccountName(); in compare() 122 Long twoId = two.getRawContactId(); in compare()
|
/aosp12/frameworks/rs/script_api/include/ |
H A D | rs_value_types.rsh | 258 * A vector of two floats. These two floats are packed into a single 64 bit field 261 * A vector of two floats. These two floats are packed into a single 64 bit field 285 * A vector of two doubles. These two double fields packed into a single 128 bit field 309 * A vector of two uchars. These two uchar fields packed into a single 16 bit field 333 * A vector of two ushorts. These two ushort fields packed into a single 32 bit field 357 * A vector of two uints. These two uints are packed into a single 64 bit field 381 * A vector of two ulongs. These two ulongs are packed into a single 128 bit field 405 * A vector of two chars. These two chars are packed into a single 16 bit field 429 * A vector of two shorts. These two shorts are packed into a single 32 bit field 453 * A vector of two ints. These two ints are packed into a single 64 bit field [all …]
|