Home
last modified time | relevance | path

Searched refs:exceptions (Results 1 – 25 of 30) sorted by relevance

12

/aosp14/frameworks/base/test-base/src/android/test/
H A DInstrumentationTestCase.java140 final Throwable[] exceptions = new Throwable[1]; in runTestOnUiThread() local
146 exceptions[0] = throwable; in runTestOnUiThread()
150 if (exceptions[0] != null) { in runTestOnUiThread()
151 throw exceptions[0]; in runTestOnUiThread()
191 final Throwable[] exceptions = new Throwable[1]; in runTest() local
197 exceptions[0] = throwable; in runTest()
201 if (exceptions[0] != null) { in runTest()
202 throw exceptions[0]; in runTest()
/aosp14/frameworks/base/test-runner/api/
H A Dlint-baseline.txt3 Methods must not throw generic exceptions (`java.lang.Exception`)
5 Methods must not throw generic exceptions (`java.lang.Exception`)
7 Methods must not throw generic exceptions (`java.lang.Throwable`)
9 Methods must not throw generic exceptions (`java.lang.Exception`)
11 Methods must not throw generic exceptions (`java.lang.Exception`)
13 Methods must not throw generic exceptions (`java.lang.Exception`)
15 Methods must not throw generic exceptions (`java.lang.Exception`)
17 Methods must not throw generic exceptions (`java.lang.Exception`)
19 Methods must not throw generic exceptions (`java.lang.Exception`)
21 Methods must not throw generic exceptions (`java.lang.Exception`)
[all …]
/aosp14/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java76 final Throwable[] exceptions = new Throwable[1]; in runTest() local
82 exceptions[0] = throwable; in runTest()
86 if (exceptions[0] != null) { in runTest()
87 throw exceptions[0]; in runTest()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
H A DSystemPartitionParseTest.kt81 val exceptions = buildApks() regex
92 if (exceptions.isEmpty()) return
95 exceptions.joinToString(separator = "\n") { it.message.orEmpty() })
/aosp14/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
H A DTraceInjectionClassVisitor.java37 String[] exceptions) { in visitMethod() argument
38 MethodVisitor chain = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DExitDesktopTaskTransitionHandlerTest.java112 ArrayList<Exception> exceptions = new ArrayList<>(); in testTransitExitDesktopModeAnimation() local
121 exceptions.add(e); in testTransitExitDesktopModeAnimation()
124 if (!exceptions.isEmpty()) { in testTransitExitDesktopModeAnimation()
125 throw exceptions.get(0); in testTransitExitDesktopModeAnimation()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/
H A DSharedLibrary.java91 @Immutable.Policy(exceptions = {Immutable.Policy.Exception.FINAL_CLASSES_WITH_FINAL_FIELDS})
98 @Immutable.Policy(exceptions = {Immutable.Policy.Exception.FINAL_CLASSES_WITH_FINAL_FIELDS})
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ime/
H A DShowImeOnAppStartWhenLaunchingAppFromFixedOrientationTest.kt23 import android.tools.common.flicker.subject.exceptions.ExceptionMessageBuilder
24 import android.tools.common.flicker.subject.exceptions.InvalidPropertyException
/aosp14/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
H A DImmutable.java58 Exception[] exceptions() default {}; in exceptions() method
H A DImmutabilityProcessor.kt128 val newPolicyExceptions = parentPolicyExceptions + policyAnnotation?.exceptions.orEmpty()
343 val newPolicyExceptions = parentPolicyExceptions + policyAnnotation?.exceptions.orEmpty()
/aosp14/frameworks/base/services/permission/
H A DAndroid.bp32 // Adds reflection-less suppressed exceptions and AutoCloseable.use().
/aosp14/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnGatewayConnectionConnectedStateTest.java26 import static android.net.ipsec.ike.exceptions.IkeProtocolException.ERROR_TYPE_AUTHENTICATION_FAILE…
27 import static android.net.ipsec.ike.exceptions.IkeProtocolException.ERROR_TYPE_TEMPORARY_FAILURE;
64 import android.net.ipsec.ike.exceptions.IkeException;
65 import android.net.ipsec.ike.exceptions.IkeInternalException;
66 import android.net.ipsec.ike.exceptions.IkeProtocolException;
/aosp14/frameworks/base/services/robotests/
H A DREADME19 * If you encounter any exceptions that might be caused by a different version of the class being
/aosp14/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
H A DLockFindingClassVisitor.java73 String[] exceptions) { in visitMethod() argument
75 MethodNode mn = new TryCatchBlockSorter(null, access, name, desc, signature, exceptions); in visitMethod()
76 MethodVisitor chain = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPhoneSizeSpecSourceTest.java45 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
/aosp14/frameworks/base/media/jni/soundpool/
H A DAndroid.bp60 "modernize-use-uncaught-exceptions",
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpnIkev2Utils.java75 import android.net.ipsec.ike.exceptions.IkeException;
76 import android.net.ipsec.ike.exceptions.IkeProtocolException;
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
H A DREADME.md70 We follow conventions for usage of exceptions in the service, in order to correctly and consistently
120 - Most calls (see exceptions below) originating from SoundTriggerMiddlewareService simply propagate
/aosp14/frameworks/base/tools/aapt2/
H A DAndroid.bp48 "-fno-exceptions",
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/
H A DVcnGatewayConnection.java28 import static android.net.ipsec.ike.exceptions.IkeProtocolException.ERROR_TYPE_AUTHENTICATION_FAILE…
75 import android.net.ipsec.ike.exceptions.IkeException;
76 import android.net.ipsec.ike.exceptions.IkeInternalException;
77 import android.net.ipsec.ike.exceptions.IkeProtocolException;
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2SwitchPreviewTest.java20 import com.android.ex.camera2.exceptions.TimeoutRuntimeException;
H A DCamera2StillCaptureTest.java47 import com.android.ex.camera2.exceptions.TimeoutRuntimeException;
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DCamera2SurfaceViewTestCase.java60 import com.android.ex.camera2.exceptions.TimeoutRuntimeException;
/aosp14/frameworks/base/core/api/
H A Dsystem-lint-baseline.txt7 Methods must not throw generic exceptions (`java.lang.Throwable`)
9 Methods must not throw generic exceptions (`java.lang.Throwable`)
11 Methods must not throw generic exceptions (`java.lang.Throwable`)
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Dstatus-bar-data-pipeline.md121 may be exceptions to this guide for specific use cases.

12