diff --git a/core/java/android/service/dreams/DreamService.java b/core/java/android/service/dreams/DreamService.java index 6c9290bf99ffc..f6b6c89cbd48b 100644 --- a/core/java/android/service/dreams/DreamService.java +++ b/core/java/android/service/dreams/DreamService.java @@ -44,13 +44,13 @@ import android.view.accessibility.AccessibilityEvent; import com.android.internal.policy.PolicyManager; /** - * Extend this class to implement a custom Dream (displayed to the user as a "Sleep Mode"). + * Extend this class to implement a custom dream (available to the user as a "Daydream"). * *
Dreams are interactive screensavers launched when a charging device is idle, or docked in a * desk dock. Dreams provide another modality for apps to express themselves, tailored for * an exhibition/lean-back experience.
* - *The Dream lifecycle is as follows:
+ *The {@code DreamService} lifecycle is as follows:
*Use this for initial setup, such as calling {@link #setContentView setContentView()}.
Use this to stop the things you started in {@link #onDreamingStarted}.
Use this to dismantle resources your dream set up. For example, detach from handlers - * and listeners.
Use this to dismantle resources (for example, detach from handlers + * and listeners). *
In addition, onCreate and onDestroy (from the Service interface) will also be called, but * initialization and teardown should be done by overriding the hooks above.
* - *To be available to the system, Dreams should be declared in the manifest as follows:
+ *To be available to the system, your {@code DreamService} should be declared in the + * manifest as follows:
** <service * android:name=".MyDream"