Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 37) sorted by relevance

12

/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DWatchedIntentHandlingTest.java85 WatchedIntentFilter s1 = f.snapshot(); in testWatchedIntentFilter() local
116 PreferredActivity s1 = a.snapshot(); in testPreferredActivity() local
120 assertTrue(s1 == a.snapshot()); in testPreferredActivity()
127 assertTrue(s1 != s2); in testPreferredActivity()
131 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredActivity()
155 PreferredActivity s1 = a1.snapshot(); in testPreferredIntentResolver() local
158 assertTrue(s1 == a1.snapshot()); in testPreferredIntentResolver()
163 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredIntentResolver()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest10.java62 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_validResult()
63 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_validResult()
85 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinned()
86 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinned()
109 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinnedByAnother()
110 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinnedByAnother()
125 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_defaultLauncherChanges()
126 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_defaultLauncherChanges()
H A DShortcutManagerTest8.java180 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
182 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
192 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
194 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
204 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
206 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
344 ShortcutInfo s1 = makeShortcutWithActivity("s1", in testRequestPinShortcut_explicitTargetActivity()
1181 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_error()
1239 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_okay()
1411 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenDisabled_error()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
H A DServiceListingTest.java77 ServiceInfo s1 = new ServiceInfo(); in testValidator() local
78 s1.permission = "testPermission"; in testValidator()
79 s1.packageName = "pkg"; in testValidator()
84 r1.serviceInfo = s1; in testValidator()
113 assertThat(captor.getValue().get(0)).isEqualTo(s1); in testValidator()
118 ServiceInfo s1 = new ServiceInfo(); in testNoValidator() local
119 s1.permission = "testPermission"; in testNoValidator()
120 s1.packageName = "pkg"; in testNoValidator()
125 r1.serviceInfo = s1; in testNoValidator()
/aosp14/frameworks/base/core/tests/coretests/src/android/animation/
H A DAnimatorSetActivityTest.java107 AnimatorSet s1 = new AnimatorSet(); in testGetChildAnimations() local
108 s1.playTogether(a1, a2, a3); in testGetChildAnimations()
131 assertTrue(s3Children.contains(s1)); in testGetChildAnimations()
150 AnimatorSet s1 = new AnimatorSet(); in testTotalDuration() local
151 s1.playSequentially(list); in testTotalDuration()
161 s1.setStartDelay(200); in testTotalDuration()
506 s1.addListener(l1); in testClone()
514 s1.start(); in testClone()
518 assertTrue(s1.isStarted()); in testClone()
519 final AnimatorSet s2 = s1.clone(); in testClone()
[all …]
/aosp14/system/core/libutils/
H A DUnicode.cpp192 int strcmp16(const char16_t *s1, const char16_t *s2) in strcmp16() argument
198 d = (int)(ch = *s1++) - (int)*s2++; in strcmp16()
206 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n) in strncmp16() argument
216 d = (int)(ch = *s1++) - (int)*s2++; in strncmp16()
264 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2) in strzcmp16() argument
266 const char16_t* e1 = s1+n1; in strzcmp16()
269 while (s1 < e1 && s2 < e2) { in strzcmp16()
270 const int d = (int)*s1++ - (int)*s2++; in strzcmp16()
279 ? ((int)*s1 - 0) in strzcmp16()
/aosp14/frameworks/base/libs/usb/src/com/android/future/usb/
H A DUsbAccessory.java98 private static boolean compare(String s1, String s2) { in compare() argument
99 if (s1 == null) return (s2 == null); in compare()
100 return s1.equals(s2); in compare()
/aosp14/system/core/libutils/include/utils/
H A DUnicode.h27 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n);
39 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java132 State s1 = new State(); in testIconColorDisabledByPolicy_sameAsUnavailable() local
133 s1.state = Tile.STATE_INACTIVE; in testIconColorDisabledByPolicy_sameAsUnavailable()
134 s1.disabledByPolicy = true; in testIconColorDisabledByPolicy_sameAsUnavailable()
139 assertEquals(mIconView.getColor(s1), mIconView.getColor(s2)); in testIconColorDisabledByPolicy_sameAsUnavailable()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/
H A DLicenseHtmlGeneratorFromXml.java259 m1.merge(entry.getKey(), entry.getValue(), (s1, s2) -> { in parse()
260 s1.addAll(s2); in parse()
261 return s1; in parse()
316 entry.getKey(), entry.getValue(), (s1, s2) -> { in generateHtml()
317 s1.addAll(s2); in generateHtml()
318 return s1; in generateHtml()
/aosp14/frameworks/base/core/java/android/hardware/usb/
H A DUsbAccessory.java183 private static boolean compare(String s1, String s2) { in compare() argument
184 if (s1 == null) return (s2 == null); in compare()
185 return s1.equals(s2); in compare()
/aosp14/frameworks/base/location/java/android/location/altitude/
H A DAltitudeConverter.java91 long s1 = edgeNeighbors[i1 + 2]; in findMapSquare() local
98 S2CellIdUtils.getEdgeNeighbors(s1, edgeNeighbors); in findMapSquare()
110 edgeNeighbors[1] = s1; in findMapSquare()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
H A DAndroidFutureTest.java166 nearFuture.thenCombine(farFuture, ((s1, s2) -> s1 + s2)); in testThenCombine()
179 BiFunction<String, String, String> throwingFunction = (s1, s2) -> { in testThenCombine_functionThrowingException()
/aosp14/frameworks/base/core/java/android/content/
H A DIntentFilter.java3069 if (s1 != s2) { in filterEquals()
3072 for (int i=0; i<s1; i++) { in filterEquals()
3077 s1 = f1.countCategories(); in filterEquals()
3079 if (s1 != s2) { in filterEquals()
3087 s1 = f1.countDataTypes(); in filterEquals()
3089 if (s1 != s2) { in filterEquals()
3099 if (s1 != s2) { in filterEquals()
3109 if (s1 != s2) { in filterEquals()
3117 s1 = f1.countDataPaths(); in filterEquals()
3119 if (s1 != s2) { in filterEquals()
[all …]
/aosp14/frameworks/base/core/java/android/text/method/
H A DInsertModeTransformationMethod.java483 private static boolean intersect(int s1, int e1, int s2, int e2) { in intersect() argument
484 if (s1 > e2) return false; in intersect()
486 if (s1 != e1 && s2 != e2) { in intersect()
487 if (s1 == e2) return false; in intersect()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DAidlTest.java393 String[] s1 = new String[]{"s1[0]", "s1[1]"}; in testArrays() local
395 String[] sr = mRemote.stringArray(s0, s1, s2); in testArrays()
400 assertEquals("s0[0]", s1[0]); in testArrays()
401 assertNull(s1[1]); in testArrays()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DBitUtilsTest.java63 short s1 = 1; in testUnsignedShortWideningConversions() local
66 assertEquals(1, uint16(s1)); in testUnsignedShortWideningConversions()
/aosp14/frameworks/base/core/java/android/webkit/
H A DWebViewFactory.java373 private static boolean signaturesEquals(Signature[] s1, Signature[] s2) { in signaturesEquals() argument
374 if (s1 == null) { in signaturesEquals()
380 for(Signature signature : s1) { in signaturesEquals()
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java291 CharSequence s1 = "The quick brown fox jumps over \u00FEhe lazy dog."; in testEllipsize() local
292 CharSequence s2 = new Wrapper(s1); in testEllipsize()
293 Spannable s3 = new SpannableString(s1); in testEllipsize()
316 String out1 = TextUtils.ellipsize(s1, p, i, kind).toString(); in testEllipsize()
320 String keep1 = TextUtils.ellipsize(s1, p, i, kind, true, null).toString(); in testEllipsize()
338 assertEquals("wid " + i + " pass " + j, keep1.length(), s1.length()); in testEllipsize()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DAppStateHelper.java167 int s1 = arr.length; in containsAny() local
169 for (int i = 0, j = 0; i < s1 && j < s2; ) { in containsAny()
H A DPackageManagerServiceUtils.java406 public static int compareSignatures(Signature[] s1, Signature[] s2) { in compareSignatures() argument
407 if (s1 == null) { in compareSignatures()
417 if (s1.length != s2.length) { in compareSignatures()
422 if (s1.length == 1) { in compareSignatures()
423 return s1[0].equals(s2[0]) ? in compareSignatures()
429 for (Signature sig : s1) { in compareSignatures()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DMediaDevice.java527 final String s1 = getName(); in compareTo() local
529 return s1.compareToIgnoreCase(s2); in compareTo()
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DHelper.java367 static boolean containsCharsInOrder(String s1, String s2) { in containsCharsInOrder() argument
370 int index = TextUtils.indexOf(s1, ch, prevIndex + 1); in containsCharsInOrder()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
H A DDeviceConfigParsingUtilsTest.java96 DeviceConfigParsingUtils.parseDeviceConfigMap(VALID_DATA_STRING, (s1, s2) -> null, in testDataPointMapperReturnsNull()
/aosp14/frameworks/base/tools/aapt/
H A DXMLNode.h178 XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace);

12