Home
last modified time | relevance | path

Searched refs:Exception (Results 1 – 25 of 860) sorted by relevance

12345678910>>...35

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DITestDeviceMockHelper.java41 public void mockGetCurrentUser(int userId) throws Exception { in mockGetCurrentUser()
45 public void mockGetUserInfos(Map<Integer, UserInfo> existingUsers) throws Exception { in mockGetUserInfos()
49 public void mockGetMaxNumberOfUsersSupported(int max) throws Exception { in mockGetMaxNumberOfUsersSupported()
53 public void mockSwitchUser(int userId) throws Exception { in mockSwitchUser()
57 public void mockStartUser(int userId) throws Exception { in mockStartUser()
61 public void mockStartUserVisibleOnBackground(int userId, int displayId) throws Exception { in mockStartUserVisibleOnBackground()
66 throws Exception { in mockStartUserVisibleOnBackground()
71 public void mockCreateUser(int userId) throws Exception { in mockCreateUser()
75 public IllegalStateException mockCreateUserFailure(String message) throws Exception { in mockCreateUserFailure()
81 public void mockIsVisibleBackgroundUsersSupported(boolean supported) throws Exception { in mockIsVisibleBackgroundUsersSupported()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DVisibleBackgroundUserPreparerTest.java61 public void setFixtures() throws Exception { in setFixtures()
74 public void testSetUp_featureNotSupported() throws Exception { in testSetUp_featureNotSupported()
86 public void testSetUp_tearDown_noDisplayAvailable() throws Exception { in testSetUp_tearDown_noDisplayAvailable()
99 public void testSetUp_tearDown() throws Exception { in testSetUp_tearDown()
118 public void testSetUp_specificDisplayByOption() throws Exception { in testSetUp_specificDisplayByOption()
131 public void testSetUp_specificDisplayBySetter() throws Exception { in testSetUp_specificDisplayBySetter()
147 throws Exception { in testSetUp_useDefaultDisplayWhenVisibleBackgroundUsersOnDefaultDisplayIsNotSupported()
163 throws Exception { in testSetUp_ignoreDefaultDisplayWhenVisibleBackgroundUsersOnDefaultDisplayIsSupported()
178 throws Exception { in testSetUp_onlyDefaultDisplayWhenVisibleBackgroundUsersOnDefaultDisplayIsSupported()
190 public void testSetDisplay_invalidId() throws Exception { in testSetDisplay_invalidId()
[all …]
DCreateUserPreparerTest.java56 public void setFixtures() throws Exception { in setFixtures()
67 public void testSetUp_tearDown() throws Exception { in testSetUp_tearDown()
84 public void testSetUp_tearDown_reuseTestUser() throws Exception { in testSetUp_tearDown_reuseTestUser()
117 public void testSetUp_tearDown_reuseTestUser_noExistingTestUser() throws Exception { in testSetUp_tearDown_reuseTestUser_noExistingTestUser()
145 public void testSetUp_tearDown_noCurrent() throws Exception { in testSetUp_tearDown_noCurrent()
156 public void testSetUp_maxUsersReached() throws Exception { in testSetUp_maxUsersReached()
176 Exception cause = mockCreateUserFailure("D'OH!"); in testSetUp_maxUsersReached()
187 public void testSetUp_createUserfailed() throws Exception { in testSetUp_createUserfailed()
188 Exception cause = mockCreateUserFailure("D'OH!"); in testSetUp_createUserfailed()
196 public void testTearDown_only() throws Exception { in testTearDown_only()
[all …]
DDeviceSetupTest.java76 public void setUp() throws Exception { in setUp()
96 public void tearDown() throws Exception { in tearDown()
102 public void testSetup() throws Exception { in testSetup()
125 public void testSetup_airplane_mode_on() throws Exception { in testSetup_airplane_mode_on()
140 public void testSetup_airplane_mode_off() throws Exception { in testSetup_airplane_mode_off()
155 public void testSetup_data_on() throws Exception { in testSetup_data_on()
168 public void testSetup_data_off() throws Exception { in testSetup_data_off()
181 public void testSetup_cell_on() throws Exception { in testSetup_cell_on()
193 public void testSetup_cell_off() throws Exception { in testSetup_cell_off()
205 public void testSetup_cell_auto_setting_on() throws Exception { in testSetup_cell_auto_setting_on()
[all …]
DRunOnWorkProfileTargetPreparerTest.java89 public void setUp() throws Exception { in setUp()
106 public void setUp_createsAndStartsWorkProfile() throws Exception { in setUp_createsAndStartsWorkProfile()
118 public void setUp_oldVersion_createsAndStartsWorkProfileWithoutWait() throws Exception { in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait()
133 public void setup_hasDeviceOwner_removesDeviceOwner() throws Exception { in setup_hasDeviceOwner_removesDeviceOwner()
152 throws Exception { in setup_hasDeviceOwner_errorWhenRemovingDeviceOwner_throwsException()
172 public void setUp_workProfileAlreadyExists_doesNotCreateWorkProfile() throws Exception { in setUp_workProfileAlreadyExists_doesNotCreateWorkProfile()
190 throws Exception { in setUp_workProfileAlreadyExists_hasDeviceOwner_doesNotRemoveDeviceOwner()
209 public void setUp_nonZeroCurrentUser_createsWorkProfileForCorrectUser() throws Exception { in setUp_nonZeroCurrentUser_createsWorkProfileForCorrectUser()
223 public void setUp_workProfileAlreadyExists_runsTestAsExistingUser() throws Exception { in setUp_workProfileAlreadyExists_runsTestAsExistingUser()
240 public void setUp_setsRunTestsAsUser() throws Exception { in setUp_setsRunTestsAsUser()
[all …]
DRunOnCloneProfileTargetPreparerTest.java94 public void setUp() throws Exception { in setUp()
111 public void setUp_apiDoesNotSupportCloneUser_doesNotChangeTestUser() throws Exception { in setUp_apiDoesNotSupportCloneUser_doesNotChangeTestUser()
120 public void setUp_apiDoesNotSupportCloneUser_setsArgumentToSkipTests() throws Exception { in setUp_apiDoesNotSupportCloneUser_setsArgumentToSkipTests()
129 public void setUp_deviceDoesNotSupportCloneUser_doesNotChangeTestUser() throws Exception { in setUp_deviceDoesNotSupportCloneUser_doesNotChangeTestUser()
139 public void setUp_deviceDoesNotSupportCloneUser_setsArgumentToSkipTests() throws Exception { in setUp_deviceDoesNotSupportCloneUser_setsArgumentToSkipTests()
149 public void setUp_cloneUserType_createsCloneProfileAndStartsUser() throws Exception { in setUp_cloneUserType_createsCloneProfileAndStartsUser()
161 public void setUp_profileAlreadyExists_doesNotCreateProfile() throws Exception { in setUp_profileAlreadyExists_doesNotCreateProfile()
179 public void setUp_nonZeroCurrentUser_createsProfileForCorrectUser() throws Exception { in setUp_nonZeroCurrentUser_createsProfileForCorrectUser()
193 public void setUp_profileAlreadyExists_runsTestAsExistingUser() throws Exception { in setUp_profileAlreadyExists_runsTestAsExistingUser()
210 public void setUp_setsRunTestsAsUser() throws Exception { in setUp_setsRunTestsAsUser()
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py46 except Exception:
50 except Exception:
88 except Exception as err:
97 except Exception as err:
104 except Exception as err:
111 except Exception as err:
122 except Exception as err:
130 except Exception as err:
138 except Exception as err:
146 except Exception as err:
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueReaderTestBase.java43 public void testEmptyInput() throws Exception { in testEmptyInput()
48 public void testEndOfInput() throws Exception { in testEndOfInput()
58 public void testSingleByteTagId() throws Exception { in testSingleByteTagId()
86 public void testHighTagNumber() throws Exception { in testHighTagNumber()
98 public void testHighTagNumberTooLarge() throws Exception { in testHighTagNumberTooLarge()
103 public void testTruncatedHighTagNumberLastOctetMissing() throws Exception { in testTruncatedHighTagNumberLastOctetMissing()
108 public void testTruncatedBeforeFirstLengthOctet() throws Exception { in testTruncatedBeforeFirstLengthOctet()
113 public void testShortFormLength() throws Exception { in testShortFormLength()
120 public void testLongFormLength() throws Exception { in testLongFormLength()
135 public void testTruncatedLongFormLengthBeforeFirstLengthByte() throws Exception { in testTruncatedLongFormLengthBeforeFirstLengthByte()
[all …]
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java106 public void testOriginalAccepted() throws Exception { in testOriginalAccepted()
115 public void testV1OneSignerMD5withRSAAccepted() throws Exception { in testV1OneSignerMD5withRSAAccepted()
124 public void testV1OneSignerSHA1withRSAAccepted() throws Exception { in testV1OneSignerSHA1withRSAAccepted()
133 public void testV1OneSignerSHA224withRSAAccepted() throws Exception { in testV1OneSignerSHA224withRSAAccepted()
142 public void testV1OneSignerSHA256withRSAAccepted() throws Exception { in testV1OneSignerSHA256withRSAAccepted()
151 public void testV1OneSignerSHA384withRSAAccepted() throws Exception { in testV1OneSignerSHA384withRSAAccepted()
160 public void testV1OneSignerSHA512withRSAVerifies() throws Exception { in testV1OneSignerSHA512withRSAVerifies()
169 public void testV1OneSignerSHA1withECDSAAccepted() throws Exception { in testV1OneSignerSHA1withECDSAAccepted()
176 public void testV1OneSignerSHA224withECDSAAccepted() throws Exception { in testV1OneSignerSHA224withECDSAAccepted()
183 public void testV1OneSignerSHA256withECDSAAccepted() throws Exception { in testV1OneSignerSHA256withECDSAAccepted()
[all …]
DSourceStampVerifierTest.java60 public void verifySourceStamp_correctSignature() throws Exception { in verifySourceStamp_correctSignature()
79 public void verifySourceStamp_rotatedV3Key_signingCertDigestsMatch() throws Exception { in verifySourceStamp_rotatedV3Key_signingCertDigestsMatch()
109 public void verifySourceStamp_noV31Signers_v3SignerReturned() throws Exception { in verifySourceStamp_noV31Signers_v3SignerReturned()
121 throws Exception { in verifySourceStamp_oneV31SignerTargeting33_expectedTargetedSignerReturned()
154 throws Exception { in verifySourceStamp_oneV31SignerTargeting34_expectedTargetedSignerReturned()
185 throws Exception { in verifySourceStamp_multipleV31Signers_expectedTargetedSignerReturned()
228 public void verifySourceStamp_invalidV31Signer_v3SignerReturned() throws Exception { in verifySourceStamp_invalidV31Signer_v3SignerReturned()
243 public void verifySourceStamp_signatureMissing() throws Exception { in verifySourceStamp_signatureMissing()
251 public void verifySourceStamp_certificateMismatch() throws Exception { in verifySourceStamp_certificateMismatch()
260 public void verifySourceStamp_v1OnlySignatureValidStamp() throws Exception { in verifySourceStamp_v1OnlySignatureValidStamp()
[all …]
DSigningCertificateLineageTest.java81 public void testLineageWithSingleSignerContainsExpectedSigner() throws Exception { in testLineageWithSingleSignerContainsExpectedSigner()
92 public void testFirstRotationContainsExpectedSigners() throws Exception { in testFirstRotationContainsExpectedSigners()
103 public void testRotationWithExistingLineageContainsExpectedSigners() throws Exception { in testRotationWithExistingLineageContainsExpectedSigners()
112 public void testLineageFromBytesContainsExpectedSigners() throws Exception { in testLineageFromBytesContainsExpectedSigners()
129 public void testLineageFromFileContainsExpectedSigners() throws Exception { in testLineageFromFileContainsExpectedSigners()
146 public void testLineageFromFileDoesNotContainUnknownSigner() throws Exception { in testLineageFromFileDoesNotContainUnknownSigner()
157 public void testLineageFromFileWithInvalidMagicFails() throws Exception { in testLineageFromFileWithInvalidMagicFails()
163 public void testLineageFromFileWithInvalidVersionFails() throws Exception { in testLineageFromFileWithInvalidVersionFails()
170 public void testLineageWrittenToBytesContainsExpectedSigners() throws Exception { in testLineageWrittenToBytesContainsExpectedSigners()
181 public void testLineageWrittenToFileContainsExpectedSigners() throws Exception { in testLineageWrittenToFileContainsExpectedSigners()
[all …]
/tools/asuite/atest/
Datest_error.py18 class UnsupportedModuleTestError(Exception):
22 class TestDiscoveryException(Exception):
38 class UnknownTestRunnerError(Exception):
42 class NoTestRunnerName(Exception):
46 class NoTestRunnerExecutable(Exception):
50 class HostEnvCheckFailed(Exception):
54 class ShouldNeverBeCalledError(Exception):
70 class DryRunVerificationError(Exception):
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileReadOnlyTest.java36 public void cannotCreateRoFileOnNonExistingFile() throws Exception { in cannotCreateRoFileOnNonExistingFile()
56 public void cannotUpdateInRoMode() throws Exception { in cannotUpdateInRoMode()
68 public void cannotAddFilesInRoMode() throws Exception { in cannotAddFilesInRoMode()
80 public void cannotAddRecursivelyInRoMode() throws Exception { in cannotAddRecursivelyInRoMode()
93 public void cannotReplaceFilesInRoMode() throws Exception { in cannotReplaceFilesInRoMode()
105 public void cannotDeleteFilesInRoMode() throws Exception { in cannotDeleteFilesInRoMode()
119 public void cannotMergeInRoMode() throws Exception { in cannotMergeInRoMode()
133 public void cannotTouchInRoMode() throws Exception { in cannotTouchInRoMode()
145 public void cannotRealignInRoMode() throws Exception { in cannotRealignInRoMode()
157 public void cannotAddExtensionInRoMode() throws Exception { in cannotAddExtensionInRoMode()
[all …]
/tools/acloud/
Derrors.py19 class DriverError(Exception):
106 class SetupError(Exception):
142 class CreateError(Exception):
234 class ReconnectError(Exception):
242 class FunctionTimeoutError(Exception):
246 class ZipImageError(Exception):
250 class UnknownAvdType(Exception):
254 class UnknownType(Exception):
258 class AdbDisconnectFailed(Exception):
262 class UnsupportedLocalInstanceId(Exception):
[all …]
/tools/apksig/src/test/java/com/android/apksig/apk/
DApkUtilsTest.java41 public void testGetMinSdkVersionForValidCodename() throws Exception { in testGetMinSdkVersionForValidCodename()
53 public void testGetMinSdkVersionForEmptyCodename() throws Exception { in testGetMinSdkVersionForEmptyCodename()
58 public void testGetMinSdkVersionForUnexpectedCodename() throws Exception { in testGetMinSdkVersionForUnexpectedCodename()
63 public void testGetMinSdkVersionFromBinaryAndroidManifest() throws Exception { in testGetMinSdkVersionFromBinaryAndroidManifest()
69 public void testGetDebuggableFromBinaryAndroidManifest() throws Exception { in testGetDebuggableFromBinaryAndroidManifest()
85 public void testGetPackageNameFromBinaryAndroidManifest() throws Exception { in testGetPackageNameFromBinaryAndroidManifest()
93 public void testGetTargetSdkVersionFromBinaryAndroidManifest() throws Exception { in testGetTargetSdkVersionFromBinaryAndroidManifest()
99 public void testGetTargetSdkVersion_noUsesSdkElement_returnsDefault() throws Exception { in testGetTargetSdkVersion_noUsesSdkElement_returnsDefault()
105 public void testGetTargetSandboxVersionFromBinaryAndroidManifest() throws Exception { in testGetTargetSandboxVersionFromBinaryAndroidManifest()
112 throws Exception { in testGetTargetSandboxVersion_noTargetSandboxAttribute_returnsDefault()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceTest.java298 public void setUp() throws Exception { in setUp()
338 public void testEnableAdbRoot_alreadyRoot() throws Exception { in testEnableAdbRoot_alreadyRoot()
346 public void testEnableAdbRoot_notRoot() throws Exception { in testEnableAdbRoot_notRoot()
354 public void testEnableAdbRoot_noEnableRoot() throws Exception { in testEnableAdbRoot_noEnableRoot()
367 public void testDisableAdbRoot_alreadyUnroot() throws Exception { in testDisableAdbRoot_alreadyUnroot()
376 public void testDisableAdbRoot_unroot() throws Exception { in testDisableAdbRoot_unroot()
395 private void setEnableAdbRootExpectations() throws Exception { in setEnableAdbRootExpectations()
417 throws Exception { in setExecuteAdbCommandExpectations()
429 public void testEnableAdbRoot_rootRetry() throws Exception { in testEnableAdbRoot_rootRetry()
455 public void testIsAdbRootForNonRoot() throws Exception { in testIsAdbRootForNonRoot()
[all …]
DNativeDeviceTest.java141 public void setUp() throws Exception { in setUp()
183 public void testInstallPackages_exception() throws Exception { in testInstallPackages_exception()
196 public void testUninstallPackages_exception() throws Exception { in testUninstallPackages_exception()
210 public void testInstallPackagesBool_exception() throws Exception { in testInstallPackagesBool_exception()
224 public void testInstallPackagesForUser_exception() throws Exception { in testInstallPackagesForUser_exception()
238 public void testInstallPackagesForUserWithPermission_exception() throws Exception { in testInstallPackagesForUserWithPermission_exception()
249 public void testGetInstalledPackageNames_exception() throws Exception { in testGetInstalledPackageNames_exception()
260 public void testGetActiveApexes_exception() throws Exception { in testGetActiveApexes_exception()
271 public void testGetMainlineModuleInfo_exception() throws Exception { in testGetMainlineModuleInfo_exception()
282 public void testGetScreenshot_exception() throws Exception { in testGetScreenshot_exception()
[all …]
DDeviceSelectionOptionsTest.java77 public void setUp() throws Exception { in setUp()
188 public void testGetProductVariant_legacy() throws Exception {
199 public void testGetProductVariant_legacyOmr1() throws Exception {
210 public void testGetProductVariant_vendor() throws Exception {
221 public void testGetProductType_mismatch() throws Exception {
231 public void testGetProductType_match() throws Exception {
249 public void testGetProductType_missingProduct() throws Exception {
370 public void testMatches_minBatteryPass() throws Exception {
379 public void testMatches_minBatteryFail() throws Exception {
388 public void testMatches_maxBatteryPass() throws Exception {
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py188 except Exception as err:
201 except Exception as err:
242 except Exception as err:
249 except Exception as err:
266 except Exception as err:
292 except Exception as err:
312 except Exception as err:
335 except Exception as err:
357 except Exception as err:
373 except Exception as err:
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClientTest.java42 public void setUp() throws Exception { in setUp()
47 public void testKeyStoreNullFile() throws Exception { in testKeyStoreNullFile()
57 public void testKeyStoreFetchUnreadableFile() throws Exception { in testKeyStoreFetchUnreadableFile()
74 public void testKeyStoreFetchEmptyFile() throws Exception { in testKeyStoreFetchEmptyFile()
87 public void testKeyStoreFetchFile() throws Exception { in testKeyStoreFetchFile()
100 public void testContainsKeyinNullKeyStore() throws Exception { in testContainsKeyinNullKeyStore()
106 public void testDoesNotContainMissingKey() throws Exception { in testDoesNotContainMissingKey()
114 public void testContainsValidKey() throws Exception { in testContainsValidKey()
121 public void testFetchMissingKey() throws Exception { in testFetchMissingKey()
129 public void testFetchNullKey() throws Exception { in testFetchNullKey()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java105 public void testGetConfigStream() throws Exception { in testGetConfigStream()
113 public void testGetConfigStream_notExist() throws Exception { in testGetConfigStream_notExist()
126 public void testGetConfigStream_bundled() throws Exception { in testGetConfigStream_bundled()
134 public void testGetConfigurationDef() throws Exception { in testGetConfigurationDef()
141 public void testGetConfigurationDef_include() throws Exception { in testGetConfigurationDef_include()
149 public void testGetConfigurationDef_includeInvalid() throws Exception { in testGetConfigurationDef_includeInvalid()
163 public void testFindConfigName() throws Exception { in testFindConfigName()
169 public void testFindConfigName_bundled() throws Exception { in testFindConfigName_bundled()
175 public void testFindConfigName_bundledParent() throws Exception { in testFindConfigName_bundledParent()
182 public void testFindConfigName_unbundledParent() throws Exception { in testFindConfigName_unbundledParent()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java62 public void tearDown() throws Exception { in tearDown()
72 public void testGetEffectiveUserId() throws Exception { in testGetEffectiveUserId()
77 public void testGetEffectiveUserId_returnsCurrentUserIdIfNotSpecified() throws Exception { in testGetEffectiveUserId_returnsCurrentUserIdIfNotSpecified()
89 public void testSetUp_install() throws Exception { in testSetUp_install()
109 public void testSetUp_alreadyInstalled() throws Exception { in testSetUp_alreadyInstalled()
119 public void testSetUp_installFail() throws Exception { in testSetUp_installFail()
127 public void testDeleteFile() throws Exception { in testDeleteFile()
143 public void testDeleteFile_fail() throws Exception { in testDeleteFile_fail()
162 public void testError() throws Exception { in testError()
180 public void testPushFile() throws Exception { in testPushFile()
[all …]
/tools/loganalysis/javatests/com/android/loganalysis/util/config/
DOptionUpdateRuleTest.java31 public void testFirst_simple() throws Exception { in testFirst_simple()
36 public void testLast_simple() throws Exception { in testLast_simple()
41 public void testGreatest_simple() throws Exception { in testGreatest_simple()
49 public void testLeast_simple() throws Exception { in testLeast_simple()
56 public void testImmutable_simple() throws Exception { in testImmutable_simple()
66 public void testInvalidComparison() throws Exception { in testInvalidComparison()
80 public void testNotComparable() throws Exception { in testNotComparable()
82 OptionUpdateRule.LEAST.update(OPTION_NAME, new Exception("hi"), UPDATE); in testNotComparable()
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DOptionUpdateRuleTest.java36 public void testFirst_simple() throws Exception { in testFirst_simple()
42 public void testLast_simple() throws Exception { in testLast_simple()
48 public void testGreatest_simple() throws Exception { in testGreatest_simple()
55 public void testLeast_simple() throws Exception { in testLeast_simple()
62 public void testImmutable_simple() throws Exception { in testImmutable_simple()
73 public void testInvalidComparison() throws Exception { in testInvalidComparison()
88 public void testNotComparable() throws Exception { in testNotComparable()
90 OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, new Exception("hi"), UPDATE); in testNotComparable()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java35 public void testNullInput() throws Exception { in testNullInput()
40 public void testEmptyInput() throws Exception { in testEmptyInput()
45 public void testEmptySequence() throws Exception { in testEmptySequence()
55 public void testOctetString() throws Exception { in testOctetString()
64 public void testBitString() throws Exception { in testBitString()
73 public void testBoolean() throws Exception { in testBoolean()
80 public void testUTCTime() throws Exception { in testUTCTime()
88 public void testGeneralizedTime() throws Exception { in testGeneralizedTime()
97 public void testInteger() throws Exception { in testInteger()
112 public void testOid() throws Exception { in testOid()
[all …]

12345678910>>...35