Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatPermissionsTest.java54 public final ExpectedException thrown = ExpectedException.none(); field in PlatformCompatPermissionsTest
80 thrown.expect(SecurityException.class); in reportChange_noLogCompatChangePermission_throwsSecurityException()
98 thrown.expect(SecurityException.class); in reportChangeByPackageName_noLogCompatChangePermission_throwsSecurityException()
116 thrown.expect(SecurityException.class); in reportChangeByUid_noLogCompatChangePermission_throwsSecurityException()
132 thrown.expect(SecurityException.class); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException()
141 thrown.expect(SecurityException.class); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException()
160 thrown.expect(SecurityException.class); in isChangeEnabledByPackageName_noReadCompatConfigPermission_throwsSecurityException()
169 thrown.expect(SecurityException.class); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException()
188 thrown.expect(SecurityException.class); in isChangeEnabledByUid_noReadCompatConfigPermission_throwsSecurityException()
196 thrown.expect(SecurityException.class); in isChangeEnabledByUid_noLogCompatChangePermission_throwsSecurityException()
[all …]
/frameworks/base/core/java/android/util/
DBase64OutputStream.java108 IOException thrown = null; in close() local
113 thrown = e; in close()
123 if (thrown == null) { in close()
124 thrown = e; in close()
126 thrown.addSuppressed(e); in close()
130 if (thrown != null) { in close()
131 throw thrown; in close()
/frameworks/base/tests/testables/tests/src/android/testing/
DDexmakerShareClassLoaderRuleTest.java72 final Throwable[] thrown = new Throwable[1]; in rule_preventsOtherThreadFromInterfering()
80 thrown[0] = tr; in rule_preventsOtherThreadFromInterfering()
86 if (thrown[0] != null) { in rule_preventsOtherThreadFromInterfering()
87 throw thrown[0]; in rule_preventsOtherThreadFromInterfering()
/frameworks/base/core/java/com/android/internal/logging/
DAndroidHandler.java91 Throwable thrown = r.getThrown();
92 if (thrown != null) {
97 thrown.printStackTrace(pw);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DBarChartInfoTest.java35 public final ExpectedException thrown = ExpectedException.none(); field in BarChartInfoTest
63 thrown.expect(IllegalStateException.class); in builder_noTitle_shouldThrowIllegalStateException()
117 thrown.expect(IllegalStateException.class); in addBarViewInfo_moreInfosThanMaxAllowed_shouldThrowIllegalStateException()
DAppEntitiesHeaderControllerTest.java42 public final ExpectedException thrown = ExpectedException.none(); field in AppEntitiesHeaderControllerTest
115 thrown.expect(ArrayIndexOutOfBoundsException.class); in setAppEntity_indexLessThanZero_shouldThrowArrayIndexOutOfBoundsException()
122 thrown.expect(ArrayIndexOutOfBoundsException.class); in asetAppEntity_indexGreaterThanMaximum_shouldThrowArrayIndexOutOfBoundsException()
DBarChartPreferenceTest.java41 public final ExpectedException thrown = ExpectedException.none(); field in BarChartPreferenceTest
253 thrown.expect(IllegalStateException.class); in setBarViewInfos_moreInfosThanMaxAllowed_shouldThrowIllegalStateException()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/
DIntermediateClass.java82 public static int get5(Throwable thrown) { in get5() argument
84 ClassInSecondaryDex.canThrowAll(thrown); in get5()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java149 Throwable thrown = null; in loadFromDisk() local
168 thrown = t; in loadFromDisk()
173 mThrowable = thrown; in loadFromDisk()
179 if (thrown == null) { in loadFromDisk()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java341 Exception thrown = null; in testTooDarkBrightnessConfigurationThrowException() local
345 thrown = e; in testTooDarkBrightnessConfigurationThrowException()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1751 Exception thrown = null;
1756 thrown = e;
1758 assertNotNull("Exception was not thrown", thrown);
1759 assertEquals("Exception type different", expectedException, thrown.getClass());
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto3885 // Value 2: A SecurityException was thrown
3892 // Value 1: An IllegalArgumentException was thrown
/frameworks/base/cmds/statsd/src/
Datoms.proto4768 // Number of exceptions thrown by the API.
4796 // This is an exception class name thrown by the system server.
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt110615 Ljava/util/logging/LogRecord;->thrown:Ljava/lang/Throwable;