Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 19 of 19) 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DMasterSwitchControllerTest.java29 public final ExpectedException thrown = ExpectedException.none(); field in MasterSwitchControllerTest
40 thrown.expect(UnsupportedOperationException.class); in getMetaData_shouldThrowUnsupportedOperationException()
47 thrown.expect(UnsupportedOperationException.class); in getBundle_shouldThrowUnsupportedOperationException()
DProviderTileTest.java52 public final ExpectedException thrown = ExpectedException.none(); field in ProviderTileTest
93 thrown.expect(NullPointerException.class); in getIcon_noContextOrMetadata_shouldThrowNullPointerException()
/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.java92 Throwable thrown = r.getThrown();
93 if (thrown != null) {
98 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
114 thrown.expect(ArrayIndexOutOfBoundsException.class); in setAppEntity_indexLessThanZero_shouldThrowArrayIndexOutOfBoundsException()
121 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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTaskTest.java292 MalformedEncryptedFileException thrown = in decryptFile_throwsForBadChunksMetadataOffset() local
296 assertThat(thrown) in decryptFile_throwsForBadChunksMetadataOffset()
314 MalformedEncryptedFileException thrown = in decryptFile_throwsForChunksMetadataOffsetBeyondEndOfFile() local
318 assertThat(thrown) in decryptFile_throwsForChunksMetadataOffsetBeyondEndOfFile()
335 MalformedEncryptedFileException thrown = in decryptFile_throwsForChunksMetadataOffsetBeforeBeginningOfFile() local
339 assertThat(thrown) in decryptFile_throwsForChunksMetadataOffsetBeforeBeginningOfFile()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt124 private fun makeToyControl(icon: Icon?, thrown: Boolean): Control { in makeToyControl()
132 if (thrown) getString(R.string.control_toy_status) else "", in makeToyControl()
136 .setSubtitle(if (thrown) "" else getString(R.string.control_toy_subtitle)) in makeToyControl()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java163 Throwable thrown = null; in loadFromDisk() local
182 thrown = t; in loadFromDisk()
187 mThrowable = thrown; in loadFromDisk()
193 if (thrown == null) { in loadFromDisk()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java355 Exception thrown = null; in testTooDarkBrightnessConfigurationThrowException() local
359 thrown = e; in testTooDarkBrightnessConfigurationThrowException()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1816 Exception thrown = null;
1821 thrown = e;
1823 assertNotNull("Exception was not thrown", thrown);
1824 assertEquals("Exception type different", expectedException, thrown.getClass());
/frameworks/opt/setupwizard/tools/docs/
Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ ...
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto3885 // Value 2: A SecurityException was thrown
3892 // Value 1: An IllegalArgumentException was thrown
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/cmds/statsd/src/
Datoms.proto5646 // Number of exceptions thrown by the API.
5674 // This is an exception class name thrown by the system server.