summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dongwon Kang <dwkang@google.com> 2014-08-05 08:08:01 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-08-04 23:56:40 +0000
commit307a8ba9f028dc476558bc443aabe4f70705a159 (patch)
tree70dfb15eda06f0861baae19d1e3e3620217e083f
parent0081e911a2aac5f2846e23a3b9572f60c013f17c (diff)
parent1f81b1040f40a3233981f34268b11e5c9ad9f34c (diff)
Merge "TIF: make the documentation consistent." into lmp-dev
-rw-r--r--media/java/android/media/tv/TvInputManager.java8
-rw-r--r--media/java/android/media/tv/TvTrackInfo.java25
-rw-r--r--media/java/android/media/tv/TvView.java20
3 files changed, 27 insertions, 26 deletions
diff --git a/media/java/android/media/tv/TvInputManager.java b/media/java/android/media/tv/TvInputManager.java
index 033408393da9..a5554540f10b 100644
--- a/media/java/android/media/tv/TvInputManager.java
+++ b/media/java/android/media/tv/TvInputManager.java
@@ -942,7 +942,7 @@ public final class TvInputManager {
}
/**
- * Set this as main session. See {@link TvView#setMainTvView} for about meaning of "main".
+ * Sets this as main session. See {@link TvView#setMainTvView} for about meaning of "main".
* @hide
*/
public void setMainSession() {
@@ -1071,7 +1071,7 @@ public final class TvInputManager {
}
/**
- * Select a track.
+ * Selects a track.
*
* @param track The track to be selected.
* @see #getTracks()
@@ -1092,7 +1092,7 @@ public final class TvInputManager {
}
/**
- * Unselect a track.
+ * Unselects a track.
*
* @param track The track to be selected.
* @see #getTracks()
@@ -1139,7 +1139,7 @@ public final class TvInputManager {
}
/**
- * Call {@link TvInputService.Session#appPrivateCommand(String, Bundle)
+ * Calls {@link TvInputService.Session#appPrivateCommand(String, Bundle)
* TvInputService.Session.appPrivateCommand()} on the current TvView.
*
* @param action Name of the command to be performed. This <em>must</em> be a scoped name,
diff --git a/media/java/android/media/tv/TvTrackInfo.java b/media/java/android/media/tv/TvTrackInfo.java
index 3b80db4fcc0f..f296984fa041 100644
--- a/media/java/android/media/tv/TvTrackInfo.java
+++ b/media/java/android/media/tv/TvTrackInfo.java
@@ -85,7 +85,7 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Returns the audio channel count. Valid for {@link #TYPE_AUDIO} tracks only.
+ * Returns the audio channel count. Valid only for {@link #TYPE_AUDIO} tracks.
*/
public final int getAudioChannelCount() {
if (mType != TYPE_AUDIO) {
@@ -95,7 +95,7 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Returns the audio sample rate, in the unit of Hz. Valid for {@link #TYPE_AUDIO} tracks only.
+ * Returns the audio sample rate, in the unit of Hz. Valid only for {@link #TYPE_AUDIO} tracks.
*/
public final int getAudioSampleRate() {
if (mType != TYPE_AUDIO) {
@@ -105,8 +105,8 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Returns the width of the video, in the unit of pixels. Valid for {@link #TYPE_VIDEO} tracks
- * only.
+ * Returns the width of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
+ * tracks.
*/
public final int getVideoWidth() {
if (mType != TYPE_VIDEO) {
@@ -116,8 +116,8 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Returns the height of the video, in the unit of pixels. Valid for {@link #TYPE_VIDEO} tracks
- * only.
+ * Returns the height of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
+ * tracks.
*/
public final int getVideoHeight() {
if (mType != TYPE_VIDEO) {
@@ -206,7 +206,7 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Sets the audio channel count. Valid for {@link #TYPE_AUDIO} tracks only.
+ * Sets the audio channel count. Valid only for {@link #TYPE_AUDIO} tracks.
*
* @param audioChannelCount The audio channel count.
*/
@@ -219,7 +219,8 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Sets the audio sample rate, in the unit of Hz. Valid for {@link #TYPE_AUDIO} tracks only.
+ * Sets the audio sample rate, in the unit of Hz. Valid only for {@link #TYPE_AUDIO}
+ * tracks.
*
* @param audioSampleRate The audio sample rate.
*/
@@ -232,8 +233,8 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Sets the width of the video, in the unit of pixels. Valid for {@link #TYPE_VIDEO} tracks
- * only.
+ * Sets the width of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
+ * tracks.
*
* @param videoWidth The width of the video.
*/
@@ -246,8 +247,8 @@ public final class TvTrackInfo implements Parcelable {
}
/**
- * Sets the height of the video, in the unit of pixels. Valid for {@link #TYPE_VIDEO} tracks
- * only.
+ * Sets the height of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
+ * tracks.
*
* @param videoHeight The height of the video.
*/
diff --git a/media/java/android/media/tv/TvView.java b/media/java/android/media/tv/TvView.java
index 2696a637b6de..78b1754da36a 100644
--- a/media/java/android/media/tv/TvView.java
+++ b/media/java/android/media/tv/TvView.java
@@ -162,7 +162,7 @@ public class TvView extends ViewGroup {
}
/**
- * Set this as main TvView.
+ * Sets this as main TvView.
* <p>
* Main TvView is the TvView which user is watching and interacting mainly. It is used for
* determining internal behavior of hardware TV input devices. For example, this influences
@@ -203,7 +203,7 @@ public class TvView extends ViewGroup {
/**
* Tunes to a given channel.
*
- * @param inputId The id of TV input which will play the given channel.
+ * @param inputId The ID of TV input which will play the given channel.
* @param channelUri The URI of a channel.
*/
public void tune(String inputId, Uri channelUri) {
@@ -213,7 +213,7 @@ public class TvView extends ViewGroup {
/**
* Tunes to a given channel.
*
- * @param inputId The id of TV input which will play the given channel.
+ * @param inputId The ID of TV input which will play the given channel.
* @param channelUri The URI of a channel.
* @param params Extra parameters which might be handled with the tune event.
* @hide
@@ -293,7 +293,7 @@ public class TvView extends ViewGroup {
}
/**
- * Select a track.
+ * Selects a track.
* <p>
* If it is called multiple times on the same type of track (ie. Video, Audio, Text), the track
* selected in previous will be unselected. Note that this method does not take any effect
@@ -310,7 +310,7 @@ public class TvView extends ViewGroup {
}
/**
- * Unselect a track.
+ * Unselects a track.
* <p>
* Note that this method does not take any effect unless the current TvView is tuned.
*
@@ -346,7 +346,7 @@ public class TvView extends ViewGroup {
}
/**
- * Call {@link TvInputService.Session#appPrivateCommand(String, Bundle)
+ * Calls {@link TvInputService.Session#appPrivateCommand(String, Bundle)
* TvInputService.Session.appPrivateCommand()} on the current TvView.
*
* @param action Name of the command to be performed. This <em>must</em> be a scoped name, i.e.
@@ -385,8 +385,8 @@ public class TvView extends ViewGroup {
}
/**
- * Called when an unhandled input event was also not handled by the user provided callback. This
- * is the last chance to handle the unhandled input event in the TvView.
+ * Called when an unhandled input event also has not been handled by the user provided
+ * callback. This is the last chance to handle the unhandled input event in the TvView.
*
* @param event The input event.
* @return If you handled the event, return {@code true}. If you want to allow the event to be
@@ -397,9 +397,9 @@ public class TvView extends ViewGroup {
}
/**
- * Registers a callback to be invoked when an input event was not handled by the bound TV input.
+ * Registers a callback to be invoked when an input event is not handled by the bound TV input.
*
- * @param listener The callback to invoke when the unhandled input event was received.
+ * @param listener The callback to be invoked when the unhandled input event is received.
*/
public void setOnUnhandledInputEventListener(OnUnhandledInputEventListener listener) {
mOnUnhandledInputEventListener = listener;