Searched refs:tryTest (Results 1 – 10 of 10) sorted by relevance
20 import com.android.testutils.tryTest40 val result = tryTest { in testNotThrow()57 tryTest { in testThrowTry()75 tryTest { in testThrowCleanup()93 tryTest { in testThrowBoth()112 fun doTestReturn(crash: Boolean) = tryTest { in testReturn()118 assertTrue(6 == tryTest { 6 } cleanup { Log.e(TAG, "tested") }) in testReturn()126 tryTest { in testCatch()145 tryTest { in testNotCatch()162 tryTest { in testThrowInCatch()[all …]
72 tryTest { in <lambda>()102 currentTestCleanupActions.fold(tryTest { }) { in <lambda>()147 return tryTest { in <lambda>()
72 return tryTest { in ensureWifiConnected()92 return tryTest { in ensureWifiConnected()
48 tryTest { in evaluate()
32 import com.android.testutils.tryTest73 tryTest { in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()116 tryTest { in testMdnsDiscoveryWorkOnTetheringInterface()
135 import com.android.testutils.tryTest in <lambda>()672 tryTest { in setHoldCarrierPrivilege()685 return@tryTest in setHoldCarrierPrivilege()715 tryTest { in acquireCarrierPrivilege()724 return@tryTest in acquireCarrierPrivilege()778 tryTest { in testAllowedUids_WithCarrierServicePackage()790 if (!SdkLevel.isAtLeastU()) return@tryTest in testAllowedUids_WithCarrierServicePackage()
77 fun <T> tryTest(block: () -> T) = TryExpr( in <lambda>() method119 return cleanupBlock.fold(tryTest { tryBlock.get() }) { previousExpr, nextCleanup -> in cleanup()
24 import com.android.testutils.tryTest in <lambda>()56 tryTest { in <lambda>()
37 import com.android.testutils.tryTest
69 import com.android.testutils.tryTest303 tryTest { in testValidation()309 return@tryTest in testValidation()347 tryTest { in testCapportApi()