/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | SliceTest.cpp | 35 Slice s1 = makeSlice(mRaw); in TEST_F() local 37 auto p = split(s1, 14); in TEST_F() 43 EXPECT_EQ(s1.base(), take(s1, kBytes).base()); in TEST_F() 44 EXPECT_EQ(kBytes, take(s1, kBytes).size()); in TEST_F() 45 EXPECT_EQ(s1.base() + kBytes, drop(s1, kBytes).base()); in TEST_F() 46 EXPECT_EQ(s1.size() - kBytes, drop(s1, kBytes).size()); in TEST_F() 50 EXPECT_EQ(sizeof(a), extract(s1, a)); in TEST_F() 51 EXPECT_EQ(sizeof(a) + sizeof(b), extract(s1, a, b)); in TEST_F() 52 EXPECT_EQ(sizeof(a) + sizeof(b) + sizeof(c), extract(s1, a, b, c)); in TEST_F() 57 Slice s1 = makeSlice(mRaw); in TEST_F() local [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/ |
D | oi_string.h | 61 #define OI_MemCmp(s1, s2, n) memcmp((s1), (s2), (n)) argument 65 #define OI_Strcmp(s1, s2) strcmp((s1), (s2)) argument 66 #define OI_Strncmp(s1, s2, n) strncmp((s1), (s2), (n)) argument 103 OI_INT OI_MemCmp(void const* s1, void const* s2, uint32_t n); 141 OI_INT OI_Strcmp(OI_CHAR const* s1, OI_CHAR const* s2); 153 OI_INT OI_Strncmp(OI_CHAR const* s1, OI_CHAR const* s2, uint32_t len); 169 OI_INT OI_StrcmpInsensitive(OI_CHAR const* s1, OI_CHAR const* s2); 184 OI_INT OI_StrncmpInsensitive(OI_CHAR const* s1, OI_CHAR const* s2, OI_UINT len);
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | aes.cc | 548 uint_8t s1[N_BLOCK], r; local 549 copy_and_key(s1, in, ctx->ksch); 554 mix_sub_columns(s1); 555 add_round_key(s1, ctx->ksch + r * N_BLOCK); 560 mix_sub_columns(s2, s1); 561 copy_and_key(s1, s2, ctx->ksch + r * N_BLOCK); 564 shift_sub_rows(s1); 565 copy_and_key(out, s1, ctx->ksch + r * N_BLOCK); 593 uint_8t s1[N_BLOCK], r; local 594 copy_and_key(s1, in, ctx->ksch + ctx->rnd * N_BLOCK); [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_tls_unit_test.cpp | 764 bool isAddressEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in isAddressEqual() argument 765 bool cmp1 = ADDRESS_COMPARATOR(s1, s2); in isAddressEqual() 766 bool cmp2 = ADDRESS_COMPARATOR(s2, s1); in isAddressEqual() 771 void checkUnequal(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkUnequal() argument 772 EXPECT_TRUE(s1 == s1); in checkUnequal() 774 EXPECT_TRUE(isAddressEqual(s1, s1)); in checkUnequal() 777 EXPECT_TRUE(s1 < s2 ^ s2 < s1); in checkUnequal() 778 EXPECT_FALSE(s1 == s2); in checkUnequal() 779 EXPECT_FALSE(s2 == s1); in checkUnequal() 782 void checkEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkEqual() argument [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() 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/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 293 Builder.SpeedRange s1 = in testSpeedRangeComparison_DifferentMin() local 297 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_DifferentMin() 298 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_DifferentMin() 303 Builder.SpeedRange s1 = in testSpeedRangeComparison_SameMin() local 307 assertThat(s1.compareTo(s2)).isEqualTo(0); in testSpeedRangeComparison_SameMin() 312 Builder.SpeedRange s1 = in testSpeedRangeComparison_SameMinDifferentMax() local 316 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 317 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_SameMinDifferentMax() 322 Builder.SpeedRange s1 = in testSpeedRangeComparison_MaxSpeed() local 326 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_MaxSpeed() [all …]
|
/packages/modules/Bluetooth/system/btif/test/ |
D | btif_storage_test.cc | 29 const char* s1 = in TEST() local 38 size_t num_uuids = btif_split_uuids_string(s1, uuids, 2); in TEST() 45 const char* s1 = in TEST() local 50 size_t num_uuids = btif_split_uuids_string(s1, uuids, 1); in TEST()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | UidRangeTest.java | 122 private static void assertSameUids(@NonNull final String msg, @Nullable final Set<UidRange> s1, 124 assertTrue(msg + " : " + s1 + " unexpectedly different from " + s2, 125 UidRange.hasSameUids(s1, s2)); 129 @Nullable final Set<UidRange> s1, @Nullable final Set<UidRange> s2) { 130 assertFalse(msg + " : " + s1 + " unexpectedly equal to " + s2, 131 UidRange.hasSameUids(s1, s2));
|
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/ |
D | ConcurrentProfile.java | 395 public int compare(Scenario s1, Scenario s2) { in compare() argument 396 if (!(s1.hasAt() && s2.hasAt())) { in compare() 400 return s1.getAt().compareTo(s2.getAt()); in compare() 407 public int compare(Scenario s1, Scenario s2) { in compare() argument 408 if (!(s1.hasIndex() && s2.hasIndex())) { in compare() 412 return Integer.compare(s1.getIndex(), s2.getIndex()); in compare()
|
/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…
|
/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util.cpp | 1763 bool EqualsTo(const DimensionsValue& s1, const DimensionsValue& s2) { in EqualsTo() argument 1764 if (s1.field() != s2.field()) { in EqualsTo() 1767 if (s1.value_case() != s2.value_case()) { in EqualsTo() 1770 switch (s1.value_case()) { in EqualsTo() 1772 return (s1.value_str() == s2.value_str()); in EqualsTo() 1774 return s1.value_int() == s2.value_int(); in EqualsTo() 1776 return s1.value_long() == s2.value_long(); in EqualsTo() 1778 return s1.value_bool() == s2.value_bool(); in EqualsTo() 1780 return s1.value_float() == s2.value_float(); in EqualsTo() 1782 if (s1.value_tuple().dimensions_value_size() != in EqualsTo() [all …]
|
/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/Bluetooth/system/blueberry/decorators/ |
D | android_bluetooth_client_decorator.py | 46 s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', cls_name) 47 return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
|
/packages/modules/StatsD/statsd/src/ |
D | HashableDimensionKey.cpp | 321 bool LessThan(const vector<FieldValue>& s1, const vector<FieldValue>& s2) { in LessThan() argument 322 if (s1.size() != s2.size()) { in LessThan() 323 return s1.size() < s2.size(); in LessThan() 326 size_t count = s1.size(); in LessThan() 328 if (s1[i] != s2[i]) { in LessThan() 329 return s1[i] < s2[i]; in LessThan()
|
/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)])()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/usagereporting/ |
D | SearchSessionStatsExtractor.java | 363 private static int getCommonPrefixLength(@NonNull String s1, @NonNull String s2) { in getCommonPrefixLength() argument 364 Objects.requireNonNull(s1); in getCommonPrefixLength() 367 int minLength = Math.min(s1.length(), s2.length()); in getCommonPrefixLength() 369 if (s1.charAt(i) != s2.charAt(i)) { in getCommonPrefixLength()
|
/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/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | Quaternion.java | 316 float s1 = (float) (sinThetaT / sinTheta0); in slerp() local 317 float s0 = (float) (cosThetaT - cosTheta0 * s1); in slerp() 320 start.x * s0 * s1 + orientation1.x, in slerp() 321 start.y * s0 * s1 + orientation1.y, in slerp() 322 start.z * s0 * s1 + orientation1.z, in slerp() 323 start.w * s0 * s1 + orientation1.w in slerp()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | UidRangeUtilsTest.java | 194 @Nullable final Set<UidRange> s1, in assertRangeOverlaps() argument 196 assertTrue(msg + " : " + s2 + " unexpectedly does not overlap with " + s1, in assertRangeOverlaps() 197 UidRangeUtils.doesRangeSetOverlap(s1, s2)); in assertRangeOverlaps() 201 @Nullable final Set<UidRange> s1, @Nullable final Set<UidRange> s2) { in assertRangeDoesNotOverlap() argument 202 assertFalse(msg + " : " + s2 + " unexpectedly ovelaps with " + s1, in assertRangeDoesNotOverlap() 203 UidRangeUtils.doesRangeSetOverlap(s1, s2)); in assertRangeDoesNotOverlap()
|