Merge "Add @UnsupportedAppUsage annotations" am: 842e3aa420
am: 20ebeb61a9
Change-Id: Ibcbbe37ffd476ea414a1041c015b8267a46a5402
This commit is contained in:
@@ -28,6 +28,7 @@ interface IAppOpsService {
|
||||
int noteOperation(int code, int uid, String packageName);
|
||||
int startOperation(IBinder token, int code, int uid, String packageName,
|
||||
boolean startIfModeDefault);
|
||||
@UnsupportedAppUsage
|
||||
void finishOperation(IBinder token, int code, int uid, String packageName);
|
||||
void startWatchingMode(int op, String packageName, IAppOpsCallback callback);
|
||||
void stopWatchingMode(IAppOpsCallback callback);
|
||||
@@ -38,11 +39,15 @@ interface IAppOpsService {
|
||||
|
||||
// Remaining methods are only used in Java.
|
||||
int checkPackage(int uid, String packageName);
|
||||
@UnsupportedAppUsage
|
||||
List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops);
|
||||
@UnsupportedAppUsage
|
||||
List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops);
|
||||
List<AppOpsManager.PackageOps> getUidOps(int uid, in int[] ops);
|
||||
void setUidMode(int code, int uid, int mode);
|
||||
@UnsupportedAppUsage
|
||||
void setMode(int code, int uid, String packageName, int mode);
|
||||
@UnsupportedAppUsage
|
||||
void resetAllModes(int reqUserId, String reqPackageName);
|
||||
int checkAudioOperation(int code, int usage, int uid, String packageName);
|
||||
void setAudioRestriction(int code, int usage, int uid, int mode, in String[] exceptionPackages);
|
||||
|
||||
@@ -49,11 +49,13 @@ interface IBatteryStats {
|
||||
void noteResetFlashlight();
|
||||
|
||||
// Remaining methods are only used in Java.
|
||||
@UnsupportedAppUsage
|
||||
byte[] getStatistics();
|
||||
|
||||
ParcelFileDescriptor getStatisticsStream();
|
||||
|
||||
// Return true if we see the battery as currently charging.
|
||||
@UnsupportedAppUsage
|
||||
boolean isCharging();
|
||||
|
||||
// Return the computed amount of time remaining on battery, in milliseconds.
|
||||
@@ -62,6 +64,7 @@ interface IBatteryStats {
|
||||
|
||||
// Return the computed amount of time remaining to fully charge, in milliseconds.
|
||||
// Returns -1 if nothing could be computed.
|
||||
@UnsupportedAppUsage
|
||||
long computeChargeTimeRemaining();
|
||||
|
||||
void noteEvent(int code, String name, int uid);
|
||||
@@ -131,6 +134,7 @@ interface IBatteryStats {
|
||||
void noteDeviceIdleMode(int mode, String activeReason, int activeUid);
|
||||
void setBatteryState(int status, int health, int plugType, int level, int temp, int volt,
|
||||
int chargeUAh, int chargeFullUAh);
|
||||
@UnsupportedAppUsage
|
||||
long getAwakeTimeBattery();
|
||||
long getAwakeTimePlugged();
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ interface IVoiceInteractionManagerService {
|
||||
* @param keyphraseId The unique identifier for the keyphrase.
|
||||
* @param bcp47Locale The BCP47 language tag for the keyphrase's locale.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale);
|
||||
/**
|
||||
* Add/Update the given keyphrase sound model.
|
||||
|
||||
@@ -42,6 +42,7 @@ interface IAppWidgetService {
|
||||
void deleteAppWidgetId(String callingPackage, int appWidgetId);
|
||||
void deleteHost(String packageName, int hostId);
|
||||
void deleteAllHosts();
|
||||
@UnsupportedAppUsage
|
||||
RemoteViews getAppWidgetViews(String callingPackage, int appWidgetId);
|
||||
int[] getAppWidgetIdsForHost(String callingPackage, int hostId);
|
||||
IntentSender createAppWidgetConfigIntentSender(String callingPackage, int appWidgetId,
|
||||
@@ -63,11 +64,14 @@ interface IAppWidgetService {
|
||||
AppWidgetProviderInfo getAppWidgetInfo(String callingPackage, int appWidgetId);
|
||||
boolean hasBindAppWidgetPermission(in String packageName, int userId);
|
||||
void setBindAppWidgetPermission(in String packageName, int userId, in boolean permission);
|
||||
@UnsupportedAppUsage
|
||||
boolean bindAppWidgetId(in String callingPackage, int appWidgetId,
|
||||
int providerProfileId, in ComponentName providerComponent, in Bundle options);
|
||||
@UnsupportedAppUsage
|
||||
boolean bindRemoteViewsService(String callingPackage, int appWidgetId, in Intent intent,
|
||||
IApplicationThread caller, IBinder token, IServiceConnection connection, int flags);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
int[] getAppWidgetIds(in ComponentName providerComponent);
|
||||
boolean isBoundWidgetPackage(String packageName, int userId);
|
||||
boolean requestPinAppWidget(String packageName, in ComponentName providerComponent,
|
||||
|
||||
@@ -37,5 +37,6 @@ interface IDropBoxManagerService {
|
||||
boolean isTagEnabled(String tag);
|
||||
|
||||
/** @see DropBoxManager#getNextEntry */
|
||||
@UnsupportedAppUsage
|
||||
DropBoxManager.Entry getNextEntry(String tag, long millis);
|
||||
}
|
||||
|
||||
@@ -88,8 +88,10 @@ oneway interface IKeyguardService {
|
||||
*/
|
||||
void onScreenTurnedOff();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void setKeyguardEnabled(boolean enabled);
|
||||
void onSystemReady();
|
||||
@UnsupportedAppUsage
|
||||
void doKeyguardTimeout(in Bundle options);
|
||||
void setSwitchingUser(boolean switching);
|
||||
void setCurrentUser(int userId);
|
||||
|
||||
@@ -30,15 +30,20 @@ import com.android.internal.statusbar.NotificationVisibility;
|
||||
/** @hide */
|
||||
interface IStatusBarService
|
||||
{
|
||||
@UnsupportedAppUsage
|
||||
void expandNotificationsPanel();
|
||||
@UnsupportedAppUsage
|
||||
void collapsePanels();
|
||||
void togglePanel();
|
||||
@UnsupportedAppUsage
|
||||
void disable(int what, IBinder token, String pkg);
|
||||
void disableForUser(int what, IBinder token, String pkg, int userId);
|
||||
void disable2(int what, IBinder token, String pkg);
|
||||
void disable2ForUser(int what, IBinder token, String pkg, int userId);
|
||||
void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription);
|
||||
@UnsupportedAppUsage
|
||||
void setIconVisibility(String slot, boolean visible);
|
||||
@UnsupportedAppUsage
|
||||
void removeIcon(String slot);
|
||||
void setImeWindowStatus(in IBinder token, int vis, int backDisposition,
|
||||
boolean showImeSwitcher);
|
||||
@@ -82,6 +87,7 @@ interface IStatusBarService
|
||||
void addTile(in ComponentName tile);
|
||||
void remTile(in ComponentName tile);
|
||||
void clickTile(in ComponentName tile);
|
||||
@UnsupportedAppUsage
|
||||
void handleSystemKey(in int key);
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,11 +30,17 @@ import java.util.Map;
|
||||
|
||||
/** {@hide} */
|
||||
interface ILockSettings {
|
||||
@UnsupportedAppUsage
|
||||
void setBoolean(in String key, in boolean value, in int userId);
|
||||
@UnsupportedAppUsage
|
||||
void setLong(in String key, in long value, in int userId);
|
||||
@UnsupportedAppUsage
|
||||
void setString(in String key, in String value, in int userId);
|
||||
@UnsupportedAppUsage
|
||||
boolean getBoolean(in String key, in boolean defaultValue, in int userId);
|
||||
@UnsupportedAppUsage
|
||||
long getLong(in String key, in long defaultValue, in int userId);
|
||||
@UnsupportedAppUsage
|
||||
String getString(in String key, in String defaultValue, in int userId);
|
||||
void setLockCredential(in String credential, int type, in String savedCredential, int requestedQuality, int userId);
|
||||
void resetKeyStore(int userId);
|
||||
@@ -43,7 +49,9 @@ interface ILockSettings {
|
||||
VerifyCredentialResponse verifyCredential(in String credential, int type, long challenge, int userId);
|
||||
VerifyCredentialResponse verifyTiedProfileChallenge(String credential, int type, long challenge, int userId);
|
||||
boolean checkVoldPassword(int userId);
|
||||
@UnsupportedAppUsage
|
||||
boolean havePattern(int userId);
|
||||
@UnsupportedAppUsage
|
||||
boolean havePassword(int userId);
|
||||
byte[] getHashFactor(String currentCredential, int userId);
|
||||
void setSeparateProfileChallengeEnabled(int userId, boolean enabled, String managedUserPassword);
|
||||
|
||||
@@ -21,15 +21,23 @@ import android.widget.RemoteViews;
|
||||
|
||||
/** {@hide} */
|
||||
interface IRemoteViewsFactory {
|
||||
@UnsupportedAppUsage
|
||||
void onDataSetChanged();
|
||||
oneway void onDataSetChangedAsync();
|
||||
oneway void onDestroy(in Intent intent);
|
||||
@UnsupportedAppUsage
|
||||
int getCount();
|
||||
@UnsupportedAppUsage
|
||||
RemoteViews getViewAt(int position);
|
||||
@UnsupportedAppUsage
|
||||
RemoteViews getLoadingView();
|
||||
@UnsupportedAppUsage
|
||||
int getViewTypeCount();
|
||||
@UnsupportedAppUsage
|
||||
long getItemId(int position);
|
||||
@UnsupportedAppUsage
|
||||
boolean hasStableIds();
|
||||
@UnsupportedAppUsage
|
||||
boolean isCreated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user