Home
last modified time | relevance | path

Searched refs:one (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java32 int one = 0x10000; in Cube() local
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()
45 0, 0, 0, one, in Cube()
[all …]
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/
DBundleUtil.java42 public static boolean deepEquals(@Nullable Bundle one, @Nullable Bundle two) { in deepEquals() argument
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()
57 for (String key : one.keySet()) { in deepEquals()
58 if (!bundleValueEquals(one.get(key), two.get(key))) { in deepEquals()
70 private static boolean bundleValueEquals(@Nullable Object one, @Nullable Object two) { in bundleValueEquals() argument
71 if (one == null && two == null) { in bundleValueEquals()
74 if (one == null || two == null) { in bundleValueEquals()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/timedetector/
DTelephonyTimeSuggestionTest.java36 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local
37 assertEquals(one, one); in testEquals()
42 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local
44 assertEquals(one, two); in testEquals()
45 assertEquals(two, one); in testEquals()
50 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local
51 assertEquals(one, one); in testEquals()
56 TelephonyTimeSuggestion one = builder1.build(); in testEquals() local
58 assertEquals(one, two); in testEquals()
59 assertEquals(two, one); in testEquals()
[all …]
DManualTimeSuggestionTest.java36 ManualTimeSuggestion one = new ManualTimeSuggestion(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()
DGnssTimeSuggestionTest.java36 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()
DNetworkTimeSuggestionTest.java36 NetworkTimeSuggestion one = new NetworkTimeSuggestion(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()
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/
DTelephonyTimeZoneSuggestionTest.java42 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() local
43 assertEquals(one, one); in testEquals()
49 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() local
51 assertEquals(one, two); in testEquals()
52 assertEquals(two, one); in testEquals()
58 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() local
60 assertNotEquals(one, three); in testEquals()
61 assertNotEquals(three, one); in testEquals()
68 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() local
70 assertNotEquals(one, two); in testEquals()
[all …]
DManualTimeZoneSuggestionTest.java41 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DGeolocationTimeZoneSuggestionTest.java37 GeolocationTimeZoneSuggestion one = new GeolocationTimeZoneSuggestion(ARBITRARY_ZONE_IDS1); in testEquals() local
38 assertEquals(one, one); in testEquals()
41 assertEquals(one, two); in testEquals()
42 assertEquals(two, one); in testEquals()
45 assertNotEquals(one, nullZone); in testEquals()
46 assertNotEquals(nullZone, one); in testEquals()
51 assertNotEquals(one, three); in testEquals()
52 assertNotEquals(three, one); in testEquals()
55 one.addDebugInfo("Debug info 1"); in testEquals()
57 assertEquals(one, two); in testEquals()
/frameworks/base/core/tests/coretests/src/android/app/timezone/
DRulesStateTest.java37 RulesState one = new RulesState( in equalsAndHashCode() local
41 assertEqualsContract(one, one); in equalsAndHashCode()
47 assertEqualsContract(one, two); in equalsAndHashCode()
53 assertFalse(one.equals(differentBaseRules)); in equalsAndHashCode()
59 assertFalse(one.equals(differentFormatVersion)); in equalsAndHashCode()
65 assertFalse(one.equals(differentOperationInProgress)); in equalsAndHashCode()
71 assertFalse(one.equals(differentStagedOperation)); in equalsAndHashCode()
77 assertFalse(one.equals(differentStagedInstallVersion)); in equalsAndHashCode()
83 assertFalse(one.equals(differentInstalled)); in equalsAndHashCode()
89 assertFalse(one.equals(differentInstalledVersion)); in equalsAndHashCode()
[all …]
DDistroRulesVersionTest.java37 DistroRulesVersion one = new DistroRulesVersion("2016a", 2); in equalsAndHashCode() local
38 assertEqualsContract(one, one); in equalsAndHashCode()
41 assertEqualsContract(one, two); in equalsAndHashCode()
44 assertFalse(one.equals(three)); 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()
DDistroFormatVersionTest.java37 DistroFormatVersion one = new DistroFormatVersion(1, 2); in equalsAndHashCode() local
38 assertEqualsContract(one, one); in equalsAndHashCode()
41 assertEqualsContract(one, two); in equalsAndHashCode()
44 assertFalse(one.equals(three)); 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()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DWuQuantizer.java261 private boolean cut(Box one, Box two) { in cut() argument
262 int wholeR = volume(one, mMomentsR); in cut()
263 int wholeG = volume(one, mMomentsG); in cut()
264 int wholeB = volume(one, mMomentsB); in cut()
265 int wholeW = volume(one, mWeights); in cut()
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()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/time/
DTimeZoneCapabilitiesTest.java54 TimeZoneCapabilities one = builder1.build(); in testEquals() local
56 assertEquals(one, two); in testEquals()
61 TimeZoneCapabilities one = builder1.build(); in testEquals() local
63 assertNotEquals(one, two); in testEquals()
68 TimeZoneCapabilities one = builder1.build(); in testEquals() local
70 assertEquals(one, two); in testEquals()
75 TimeZoneCapabilities one = builder1.build(); in testEquals() local
77 assertNotEquals(one, two); in testEquals()
82 TimeZoneCapabilities one = builder1.build(); in testEquals() local
84 assertEquals(one, two); in testEquals()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/
DBundleUtilTest.java40 Bundle one = new Bundle(); in testDeepEquals_self() local
41 one.putString("a", "a"); in testDeepEquals_self()
42 assertThat(BundleUtil.deepEquals(one, one)).isTrue(); in testDeepEquals_self()
47 Bundle one = new Bundle(); in testDeepEquals_simple() local
48 one.putString("a", "a"); in testDeepEquals_simple()
53 assertThat(one).isNotEqualTo(two); in testDeepEquals_simple()
54 assertThat(BundleUtil.deepEquals(one, two)).isTrue(); in testDeepEquals_simple()
59 Bundle one = new Bundle(); in testDeepEquals_keyMismatch() local
60 one.putString("a", "a"); in testDeepEquals_keyMismatch()
65 assertThat(BundleUtil.deepEquals(one, two)).isFalse(); in testDeepEquals_keyMismatch()
[all …]
/frameworks/compile/mclinker/unittests/
DRTLinearAllocatorTest.h38 Data() : one(1), two(2), three(3), four(4) {} in Data()
44 one = pOne; in Data()
51 one = -1; in ~Data()
57 unsigned int one; member
DLinearAllocatorTest.h25 Data() : one(1), two(2), three(3), four(4) {} in Data()
31 one = pOne; in Data()
38 one = -1; in ~Data()
44 unsigned int one; member
DRTLinearAllocatorTest.cpp62 ASSERT_TRUE(1 == pointer->one); in TEST_F()
73 ASSERT_TRUE(7 == pointer->one); in TEST_F()
82 ASSERT_TRUE(1 == pointer->one); in TEST_F()
93 ASSERT_TRUE(7 == pointer->one); in TEST_F()
103 pointer->one = i; in TEST_F()
121 pointer->one = counter; in TEST_F()
DLinearAllocatorTest.cpp61 ASSERT_TRUE(1 == pointer->one); in TEST_F()
72 ASSERT_TRUE(7 == pointer->one); in TEST_F()
81 ASSERT_TRUE(1 == pointer->one); in TEST_F()
92 ASSERT_TRUE(7 == pointer->one); in TEST_F()
102 pointer->one = i; in TEST_F()
120 pointer->one = counter; in TEST_F()
/frameworks/base/core/java/android/app/backup/
DBackupDataInputStream.java63 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()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
DBubbleXmlHelperTest.kt57 one: SparseArray<List<BubbleEntity>>?, in sparseArraysEqual()
60 if (one == null && two == null) return true in sparseArraysEqual()
61 if ((one == null) != (two == null)) return false in sparseArraysEqual()
62 if (one!!.size() != two!!.size()) return false in sparseArraysEqual()
63 for (i in 0 until one.size()) { in sparseArraysEqual()
64 val k1 = one.keyAt(i) in sparseArraysEqual()
65 val v1 = one.valueAt(i) in sparseArraysEqual()
/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/LibOne/src/com/android/aapt/staticlib/one/
DStaticLibOne.java16 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;
/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/App/src/com/android/aapt/app/one/
DAppOne.java16 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;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java264 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()
270 assertEquals("profile group not preserved", one.profileGroupId, in assertUserInfoEquals()
272 assertEquals("restricted profile parent not preserved", one.restrictedProfileParentId, in assertUserInfoEquals()
274 assertEquals("profile badge not preserved", one.profileBadge, two.profileBadge); in assertUserInfoEquals()
275 assertEquals("partial not preserved", one.partial, two.partial); in assertUserInfoEquals()
[all …]
/frameworks/compile/slang/tests/F_reduce_general_parse/
Dstderr.txt.expect10 …script:15:12: error: reduction kernel 'foo' declared multiple times (first one is at reduce_genera…
11 reduce_general_parse.rscript:17:63: error: more than one 'accumulator' for '#pragma rs reduce'
12 reduce_general_parse.rscript:18:63: error: more than one 'accumulator' for '#pragma rs reduce'
13 …19:24: error: did not recognize 'something' for '#pragma reduce'; expected one of the following ke…

12345678910>>...15