cmsdk: Fix @deprecated annotation mismatch warnings

Change-Id: I0141aa66139ac0fa6089aecd7056e017c4c1132f
This commit is contained in:
Zhao Wei Liew
2017-01-16 17:35:41 +08:00
parent 05f0c4048e
commit cf51b678cd
5 changed files with 24 additions and 1 deletions

View File

@@ -275,6 +275,9 @@ public class ProfileManager {
return sService;
}
/**
* @deprecated
*/
@Deprecated
public void setActiveProfile(String profileName) {
try {
@@ -349,6 +352,8 @@ public class ProfileManager {
* Get the {@link Profile} object by its literal name
* @param profileName name associated with the profile
* @return profile a {@link Profile} object
*
* @deprecated
*/
@Deprecated
public Profile getProfile(String profileName) {

View File

@@ -656,6 +656,8 @@ public final class CMHardwareManager {
/**
* @return the number of RGB controls the device supports
*
* @deprecated
*/
@Deprecated
public int getNumGammaControls() {
@@ -672,6 +674,8 @@ public final class CMHardwareManager {
* @param idx the control to query
*
* @return the current RGB gamma calibration for the given control
*
* @deprecated
*/
@Deprecated
public int[] getDisplayGammaCalibration(int idx) {
@@ -684,6 +688,8 @@ public final class CMHardwareManager {
/**
* @return the minimum value for all colors
*
* @deprecated
*/
@Deprecated
public int getDisplayGammaCalibrationMin() {
@@ -692,6 +698,8 @@ public final class CMHardwareManager {
/**
* @return the maximum value for all colors
*
* @deprecated
*/
@Deprecated
public int getDisplayGammaCalibrationMax() {
@@ -707,6 +715,8 @@ public final class CMHardwareManager {
* inclusive.
*
* @return true on success, false otherwise.
*
* @deprecated
*/
@Deprecated
public boolean setDisplayGammaCalibration(int idx, int[] rgb) {

View File

@@ -87,6 +87,8 @@ public final class ConnectionSettings implements Parcelable {
/**
* The {@link #PROFILE_CONNECTION_WIMAX} allows for enabling and disabling the WIMAX radio (if exists)
* on the device. Boolean connection settings {@link BooleanState}
*
* @deprecated
*/
@Deprecated
public static final int PROFILE_CONNECTION_WIMAX = 3;

View File

@@ -1379,8 +1379,9 @@ public final class CMSettings {
public static final String DISPLAY_CABC = "display_low_power";
/**
* @deprecated
* @deprecated Use {@link cyanogenmod.providers.CMSettings.System#DISPLAY_CABC} instead
*/
@Deprecated
public static final String DISPLAY_LOW_POWER = DISPLAY_CABC;
/** @hide */

View File

@@ -164,6 +164,7 @@ public class ThemeManager {
/**
* @deprecated Use {@link ThemeManager#registerThemeChangeListener(ThemeChangeListener)} instead
*/
@Deprecated
public void addClient(ThemeChangeListener listener) {
registerThemeChangeListener(listener);
}
@@ -172,6 +173,7 @@ public class ThemeManager {
* @deprecated Use {@link ThemeManager#unregisterThemeChangeListener(ThemeChangeListener)}
* instead
*/
@Deprecated
public void removeClient(ThemeChangeListener listener) {
unregisterThemeChangeListener(listener);
}
@@ -180,6 +182,7 @@ public class ThemeManager {
* @deprecated Use {@link ThemeManager#unregisterThemeChangeListener(ThemeChangeListener)}
* instead
*/
@Deprecated
public void onClientPaused(ThemeChangeListener listener) {
unregisterThemeChangeListener(listener);
}
@@ -187,6 +190,7 @@ public class ThemeManager {
/**
* @deprecated Use {@link ThemeManager#registerThemeChangeListener(ThemeChangeListener)} instead
*/
@Deprecated
public void onClientResumed(ThemeChangeListener listener) {
registerThemeChangeListener(listener);
}
@@ -195,6 +199,7 @@ public class ThemeManager {
* @deprecated Use {@link ThemeManager#unregisterThemeChangeListener(ThemeChangeListener)}
* instead
*/
@Deprecated
public void onClientDestroyed(ThemeChangeListener listener) {
unregisterThemeChangeListener(listener);
}