Home
last modified time | relevance | path

Searched refs:throws (Results 1 – 19 of 19) sorted by relevance

/tools/asuite/atest/unittest_data/class_file_path_testing/
Dhello_world_test.kt5 fun testMethod1() throws Exception {} in <lambda>()
8 fun testMethod2() throws Exception {} in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/compatibility/
DThrowsCompatibilityTest.kt31 fun `Incompatible method change -- throws list -- java`() { in Incompatible method change -- throws list -- java()
74 fun `Incompatible method change -- throws list -- kt`() { in Incompatible method change -- throws list -- kt()
125 fun `Incompatible method change -- throws list -- type parameter`() { in Incompatible method change -- throws list -- type parameter()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/
DCommonMethodItemTest.kt282 fun `Test throws method type parameter extends Throwable`() { in <lambda>()
317 fun `Test throws method type parameter does not extend Throwable`() { in <lambda>()
354 fun `Test throws method class does not exist`() { in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/stub/
DKotlinStubWriter.kt222 val throws = in <lambda>() constant
228 if (throws.any()) { in <lambda>()
230 throws.asSequence().sortedWith(ExceptionTypeItem.fullNameComparator).forEachIndexed { in <lambda>()
DJavaStubWriter.kt375 val throws = in <lambda>() constant
381 if (throws.any()) { in <lambda>()
383 throws.sortedWith(ExceptionTypeItem.fullNameComparator).forEachIndexed { i, type -> in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DSignatureWriter.kt389 val throws = in <lambda>() constant
394 if (throws.any()) { in <lambda>()
396 throws.asSequence().sortedWith(ExceptionTypeItem.fullNameComparator).forEachIndexed { in <lambda>()
DJDiffXmlWriter.kt298 val throws = in <lambda>() constant
303 if (throws.any()) { in <lambda>()
304 throws.sortedWith(ExceptionTypeItem.fullNameComparator).forEach { type -> in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/lint/
DThrowsLintTest.kt199 fun `Test throws type parameter`() { in Test throws type parameter()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsGenericTest.kt102 fun `Check correct throws list for generics`() { in Check correct throws list for generics()
DStubsInterfaceTest.kt295 fun `Rewriting type parameters in interfaces from hidden super classes and in throws lists`() { in Rewriting type parameters in interfaces from hidden super classes and in throws lists()
DStubsTest.kt196 fun `Check throws list`() { in Check throws list()
/tools/metalava/
DFORMAT.md201 Similarly, v1 used erasure in throws clauses. For example, for this method:
205 public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X
212 ….lang.Throwable> T orElseThrow(java.util.function.Supplier<? extends X>) throws java.lang.Throwabl…
215 Note how that's "throws Throwable" instead of "throws X". This results in b/110302703.
217 In the v2 format we instead use the correct throws type:
220 …c <X extends java.lang.Throwable> T orElseThrow(java.util.function.Supplier<? extends X>) throws X;
/tools/metalava/metalava-model-text/src/test/resources/com/android/tools/metalava/model/text/core/api/
D1.12.0-beta01.txt45 …Sender, int, android.content.Intent?, int, int, int, android.os.Bundle?) throws android.content.In…
90 …tivity instantiateActivity(ClassLoader, String, android.content.Intent?) throws java.lang.ClassNot…
91 … instantiateActivityCompat(ClassLoader, String, android.content.Intent?) throws java.lang.ClassNot…
92 …method public final android.app.Application instantiateApplication(ClassLoader, String) throws jav…
93 …method public android.app.Application instantiateApplicationCompat(ClassLoader, String) throws jav…
94 …android.content.ContentProvider instantiateProvider(ClassLoader, String) throws java.lang.ClassNot…
95 …d.content.ContentProvider instantiateProviderCompat(ClassLoader, String) throws java.lang.ClassNot…
96 …ceiver instantiateReceiver(ClassLoader, String, android.content.Intent?) throws java.lang.ClassNot…
97 … instantiateReceiverCompat(ClassLoader, String, android.content.Intent?) throws java.lang.ClassNot…
98 …Service instantiateService(ClassLoader, String, android.content.Intent?) throws java.lang.ClassNot…
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt611 if (!new.throws(throwableClass.qualifiedName())) { in compare()
628 if (!old.throws(throwableClass.qualifiedName())) { in compare()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DMethodItem.kt83 fun throws(qualifiedName: String): Boolean { in <lambda>() method
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DApiFileTest.kt2290 fun `Check correct throws list for generics`() { in Check correct throws list for generics()
2775 fun `Override via different throws list should be included`() { in Override via different throws list should be included()
DSignatureInputOutputTest.kt187 fun `Test method without parameters with throws list`() { in <lambda>()
/tools/metalava/metalava/src/test/resources/
Dsource-model-provider-baseline.txt262 Rewriting type parameters in interfaces from hidden super classes and in throws lists[turbine]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto301 // throws an exception whenever an attempt is made to assign a non-UTF-8