Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 110) sorted by relevance

12345

/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/
Doi_string.h61 #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/Connectivity/tests/cts/net/src/android/net/cts/
DStaticIpConfigurationTest.java103 StaticIpConfiguration s2 = new StaticIpConfiguration(s1); in testCopyAndClear() local
104 assertEquals(s1, s2); in testCopyAndClear()
105 s2.clear(); in testCopyAndClear()
106 assertEquals(empty, s2); in testCopyAndClear()
139 StaticIpConfiguration s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals() local
140 assertEquals(s, s2); in testHashCodeAndEquals()
143 assertNotEquals(s, s2); in testHashCodeAndEquals()
145 s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals()
147 assertNotEquals(s, s2); in testHashCodeAndEquals()
149 s2 = new StaticIpConfiguration(s); in testHashCodeAndEquals()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp764 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
773 EXPECT_TRUE(s2 == s2); in checkUnequal()
775 EXPECT_TRUE(isAddressEqual(s2, s2)); 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/modules/Connectivity/staticlibs/netd/libnetdutils/
DStatusTest.cpp67 Status s2(666, "EDAEMON"); in TEST() local
68 EXPECT_NE(s, s2); in TEST()
69 s = s2; // Invokes the move-assignment operator. in TEST()
72 EXPECT_EQ(s, s2); in TEST()
75 s2 = s; in TEST()
80 EXPECT_EQ(s, s2); in TEST()
DSliceTest.cpp36 Slice s2 = makeSlice(mRaw); in TEST_F() local
38 s2 = p.first; // avoid warn-unused error in TEST_F()
58 Slice s2(s1); in TEST_F() local
59 Slice s3 = s2; in TEST_F()
/packages/apps/TV/src/com/android/tv/data/api/
DBaseProgram.java33 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/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java295 Builder.SpeedRange s2 = in testSpeedRangeComparison_DifferentMin() local
297 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_DifferentMin()
298 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_DifferentMin()
305 Builder.SpeedRange s2 = in testSpeedRangeComparison_SameMin() local
307 assertThat(s1.compareTo(s2)).isEqualTo(0); in testSpeedRangeComparison_SameMin()
314 Builder.SpeedRange s2 = in testSpeedRangeComparison_SameMinDifferentMax() local
316 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_SameMinDifferentMax()
317 assertThat(s2.compareTo(s1)).isGreaterThan(0); in testSpeedRangeComparison_SameMinDifferentMax()
324 Builder.SpeedRange s2 = in testSpeedRangeComparison_MaxSpeed() local
326 assertThat(s1.compareTo(s2)).isLessThan(0); in testSpeedRangeComparison_MaxSpeed()
[all …]
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/
DTzS2Range.java19 import static com.android.storage.s2.S2Support.cellIdToString;
21 import com.android.storage.s2.S2CellOrdering;
22 import com.android.storage.s2.S2LevelRange;
23 import com.android.storage.s2.S2Support;
DSuffixTableRange.java19 import static com.android.storage.s2.S2Support.cellIdToString;
21 import com.android.storage.s2.S2CellOrdering;
22 import com.android.storage.s2.S2LevelRange;
DTzS2RangeFileFormat.java19 import static com.android.storage.s2.S2Support.FACE_BIT_COUNT;
20 import static com.android.storage.s2.S2Support.MAX_FACE_ID;
21 import static com.android.storage.s2.S2Support.MAX_S2_LEVEL;
24 import com.android.storage.s2.S2Support;
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DUidRangeUtilsTest.java51 @Nullable final Set<UidRange> s2) { in assertInSameRange() argument
52 assertTrue(msg + " : " + s2 + " unexpectedly is not in range of " + r1, in assertInSameRange()
53 UidRangeUtils.isRangeSetInUidRange(r1, s2)); in assertInSameRange()
57 @Nullable final UidRange r1, @Nullable final Set<UidRange> s2) { in assertNotInSameRange() argument
58 assertFalse(msg + " : " + s2 + " unexpectedly is in range of " + r1, in assertNotInSameRange()
59 UidRangeUtils.isRangeSetInUidRange(r1, s2)); in assertNotInSameRange()
195 @Nullable final Set<UidRange> s2) { 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
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DUidRangeTest.java123 @Nullable final Set<UidRange> s2) {
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/services/Telephony/utils/satellite/
DREADME.md2 satellite s2 file.
8 - `src/write` S2 write code used by tools to write the s2 cells into a
14 - `src/main` Contains the tools for generating binary satellite s2 file, and tools
30 - Command: `$satellite_createsats2file --input-file <s2cells.txt> --s2-level <12>
34 - `--s2-level` The S2 level of all the cells in the input file.
43 - Example run command: `$satellite_createsats2file --input-file s2cells.txt --s2-level 12
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/s2/
DS2CellOrdering.java17 package com.android.storage.s2;
19 import static com.android.storage.s2.S2Support.getMaxCellId;
20 import static com.android.storage.s2.S2Support.getMinCellId;
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DS2CellOrderingTest.java17 package com.android.storage.s2;
19 import static com.android.storage.s2.S2CellOrdering.asUnsignedNumeric;
20 import static com.android.storage.s2.S2Support.MAX_FACE_ID;
/packages/modules/Bluetooth/system/gd/crypto_toolbox/
Daes.cc559 uint_8t s2[N_BLOCK];
560 mix_sub_columns(s2, s1);
561 copy_and_key(s1, s2, ctx->ksch + r * N_BLOCK);
605 uint_8t s2[N_BLOCK];
606 copy_and_key(s2, s1, ctx->ksch + r * N_BLOCK);
607 inv_mix_sub_columns(s1, s2);
677 uint_8t s2[N_BLOCK];
678 mix_sub_columns(s2, s1);
680 copy_and_key(s1, s2, o_key);
733 uint_8t s2[N_BLOCK];
[all …]
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DConcurrentProfile.java395 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/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSuffixTableBlock.java19 import static com.android.storage.s2.S2Support.cellIdToString;
20 import static com.android.storage.s2.S2Support.getS2Level;
23 import com.android.storage.s2.S2LevelRange;
DSatS2RangeFileFormat.java19 import static com.android.storage.s2.S2Support.FACE_BIT_COUNT;
20 import static com.android.storage.s2.S2Support.MAX_FACE_ID;
21 import static com.android.storage.s2.S2Support.MAX_S2_LEVEL;
23 import com.android.storage.s2.S2Support;
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanDetailCacheTest.java71 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/tests/
Dstatsd_test_util.cpp1763 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()
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()
1783 s2.value_tuple().dimensions_value_size()) { in EqualsTo()
1789 s2.value_tuple().dimensions_value(i)); in EqualsTo()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/usagereporting/
DSearchSessionStatsExtractor.java363 private static int getCommonPrefixLength(@NonNull String s1, @NonNull String s2) { in getCommonPrefixLength() argument
365 Objects.requireNonNull(s2); 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_2/
Dconcat_float16_2.mod.py33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col:
34 [x + s1 for x in range(s2)])()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dconcat_quant8_2.mod.py33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col:
34 [(x + s1) % 256 for x in range(s2)])()
Dconcat_float_2.mod.py33 input2_values = (lambda s1 = row1 * col, s2 = row2 * col:
34 [x + s1 for x in range(s2)])()

12345