am 1440cc6b: Merge "Hide InputDevice#supportsSource DO NOT MERGE" into klp-modular-dev

* commit '1440cc6bf37a268b439dfe86a9078b93bf1baf39':
  Hide InputDevice#supportsSource DO NOT MERGE
This commit is contained in:
Justin Koh
2014-05-05 23:11:03 +00:00
committed by Android Git Automerger
2 changed files with 1 additions and 1 deletions

View File

@@ -26586,7 +26586,6 @@ package android.view {
method public android.os.Vibrator getVibrator(); method public android.os.Vibrator getVibrator();
method public boolean[] hasKeys(int...); method public boolean[] hasKeys(int...);
method public boolean isVirtual(); method public boolean isVirtual();
method public boolean supportsSource(int);
method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator CREATOR; field public static final android.os.Parcelable.Creator CREATOR;
field public static final int KEYBOARD_TYPE_ALPHABETIC = 2; // 0x2 field public static final int KEYBOARD_TYPE_ALPHABETIC = 2; // 0x2

View File

@@ -585,6 +585,7 @@ public final class InputDevice implements Parcelable {
* type such as {@link InputDevice#SOURCE_MOUSE}, a more generic device class, such as * type such as {@link InputDevice#SOURCE_MOUSE}, a more generic device class, such as
* {@link InputDevice#SOURCE_CLASS_POINTER}, or a combination of sources bitwise ORed together. * {@link InputDevice#SOURCE_CLASS_POINTER}, or a combination of sources bitwise ORed together.
* @return Whether the device can produce all of the given sources. * @return Whether the device can produce all of the given sources.
* @hide
*/ */
public boolean supportsSource(int source) { public boolean supportsSource(int source) {
return (mSources & source) == source; return (mSources & source) == source;