Home
last modified time | relevance | path

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

1234

/system/vold/
DVoldNativeServiceValidation.cpp37 binder::Status Exception(uint32_t code, const std::string& msg) { in Exception() function
48 return Exception(binder::Status::EX_SECURITY, in CheckPermission()
58 return Exception(binder::Status::EX_SECURITY, in CheckUidOrRoot()
65 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, "Missing ID"); in CheckArgumentId()
69 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentId()
78 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, "Missing path"); in CheckArgumentPath()
81 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
85 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
90 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
101 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentHex()
/system/timezone/input_tools/android/telephonylookup_generator/src/test/java/com/android/libcore/timezone/telephonylookup/
DTelephonyLookupGeneratorTest.java44 public void setUp() throws Exception { in setUp()
49 public void tearDown() throws Exception { in tearDown()
54 public void invalidTelephonyLookupFile() throws Exception { in invalidTelephonyLookupFile()
66 public void upperCaseCountryIsoCodeIsRejected() throws Exception { in upperCaseCountryIsoCodeIsRejected()
72 public void unknownCountryIsoCodeIsRejected() throws Exception { in unknownCountryIsoCodeIsRejected()
78 public void badMccIsRejected_nonNumeric() throws Exception { in badMccIsRejected_nonNumeric()
84 public void badMccIsRejected_tooShort() throws Exception { in badMccIsRejected_tooShort()
90 public void badMccIsRejected_tooLong() throws Exception { in badMccIsRejected_tooLong()
96 public void badMncIsRejected_nonNumeric() throws Exception { in badMncIsRejected_nonNumeric()
102 public void badMncIsRejected_tooShort() throws Exception { in badMncIsRejected_tooShort()
[all …]
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java63 public void setUp() throws Exception { in setUp()
87 private static File createUniqueDirectory(File rootDir, String prefix) throws Exception { in createUniqueDirectory()
101 public void tearDown() throws Exception { in tearDown()
109 public void testStageInstallWithErrorCode_badBaseFile() throws Exception { in testStageInstallWithErrorCode_badBaseFile()
125 public void testStageInstallWithErrorCode_successfulFirstUpdate() throws Exception { in testStageInstallWithErrorCode_successfulFirstUpdate()
139 throws Exception { in testStageInstallWithErrorCode_successfulFirstUpdate_sameVersionAsBase()
152 throws Exception { in testStageInstallWithErrorCode_unsuccessfulFirstUpdate_olderVersionThanBase()
165 throws Exception { in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion()
191 throws Exception { in testStageInstallWithErrorCode_unsuccessfulFollowOnUpdate_olderVersion()
211 throws Exception { in testStageInstallWithErrorCode_existingStagedUninstall()
[all …]
/system/apex/tests/src/com/android/tests/apex/
DApexE2EBaseHostTest.java71 public void setUp() throws Exception { in setUp()
77 public void tearDown() throws Exception { in tearDown()
87 public final void testStageActivateUninstallApexPackage() throws Exception { in testStageActivateUninstallApexPackage()
93 public final void testStageActivateUninstallApexPackageWithUserspaceReboot() throws Exception { in testStageActivateUninstallApexPackageWithUserspaceReboot()
99 private void stageActivateUninstallApexPackage(boolean userspaceReboot) throws Exception { in stageActivateUninstallApexPackage()
109 private void uninstallAllApexes() throws Exception { in uninstallAllApexes()
116 protected final ApexInfo installApex(String filename) throws Exception { in installApex()
128 protected final void reboot(boolean userspaceReboot) throws Exception { in reboot()
150 public void additionalCheck() throws Exception {}; in additionalCheck()
152 protected final void uninstallApex(String apexName) throws Exception { in uninstallApex()
DApexRollbackTests.java56 public void setUp() throws Exception { in setUp()
70 public void tearDown() throws Exception { in tearDown()
78 private void resetProperties() throws Exception { in resetProperties()
85 private void resetProperty(String propertyName) throws Exception { in resetProperty()
94 public void testAutomaticBootLoopRecovery() throws Exception { in testAutomaticBootLoopRecovery()
147 public void testSessionNotRevertedWithCheckpointingDisabled() throws Exception { in testSessionNotRevertedWithCheckpointingDisabled()
185 public void testCheckpointingRevertsSession() throws Exception { in testCheckpointingRevertsSession()
223 public void testRebootingOnceDoesNotRevertSession() throws Exception { in testRebootingOnceDoesNotRevertSession()
263 public void testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert() throws Exception { in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
282 public void testFailingUserspaceReboot_doesNotRevertUpdate() throws Exception { in testFailingUserspaceReboot_doesNotRevertUpdate()
[all …]
DApexdHostTest.java62 public void setUp() throws Exception { in setUp()
71 public void tearDown() throws Exception { in tearDown()
79 public void testOrphanedApexIsNotActivated() throws Exception { in testOrphanedApexIsNotActivated()
99 public void testApexWithoutPbIsNotActivated() throws Exception { in testApexWithoutPbIsNotActivated()
121 public void testRemountApex() throws Exception { in testRemountApex()
152 throws Exception { in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
193 throws Exception { in testApexWithoutPbIsNotActivated_ProductPartitionHasNewerVersion()
233 public void testApexInfoListIsValid() throws Exception { in testApexInfoListIsValid()
263 public void testApexSessionStateUnchangedBeforeReboot() throws Exception { in testApexSessionStateUnchangedBeforeReboot()
291 public void testSessionsDirMigrationToMetadata() throws Exception { in testSessionsDirMigrationToMetadata()
[all …]
DApexTargetPrepTest.java35 public synchronized void setUp() throws Exception { in setUp()
44 public void tearDown() throws Exception { in tearDown()
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DBackwardFileTest.java44 public void setUp() throws Exception { in setUp()
49 public void tearDown() throws Exception { in tearDown()
54 public void parseEmpty() throws Exception { in parseEmpty()
61 public void parseIgnoresCommentsAndEmptyLines() throws Exception { in parseIgnoresCommentsAndEmptyLines()
76 public void parse() throws Exception { in parse()
111 public void getDirectLinksWithLoop() throws Exception { in getDirectLinksWithLoop()
122 public void parseWithDupes() throws Exception { in parseWithDupes()
131 public void parseMalformedFile() throws Exception { in parseMalformedFile()
DZoneTabFileTest.java42 public void setUp() throws Exception { in setUp()
47 public void tearDown() throws Exception { in tearDown()
52 public void parseEmpty() throws Exception { in parseEmpty()
59 public void parseIgnoresCommentsAndEmptyLines() throws Exception { in parseIgnoresCommentsAndEmptyLines()
73 public void parse() throws Exception { in parse()
93 public void parseMalformedFile() throws Exception { in parseMalformedFile()
100 public void createCountryToOlsonIdsMap() throws Exception { in createCountryToOlsonIdsMap()
DTzLookupGeneratorTest.java57 public void setUp() throws Exception { in setUp()
62 public void tearDown() throws Exception { in tearDown()
67 public void invalidCountryZonesFile() throws Exception { in invalidCountryZonesFile()
81 public void invalidRulesVersion() throws Exception { in invalidRulesVersion()
105 public void countryWithNoTimeZoneMappings() throws Exception { in countryWithNoTimeZoneMappings()
127 public void countryWithDuplicateTimeZoneMappings() throws Exception { in countryWithDuplicateTimeZoneMappings()
154 public void badDefaultId() throws Exception { in badDefaultId()
179 public void explicitDefaultIdInvalid() throws Exception { in explicitDefaultIdInvalid()
203 public void calculatedDefaultZone() throws Exception { in calculatedDefaultZone()
221 public void explicitDefaultZone() throws Exception { in explicitDefaultZone()
[all …]
/system/extras/verity/
DUtils.java119 } catch (Exception e) { in loadProviderIfNecessary()
132 static byte[] pemToDer(String pem) throws Exception { in pemToDer()
165 static PrivateKey loadDERPrivateKey(byte[] der) throws Exception { in loadDERPrivateKey()
179 static PrivateKey loadPEMPrivateKey(byte[] pem) throws Exception { in loadPEMPrivateKey()
184 static PrivateKey loadPEMPrivateKeyFromFile(String keyFname) throws Exception { in loadPEMPrivateKeyFromFile()
188 static PrivateKey loadDERPrivateKeyFromFile(String keyFname) throws Exception { in loadDERPrivateKeyFromFile()
192 static PublicKey loadDERPublicKey(byte[] der) throws Exception { in loadDERPublicKey()
198 static PublicKey loadPEMPublicKey(byte[] pem) throws Exception { in loadPEMPublicKey()
205 static PublicKey loadPEMPublicKeyFromFile(String keyFname) throws Exception { in loadPEMPublicKeyFromFile()
209 static PublicKey loadDERPublicKeyFromFile(String keyFname) throws Exception { in loadDERPublicKeyFromFile()
[all …]
DBootSignature.java103 throws Exception { in BootSignature()
160 throws Exception, IOException, CertificateEncodingException { in setCertificate()
175 public byte[] sign(byte[] image, PrivateKey key) throws Exception { in sign()
180 public boolean verify(byte[] image) throws Exception { in verify()
200 public static int getSignableImageSize(byte[] data) throws Exception { in getSignableImageSize()
256 String outPath) throws Exception { in doSignature()
288 public static void verifySignature(String imagePath, String certPath) throws Exception { in verifySignature()
311 } catch (Exception e) { in verifySignature()
327 public static void main(String[] args) throws Exception { in main()
DVeritySigner.java34 public static void main(String[] args) throws Exception { in main()
58 } catch (Exception e) { in main()
/system/apex/tests/src/com/android/tests/apex/host/
DApexCompressionTests.java65 public void setUp() throws Exception { in setUp()
77 public void tearDown() throws Exception { in tearDown()
93 private void runPhase(String phase) throws Exception { in runPhase()
103 private void deleteFiles(String... files) throws Exception { in deleteFiles()
122 private void pushTestApex(final String fileName) throws Exception { in pushTestApex()
146 public void testDecompressedApexIsConsideredFactory() throws Exception { in testDecompressedApexIsConsideredFactory()
153 public void testCompressedApexIsDecompressedAndActivated() throws Exception { in testCompressedApexIsDecompressedAndActivated()
178 public void testDecompressedApexSurvivesReboot() throws Exception { in testDecompressedApexSurvivesReboot()
205 public void testDecompressionDoesNotHappenOnEveryReboot() throws Exception { in testDecompressionDoesNotHappenOnEveryReboot()
223 public void testHigherVersionOnSystemTriggerDecompression() throws Exception { in testHigherVersionOnSystemTriggerDecompression()
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/
DCountryZoneTreeTest.java44 public void testSimpleCountry() throws Exception { in testSimpleCountry()
59 public void testCountryRequiringPriority() throws Exception { in testCountryRequiringPriority()
85 public void testCountryWithPriority() throws Exception { in testCountryWithPriority()
116 public void testCountryLongDstPeriod() throws Exception { in testCountryLongDstPeriod()
148 private static void australiaTreeTest(String countryText) throws Exception { in australiaTreeTest()
166 private static Country parseCountry(String text) throws Exception { in parseCountry()
/system/extras/verity/fec/tests/
Dfec.py46 raise Exception("encoding failed")
57 raise Exception("simg2img failed")
74 raise Exception("FAILED: failed to correct maximum expected errors")
77 raise Exception("FAILED: corrected file not identical")
84 raise Exception("FAILED: corrected more than maximum number of errors?")
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java44 public void tearDown() throws Exception { in tearDown()
53 public void testDeleteRecursive() throws Exception { in testDeleteRecursive()
80 public void testIsSymlink() throws Exception { in testIsSymlink()
100 public void testCreateSubFile() throws Exception { in testCreateSubFile()
128 public void testEnsureDirectoryExists() throws Exception { in testEnsureDirectoryExists()
152 public void testEnsureDirectoriesExist_noPermissions() throws Exception { in testEnsureDirectoriesExist_noPermissions()
172 public void testEnsureFileDoesNotExist() throws Exception { in testEnsureFileDoesNotExist()
201 public void testEnsureFileDoesNotExist_noPermission() throws Exception { in testEnsureFileDoesNotExist_noPermission()
218 public void testCheckFilesExist() throws Exception { in testCheckFilesExist()
228 public void testReadBytes() throws Exception { in testReadBytes()
[all …]
DTimeZoneDistroTest.java43 public void tearDown() throws Exception { in tearDown()
52 public void testGetDistroVersion() throws Exception { in testGetDistroVersion()
66 public void testGetDistroVersion_closesStream() throws Exception { in testGetDistroVersion_closesStream()
82 public void testExtractTo_closesStream() throws Exception { in testExtractTo_closesStream()
99 public void testExtractZipSafely_goodZip() throws Exception { in testExtractZipSafely_goodZip()
125 public void testExtractZipSafely_badZip_fileOutsideTarget() throws Exception { in testExtractZipSafely_badZip_fileOutsideTarget()
133 public void testExtractZipSafely_badZip_dirOutsideTarget() throws Exception { in testExtractZipSafely_badZip_dirOutsideTarget()
DDistroVersionTest.java29 public void testConstructorValidation() throws Exception { in testConstructorValidation()
53 public void testConstructor() throws Exception { in testConstructor()
61 public void testToFromBytesRoundTrip() throws Exception { in testToFromBytesRoundTrip()
/system/apex/tests/app/src/com/android/tests/apex/app/
DApexCompressionTests.java74 public void testDecompressedApexIsConsideredFactory() throws Exception { in testDecompressedApexIsConsideredFactory()
87 public void testUnusedDecompressedApexIsCleanedUp_HigherVersion() throws Exception { in testUnusedDecompressedApexIsCleanedUp_HigherVersion()
92 public void testUnusedDecompressedApexIsCleanedUp_SameVersion() throws Exception { in testUnusedDecompressedApexIsCleanedUp_SameVersion()
98 public void testCapexToApexSwitch() throws Exception { in testCapexToApexSwitch()
112 public void testDecompressedApexVersionAlwaysHasSameVersionAsCapex() throws Exception { in testDecompressedApexVersionAlwaysHasSameVersionAsCapex()
125 public void testCompressedApexCanBeRolledBack_Commit() throws Exception { in testCompressedApexCanBeRolledBack_Commit()
138 public void testCompressedApexCanBeRolledBack_Rollback() throws Exception { in testCompressedApexCanBeRolledBack_Rollback()
155 public void testCompressedApexCanBeRolledBack_Verify() throws Exception { in testCompressedApexCanBeRolledBack_Verify()
/system/extras/perf2cfg/perf2cfg/
Dexceptions.py17 class ArchitectureError(Exception):
23 class ParseError(Exception):
/system/sepolicy/prebuilts/api/29.0/private/
Dapp.te10 # Exception for the shell and su domains, can transition to runas, etc.
11 # Exception for crash_dump to allow for app crash reporting.
12 # Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)
/system/bt/gd/cert/
Dcert_self_test_lib.py147 except Exception as e:
164 except Exception as e:
212 except Exception as e:
220 except Exception as e:
235 except Exception as e:
243 except Exception as e:
251 except Exception as e:
259 except Exception as e:
278 except Exception as e:
288 except Exception as e:
[all …]
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/
DConfig.java77 } catch (Exception e) { in getConfiguration()
97 } catch (Exception e) { in saveConfiguration()
116 } catch (Exception e) { in createLockFile()
128 } catch (Exception e) { in createLockFile()
/system/update_engine/scripts/update_payload/
Derror.py20 class PayloadError(Exception):

1234