/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 795 EXPECT_TRUE(s1 == s1); in checkUnequal() 797 EXPECT_TRUE(isAddressEqual(s1, s1)); 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/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 255 Builder.SpeedRange s1 = in testSpeedRangeComparison_DifferentMin() local 259 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_DifferentMin() 260 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_DifferentMin() 265 Builder.SpeedRange s1 = in testSpeedRangeComparison_SameMin() local 269 assertThat(s1.compareTo(s2)).isEqualTo(0); in testSpeedRangeComparison_SameMin() 274 Builder.SpeedRange s1 = in testSpeedRangeComparison_SameMinDifferentMax() local 278 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 279 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 284 Builder.SpeedRange s1 = in testSpeedRangeComparison_MaxSpeed() local 288 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_MaxSpeed() [all …]
|
/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/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() 36 } else if (s1 == 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/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() 1318 switch (s1.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() 1330 if (s1.value_tuple().dimensions_value_size() != in EqualsTo() [all …]
|
D | statsd_test_util.h | 419 bool LessThan(const StateValue& s1, const StateValue& s2); 420 bool LessThan(const DimensionsValue& s1, const DimensionsValue& s2); 421 bool LessThan(const DimensionsPair& s1, const DimensionsPair& s2); 481 bool operator()(const DimensionsPair& s1, const DimensionsPair& s2) const { in operator() 482 return LessThan(s1, s2); in operator()
|
/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() 287 size_t count = s1.size(); in LessThan() 289 if (s1[i] != s2[i]) { in LessThan() 290 return s1[i] < s2[i]; in LessThan()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | transpose_conv2d_quant8_signed.mod.py | 23 s1 = Int32Vector("shape", [25, 32, 32, 16]) # output shape variable 26 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 1, 32, 32, act, layout).To(o1) 57 s1 = Int32Vector("shape", [1, 5, 5, 2]) # output shape variable 60 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 2, 2, 2, act, layout).To(o1) 99 }).AddNchw(i1, o1, s1, layout).AddAllActivations(o1, act).AddVariations(quant8_signed, quant8_signe…
|
D | transpose_quant8_signed.mod.py | 23 s1 = Int32Vector("shape", [25, 32, 32, 16]) # output shape variable 26 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 1, 32, 32, act, layout).To(o1) 57 s1 = Int32Vector("shape", [1, 5, 5, 2]) # output shape variable 60 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 2, 2, 2, act, layout).To(o1) 99 }).AddNchw(i1, o1, s1, layout).AddAllActivations(o1, act).AddVariations(quant8_signed, quant8_signe…
|
D | concat_quant8_signed.mod.py | 92 input2_values = (lambda s1 = row1 * col, s2 = row2 * col: 93 [(x + s1) % 256 for x in range(s2)])()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanDetailCacheTest.java | 68 ScanDetail s1 = createScanDetailForNetwork(mWifiConfiguration, TEST_BSSID_1, in testGetMostRecentScanResult() local 80 mScanDetailCache.put(s1); in testGetMostRecentScanResult() 90 assertEquals(s1, mScanDetailCache.getScanDetail(TEST_BSSID_1)); in testGetMostRecentScanResult()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | transpose_conv2d_large.mod.py | 23 s1 = Int32Vector("shape", [25, 32, 32, 16]) # output shape variable 26 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 1, 32, 32, act, layout).To(o1)
|
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 | 23 s1 = Int32Vector("shape", [1, 5, 5, 2]) # output shape variable 26 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 2, 2, 2, act, layout).To(o1) 65 }).AddNchw(i1, o1, s1, layout).AddAllActivations(o1, act).AddVariations("relaxed", quant8, quant8_m…
|
/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_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 | 70 byte[] s1 = Hex.decodeHex(NameNormalizer.normalize(name1)); 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/apps/Contacts/tests/src/com/android/contacts/model/account/ |
D | ExternalAccountTypeTest.java | 226 private static int findCommonPrefixEnd(String s1, String s2) { in findCommonPrefixEnd() argument 229 final boolean s1End = (s1.length() <= i); in findCommonPrefixEnd() 234 if (s1.charAt(i) != s2.charAt(i)) { in findCommonPrefixEnd()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalSource.java | 250 String s1 = p1.path.getSuffix(); in compare() local 252 int len1 = s1.length(); in compare() 259 return s1.compareTo(s2); in compare()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | StaticIpConfigurationTest.java | 86 StaticIpConfiguration s1 = makeTestObject(); in testCopyAndClear() local 87 StaticIpConfiguration s2 = new StaticIpConfiguration(s1); in testCopyAndClear() 88 assertEquals(s1, s2); in testCopyAndClear()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | StateMachine.java | 269 private boolean equal(State s1, State s2) { in equal() argument 270 if (!s1.getClass().equals(s2.getClass())) { in equal()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | QuickstepModelDelegate.java | 310 ShortcutInfo s1 = t1.getShortcutInfo(); in areAppTargetsSame() local 312 if (s1 != null) { in areAppTargetsSame() 313 if (s2 == null || !Objects.equals(s1.getId(), s2.getId())) { in areAppTargetsSame()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 78 SitePointer s1, s2, s3; in build() local 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 114 if (ccw(s1, s3, s2)) { in build() 121 if (ccw(s1, s2, s3)) { in build()
|