Home
last modified time | relevance | path

Searched refs:assertContains (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorProcessTest.java73 private static void assertContains(String expected, String actual) { in assertContains() method in ParcelFileDescriptorProcessTest
165 assertContains("OMG MUFFINS", blue.checkError()); in testPipeWriterError()
179 assertContains("Remote side is dead", blue.checkError()); in testPipeWriterCrash()
194 assertContains("Remote side is dead", red.checkError()); in testSocketCrash()
216 assertContains("OMG BANANAS", red.checkListener()); in testFileError()
227 assertContains("Remote side is dead", red.checkListener()); in testFileCrash()
236 assertContains("DETACHED", red.checkListener()); in testFileDetach()
245 assertContains("leaked", red.checkListener()); in testFileLeak()
259 assertContains("BLUE RAWR", red.checkError()); in testSocketErrorAfterClose()
269 assertContains("Remote side is dead", red.checkError()); in testSocketDeathBeforeClose()
[all …]
DParcelFileDescriptorTest.java311 private static void assertContains(String expected, String actual) { in assertContains() method in ParcelFileDescriptorTest
378 assertContains("OMG MUFFINS", e.getMessage()); in testPipeError_Discouraged()
397 assertContains("OMG MUFFINS", e.getMessage()); in testPipeError()
430 assertContains("OMG BANANAS", listener.get().getMessage()); in testFileError()
445 assertContains("DETACHED", listener.get().getMessage()); in testFileDetach()
484 assertContains("BLUE RAWR", e.getMessage()); in testSocketErrorAfterClose()
509 assertContains("RAWR RED", e.getMessage()); in testSocketMultipleCheck()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTest.kt24 import kotlin.test.assertContains
78 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
86 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
116 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
124 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
DUiAutomationTestBase.kt56 import kotlin.test.assertContains in <lambda>()
366 assertContains(roleHolders, targetPackageName, "Not a holder of $roleName") in <lambda>()
/cts/tests/tests/proto/src/android/util/proto/cts/
DDebuggingTest.java118 private void assertContains(String haystack, String needle) throws Exception { in assertContains() method in DebuggingTest
127 assertContains(str, ProtoOutputStream.getFieldCountString(count)); in checkFieldIdString()
128 assertContains(str, ProtoOutputStream.getFieldTypeString(type)); in checkFieldIdString()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt41 import kotlin.test.assertContains
336 assertContains(PrimaryCompanionService.associationIdsForConnectedDevices, associationId) in assertOnlyPrimaryCompanionDeviceServiceNotified()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java1903 assertContains( in assertInstallV4FailsWithError()
1916 assertContains( in assertInstallFailsWithError()
1929 assertContains( in assertInstallEphemeralFailsWithError()
1942 private static void assertContains(String message, String expectedSubstring, String actual) { in assertContains() method in PkgInstallSignatureVerificationTest