Merge "docs: add developer guide cross references, Project ACRE, round 3" into ics-mr0

This commit is contained in:
Joe Fernandez
2011-10-28 15:40:11 -07:00
committed by Android (Google) Code Review
15 changed files with 113 additions and 20 deletions

View File

@@ -46,9 +46,15 @@ import libcore.io.StructStat;
* {@link #onBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor) onBackup()} * {@link #onBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor) onBackup()}
* and {@link #onRestore(BackupDataInput, int, ParcelFileDescriptor) onRestore()} methods, * and {@link #onRestore(BackupDataInput, int, ParcelFileDescriptor) onRestore()} methods,
* and provide the name of its backup agent class in its {@code AndroidManifest.xml} file via * and provide the name of its backup agent class in its {@code AndroidManifest.xml} file via
* the <code><a * the <code>
* href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> * <a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code>
* tag's {@code android:backupAgent} attribute. * tag's {@code android:backupAgent} attribute.
*
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about using BackupAgent, read the
* <a href="{@docRoot}guide/topics/data/backup.html">Data Backup</a> developer guide.</p></div>
*
* <h3>Basic Operation</h3> * <h3>Basic Operation</h3>
* <p> * <p>
* When the application makes changes to data that it wishes to keep backed up, * When the application makes changes to data that it wishes to keep backed up,

View File

@@ -42,6 +42,12 @@ import java.io.IOException;
* {@link BackupAgentHelper} framework. See the {@link BackupHelper} interface * {@link BackupAgentHelper} framework. See the {@link BackupHelper} interface
* documentation for details. * documentation for details.
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about using BackupAgentHelper, read the
* <a href="{@docRoot}guide/topics/data/backup.html">Data Backup</a> developer guide.</p>
* </div>
*
* @see BackupHelper * @see BackupHelper
* @see FileBackupHelper * @see FileBackupHelper
* @see SharedPreferencesBackupHelper * @see SharedPreferencesBackupHelper

View File

@@ -41,10 +41,15 @@ import android.util.Log;
* of how the operation then proceeds. * of how the operation then proceeds.
* <p> * <p>
* Several attributes affecting the operation of the backup and restore mechanism * Several attributes affecting the operation of the backup and restore mechanism
* can be set on the <code><a * can be set on the <code>
* href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> * <a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code>
* tag in your application's AndroidManifest.xml file. * tag in your application's AndroidManifest.xml file.
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about using BackupManager, read the
* <a href="{@docRoot}guide/topics/data/backup.html">Data Backup</a> developer guide.</p></div>
*
* @attr ref android.R.styleable#AndroidManifestApplication_allowBackup * @attr ref android.R.styleable#AndroidManifestApplication_allowBackup
* @attr ref android.R.styleable#AndroidManifestApplication_backupAgent * @attr ref android.R.styleable#AndroidManifestApplication_backupAgent
* @attr ref android.R.styleable#AndroidManifestApplication_killAfterRestore * @attr ref android.R.styleable#AndroidManifestApplication_killAfterRestore

View File

@@ -30,6 +30,12 @@ import java.util.Set;
* <p><em>Note: currently this class does not support use across multiple * <p><em>Note: currently this class does not support use across multiple
* processes. This will be added later.</em> * processes. This will be added later.</em>
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about using SharedPreferences, read the
* <a href="{@docRoot}guide/topics/data/data-storage.html#pref">Data Storage</a>
* developer guide.</p></div>
*
* @see Context#getSharedPreferences * @see Context#getSharedPreferences
*/ */
public interface SharedPreferences { public interface SharedPreferences {

View File

@@ -38,6 +38,12 @@ import android.view.accessibility.AccessibilityNodeInfo;
* <p> * <p>
* See {@link ListView}, {@link GridView}, {@link Spinner} and * See {@link ListView}, {@link GridView}, {@link Spinner} and
* {@link Gallery} for commonly used subclasses of AdapterView. * {@link Gallery} for commonly used subclasses of AdapterView.
*
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about using AdapterView, read the
* <a href="{@docRoot}guide/topics/ui/binding.html">Binding to Data with AdapterView</a>
* developer guide.</p></div>
*/ */
public abstract class AdapterView<T extends Adapter> extends ViewGroup { public abstract class AdapterView<T extends Adapter> extends ViewGroup {

View File

@@ -29,6 +29,12 @@ import javax.microedition.khronos.opengles.GL;
* the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect, * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
* Path, text, Bitmap), and a paint (to describe the colors and styles for the * Path, text, Bitmap), and a paint (to describe the colors and styles for the
* drawing). * drawing).
*
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use Canvas, read the
* <a href="{@docRoot}guide/topics/graphics/2d-graphics.html">
* Canvas and Drawables</a> developer guide.</p></div>
*/ */
public class Canvas { public class Canvas {
// assigned in constructors, freed in finalizer // assigned in constructors, freed in finalizer

View File

@@ -103,9 +103,15 @@ import java.util.Arrays;
* <li> <b>Scale</b>: a compound drawable with a single child drawable, * <li> <b>Scale</b>: a compound drawable with a single child drawable,
* whose overall size is modified based on the current level. * whose overall size is modified based on the current level.
* </ul> * </ul>
* <p>For information and examples of creating drawable resources (XML or bitmap files that *
* can be loaded in code), see <a * <div class="special reference">
* href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>. * <h3>Developer Guides</h3>
* <p>For more information about how to use drawables, read the
* <a href="{@docRoot}guide/topics/graphics/2d-graphics.html">Canvas and Drawables</a> developer
* guide. For information and examples of creating drawable resources (XML or bitmap files that
* can be loaded in code), read the
* <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>
* document.</p></div>
*/ */
public abstract class Drawable { public abstract class Drawable {
private static final Rect ZERO_BOUNDS_RECT = new Rect(); private static final Rect ZERO_BOUNDS_RECT = new Rect();

View File

@@ -31,9 +31,15 @@ import java.io.InputStream;
/** /**
* *
* A resizeable bitmap, with stretchable areas that you define. This type of image * A resizeable bitmap, with stretchable areas that you define. This type of image
* is defined in a .png file with a special format, described in <a link="../../../resources.html#ninepatch"> * is defined in a .png file with a special format.
* Resources</a>.
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use a NinePatchDrawable, read the
* <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">
* Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
* file using the draw9patch tool, see the
* <a href="{@docRoot}guide/developing/tools/draw9patch.html">Draw 9-patch</a> tool guide.</p></div>
*/ */
public class NinePatchDrawable extends Drawable { public class NinePatchDrawable extends Drawable {
// dithering helps a lot, and is pretty cheap, so default is true // dithering helps a lot, and is pretty cheap, so default is true

View File

@@ -34,9 +34,16 @@ import java.io.IOException;
* the ShapeDrawable will default to a * the ShapeDrawable will default to a
* {@link android.graphics.drawable.shapes.RectShape}. * {@link android.graphics.drawable.shapes.RectShape}.
* *
* <p>It can be defined in an XML file with the <code>&lt;shape></code> element. For more * <p>This object can be defined in an XML file with the <code>&lt;shape></code> element.</p>
* information, see the guide to <a *
* href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p> * <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use ShapeDrawable, read the
* <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#shape-drawable">
* Canvas and Drawables</a> document. For more information about defining a ShapeDrawable in
* XML, read the
* <a href="{@docRoot}guide/topics/resources/drawable-resource.html#Shape">Drawable Resources</a>
* document.</p></div>
* *
* @attr ref android.R.styleable#ShapeDrawablePadding_left * @attr ref android.R.styleable#ShapeDrawablePadding_left
* @attr ref android.R.styleable#ShapeDrawablePadding_top * @attr ref android.R.styleable#ShapeDrawablePadding_top

View File

@@ -52,8 +52,13 @@ import android.util.Log;
* <li>the number of segments left to play in the queue,</li> * <li>the number of segments left to play in the queue,</li>
* <li>application controller events (CC80-83) to mark points in the MIDI segments.</li> * <li>application controller events (CC80-83) to mark points in the MIDI segments.</li>
* </ul> * </ul>
* Use {@link #getJetPlayer()} to construct a JetPlayer instance. JetPlayer is a singleton class. * Use {@link #getJetPlayer()} to construct a JetPlayer instance. JetPlayer is a singleton class.
* </p>
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use JetPlayer, read the
* <a href="{@docRoot}guide/topics/media/jetplayer.html">JetPlayer</a> developer guide.</p></div>
*/ */
public class JetPlayer public class JetPlayer
{ {

View File

@@ -43,8 +43,6 @@ import java.lang.ref.WeakReference;
* MediaPlayer class can be used to control playback * MediaPlayer class can be used to control playback
* of audio/video files and streams. An example on how to use the methods in * of audio/video files and streams. An example on how to use the methods in
* this class can be found in {@link android.widget.VideoView}. * this class can be found in {@link android.widget.VideoView}.
* Please see <a href="{@docRoot}guide/topics/media/index.html">Audio and Video</a>
* for additional help using MediaPlayer.
* *
* <p>Topics covered here are: * <p>Topics covered here are:
* <ol> * <ol>
@@ -54,6 +52,12 @@ import java.lang.ref.WeakReference;
* <li><a href="#Callbacks">Register informational and error callbacks</a> * <li><a href="#Callbacks">Register informational and error callbacks</a>
* </ol> * </ol>
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use MediaPlayer, read the
* <a href="{@docRoot}guide/topics/media/mediaplayer.html">Media Playback</a> developer guide.</p>
* </div>
*
* <a name="StateDiagram"></a> * <a name="StateDiagram"></a>
* <h3>State Diagram</h3> * <h3>State Diagram</h3>
* *

View File

@@ -60,9 +60,15 @@ import java.lang.ref.WeakReference;
* applications are required to create MediaRecorder objects on threads with a * applications are required to create MediaRecorder objects on threads with a
* Looper running (the main UI thread by default already has a Looper running). * Looper running (the main UI thread by default already has a Looper running).
* *
* <p>See the <a href="{@docRoot}guide/topics/media/index.html">Audio and Video</a> * <p><strong>Note:</strong> Currently, MediaRecorder does not work on the emulator.
* documentation for additional help with using MediaRecorder. *
* <p>Note: Currently, MediaRecorder does not work on the emulator. * <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use MediaRecorder for recording video, read the
* <a href="{@docRoot}guide/topics/media/camera.html#capture-video">Camera</a> developer guide.
* For more information about how to use MediaRecorder for recording sound, read the
* <a href="{@docRoot}guide/topics/media/audio-capture.html">Audio Capture</a> developer guide.</p>
* </div>
*/ */
public class MediaRecorder public class MediaRecorder
{ {

View File

@@ -54,6 +54,12 @@ import android.view.SurfaceView;
* <li>Optionally wraps, traces, and/or error-checks the renderer's OpenGL calls. * <li>Optionally wraps, traces, and/or error-checks the renderer's OpenGL calls.
* </ul> * </ul>
* *
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use OpenGL, read the
* <a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL</a> developer guide.</p>
* </div>
*
* <h3>Using GLSurfaceView</h3> * <h3>Using GLSurfaceView</h3>
* <p> * <p>
* Typically you use GLSurfaceView by subclassing it and overriding one or more of the * Typically you use GLSurfaceView by subclassing it and overriding one or more of the
@@ -636,6 +642,13 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
* this interface, and then call {@link GLSurfaceView#setRenderer} to * this interface, and then call {@link GLSurfaceView#setRenderer} to
* register the renderer with the GLSurfaceView. * register the renderer with the GLSurfaceView.
* <p> * <p>
*
* <div class="special reference">
* <h3>Developer Guides</h3>
* <p>For more information about how to use OpenGL, read the
* <a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL</a> developer guide.</p>
* </div>
*
* <h3>Threading</h3> * <h3>Threading</h3>
* The renderer will be called on a separate thread, so that rendering * The renderer will be called on a separate thread, so that rendering
* performance is decoupled from the UI thread. Clients typically need to * performance is decoupled from the UI thread. Clients typically need to

View File

@@ -1,5 +1,8 @@
<HTML> <HTML>
<BODY> <BODY>
Provides OpenGL utilities. <p>Provides an OpenGL ES static interface and utilities.</p>
<p>For more information about how to use OpenGL, read the
<a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL</a> developer guide.</p>
</BODY> </BODY>
</HTML> </HTML>

View File

@@ -0,0 +1,8 @@
<HTML>
<BODY>
<p>Provides a standard OpenGL interface.</p>
<p>For more information about how to use OpenGL, read the
<a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL</a> developer guide.</p>
</BODY>
</HTML>