Home
last modified time | relevance | path

Searched refs:two (Results 1 – 25 of 99) sorted by relevance

1234

/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DBundleUtil.java43 public static boolean deepEquals(@Nullable Bundle one, @Nullable Bundle two) { in deepEquals() argument
44 if (one == null && two == null) { in deepEquals()
47 if (one == null || two == null) { in deepEquals()
50 if (one.size() != two.size()) { in deepEquals()
53 if (!one.keySet().equals(two.keySet())) { in deepEquals()
59 if (!bundleValueEquals(one.get(key), two.get(key))) { in deepEquals()
71 public static boolean bundleValueEquals(@Nullable Object one, @Nullable Object two) { in bundleValueEquals() argument
72 if (one == null && two == null) { in bundleValueEquals()
75 if (one == null || two == null) { in bundleValueEquals()
78 if (one.equals(two)) { in bundleValueEquals()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java129 Network two = new Network(2); in testGetNetworkHandle() local
134 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle()
138 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
140 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
144 assertNotEquals(0, two.getNetworkHandle()); in testGetNetworkHandle()
148 assertNotEquals(one.getNetworkHandle(), two.getNetworkHandle()); in testGetNetworkHandle()
150 assertNotEquals(two.getNetworkHandle(), three.getNetworkHandle()); in testGetNetworkHandle()
154 assertNotEquals(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle()
160 assertEquals(11995631629L, two.getNetworkHandle()); in testGetNetworkHandle()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/
DBundleUtilTest.java50 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 …]
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/table/reader/
DIntValueTable.java50 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()
DLongValueTable.java48 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()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactDeltaComparator.java41 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()
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DRealLocationListeningAccountant.java277 private static Duration max(@NonNull Duration one, @NonNull Duration two) { in max() argument
278 return one.compareTo(two) >= 0 ? one : two; in max()
282 private static Duration min(@NonNull Duration one, @NonNull Duration two) { in min() argument
283 return one.compareTo(two) < 0 ? one : two; in min()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DTypes.java176 private static boolean s2PolygonsEquals(List<S2Polygon> one, List<S2Polygon> two) { in s2PolygonsEquals() argument
177 if (one.size() != two.size()) { in s2PolygonsEquals()
182 S2Polygon twoPoly = two.get(polyIndex); in s2PolygonsEquals()
190 private static boolean s2PolygonEquals(S2Polygon one, S2Polygon two) { in s2PolygonEquals() argument
191 if (one.numLoops() != two.numLoops()) { in s2PolygonEquals()
197 S2Loop twoLoop = two.loop(loopIndex); in s2PolygonEquals()
205 private static boolean s2LoopEquals(S2Loop one, S2Loop two) { in s2LoopEquals() argument
206 if (one.numVertices() != two.numVertices()) { in s2LoopEquals()
212 S2Point twoPoint = two.vertex(vertexIndex); in s2LoopEquals()
336 private static boolean s2CellUnionEquals(S2CellUnion one, S2CellUnion two) { in s2CellUnionEquals() argument
[all …]
/packages/modules/Permission/framework-s/java/android/app/role/
DTEST_MAPPING16 // TODO(b/238677748): These two tests currently fails on R base image
33 // TODO(b/238677748): These two tests currently fails on R base image
55 // TODO(b/238677748): These two tests currently fails on R base image
/packages/modules/Permission/tests/cts/role/
DTEST_MAPPING16 // TODO(b/238677748): These two tests currently fails on R base image
33 // TODO(b/238677748): These two tests currently fails on R base image
55 // TODO(b/238677748): These two tests currently fails on R base image
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/
DTEST_MAPPING16 // TODO(b/238677748): These two tests currently fails on R base image
33 // TODO(b/238677748): These two tests currently fails on R base image
55 // TODO(b/238677748): These two tests currently fails on R base image
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiChipAidlImplTest.java149 WifiDebugRingBufferStatus two = new WifiDebugRingBufferStatus(); in testRingBufferStatus() local
150 two.ringName = "Two"; in testRingBufferStatus()
151 two.flags = WifiDebugRingBufferFlags.HAS_ASCII_ENTRIES in testRingBufferStatus()
153 two.ringId = 4512470; in testRingBufferStatus()
154 two.sizeInBytes = 300; in testRingBufferStatus()
155 two.freeSizeInBytes = 42; in testRingBufferStatus()
156 two.verboseLevel = WifiDebugRingBufferVerboseLevel.DEFAULT; in testRingBufferStatus()
158 WifiDebugRingBufferStatus[] halBufferStatus = new WifiDebugRingBufferStatus[]{one, two}; in testRingBufferStatus()
164 assertEquals(two.ringId, actual.get(1).ringBufferId); in testRingBufferStatus()
DWifiChipHidlImplTest.java195 WifiDebugRingBufferStatus two = new WifiDebugRingBufferStatus(); in testRingBufferStatus() local
196 two.ringName = "Two"; in testRingBufferStatus()
197 two.flags = WifiDebugRingBufferFlags.HAS_ASCII_ENTRIES in testRingBufferStatus()
199 two.ringId = 4512470; in testRingBufferStatus()
200 two.sizeInBytes = 300; in testRingBufferStatus()
201 two.freeSizeInBytes = 42; in testRingBufferStatus()
202 two.verboseLevel = WifiDebugRingBufferVerboseLevel.DEFAULT; in testRingBufferStatus()
206 halBufferStatus.add(two); in testRingBufferStatus()
220 assertEquals(two.ringId, actual.get(1).ringBufferId); in testRingBufferStatus()
/packages/modules/Permission/service/java/com/android/role/
DTEST_MAPPING24 // TODO(b/238677748): These two tests currently fails on R base image
41 // TODO(b/238677748): These two tests currently fails on R base image
71 // TODO(b/238677748): These two tests currently fails on R base image
/packages/modules/GeoTZ/common/host/main/java/com/android/timezone/location/common/
DLicenseSupport.java103 private static void checkFilesIdentical(File one, File two) throws IOException { in checkFilesIdentical() argument
105 FileInputStream twoInput = new FileInputStream(two)) { in checkFilesIdentical()
110 throw new IllegalArgumentException("File " + one + " is not the same as " + two); in checkFilesIdentical()
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/flex_event/
Dflex_event_with_coarse_destinations.json40 // Source is not registered - it has two destination types and does not set
74 // Source is registered - it has two destination types but sets
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/flex_lite/
Dflex_lite_with_coarse_destinations.json29 // Source is not registered - it has two destination types and does not set
55 // Source is registered - it has two destination types but sets
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadView.java80 private final int[] mButtonIds = new int[] {R.id.zero, R.id.one, R.id.two, R.id.three,
337 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
361 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
380 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
420 } else if (buttonId == R.id.two || buttonId == R.id.five || buttonId == R.id.eight in getKeyButtonAnimationDuration()
431 } else if (buttonId == R.id.two || buttonId == R.id.five || buttonId == R.id.eight in getKeyButtonAnimationDuration()
440 if (buttonId == R.id.one || buttonId == R.id.two || buttonId == R.id.three in getKeyButtonAnimationDuration()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketReaderTest.java182 final byte[] two = "two 2".getBytes("UTF-8"); in testBasicWorking()
183 sendPacket(two); in testBasicWorking()
186 assertTrue(Arrays.equals(two, mLastRecvBuf)); in testBasicWorking()
192 assertTrue(Arrays.equals(two, mLastRecvBuf)); in testBasicWorking()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarServiceUtilsTest.java419 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals() local
421 expectWithMessage("The same encrypted data").that(one).isEqualTo(two); in testEncryptedDataEquals()
432 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals_notEqualData() local
434 expectWithMessage("The same encrypted data").that(one).isNotEqualTo(two); in testEncryptedDataEquals_notEqualData()
445 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals_notEqualIv() local
447 expectWithMessage("The same encrypted data").that(one).isNotEqualTo(two); in testEncryptedDataEquals_notEqualIv()
/packages/apps/Launcher3/aconfig/
Dlauncher.aconfig14 description: "Enables two line label inside all apps."
21 …description: "Enables visibility in home settings to see the toggle to turn on/off two lines in al…
91 description: "Enables two pane widget picker for unfolded foldables"
98 description: "Enables full width two pane widget picker for tablets in landscape and portrait"
105 description: "Enables two panel settings when on large enough displays"
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/
Dexpired_source.json107 // Rounded to two days (172800 seconds).
183 // to two days.
/packages/services/Car/tools/cpu_perf/
Dpixel6.config32 # two weakest cores gone, 6 cores
37 # two middle cores gone, 6 cores
D8155.config30 # two weakest cores gone, 6 cores
36 # two middle cores gone, 6 cores
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java64 R.id.two,
349 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
373 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
392 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
434 } else if (buttonId == R.id.two in getKeyButtonAnimationDuration()
451 } else if (buttonId == R.id.two in getKeyButtonAnimationDuration()
465 || buttonId == R.id.two in getKeyButtonAnimationDuration()

1234