Skip to content

Commit 35473e6

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: update dreamservice description" into jb-mr1-dev
2 parents 58d55b0 + 6c9a1a1 commit 35473e6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

core/java/android/service/dreams/DreamService.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
import com.android.internal.policy.PolicyManager;
4545

4646
/**
47-
* Extend this class to implement a custom Dream (displayed to the user as a "Sleep Mode").
47+
* Extend this class to implement a custom dream (available to the user as a "Daydream").
4848
*
4949
* <p>Dreams are interactive screensavers launched when a charging device is idle, or docked in a
5050
* desk dock. Dreams provide another modality for apps to express themselves, tailored for
5151
* an exhibition/lean-back experience.</p>
5252
*
53-
* <p>The Dream lifecycle is as follows:</p>
53+
* <p>The {@code DreamService} lifecycle is as follows:</p>
5454
* <ol>
5555
* <li>{@link #onAttachedToWindow}
5656
* <p>Use this for initial setup, such as calling {@link #setContentView setContentView()}.</li>
@@ -59,14 +59,15 @@
5959
* <li>{@link #onDreamingStopped}
6060
* <p>Use this to stop the things you started in {@link #onDreamingStarted}.</li>
6161
* <li>{@link #onDetachedFromWindow}
62-
* <p>Use this to dismantle resources your dream set up. For example, detach from handlers
63-
* and listeners.</li>
62+
* <p>Use this to dismantle resources (for example, detach from handlers
63+
* and listeners).</li>
6464
* </ol>
6565
*
6666
* <p>In addition, onCreate and onDestroy (from the Service interface) will also be called, but
6767
* initialization and teardown should be done by overriding the hooks above.</p>
6868
*
69-
* <p>To be available to the system, Dreams should be declared in the manifest as follows:</p>
69+
* <p>To be available to the system, your {@code DreamService} should be declared in the
70+
* manifest as follows:</p>
7071
* <pre>
7172
* &lt;service
7273
* android:name=".MyDream"

0 commit comments

Comments
 (0)