/packages/modules/DnsResolver/tests/ |
D | resolv_tls_unit_test.cpp | 787 bool isAddressEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in isAddressEqual() argument 788 bool cmp1 = ADDRESS_COMPARATOR(s1, s2); in isAddressEqual() 789 bool cmp2 = ADDRESS_COMPARATOR(s2, s1); in isAddressEqual() 794 void checkUnequal(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkUnequal() argument 796 EXPECT_TRUE(s2 == s2); in checkUnequal() 798 EXPECT_TRUE(isAddressEqual(s2, s2)); in checkUnequal() 800 EXPECT_TRUE(s1 < s2 ^ s2 < s1); in checkUnequal() 801 EXPECT_FALSE(s1 == s2); in checkUnequal() 802 EXPECT_FALSE(s2 == s1); in checkUnequal() 805 void checkEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkEqual() argument [all …]
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | StaticIpConfigurationTest.java | 87 StaticIpConfiguration s2 = new StaticIpConfiguration(s1); in testCopyAndClear() local 88 assertEquals(s1, s2); in testCopyAndClear() 89 s2.clear(); in testCopyAndClear() 90 assertEquals(empty, s2); in testCopyAndClear() 123 StaticIpConfiguration s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals() local 124 assertEquals(s, s2); in testHashCodeAndEquals() 127 assertNotEquals(s, s2); in testHashCodeAndEquals() 129 s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals() 131 assertNotEquals(s, s2); in testHashCodeAndEquals() 133 s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 257 Builder.SpeedRange s2 = in testSpeedRangeComparison_DifferentMin() local 259 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_DifferentMin() 260 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_DifferentMin() 267 Builder.SpeedRange s2 = in testSpeedRangeComparison_SameMin() local 269 assertThat(s1.compareTo(s2)).isEqualTo(0); in testSpeedRangeComparison_SameMin() 276 Builder.SpeedRange s2 = in testSpeedRangeComparison_SameMinDifferentMax() local 278 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 279 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 286 Builder.SpeedRange s2 = in testSpeedRangeComparison_MaxSpeed() local 288 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_MaxSpeed() [all …]
|
/packages/apps/TV/src/com/android/tv/data/api/ |
D | BaseProgram.java | 33 static int numberCompare(String s1, String s2) { in numberCompare() argument 34 if (Objects.equals(s1, s2)) { in numberCompare() 38 } else if (s2 == null) { in numberCompare() 40 } else if (s1.equals(s2)) { in numberCompare() 44 return Integer.compare(Integer.parseInt(s1), Integer.parseInt(s2)); in numberCompare() 46 return s1.compareTo(s2); in numberCompare()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | unittest.h | 52 inline int StrCmp(const Ch* s1, const Ch* s2) { in StrCmp() argument 53 while(*s1 && (*s1 == *s2)) { s1++; s2++; } in StrCmp() 54 return (unsigned)*s1 < (unsigned)*s2 ? -1 : (unsigned)*s1 > (unsigned)*s2; in StrCmp()
|
/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util.cpp | 1311 bool EqualsTo(const DimensionsValue& s1, const DimensionsValue& s2) { in EqualsTo() argument 1312 if (s1.field() != s2.field()) { in EqualsTo() 1315 if (s1.value_case() != s2.value_case()) { in EqualsTo() 1320 return (s1.value_str() == s2.value_str()); in EqualsTo() 1322 return s1.value_int() == s2.value_int(); in EqualsTo() 1324 return s1.value_long() == s2.value_long(); in EqualsTo() 1326 return s1.value_bool() == s2.value_bool(); in EqualsTo() 1328 return s1.value_float() == s2.value_float(); in EqualsTo() 1331 s2.value_tuple().dimensions_value_size()) { in EqualsTo() 1337 s2.value_tuple().dimensions_value(i)); in EqualsTo() [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/ |
D | TzS2Range.java | 19 import static com.android.timezone.location.storage.s2.S2Support.cellIdToString; 21 import com.android.timezone.location.storage.s2.S2CellOrdering; 22 import com.android.timezone.location.storage.s2.S2LevelRange; 23 import com.android.timezone.location.storage.s2.S2Support;
|
D | SuffixTableRange.java | 19 import static com.android.timezone.location.storage.s2.S2Support.cellIdToString; 21 import com.android.timezone.location.storage.s2.S2CellOrdering; 22 import com.android.timezone.location.storage.s2.S2LevelRange;
|
D | TzS2RangeFileFormat.java | 19 import static com.android.timezone.location.storage.s2.S2Support.FACE_BIT_COUNT; 20 import static com.android.timezone.location.storage.s2.S2Support.MAX_FACE_ID; 21 import static com.android.timezone.location.storage.s2.S2Support.MAX_S2_LEVEL; 23 import com.android.timezone.location.storage.s2.S2Support;
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/ |
D | S2CellOrdering.java | 17 package com.android.timezone.location.storage.s2; 19 import static com.android.timezone.location.storage.s2.S2Support.getMaxCellId; 20 import static com.android.timezone.location.storage.s2.S2Support.getMinCellId;
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/ |
D | S2CellOrderingTest.java | 17 package com.android.timezone.location.storage.s2; 19 import static com.android.timezone.location.storage.s2.S2CellOrdering.asUnsignedNumeric; 20 import static com.android.timezone.location.storage.s2.S2Support.MAX_FACE_ID;
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanDetailCacheTest.java | 71 ScanDetail s2 = createScanDetailForNetwork(mWifiConfiguration, TEST_BSSID_2, in testGetMostRecentScanResult() local 81 mScanDetailCache.put(s2); in testGetMostRecentScanResult() 91 assertEquals(s2, mScanDetailCache.getScanDetail(TEST_BSSID_2)); in testGetMostRecentScanResult()
|
/packages/modules/StatsD/statsd/src/ |
D | HashableDimensionKey.cpp | 282 bool LessThan(const vector<FieldValue>& s1, const vector<FieldValue>& s2) { in LessThan() argument 283 if (s1.size() != s2.size()) { in LessThan() 284 return s1.size() < s2.size(); in LessThan() 289 if (s1[i] != s2[i]) { in LessThan() 290 return s1[i] < s2[i]; in LessThan()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiScoreReport.java | 554 int s2 = mVelocityBasedConnectedScore.generateScore(); in calculateAndReportScore() local 555 score = s2; in calculateAndReportScore() 604 updateWifiMetrics(millis, s2); in calculateAndReportScore() 640 private void updateWifiMetrics(long now, int s2) { in updateWifiMetrics() argument 645 logLinkMetrics(now, netId, s1, s2, mLegacyIntScore); in updateWifiMetrics() 747 private void logLinkMetrics(long now, int netId, int s1, int s2, int score) { in logLinkMetrics() argument 777 s1, s2, score); in logLinkMetrics()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterDraw.java | 203 float s2 = size / 2; in draw() local 204 float step = s2 / 8; in draw() 208 canvas.drawBitmap(brush, mPosition[0] - s2, mPosition[1] - s2, paint); in draw()
|
/packages/modules/adb/ |
D | sockets.cpp | 782 asocket* s2; in smart_socket_enqueue() local 809 s2 = host_service_to_socket(service, serial, transport_id); in smart_socket_enqueue() 810 if (s2 == nullptr) { in smart_socket_enqueue() 828 s->peer->peer = s2; in smart_socket_enqueue() 829 s2->peer = s->peer; in smart_socket_enqueue() 835 s2->ready(s2); in smart_socket_enqueue()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | concat_quant8_2.mod.py | 33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col: 34 [(x + s1) % 256 for x in range(s2)])()
|
D | concat_float_2.mod.py | 33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col: 34 [x + s1 for x in range(s2)])()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | concat_float16_2.mod.py | 33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col: 34 [x + s1 for x in range(s2)])()
|
D | transpose_conv2d.mod.py | 72 s2 = Int32Vector("shape", [1, 3, 4, 1]) # output shape variable 74 Model().Operation("TRANSPOSE_CONV_2D", i2, w2, b2, s2, 1, 3, 3, 1, layout).To(o2) 97 }).AddNchw(i2, o2, s2, layout).AddVariations("relaxed", quant8, channelQuant8, "float16")
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/ |
D | concat_float_2_relaxed.mod.py | 34 input2_values = (lambda s1 = row1 * col, s2 = row2 * col: 35 [x + s1 for x in range(s2)])()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistanceTest.java | 71 byte[] s2 = Hex.decodeHex(NameNormalizer.normalize(name2)); in assertFloat() 73 float actual = mNameDistance.getDistance(s1, s2); in assertFloat()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraInterface.java | 102 void setNoiseEdgeText(String s1, String s2); in setNoiseEdgeText() argument 107 void setNoiseEdgeTextForReprocessing(String s1, String s2); in setNoiseEdgeTextForReprocessing() argument
|
/packages/modules/GeoTZ/ |
D | run-data-pipeline.sh | 205 --max-s2-level ${S2_LEVEL} 223 --s2-level ${S2_LEVEL} 272 --s2-level ${S2_LEVEL} \
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | QuickstepModelDelegate.java | 311 ShortcutInfo s2 = t2.getShortcutInfo(); in areAppTargetsSame() local 313 if (s2 == null || !Objects.equals(s1.getId(), s2.getId())) { in areAppTargetsSame() 316 } else if (s2 != null) { in areAppTargetsSame()
|