diff options
| author | Andy Stadler <> | 2009-04-10 16:24:47 -0700 | 
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-10 16:24:47 -0700 | 
| commit | f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 (patch) | |
| tree | 1dd68eeddbfa83d571a3544d6d2e25ba9be21b49 /core/java/android/view | |
| parent | 1eb75a0b3770177c3f0d0c2e843f80fc34451ef5 (diff) | |
| download | frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.zip frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.tar.gz frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.tar.bz2 | |
AI 145778: Manual merge changes 145382-145384 from cupcake.
Automated import of CL 145778
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/Gravity.java | 2 | ||||
| -rw-r--r-- | core/java/android/view/KeyEvent.java | 33 | ||||
| -rw-r--r-- | core/java/android/view/View.java | 8 | ||||
| -rw-r--r-- | core/java/android/view/ViewConfiguration.java | 2 | ||||
| -rw-r--r-- | core/java/android/view/ViewDebug.java | 8 | ||||
| -rw-r--r-- | core/java/android/view/ViewTreeObserver.java | 22 | 
6 files changed, 41 insertions, 34 deletions
| diff --git a/core/java/android/view/Gravity.java b/core/java/android/view/Gravity.java index 36d8ce6..cf79638 100644 --- a/core/java/android/view/Gravity.java +++ b/core/java/android/view/Gravity.java @@ -231,7 +231,7 @@ public class Gravity      }      /** -     * Apply addition gravity behavior based on the overall "display" that an +     * Apply additional gravity behavior based on the overall "display" that an       * object exists in.  This can be used after       * {@link #apply(int, int, int, Rect, int, int, Rect)} to place the object       * within a visible display.  By default this moves or clips the object diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 41779ba..6349288 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -111,14 +111,13 @@ public class KeyEvent implements Parcelable {      public static final int KEYCODE_MENU            = 82;      public static final int KEYCODE_NOTIFICATION    = 83;      public static final int KEYCODE_SEARCH          = 84; -    public static final int KEYCODE_PLAYPAUSE       = 85; -    public static final int KEYCODE_STOP            = 86; -    public static final int KEYCODE_NEXTSONG        = 87; -    public static final int KEYCODE_PREVIOUSSONG    = 88; -    public static final int KEYCODE_REWIND          = 89; -    public static final int KEYCODE_FORWARD         = 90; +    public static final int KEYCODE_MEDIA_PLAY_PAUSE= 85; +    public static final int KEYCODE_MEDIA_STOP      = 86; +    public static final int KEYCODE_MEDIA_NEXT      = 87; +    public static final int KEYCODE_MEDIA_PREVIOUS  = 88; +    public static final int KEYCODE_MEDIA_REWIND    = 89; +    public static final int KEYCODE_MEDIA_FAST_FORWARD = 90;      public static final int KEYCODE_MUTE            = 91; -    private static final int LAST_KEYCODE           = KEYCODE_MUTE;      // NOTE: If you add a new keycode here you must also add it to:      //  isSystem() @@ -127,7 +126,15 @@ public class KeyEvent implements Parcelable {      //  frameworks/base/core/res/res/values/attrs.xml      //  commands/monkey/Monkey.java      //  emulator? +    // +    //  Also Android currently does not reserve code ranges for vendor- +    //  specific key codes.  If you have new key codes to have, you +    //  MUST contribute a patch to the open source project to define +    //  those new codes.  This is intended to maintain a consistent +    //  set of key code definitions across all Android devices. +    private static final int LAST_KEYCODE           = KEYCODE_MUTE; +          /**       * @deprecated There are now more than MAX_KEYCODE keycodes.       * Use {@link #getMaxKeyCode()} instead. @@ -582,12 +589,12 @@ public class KeyEvent implements Parcelable {          case KEYCODE_MUTE:          case KEYCODE_POWER:          case KEYCODE_HEADSETHOOK: -        case KEYCODE_PLAYPAUSE: -        case KEYCODE_STOP: -        case KEYCODE_NEXTSONG: -        case KEYCODE_PREVIOUSSONG: -        case KEYCODE_REWIND: -        case KEYCODE_FORWARD: +        case KEYCODE_MEDIA_PLAY_PAUSE: +        case KEYCODE_MEDIA_STOP: +        case KEYCODE_MEDIA_NEXT: +        case KEYCODE_MEDIA_PREVIOUS: +        case KEYCODE_MEDIA_REWIND: +        case KEYCODE_MEDIA_FAST_FORWARD:          case KEYCODE_CAMERA:          case KEYCODE_FOCUS:          case KEYCODE_SEARCH: diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index b26be66..ec1c733 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -7462,7 +7462,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback {      }      /** -     * Provide haptic feedback to the user for this view. +     * BZZZTT!!1! +     *  +     * <p>Provide haptic feedback to the user for this view.       *       * <p>The framework will provide haptic feedback for some built in actions,       * such as long presses, but you may wish to provide feedback for your @@ -7479,7 +7481,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback {      }      /** -     * Like {@link #performHapticFeedback(int)}, with additional options. +     * BZZZTT!!1! +     *  +     * <p>Like {@link #performHapticFeedback(int)}, with additional options.       *       * @param feedbackConstant One of the constants defined in       * {@link HapticFeedbackConstants} diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index d3f48c6..8e1524b 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -267,7 +267,6 @@ public class ViewConfiguration {       * @return the duration in milliseconds between the first tap's up event and       * the second tap's down event for an interaction to be considered a       * double-tap. -     * @hide pending API council       */      public static int getDoubleTapTimeout() {          return DOUBLE_TAP_TIMEOUT; @@ -324,7 +323,6 @@ public class ViewConfiguration {      /**       * @return Distance between the first touch and second touch to still be       *         considered a double tap -     * @hide pending API council       */      public int getScaledDoubleTapSlop() {          return mDoubleTapSlop; diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java index c1e9ed8..367c9a2 100644 --- a/core/java/android/view/ViewDebug.java +++ b/core/java/android/view/ViewDebug.java @@ -186,9 +186,7 @@ public class ViewDebug {      /**       * This annotation can be used to mark fields and methods to be dumped when       * the view is captured. Methods with this annotation must have no arguments -     * and must return <some type of data>. -     *  -     * @hide pending API Council approval +     * and must return a valid type of data.       */      @Target({ ElementType.FIELD, ElementType.METHOD })      @Retention(RetentionPolicy.RUNTIME) @@ -1345,13 +1343,11 @@ public class ViewDebug {      }      /** -     * dump view info for id based instrument test generation  +     * Dump view info for id based instrument test generation        * (and possibly further data analysis). The results are dumped       * to the log.        * @param tag for log       * @param view for dump -     *  -     * @hide pending API Council approval       */      public static void dumpCapturedView(String tag, Object view) {                  Class<?> klass = view.getClass(); diff --git a/core/java/android/view/ViewTreeObserver.java b/core/java/android/view/ViewTreeObserver.java index 4230afa..26e5cbc 100644 --- a/core/java/android/view/ViewTreeObserver.java +++ b/core/java/android/view/ViewTreeObserver.java @@ -102,8 +102,6 @@ public final class ViewTreeObserver {      /**       * Interface definition for a callback to be invoked when       * something in the view tree has been scrolled. -     *  -     * @hide pending API council approval       */      public interface OnScrollChangedListener {          /** @@ -115,7 +113,9 @@ public final class ViewTreeObserver {      /**       * Parameters used with OnComputeInternalInsetsListener. -     * {@hide pending API Council approval} +     *  +     * We are not yet ready to commit to this API and support it, so +     * @hide       */      public final static class InternalInsetsInfo {          /** @@ -200,7 +200,9 @@ public final class ViewTreeObserver {      /**       * Interface definition for a callback to be invoked when layout has       * completed and the client can compute its interior insets. -     * {@hide pending API Council approval} +     *  +     * We are not yet ready to commit to this API and support it, so +     * @hide       */      public interface OnComputeInternalInsetsListener {          /** @@ -381,8 +383,6 @@ public final class ViewTreeObserver {       * @param listener The callback to add       *       * @throws IllegalStateException If {@link #isAlive()} returns false -     * -     * @hide pending API council approval       */      public void addOnScrollChangedListener(OnScrollChangedListener listener) {          checkIsAlive(); @@ -402,8 +402,6 @@ public final class ViewTreeObserver {       * @throws IllegalStateException If {@link #isAlive()} returns false       *       * @see #addOnScrollChangedListener(OnScrollChangedListener) -     * -     * @hide pending API council approval       */      public void removeOnScrollChangedListener(OnScrollChangedListener victim) {          checkIsAlive(); @@ -454,7 +452,9 @@ public final class ViewTreeObserver {       * @param listener The callback to add       *       * @throws IllegalStateException If {@link #isAlive()} returns false -     * {@hide pending API Council approval} +     *  +     * We are not yet ready to commit to this API and support it, so +     * @hide       */      public void addOnComputeInternalInsetsListener(OnComputeInternalInsetsListener listener) {          checkIsAlive(); @@ -475,7 +475,9 @@ public final class ViewTreeObserver {       * @throws IllegalStateException If {@link #isAlive()} returns false       *       * @see #addOnComputeInternalInsetsListener(OnComputeInternalInsetsListener) -     * {@hide pending API Council approval} +     *  +     * We are not yet ready to commit to this API and support it, so +     * @hide       */      public void removeOnComputeInternalInsetsListener(OnComputeInternalInsetsListener victim) {          checkIsAlive(); | 
