Home
last modified time | relevance | path

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

1234

/system/vold/
DVoldNativeServiceValidation.cpp37 binder::Status Exception(uint32_t code, const std::string& msg) { in Exception() function
49 return Exception(binder::Status::EX_SECURITY, in CheckPermission()
59 return Exception(binder::Status::EX_SECURITY, in CheckUidOrRoot()
66 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, "Missing ID"); in CheckArgumentId()
70 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentId()
79 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, "Missing path"); in CheckArgumentPath()
82 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
86 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
91 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, in CheckArgumentPath()
102 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/apex/tests/src/com/android/tests/apex/
DApexE2EBaseHostTest.java66 public void setUp() throws Exception { in setUp()
73 public void tearDown() throws Exception { in tearDown()
84 public final void testStageActivateUninstallApexPackage() throws Exception { in testStageActivateUninstallApexPackage()
90 public final void testStageActivateUninstallApexPackageWithUserspaceReboot() throws Exception { in testStageActivateUninstallApexPackageWithUserspaceReboot()
96 private void stageActivateUninstallApexPackage(boolean userspaceReboot) throws Exception { in stageActivateUninstallApexPackage()
106 private void uninstallAllApexes() throws Exception { in uninstallAllApexes()
113 protected final ApexInfo installApex(String filename) throws Exception { in installApex()
125 protected final void installApexes(String... filenames) throws Exception { in installApexes()
137 protected final void reboot(boolean userspaceReboot) throws Exception { in reboot()
159 public void additionalCheck() throws Exception {}; in additionalCheck()
[all …]
DApexRollbackTests.java50 public void setUp() throws Exception { in setUp()
61 public void tearDown() throws Exception { in tearDown()
67 private void resetProperties() throws Exception { in resetProperties()
74 private void resetProperty(String propertyName) throws Exception { in resetProperty()
83 public void testAutomaticBootLoopRecovery() throws Exception { in testAutomaticBootLoopRecovery()
136 public void testSessionNotRevertedWithCheckpointingDisabled() throws Exception { in testSessionNotRevertedWithCheckpointingDisabled()
178 public void testCheckpointingRevertsSession() throws Exception { in testCheckpointingRevertsSession()
220 public void testRebootingOnceDoesNotRevertSession() throws Exception { in testRebootingOnceDoesNotRevertSession()
264 public void testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert() throws Exception { in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
283 public void testFailingUserspaceReboot_doesNotRevertUpdate() throws Exception { in testFailingUserspaceReboot_doesNotRevertUpdate()
[all …]
DApexdHostTest.java54 public void setUp() throws Exception { in setUp()
59 public void tearDown() throws Exception { in tearDown()
64 public void testOrphanedApexIsNotActivated() throws Exception { in testOrphanedApexIsNotActivated()
84 public void testApexWithoutPbIsNotActivated() throws Exception { in testApexWithoutPbIsNotActivated()
106 public void testRemountApex() throws Exception { in testRemountApex()
137 throws Exception { in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
178 throws Exception { in testApexWithoutPbIsNotActivated_ProductPartitionHasNewerVersion()
218 public void testApexInfoListIsValid() throws Exception { in testApexInfoListIsValid()
248 public void testApexSessionStateUnchangedBeforeReboot() throws Exception { in testApexSessionStateUnchangedBeforeReboot()
DApexTargetPrepTest.java35 public synchronized void setUp() throws Exception { in setUp()
44 public void tearDown() throws Exception { in tearDown()
/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/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.java55 public void setUp() throws Exception { in setUp()
60 public void tearDown() throws Exception { in tearDown()
65 public void invalidCountryZonesFile() throws Exception { in invalidCountryZonesFile()
78 public void invalidRulesVersion() throws Exception { in invalidRulesVersion()
101 public void countryWithNoTimeZoneMappings() throws Exception { in countryWithNoTimeZoneMappings()
122 public void countryWithDuplicateTimeZoneMappings() throws Exception { in countryWithDuplicateTimeZoneMappings()
148 public void badDefaultId() throws Exception { in badDefaultId()
172 public void explicitDefaultIdInvalid() throws Exception { in explicitDefaultIdInvalid()
195 public void calculatedDefaultZone() throws Exception { in calculatedDefaultZone()
213 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/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()
114 public void testCountryLongDstPeriod() throws Exception { in testCountryLongDstPeriod()
146 private static void australiaTreeTest(String countryText) throws Exception { in australiaTreeTest()
160 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/src/com/android/tests/util/
DModuleTestUtilsTest.java37 public void setUp() throws Exception { in setUp()
46 public void tearDown() throws Exception { in tearDown()
55 public void testAbandonActiveStagedSession() throws Exception { in testAbandonActiveStagedSession()
/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.py156 except Exception as e:
171 except Exception as e:
214 except Exception as e:
221 except Exception as e:
234 except Exception as e:
241 except Exception as e:
248 except Exception as e:
255 except Exception as e:
271 except Exception as e:
280 except Exception as e:
[all …]
/system/core/adb/fastdeploy/deployagent/test/com/android/fastdeploy/
DFastDeployTest.java47 public void setUp() throws Exception { in setUp()
55 public void testAppInstalls() throws Exception { in testAppInstalls()
63 public void testAppPatch() throws Exception { in testAppPatch()
/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):
/system/sepolicy/prebuilts/api/30.0/private/
Dapp.te30 # Exception for the shell and su domains, can transition to runas, etc.
31 # Exception for crash_dump to allow for app crash reporting.
32 # Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)

1234