Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
90772648
Commit
90772648
authored
4 years ago
by
Tianjie Xu
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update Java doc for ResumeOnReboot"
parents
de2340c0
d5567fea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/java/android/service/resumeonreboot/ResumeOnRebootService.java
+9
-5
9 additions, 5 deletions
...android/service/resumeonreboot/ResumeOnRebootService.java
with
9 additions
and
5 deletions
core/java/android/service/resumeonreboot/ResumeOnRebootService.java
+
9
−
5
View file @
90772648
...
...
@@ -87,7 +87,9 @@ public abstract class ResumeOnRebootService extends Service {
* Implementation for wrapping the opaque blob used for resume-on-reboot prior to
* reboot. The service should not assume any structure of the blob to be wrapped. The
* implementation should wrap the opaque blob in a reasonable time or throw {@link IOException}
* if it's unable to complete the action.
* if it's unable to complete the action due to retry-able errors (e.g network errors)
* and {@link IllegalArgumentException} if {@code wrapBlob} fails due to fatal errors
* (e.g corrupted blob).
*
* @param blob The opaque blob with size on the order of 100 bytes.
* @param lifeTimeInMillis The life time of the blob. This must be strictly enforced by the
...
...
@@ -95,7 +97,8 @@ public abstract class ResumeOnRebootService extends Service {
* this function after expiration should
* fail.
* @return Wrapped blob to be persisted across reboot with size on the order of 100 bytes.
* @throws IOException if the implementation is unable to wrap the blob successfully.
* @throws IOException if the implementation is unable to wrap the blob successfully due to
* retry-able errors.
*/
@NonNull
public
abstract
byte
[]
onWrap
(
@NonNull
byte
[]
blob
,
@DurationMillisLong
long
lifeTimeInMillis
)
...
...
@@ -106,12 +109,13 @@ public abstract class ResumeOnRebootService extends Service {
* operation would happen after reboot during direct boot mode (i.e before device is unlocked
* for the first time). The implementation should unwrap the wrapped blob in a reasonable time
* and returns the result or throw {@link IOException} if it's unable to complete the action
*
and {@link IllegalArgumentException} if {@code unwrapBlob} fails because the wrappedBlob is
*
stale
.
*
due to retry-able errors (e.g network error) and {@link IllegalArgumentException}
*
if {@code unwrapBlob} fails due to fatal errors (e.g stale or corrupted blob)
.
*
* @param wrappedBlob The wrapped blob with size on the order of 100 bytes.
* @return Unwrapped blob used for resume-on-reboot with the size on the order of 100 bytes.
* @throws IOException if the implementation is unable to unwrap the wrapped blob successfully.
* @throws IOException if the implementation is unable to unwrap the wrapped blob successfully
* due to retry-able errors.
*/
@NonNull
public
abstract
byte
[]
onUnwrap
(
@NonNull
byte
[]
wrappedBlob
)
throws
IOException
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment