Merge "Add @UnsupportedAppUsage annotations" am: df82ab2de2
am: b6c87140c7
Change-Id: I659cfb3d4b18ccaf860721f5908a0d6d4814b3b1
diff --git a/config/hiddenapi-light-greylist.txt b/config/hiddenapi-light-greylist.txt
index 6276a1b..e0259c0 100644
--- a/config/hiddenapi-light-greylist.txt
+++ b/config/hiddenapi-light-greylist.txt
@@ -2064,48 +2064,6 @@
Lcom/android/ims/internal/IImsVideoCallProvider$Stub;-><init>()V
Lcom/android/ims/internal/IImsVideoCallProvider;->setCallback(Lcom/android/ims/internal/IImsVideoCallCallback;)V
Lcom/android/ims/internal/uce/uceservice/IUceListener$Stub;-><init>()V
-Lcom/android/internal/app/AlertController$AlertParams;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/app/AlertController$AlertParams;->apply(Lcom/android/internal/app/AlertController;)V
-Lcom/android/internal/app/AlertController$AlertParams;->mAdapter:Landroid/widget/ListAdapter;
-Lcom/android/internal/app/AlertController$AlertParams;->mCancelable:Z
-Lcom/android/internal/app/AlertController$AlertParams;->mCheckedItem:I
-Lcom/android/internal/app/AlertController$AlertParams;->mCheckedItems:[Z
-Lcom/android/internal/app/AlertController$AlertParams;->mContext:Landroid/content/Context;
-Lcom/android/internal/app/AlertController$AlertParams;->mCursor:Landroid/database/Cursor;
-Lcom/android/internal/app/AlertController$AlertParams;->mCustomTitleView:Landroid/view/View;
-Lcom/android/internal/app/AlertController$AlertParams;->mIcon:Landroid/graphics/drawable/Drawable;
-Lcom/android/internal/app/AlertController$AlertParams;->mInflater:Landroid/view/LayoutInflater;
-Lcom/android/internal/app/AlertController$AlertParams;->mIsCheckedColumn:Ljava/lang/String;
-Lcom/android/internal/app/AlertController$AlertParams;->mIsMultiChoice:Z
-Lcom/android/internal/app/AlertController$AlertParams;->mIsSingleChoice:Z
-Lcom/android/internal/app/AlertController$AlertParams;->mItems:[Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mLabelColumn:Ljava/lang/String;
-Lcom/android/internal/app/AlertController$AlertParams;->mNeutralButtonListener:Landroid/content/DialogInterface$OnClickListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mNeutralButtonText:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnCheckboxClickListener:Landroid/content/DialogInterface$OnMultiChoiceClickListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnClickListener:Landroid/content/DialogInterface$OnClickListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnItemSelectedListener:Landroid/widget/AdapterView$OnItemSelectedListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mOnKeyListener:Landroid/content/DialogInterface$OnKeyListener;
-Lcom/android/internal/app/AlertController$RecycleListView;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/app/AlertController$RecycleListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
-Lcom/android/internal/app/AlertController;-><init>(Landroid/content/Context;Landroid/content/DialogInterface;Landroid/view/Window;)V
-Lcom/android/internal/app/AlertController;->getListView()Landroid/widget/ListView;
-Lcom/android/internal/app/AlertController;->installContent()V
-Lcom/android/internal/app/AlertController;->mCustomTitleView:Landroid/view/View;
-Lcom/android/internal/app/AlertController;->mForceInverseBackground:Z
-Lcom/android/internal/app/AlertController;->mTitle:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController;->mView:Landroid/view/View;
-Lcom/android/internal/app/AlertController;->onKeyDown(ILandroid/view/KeyEvent;)Z
-Lcom/android/internal/app/AlertController;->onKeyUp(ILandroid/view/KeyEvent;)Z
-Lcom/android/internal/app/AlertController;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;Landroid/os/Message;)V
-Lcom/android/internal/app/AlertController;->setCustomTitle(Landroid/view/View;)V
-Lcom/android/internal/app/AlertController;->setIcon(I)V
-Lcom/android/internal/app/AlertController;->setIcon(Landroid/graphics/drawable/Drawable;)V
-Lcom/android/internal/app/AlertController;->setMessage(Ljava/lang/CharSequence;)V
-Lcom/android/internal/app/AlertController;->setTitle(Ljava/lang/CharSequence;)V
-Lcom/android/internal/app/AlertController;->setView(Landroid/view/View;)V
Lcom/android/internal/app/IAppOpsCallback$Stub;-><init>()V
Lcom/android/internal/app/IAppOpsService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Lcom/android/internal/app/IAppOpsService$Stub$Proxy;->checkOperation(IILjava/lang/String;)I
@@ -2176,189 +2134,13 @@
Lcom/android/internal/backup/IBackupTransport;->requestBackupTime()J
Lcom/android/internal/backup/IBackupTransport;->startRestore(J[Landroid/content/pm/PackageInfo;)I
Lcom/android/internal/backup/IBackupTransport;->transportDirName()Ljava/lang/String;
-Lcom/android/internal/content/PackageMonitor;->isPackageDisappearing(Ljava/lang/String;)I
-Lcom/android/internal/content/PackageMonitor;->isPackageModified(Ljava/lang/String;)Z
-Lcom/android/internal/content/PackageMonitor;->onPackageChanged(Ljava/lang/String;I[Ljava/lang/String;)Z
-Lcom/android/internal/content/PackageMonitor;->onPackageRemoved(Ljava/lang/String;I)V
-Lcom/android/internal/content/PackageMonitor;->register(Landroid/content/Context;Landroid/os/Looper;Z)V
-Lcom/android/internal/content/ReferrerIntent;-><init>(Landroid/content/Intent;Ljava/lang/String;)V
-Lcom/android/internal/content/ReferrerIntent;->mReferrer:Ljava/lang/String;
Lcom/android/internal/location/ILocationProvider$Stub;-><init>()V
Lcom/android/internal/logging/MetricsLogger;-><init>()V
-Lcom/android/internal/logging/MetricsLogger;->write(Landroid/metrics/LogMaker;)V
Lcom/android/internal/net/LegacyVpnInfo;-><init>()V
-Lcom/android/internal/net/LegacyVpnInfo;->CREATOR:Landroid/os/Parcelable$Creator;
-Lcom/android/internal/net/LegacyVpnInfo;->key:Ljava/lang/String;
-Lcom/android/internal/net/LegacyVpnInfo;->state:I
Lcom/android/internal/net/VpnConfig;-><init>()V
-Lcom/android/internal/net/VpnProfile;-><init>(Landroid/os/Parcel;)V
-Lcom/android/internal/net/VpnProfile;->decode(Ljava/lang/String;[B)Lcom/android/internal/net/VpnProfile;
-Lcom/android/internal/net/VpnProfile;->key:Ljava/lang/String;
-Lcom/android/internal/net/VpnProfile;->name:Ljava/lang/String;
-Lcom/android/internal/net/VpnProfile;->saveLogin:Z
-Lcom/android/internal/net/VpnProfile;->server:Ljava/lang/String;
-Lcom/android/internal/net/VpnProfile;->type:I
-Lcom/android/internal/net/VpnProfile;->username:Ljava/lang/String;
-Lcom/android/internal/os/AtomicFile;-><init>(Ljava/io/File;)V
-Lcom/android/internal/os/AtomicFile;->failWrite(Ljava/io/FileOutputStream;)V
-Lcom/android/internal/os/AtomicFile;->finishWrite(Ljava/io/FileOutputStream;)V
-Lcom/android/internal/os/AtomicFile;->getBaseFile()Ljava/io/File;
-Lcom/android/internal/os/AtomicFile;->openAppend()Ljava/io/FileOutputStream;
-Lcom/android/internal/os/AtomicFile;->openRead()Ljava/io/FileInputStream;
-Lcom/android/internal/os/AtomicFile;->readFully()[B
-Lcom/android/internal/os/AtomicFile;->startWrite()Ljava/io/FileOutputStream;
-Lcom/android/internal/os/AtomicFile;->truncate()V
-Lcom/android/internal/os/BatterySipper$DrainType;->APP:Lcom/android/internal/os/BatterySipper$DrainType;
Lcom/android/internal/os/BatterySipper$DrainType;->values()[Lcom/android/internal/os/BatterySipper$DrainType;
-Lcom/android/internal/os/BatterySipper;-><init>(Lcom/android/internal/os/BatterySipper$DrainType;Landroid/os/BatteryStats$Uid;D)V
-Lcom/android/internal/os/BatterySipper;->add(Lcom/android/internal/os/BatterySipper;)V
-Lcom/android/internal/os/BatterySipper;->cpuFgTimeMs:J
-Lcom/android/internal/os/BatterySipper;->cpuPowerMah:D
-Lcom/android/internal/os/BatterySipper;->cpuTimeMs:J
-Lcom/android/internal/os/BatterySipper;->drainType:Lcom/android/internal/os/BatterySipper$DrainType;
-Lcom/android/internal/os/BatterySipper;->getPackages()[Ljava/lang/String;
-Lcom/android/internal/os/BatterySipper;->getUid()I
-Lcom/android/internal/os/BatterySipper;->gpsTimeMs:J
-Lcom/android/internal/os/BatterySipper;->mPackages:[Ljava/lang/String;
-Lcom/android/internal/os/BatterySipper;->packageWithHighestDrain:Ljava/lang/String;
-Lcom/android/internal/os/BatterySipper;->totalPowerMah:D
-Lcom/android/internal/os/BatterySipper;->uidObj:Landroid/os/BatteryStats$Uid;
-Lcom/android/internal/os/BatterySipper;->usageTimeMs:J
-Lcom/android/internal/os/BatterySipper;->userId:I
-Lcom/android/internal/os/BatterySipper;->wakeLockTimeMs:J
-Lcom/android/internal/os/BatterySipper;->wifiRunningTimeMs:J
-Lcom/android/internal/os/BatteryStatsHelper;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/os/BatteryStatsHelper;-><init>(Landroid/content/Context;Z)V
-Lcom/android/internal/os/BatteryStatsHelper;-><init>(Landroid/content/Context;ZZ)V
-Lcom/android/internal/os/BatteryStatsHelper;->clearStats()V
-Lcom/android/internal/os/BatteryStatsHelper;->create(Landroid/os/Bundle;)V
-Lcom/android/internal/os/BatteryStatsHelper;->dropFile(Landroid/content/Context;Ljava/lang/String;)V
-Lcom/android/internal/os/BatteryStatsHelper;->getBatteryBroadcast()Landroid/content/Intent;
-Lcom/android/internal/os/BatteryStatsHelper;->getMaxPower()D
-Lcom/android/internal/os/BatteryStatsHelper;->getStats()Landroid/os/BatteryStats;
-Lcom/android/internal/os/BatteryStatsHelper;->getTotalPower()D
-Lcom/android/internal/os/BatteryStatsHelper;->getUsageList()Ljava/util/List;
-Lcom/android/internal/os/BatteryStatsHelper;->load()V
-Lcom/android/internal/os/BatteryStatsHelper;->mBatteryInfo:Lcom/android/internal/app/IBatteryStats;
-Lcom/android/internal/os/BatteryStatsHelper;->mPowerProfile:Lcom/android/internal/os/PowerProfile;
-Lcom/android/internal/os/BatteryStatsHelper;->mUsageList:Ljava/util/List;
-Lcom/android/internal/os/BatteryStatsHelper;->refreshStats(II)V
-Lcom/android/internal/os/BatteryStatsHelper;->refreshStats(ILandroid/util/SparseArray;)V
-Lcom/android/internal/os/BatteryStatsHelper;->refreshStats(ILjava/util/List;)V
-Lcom/android/internal/os/BatteryStatsHelper;->storeState()V
-Lcom/android/internal/os/BatteryStatsImpl$Counter;->mCount:Ljava/util/concurrent/atomic/AtomicInteger;
-Lcom/android/internal/os/BatteryStatsImpl$StopwatchTimer;->detach()V
-Lcom/android/internal/os/BatteryStatsImpl$Timer;->getCountLocked(I)I
-Lcom/android/internal/os/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J
-Lcom/android/internal/os/BatteryStatsImpl$Timer;->writeTimerToParcel(Landroid/os/Parcel;Lcom/android/internal/os/BatteryStatsImpl$Timer;J)V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;->getBatteryStats()Lcom/android/internal/os/BatteryStatsImpl;
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;->startLaunchedLocked()V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;->startRunningLocked()V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;->stopLaunchedLocked()V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;->stopRunningLocked()V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->addCpuTimeLocked(II)V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->addForegroundTimeLocked(J)V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->getForegroundTime(I)J
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->getStarts(I)I
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->getSystemTime(I)J
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->getUserTime(I)J
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;->incStartsLocked()V
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Sensor;->getHandle()I
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Sensor;->getSensorTime()Lcom/android/internal/os/BatteryStatsImpl$Timer;
-Lcom/android/internal/os/BatteryStatsImpl$Uid$Wakelock;->getWakeTime(I)Lcom/android/internal/os/BatteryStatsImpl$Timer;
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getProcessStats()Landroid/util/ArrayMap;
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getSensorStats()Landroid/util/SparseArray;
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getUid()I
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getWakelockStats()Landroid/util/ArrayMap;
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getWifiRunningTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl$Uid;->getWifiScanTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;-><init>(Landroid/os/Parcel;)V
-Lcom/android/internal/os/BatteryStatsImpl;->commitPendingDataToDisk()V
-Lcom/android/internal/os/BatteryStatsImpl;->computeBatteryRealtime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->computeBatteryTimeRemaining(J)J
-Lcom/android/internal/os/BatteryStatsImpl;->computeBatteryUptime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->CREATOR:Landroid/os/Parcelable$Creator;
-Lcom/android/internal/os/BatteryStatsImpl;->getAwakeTimeBattery()J
-Lcom/android/internal/os/BatteryStatsImpl;->getAwakeTimePlugged()J
-Lcom/android/internal/os/BatteryStatsImpl;->getBatteryRealtime(J)J
-Lcom/android/internal/os/BatteryStatsImpl;->getDischargeAmount(I)I
-Lcom/android/internal/os/BatteryStatsImpl;->getDischargeAmountScreenOff()I
-Lcom/android/internal/os/BatteryStatsImpl;->getDischargeAmountScreenOn()I
-Lcom/android/internal/os/BatteryStatsImpl;->getDischargeCurrentLevel()I
-Lcom/android/internal/os/BatteryStatsImpl;->getDischargeStartLevel()I
-Lcom/android/internal/os/BatteryStatsImpl;->getGlobalWifiRunningTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getKernelWakelockStats()Ljava/util/Map;
-Lcom/android/internal/os/BatteryStatsImpl;->getMobileRadioActiveTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getNetworkActivityBytes(II)J
-Lcom/android/internal/os/BatteryStatsImpl;->getNextHistoryLocked(Landroid/os/BatteryStats$HistoryItem;)Z
-Lcom/android/internal/os/BatteryStatsImpl;->getPackageStatsLocked(ILjava/lang/String;)Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg;
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneDataConnectionCount(II)I
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneDataConnectionTime(IJI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneOnTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneSignalScanningTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneSignalStrengthCount(II)I
-Lcom/android/internal/os/BatteryStatsImpl;->getPhoneSignalStrengthTime(IJI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getProcessStatsLocked(ILjava/lang/String;)Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;
-Lcom/android/internal/os/BatteryStatsImpl;->getScreenBrightnessTime(IJI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->getServiceStatsLocked(ILjava/lang/String;Ljava/lang/String;)Lcom/android/internal/os/BatteryStatsImpl$Uid$Pkg$Serv;
-Lcom/android/internal/os/BatteryStatsImpl;->getUidStats()Landroid/util/SparseArray;
-Lcom/android/internal/os/BatteryStatsImpl;->getUidStatsLocked(I)Lcom/android/internal/os/BatteryStatsImpl$Uid;
-Lcom/android/internal/os/BatteryStatsImpl;->getWifiOnTime(JI)J
-Lcom/android/internal/os/BatteryStatsImpl;->isOnBattery()Z
-Lcom/android/internal/os/BatteryStatsImpl;->mFullTimers:Ljava/util/ArrayList;
-Lcom/android/internal/os/BatteryStatsImpl;->mPartialTimers:Ljava/util/ArrayList;
-Lcom/android/internal/os/BatteryStatsImpl;->mWindowTimers:Ljava/util/ArrayList;
-Lcom/android/internal/os/BatteryStatsImpl;->noteAudioOffLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteAudioOnLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteFullWifiLockAcquiredLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteFullWifiLockReleasedLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->notePhoneDataConnectionStateLocked(IZ)V
-Lcom/android/internal/os/BatteryStatsImpl;->notePhoneOffLocked()V
-Lcom/android/internal/os/BatteryStatsImpl;->notePhoneOnLocked()V
-Lcom/android/internal/os/BatteryStatsImpl;->notePhoneSignalStrengthLocked(Landroid/telephony/SignalStrength;)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteScreenBrightnessLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteUserActivityLocked(II)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteVideoOffLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteVideoOnLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteWifiMulticastDisabledLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->noteWifiMulticastEnabledLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->readLocked()V
-Lcom/android/internal/os/BatteryStatsImpl;->removeUidStatsLocked(I)V
-Lcom/android/internal/os/BatteryStatsImpl;->startIteratingHistoryLocked()Z
-Lcom/android/internal/os/FuseAppLoop;->onCommand(IJJJI[B)V
-Lcom/android/internal/os/FuseAppLoop;->onOpen(JJ)[B
-Lcom/android/internal/os/HandlerCaller;->obtainMessage(I)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->obtainMessageIO(IILjava/lang/Object;)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->obtainMessageIOO(IILjava/lang/Object;Ljava/lang/Object;)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->obtainMessageO(ILjava/lang/Object;)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->obtainMessageOO(ILjava/lang/Object;Ljava/lang/Object;)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->obtainMessageOOO(ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Landroid/os/Message;
-Lcom/android/internal/os/HandlerCaller;->sendMessage(Landroid/os/Message;)V
Lcom/android/internal/os/IDropBoxManagerService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/os/IDropBoxManagerService;
Lcom/android/internal/os/IDropBoxManagerService;->getNextEntry(Ljava/lang/String;J)Landroid/os/DropBoxManager$Entry;
-Lcom/android/internal/os/PowerProfile;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;)D
-Lcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;I)D
-Lcom/android/internal/os/PowerProfile;->getBatteryCapacity()D
-Lcom/android/internal/os/PowerProfile;->getNumCpuClusters()I
-Lcom/android/internal/os/PowerProfile;->getNumSpeedStepsInCpuCluster(I)I
-Lcom/android/internal/os/PowerProfile;->POWER_BLUETOOTH_AT_CMD:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_BLUETOOTH_ON:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_CPU_ACTIVE:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_CPU_IDLE:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_GPS_ON:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_RADIO_ACTIVE:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_RADIO_ON:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_RADIO_SCANNING:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_SCREEN_FULL:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_SCREEN_ON:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_WIFI_ACTIVE:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_WIFI_ON:Ljava/lang/String;
-Lcom/android/internal/os/PowerProfile;->POWER_WIFI_SCAN:Ljava/lang/String;
-Lcom/android/internal/os/SomeArgs;->arg1:Ljava/lang/Object;
-Lcom/android/internal/os/SomeArgs;->argi2:I
-Lcom/android/internal/os/SomeArgs;->argi3:I
Lcom/android/internal/policy/IKeyguardService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/policy/IKeyguardService;
Lcom/android/internal/policy/IKeyguardService;->doKeyguardTimeout(Landroid/os/Bundle;)V
Lcom/android/internal/policy/IKeyguardService;->setKeyguardEnabled(Z)V
@@ -3014,39 +2796,8 @@
Lcom/android/internal/telephony/SmsRawData;->CREATOR:Landroid/os/Parcelable$Creator;
Lcom/android/internal/telephony/SmsRawData;->getBytes()[B
Lcom/android/internal/textservice/ITextServicesManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
-Lcom/android/internal/util/AsyncChannel;->cmdToString(I)Ljava/lang/String;
-Lcom/android/internal/util/AsyncChannel;->CMD_CHANNEL_FULL_CONNECTION:I
-Lcom/android/internal/util/AsyncChannel;->CMD_CHANNEL_HALF_CONNECTED:I
-Lcom/android/internal/util/AsyncChannel;->connected(Landroid/content/Context;Landroid/os/Handler;Landroid/os/Messenger;)V
-Lcom/android/internal/util/AsyncChannel;->connectSync(Landroid/content/Context;Landroid/os/Handler;Landroid/os/Messenger;)I
-Lcom/android/internal/util/AsyncChannel;->disconnect()V
-Lcom/android/internal/util/AsyncChannel;->replyToMessage(Landroid/os/Message;I)V
-Lcom/android/internal/util/AsyncChannel;->replyToMessage(Landroid/os/Message;II)V
-Lcom/android/internal/util/AsyncChannel;->replyToMessage(Landroid/os/Message;IIILjava/lang/Object;)V
-Lcom/android/internal/util/AsyncChannel;->replyToMessage(Landroid/os/Message;ILjava/lang/Object;)V
-Lcom/android/internal/util/AsyncChannel;->replyToMessage(Landroid/os/Message;Landroid/os/Message;)V
-Lcom/android/internal/util/AsyncChannel;->sendMessage(I)V
-Lcom/android/internal/util/AsyncChannel;->sendMessage(II)V
-Lcom/android/internal/util/AsyncChannel;->sendMessage(III)V
-Lcom/android/internal/util/AsyncChannel;->sendMessage(IIILjava/lang/Object;)V
-Lcom/android/internal/util/AsyncChannel;->sendMessageSynchronously(III)Landroid/os/Message;
-Lcom/android/internal/util/AsyncChannel;->sendMessageSynchronously(Landroid/os/Message;)Landroid/os/Message;
-Lcom/android/internal/util/AsyncChannel;->STATUS_SUCCESSFUL:I
-Lcom/android/internal/util/FastPrintWriter;-><init>(Ljava/io/OutputStream;)V
Lcom/android/internal/util/HexDump;->toHexString([BZ)Ljava/lang/String;
-Lcom/android/internal/util/JournaledFile;-><init>(Ljava/io/File;Ljava/io/File;)V
-Lcom/android/internal/util/JournaledFile;->chooseForRead()Ljava/io/File;
-Lcom/android/internal/util/JournaledFile;->chooseForWrite()Ljava/io/File;
-Lcom/android/internal/util/JournaledFile;->commit()V
-Lcom/android/internal/util/JournaledFile;->rollback()V
-Lcom/android/internal/util/XmlUtils;->convertValueToBoolean(Ljava/lang/CharSequence;Z)Z
-Lcom/android/internal/util/XmlUtils;->convertValueToInt(Ljava/lang/CharSequence;I)I
-Lcom/android/internal/util/XmlUtils;->readMapXml(Ljava/io/InputStream;)Ljava/util/HashMap;
-Lcom/android/internal/util/XmlUtils;->skipCurrentTag(Lorg/xmlpull/v1/XmlPullParser;)V
-Lcom/android/internal/util/XmlUtils;->writeMapXml(Ljava/util/Map;Ljava/io/OutputStream;)V
Lcom/android/internal/view/BaseIWindow;-><init>()V
-Lcom/android/internal/view/IInputConnectionWrapper;->mInputConnection:Landroid/view/inputmethod/InputConnection;
-Lcom/android/internal/view/IInputConnectionWrapper;->mLock:Ljava/lang/Object;
Lcom/android/internal/view/IInputMethod$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/view/IInputMethod;
Lcom/android/internal/view/IInputMethod;->attachToken(Landroid/os/IBinder;)V
Lcom/android/internal/view/IInputMethod;->bindInput(Landroid/view/inputmethod/InputBinding;)V
@@ -3063,53 +2814,6 @@
Lcom/android/internal/view/IInputMethodManager;->addClient(Lcom/android/internal/view/IInputMethodClient;Lcom/android/internal/view/IInputContext;II)V
Lcom/android/internal/view/IInputMethodManager;->removeClient(Lcom/android/internal/view/IInputMethodClient;)V
Lcom/android/internal/view/IInputMethodSession$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/view/IInputMethodSession;
-Lcom/android/internal/view/InputBindResult;->CREATOR:Landroid/os/Parcelable$Creator;
-Lcom/android/internal/view/InputBindResult;->method:Lcom/android/internal/view/IInputMethodSession;
-Lcom/android/internal/view/menu/ActionMenuItemView;->hasText()Z
-Lcom/android/internal/view/menu/MenuBuilder$Callback;->onMenuItemSelected(Lcom/android/internal/view/menu/MenuBuilder;Landroid/view/MenuItem;)Z
-Lcom/android/internal/view/menu/MenuBuilder$Callback;->onMenuModeChange(Lcom/android/internal/view/menu/MenuBuilder;)V
-Lcom/android/internal/view/menu/MenuBuilder;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/view/menu/MenuBuilder;->addMenuPresenter(Lcom/android/internal/view/menu/MenuPresenter;)V
-Lcom/android/internal/view/menu/MenuBuilder;->addMenuPresenter(Lcom/android/internal/view/menu/MenuPresenter;Landroid/content/Context;)V
-Lcom/android/internal/view/menu/MenuBuilder;->collapseItemActionView(Lcom/android/internal/view/menu/MenuItemImpl;)Z
-Lcom/android/internal/view/menu/MenuBuilder;->getContext()Landroid/content/Context;
-Lcom/android/internal/view/menu/MenuBuilder;->getHeaderIcon()Landroid/graphics/drawable/Drawable;
-Lcom/android/internal/view/menu/MenuBuilder;->getHeaderTitle()Ljava/lang/CharSequence;
-Lcom/android/internal/view/menu/MenuBuilder;->getNonActionItems()Ljava/util/ArrayList;
-Lcom/android/internal/view/menu/MenuBuilder;->getRootMenu()Lcom/android/internal/view/menu/MenuBuilder;
-Lcom/android/internal/view/menu/MenuBuilder;->getVisibleItems()Ljava/util/ArrayList;
-Lcom/android/internal/view/menu/MenuBuilder;->mContext:Landroid/content/Context;
-Lcom/android/internal/view/menu/MenuBuilder;->removeMenuPresenter(Lcom/android/internal/view/menu/MenuPresenter;)V
-Lcom/android/internal/view/menu/MenuBuilder;->setCallback(Lcom/android/internal/view/menu/MenuBuilder$Callback;)V
-Lcom/android/internal/view/menu/MenuBuilder;->setCurrentMenuInfo(Landroid/view/ContextMenu$ContextMenuInfo;)V
-Lcom/android/internal/view/menu/MenuBuilder;->setDefaultShowAsAction(I)Lcom/android/internal/view/menu/MenuBuilder;
-Lcom/android/internal/view/menu/MenuBuilder;->setOptionalIconsVisible(Z)V
-Lcom/android/internal/view/menu/MenuBuilder;->startDispatchingItemsChanged()V
-Lcom/android/internal/view/menu/MenuBuilder;->stopDispatchingItemsChanged()V
-Lcom/android/internal/view/menu/MenuItemImpl;->invoke()Z
-Lcom/android/internal/view/menu/MenuItemImpl;->isActionButton()Z
-Lcom/android/internal/view/menu/MenuItemImpl;->mIconResId:I
-Lcom/android/internal/view/menu/MenuItemImpl;->requestsActionButton()Z
-Lcom/android/internal/view/menu/MenuItemImpl;->requiresActionButton()Z
-Lcom/android/internal/view/menu/MenuItemImpl;->setActionViewExpanded(Z)V
-Lcom/android/internal/view/menu/MenuItemImpl;->setExclusiveCheckable(Z)V
-Lcom/android/internal/view/menu/MenuItemImpl;->setMenuInfo(Landroid/view/ContextMenu$ContextMenuInfo;)V
-Lcom/android/internal/view/menu/MenuPopupHelper;-><init>(Landroid/content/Context;Lcom/android/internal/view/menu/MenuBuilder;)V
-Lcom/android/internal/view/menu/MenuPopupHelper;-><init>(Landroid/content/Context;Lcom/android/internal/view/menu/MenuBuilder;Landroid/view/View;)V
-Lcom/android/internal/view/menu/MenuPopupHelper;->dismiss()V
-Lcom/android/internal/view/menu/MenuPopupHelper;->getPopup()Lcom/android/internal/view/menu/MenuPopup;
-Lcom/android/internal/view/menu/MenuPopupHelper;->mForceShowIcon:Z
-Lcom/android/internal/view/menu/MenuPopupHelper;->setAnchorView(Landroid/view/View;)V
-Lcom/android/internal/view/menu/MenuPopupHelper;->setForceShowIcon(Z)V
-Lcom/android/internal/view/menu/MenuPopupHelper;->setGravity(I)V
-Lcom/android/internal/view/menu/MenuPopupHelper;->show()V
-Lcom/android/internal/view/menu/MenuPopupHelper;->tryShow()Z
-Lcom/android/internal/view/menu/MenuPresenter$Callback;->onOpenSubMenu(Lcom/android/internal/view/menu/MenuBuilder;)Z
-Lcom/android/internal/view/menu/MenuView$ItemView;->getItemData()Lcom/android/internal/view/menu/MenuItemImpl;
-Lcom/android/internal/view/menu/MenuView;->getWindowAnimations()I
-Lcom/android/internal/view/menu/SubMenuBuilder;->getRootMenu()Lcom/android/internal/view/menu/MenuBuilder;
-Lcom/android/internal/view/menu/SubMenuBuilder;->setCallback(Lcom/android/internal/view/menu/MenuBuilder$Callback;)V
-Lcom/android/internal/widget/CachingIconView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
Lcom/android/internal/widget/ILockSettings$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/widget/ILockSettings;
Lcom/android/internal/widget/ILockSettings;->getBoolean(Ljava/lang/String;ZI)Z
Lcom/android/internal/widget/ILockSettings;->getLong(Ljava/lang/String;JI)J
@@ -3129,16 +2833,6 @@
Lcom/android/internal/widget/IRemoteViewsFactory;->isCreated()Z
Lcom/android/internal/widget/IRemoteViewsFactory;->onDataSetChanged()V
Lcom/android/internal/widget/ScrollBarUtils;->getThumbLength(IIII)I
-Lcom/android/internal/widget/ScrollingTabContainerView;-><init>(Landroid/content/Context;)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->addTab(Landroid/app/ActionBar$Tab;IZ)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->addTab(Landroid/app/ActionBar$Tab;Z)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->animateToTab(I)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->animateToVisibility(I)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->removeAllTabs()V
-Lcom/android/internal/widget/ScrollingTabContainerView;->removeTabAt(I)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->setAllowCollapse(Z)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->setTabSelected(I)V
-Lcom/android/internal/widget/ScrollingTabContainerView;->updateTab(I)V
Lcom/android/okhttp/Connection;->getSocket()Ljava/net/Socket;
Lcom/android/okhttp/ConnectionPool;->connections:Ljava/util/Deque;
Lcom/android/okhttp/ConnectionPool;->keepAliveDurationNs:J
diff --git a/config/hiddenapi-vendor-list.txt b/config/hiddenapi-vendor-list.txt
index 415fc56..3c38da8 100644
--- a/config/hiddenapi-vendor-list.txt
+++ b/config/hiddenapi-vendor-list.txt
@@ -333,19 +333,8 @@
Lcom/android/ims/internal/uce/uceservice/IUceService;->isServiceStarted()Z
Lcom/android/ims/internal/uce/uceservice/IUceService;->startService(Lcom/android/ims/internal/uce/uceservice/IUceListener;)Z
Lcom/android/ims/internal/uce/uceservice/IUceService;->stopService()Z
-Lcom/android/internal/app/AlertController$AlertParams;->mIconId:I
-Lcom/android/internal/app/AlertController$AlertParams;->mMessage:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mNegativeButtonListener:Landroid/content/DialogInterface$OnClickListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mNegativeButtonText:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mPositiveButtonListener:Landroid/content/DialogInterface$OnClickListener;
-Lcom/android/internal/app/AlertController$AlertParams;->mPositiveButtonText:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mTitle:Ljava/lang/CharSequence;
-Lcom/android/internal/app/AlertController$AlertParams;->mView:Landroid/view/View;
-Lcom/android/internal/app/AlertController;->getButton(I)Landroid/widget/Button;
Lcom/android/internal/app/IAppOpsService;->finishOperation(Landroid/os/IBinder;IILjava/lang/String;)V
Lcom/android/internal/content/PackageMonitor;-><init>()V
-Lcom/android/internal/content/PackageMonitor;->register(Landroid/content/Context;Landroid/os/Looper;Landroid/os/UserHandle;Z)V
-Lcom/android/internal/content/PackageMonitor;->unregister()V
Lcom/android/internal/location/ILocationProvider$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/location/ILocationProvider;
Lcom/android/internal/location/ILocationProvider;->disable()V
Lcom/android/internal/location/ILocationProvider;->enable()V
@@ -354,14 +343,6 @@
Lcom/android/internal/location/ILocationProvider;->getStatusUpdateTime()J
Lcom/android/internal/location/ILocationProvider;->sendExtraCommand(Ljava/lang/String;Landroid/os/Bundle;)Z
Lcom/android/internal/location/ILocationProvider;->setRequest(Lcom/android/internal/location/ProviderRequest;Landroid/os/WorkSource;)V
-Lcom/android/internal/location/ProviderRequest;-><init>()V
-Lcom/android/internal/location/ProviderRequest;->interval:J
-Lcom/android/internal/location/ProviderRequest;->locationRequests:Ljava/util/List;
-Lcom/android/internal/location/ProviderRequest;->reportLocation:Z
-Lcom/android/internal/os/SomeArgs;->arg2:Ljava/lang/Object;
-Lcom/android/internal/os/SomeArgs;->arg3:Ljava/lang/Object;
-Lcom/android/internal/os/SomeArgs;->obtain()Lcom/android/internal/os/SomeArgs;
-Lcom/android/internal/os/SomeArgs;->recycle()V
Lcom/android/internal/R$styleable;->NumberPicker:[I
Lcom/android/internal/R$styleable;->TwoLineListItem:[I
Lcom/android/internal/telephony/GsmAlphabet;->gsm7BitPackedToString([BII)Ljava/lang/String;
@@ -375,14 +356,6 @@
Lcom/android/internal/telephony/OperatorInfo;->getOperatorAlphaShort()Ljava/lang/String;
Lcom/android/internal/telephony/OperatorInfo;->getOperatorNumeric()Ljava/lang/String;
Lcom/android/internal/telephony/OperatorInfo;->getState()Lcom/android/internal/telephony/OperatorInfo$State;
-Lcom/android/internal/util/AsyncChannel;-><init>()V
-Lcom/android/internal/util/AsyncChannel;->connect(Landroid/content/Context;Landroid/os/Handler;Landroid/os/Messenger;)V
-Lcom/android/internal/util/AsyncChannel;->sendMessage(Landroid/os/Message;)V
-Lcom/android/internal/util/IndentingPrintWriter;-><init>(Ljava/io/Writer;Ljava/lang/String;)V
-Lcom/android/internal/util/IndentingPrintWriter;->decreaseIndent()Lcom/android/internal/util/IndentingPrintWriter;
-Lcom/android/internal/util/IndentingPrintWriter;->increaseIndent()Lcom/android/internal/util/IndentingPrintWriter;
-Lcom/android/internal/util/XmlUtils;->beginDocument(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)V
-Lcom/android/internal/util/XmlUtils;->nextElement(Lorg/xmlpull/v1/XmlPullParser;)V
Ljava/lang/System;->arraycopy([BI[BII)V
Ljava/net/Inet4Address;->ALL:Ljava/net/InetAddress;
Ljava/net/Inet4Address;->ANY:Ljava/net/InetAddress;
diff --git a/core/java/com/android/internal/app/AlertController.java b/core/java/com/android/internal/app/AlertController.java
index 7321721..d7031ea 100644
--- a/core/java/com/android/internal/app/AlertController.java
+++ b/core/java/com/android/internal/app/AlertController.java
@@ -21,6 +21,7 @@
import com.android.internal.R;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
@@ -71,9 +72,11 @@
private final DialogInterface mDialogInterface;
protected final Window mWindow;
+ @UnsupportedAppUsage
private CharSequence mTitle;
protected CharSequence mMessage;
protected ListView mListView;
+ @UnsupportedAppUsage
private View mView;
private int mViewLayoutResId;
@@ -107,8 +110,10 @@
private MovementMethod mMessageMovementMethod;
@Layout.HyphenationFrequency
private Integer mMessageHyphenationFrequency;
+ @UnsupportedAppUsage
private View mCustomTitleView;
+ @UnsupportedAppUsage
private boolean mForceInverseBackground;
private ListAdapter mAdapter;
@@ -198,6 +203,7 @@
}
}
+ @UnsupportedAppUsage
protected AlertController(Context context, DialogInterface di, Window window) {
mContext = context;
mDialogInterface = di;
@@ -258,6 +264,7 @@
installContent();
}
+ @UnsupportedAppUsage
public void installContent() {
int contentView = selectContentView();
mWindow.setContentView(contentView);
@@ -275,6 +282,7 @@
return mAlertDialogLayout;
}
+ @UnsupportedAppUsage
public void setTitle(CharSequence title) {
mTitle = title;
if (mTitleView != null) {
@@ -285,10 +293,12 @@
/**
* @see AlertDialog.Builder#setCustomTitle(View)
*/
+ @UnsupportedAppUsage
public void setCustomTitle(View customTitleView) {
mCustomTitleView = customTitleView;
}
+ @UnsupportedAppUsage
public void setMessage(CharSequence message) {
mMessage = message;
if (mMessageView != null) {
@@ -323,6 +333,7 @@
/**
* Set the view to display in the dialog.
*/
+ @UnsupportedAppUsage
public void setView(View view) {
mView = view;
mViewLayoutResId = 0;
@@ -362,6 +373,7 @@
* @param listener The {@link DialogInterface.OnClickListener} to use.
* @param msg The {@link Message} to be sent when clicked.
*/
+ @UnsupportedAppUsage
public void setButton(int whichButton, CharSequence text,
DialogInterface.OnClickListener listener, Message msg) {
@@ -397,6 +409,7 @@
* @param resId the resource identifier of the drawable to use as the icon,
* or 0 for no icon
*/
+ @UnsupportedAppUsage
public void setIcon(int resId) {
mIcon = null;
mIconId = resId;
@@ -416,6 +429,7 @@
*
* @param icon the drawable to use as the icon or null for no icon
*/
+ @UnsupportedAppUsage
public void setIcon(Drawable icon) {
mIcon = icon;
mIconId = 0;
@@ -446,10 +460,12 @@
mForceInverseBackground = forceInverseBackground;
}
+ @UnsupportedAppUsage
public ListView getListView() {
return mListView;
}
+ @UnsupportedAppUsage
public Button getButton(int whichButton) {
switch (whichButton) {
case DialogInterface.BUTTON_POSITIVE:
@@ -464,11 +480,13 @@
}
@SuppressWarnings({"UnusedDeclaration"})
+ @UnsupportedAppUsage
public boolean onKeyDown(int keyCode, KeyEvent event) {
return mScrollView != null && mScrollView.executeKeyEvent(event);
}
@SuppressWarnings({"UnusedDeclaration"})
+ @UnsupportedAppUsage
public boolean onKeyUp(int keyCode, KeyEvent event) {
return mScrollView != null && mScrollView.executeKeyEvent(event);
}
@@ -932,10 +950,12 @@
boolean mRecycleOnMeasure = true;
+ @UnsupportedAppUsage
public RecycleListView(Context context) {
this(context, null);
}
+ @UnsupportedAppUsage
public RecycleListView(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -964,44 +984,74 @@
}
public static class AlertParams {
+ @UnsupportedAppUsage
public final Context mContext;
+ @UnsupportedAppUsage
public final LayoutInflater mInflater;
+ @UnsupportedAppUsage
public int mIconId = 0;
+ @UnsupportedAppUsage
public Drawable mIcon;
public int mIconAttrId = 0;
+ @UnsupportedAppUsage
public CharSequence mTitle;
+ @UnsupportedAppUsage
public View mCustomTitleView;
+ @UnsupportedAppUsage
public CharSequence mMessage;
+ @UnsupportedAppUsage
public CharSequence mPositiveButtonText;
+ @UnsupportedAppUsage
public DialogInterface.OnClickListener mPositiveButtonListener;
+ @UnsupportedAppUsage
public CharSequence mNegativeButtonText;
+ @UnsupportedAppUsage
public DialogInterface.OnClickListener mNegativeButtonListener;
+ @UnsupportedAppUsage
public CharSequence mNeutralButtonText;
+ @UnsupportedAppUsage
public DialogInterface.OnClickListener mNeutralButtonListener;
+ @UnsupportedAppUsage
public boolean mCancelable;
+ @UnsupportedAppUsage
public DialogInterface.OnCancelListener mOnCancelListener;
+ @UnsupportedAppUsage
public DialogInterface.OnDismissListener mOnDismissListener;
+ @UnsupportedAppUsage
public DialogInterface.OnKeyListener mOnKeyListener;
+ @UnsupportedAppUsage
public CharSequence[] mItems;
+ @UnsupportedAppUsage
public ListAdapter mAdapter;
+ @UnsupportedAppUsage
public DialogInterface.OnClickListener mOnClickListener;
public int mViewLayoutResId;
+ @UnsupportedAppUsage
public View mView;
public int mViewSpacingLeft;
public int mViewSpacingTop;
public int mViewSpacingRight;
public int mViewSpacingBottom;
public boolean mViewSpacingSpecified = false;
+ @UnsupportedAppUsage
public boolean[] mCheckedItems;
+ @UnsupportedAppUsage
public boolean mIsMultiChoice;
+ @UnsupportedAppUsage
public boolean mIsSingleChoice;
+ @UnsupportedAppUsage
public int mCheckedItem = -1;
+ @UnsupportedAppUsage
public DialogInterface.OnMultiChoiceClickListener mOnCheckboxClickListener;
+ @UnsupportedAppUsage
public Cursor mCursor;
+ @UnsupportedAppUsage
public String mLabelColumn;
+ @UnsupportedAppUsage
public String mIsCheckedColumn;
public boolean mForceInverseBackground;
+ @UnsupportedAppUsage
public AdapterView.OnItemSelectedListener mOnItemSelectedListener;
public OnPrepareListViewListener mOnPrepareListViewListener;
public boolean mRecycleOnMeasure = true;
@@ -1019,12 +1069,14 @@
void onPrepareListView(ListView listView);
}
+ @UnsupportedAppUsage
public AlertParams(Context context) {
mContext = context;
mCancelable = true;
mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}
+ @UnsupportedAppUsage
public void apply(AlertController dialog) {
if (mCustomTitleView != null) {
dialog.setCustomTitle(mCustomTitleView);
diff --git a/core/java/com/android/internal/content/PackageMonitor.java b/core/java/com/android/internal/content/PackageMonitor.java
index 3f8fd9b..c928f3f 100644
--- a/core/java/com/android/internal/content/PackageMonitor.java
+++ b/core/java/com/android/internal/content/PackageMonitor.java
@@ -16,6 +16,7 @@
package com.android.internal.content;
+import android.annotation.UnsupportedAppUsage;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
@@ -70,10 +71,12 @@
String[] mTempArray = new String[1];
+ @UnsupportedAppUsage
public void register(Context context, Looper thread, boolean externalStorage) {
register(context, thread, null, externalStorage);
}
+ @UnsupportedAppUsage
public void register(Context context, Looper thread, UserHandle user,
boolean externalStorage) {
register(context, user, externalStorage,
@@ -107,6 +110,7 @@
return mRegisteredHandler;
}
+ @UnsupportedAppUsage
public void unregister() {
if (mRegisteredContext == null) {
throw new IllegalStateException("Not registered");
@@ -134,6 +138,7 @@
/**
* Called when a package is really removed (and not replaced).
*/
+ @UnsupportedAppUsage
public void onPackageRemoved(String packageName, int uid) {
}
@@ -167,6 +172,7 @@
* default implementation returns true if this is a change to the entire
* package.
*/
+ @UnsupportedAppUsage
public boolean onPackageChanged(String packageName, int uid, String[] components) {
if (components != null) {
for (String name : components) {
@@ -246,6 +252,7 @@
return mAppearingPackages != null;
}
+ @UnsupportedAppUsage
public int isPackageDisappearing(String packageName) {
if (mDisappearingPackages != null) {
for (int i=mDisappearingPackages.length-1; i>=0; i--) {
@@ -265,6 +272,7 @@
return mChangeType == PACKAGE_UPDATING;
}
+ @UnsupportedAppUsage
public boolean isPackageModified(String packageName) {
if (mModifiedPackages != null) {
for (int i=mModifiedPackages.length-1; i>=0; i--) {
diff --git a/core/java/com/android/internal/content/ReferrerIntent.java b/core/java/com/android/internal/content/ReferrerIntent.java
index 76dcc9b..6d05f7e 100644
--- a/core/java/com/android/internal/content/ReferrerIntent.java
+++ b/core/java/com/android/internal/content/ReferrerIntent.java
@@ -16,6 +16,7 @@
package com.android.internal.content;
+import android.annotation.UnsupportedAppUsage;
import android.content.Intent;
import android.os.Parcel;
@@ -25,8 +26,10 @@
* Subclass of Intent that also contains referrer (as a package name) information.
*/
public class ReferrerIntent extends Intent {
+ @UnsupportedAppUsage
public final String mReferrer;
+ @UnsupportedAppUsage
public ReferrerIntent(Intent baseIntent, String referrer) {
super(baseIntent);
mReferrer = referrer;
diff --git a/core/java/com/android/internal/logging/MetricsLogger.java b/core/java/com/android/internal/logging/MetricsLogger.java
index a482929..e99e39e 100644
--- a/core/java/com/android/internal/logging/MetricsLogger.java
+++ b/core/java/com/android/internal/logging/MetricsLogger.java
@@ -15,6 +15,7 @@
*/
package com.android.internal.logging;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.metrics.LogMaker;
import android.os.Build;
@@ -47,6 +48,7 @@
public static final int VIEW_UNKNOWN = MetricsEvent.VIEW_UNKNOWN;
public static final int LOGTAG = EventLogTags.SYSUI_MULTI_ACTION;
+ @UnsupportedAppUsage
public void write(LogMaker content) {
if (content.getType() == MetricsEvent.TYPE_UNKNOWN) {
content.setType(MetricsEvent.TYPE_ACTION);
diff --git a/core/java/com/android/internal/net/LegacyVpnInfo.java b/core/java/com/android/internal/net/LegacyVpnInfo.java
index d6f6d0b..9ee9710 100644
--- a/core/java/com/android/internal/net/LegacyVpnInfo.java
+++ b/core/java/com/android/internal/net/LegacyVpnInfo.java
@@ -16,6 +16,7 @@
package com.android.internal.net;
+import android.annotation.UnsupportedAppUsage;
import android.app.PendingIntent;
import android.net.NetworkInfo;
import android.os.Parcel;
@@ -38,7 +39,9 @@
public static final int STATE_TIMEOUT = 4;
public static final int STATE_FAILED = 5;
+ @UnsupportedAppUsage
public String key;
+ @UnsupportedAppUsage
public int state = -1;
public PendingIntent intent;
@@ -54,6 +57,7 @@
out.writeParcelable(intent, flags);
}
+ @UnsupportedAppUsage
public static final Parcelable.Creator<LegacyVpnInfo> CREATOR =
new Parcelable.Creator<LegacyVpnInfo>() {
@Override
diff --git a/core/java/com/android/internal/net/VpnConfig.java b/core/java/com/android/internal/net/VpnConfig.java
index 5ce5bcd..fd03b3f 100644
--- a/core/java/com/android/internal/net/VpnConfig.java
+++ b/core/java/com/android/internal/net/VpnConfig.java
@@ -16,6 +16,7 @@
package com.android.internal.net;
+import android.annotation.UnsupportedAppUsage;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
diff --git a/core/java/com/android/internal/net/VpnProfile.java b/core/java/com/android/internal/net/VpnProfile.java
index b46bfef..bc4b5fe 100644
--- a/core/java/com/android/internal/net/VpnProfile.java
+++ b/core/java/com/android/internal/net/VpnProfile.java
@@ -16,6 +16,7 @@
package com.android.internal.net;
+import android.annotation.UnsupportedAppUsage;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
@@ -45,10 +46,15 @@
public static final int TYPE_MAX = 5;
// Entity fields.
+ @UnsupportedAppUsage
public final String key; // -1
+ @UnsupportedAppUsage
public String name = ""; // 0
+ @UnsupportedAppUsage
public int type = TYPE_PPTP; // 1
+ @UnsupportedAppUsage
public String server = ""; // 2
+ @UnsupportedAppUsage
public String username = ""; // 3
public String password = ""; // 4
public String dnsServers = ""; // 5
@@ -63,12 +69,14 @@
public String ipsecServerCert = "";// 14
// Helper fields.
+ @UnsupportedAppUsage
public boolean saveLogin = false;
public VpnProfile(String key) {
this.key = key;
}
+ @UnsupportedAppUsage
public VpnProfile(Parcel in) {
key = in.readString();
name = in.readString();
@@ -110,6 +118,7 @@
out.writeInt(saveLogin ? 1 : 0);
}
+ @UnsupportedAppUsage
public static VpnProfile decode(String key, byte[] value) {
try {
if (key == null) {
diff --git a/core/java/com/android/internal/os/AtomicFile.java b/core/java/com/android/internal/os/AtomicFile.java
index 5a83f33..e177fe3 100644
--- a/core/java/com/android/internal/os/AtomicFile.java
+++ b/core/java/com/android/internal/os/AtomicFile.java
@@ -16,6 +16,7 @@
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
import android.os.FileUtils;
import android.util.Log;
@@ -44,15 +45,18 @@
private final File mBaseName;
private final File mBackupName;
+ @UnsupportedAppUsage
public AtomicFile(File baseName) {
mBaseName = baseName;
mBackupName = new File(baseName.getPath() + ".bak");
}
+ @UnsupportedAppUsage
public File getBaseFile() {
return mBaseName;
}
+ @UnsupportedAppUsage
public FileOutputStream startWrite() throws IOException {
// Rename the current file so it may be used as a backup during the next read
if (mBaseName.exists()) {
@@ -86,6 +90,7 @@
return str;
}
+ @UnsupportedAppUsage
public void finishWrite(FileOutputStream str) {
if (str != null) {
FileUtils.sync(str);
@@ -98,6 +103,7 @@
}
}
+ @UnsupportedAppUsage
public void failWrite(FileOutputStream str) {
if (str != null) {
FileUtils.sync(str);
@@ -111,6 +117,7 @@
}
}
+ @UnsupportedAppUsage
public FileOutputStream openAppend() throws IOException {
try {
return new FileOutputStream(mBaseName, true);
@@ -119,6 +126,7 @@
}
}
+ @UnsupportedAppUsage
public void truncate() throws IOException {
try {
FileOutputStream fos = new FileOutputStream(mBaseName);
@@ -139,6 +147,7 @@
mBackupName.delete();
}
+ @UnsupportedAppUsage
public FileInputStream openRead() throws FileNotFoundException {
if (mBackupName.exists()) {
mBaseName.delete();
@@ -147,6 +156,7 @@
return new FileInputStream(mBaseName);
}
+ @UnsupportedAppUsage
public byte[] readFully() throws IOException {
FileInputStream stream = openRead();
try {
diff --git a/core/java/com/android/internal/os/BatterySipper.java b/core/java/com/android/internal/os/BatterySipper.java
index 5abc6d4..0baf73c 100644
--- a/core/java/com/android/internal/os/BatterySipper.java
+++ b/core/java/com/android/internal/os/BatterySipper.java
@@ -15,6 +15,7 @@
*/
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
import android.os.BatteryStats.Uid;
import java.util.List;
@@ -23,8 +24,11 @@
* Contains power usage of an application, system service, or hardware type.
*/
public class BatterySipper implements Comparable<BatterySipper> {
+ @UnsupportedAppUsage
public int userId;
+ @UnsupportedAppUsage
public Uid uidObj;
+ @UnsupportedAppUsage
public DrainType drainType;
/**
@@ -53,6 +57,7 @@
/**
* Total power before smearing
*/
+ @UnsupportedAppUsage
public double totalPowerMah;
/**
@@ -65,6 +70,7 @@
/**
* Generic usage time in milliseconds.
*/
+ @UnsupportedAppUsage
public long usageTimeMs;
/**
@@ -76,12 +82,17 @@
public long audioTimeMs;
public long bluetoothRunningTimeMs;
public long cameraTimeMs;
+ @UnsupportedAppUsage
public long cpuFgTimeMs;
+ @UnsupportedAppUsage
public long cpuTimeMs;
public long flashlightTimeMs;
+ @UnsupportedAppUsage
public long gpsTimeMs;
public long videoTimeMs;
+ @UnsupportedAppUsage
public long wakeLockTimeMs;
+ @UnsupportedAppUsage
public long wifiRunningTimeMs;
public long mobileRxPackets;
@@ -99,7 +110,9 @@
public long btTxBytes;
public double percent;
public double noCoveragePercent;
+ @UnsupportedAppUsage
public String[] mPackages;
+ @UnsupportedAppUsage
public String packageWithHighestDrain;
// Measured in mAh (milli-ampere per hour).
@@ -107,6 +120,7 @@
public double audioPowerMah;
public double bluetoothPowerMah;
public double cameraPowerMah;
+ @UnsupportedAppUsage
public double cpuPowerMah;
public double flashlightPowerMah;
public double gpsPowerMah;
@@ -118,6 +132,7 @@
public enum DrainType {
AMBIENT_DISPLAY,
+ @UnsupportedAppUsage
APP,
BLUETOOTH,
CAMERA,
@@ -133,6 +148,7 @@
WIFI,
}
+ @UnsupportedAppUsage
public BatterySipper(DrainType drainType, Uid uid, double value) {
this.totalPowerMah = value;
this.drainType = drainType;
@@ -162,10 +178,12 @@
/**
* Gets a list of packages associated with the current user
*/
+ @UnsupportedAppUsage
public String[] getPackages() {
return mPackages;
}
+ @UnsupportedAppUsage
public int getUid() {
// Bail out if the current sipper is not an App sipper.
if (uidObj == null) {
@@ -177,6 +195,7 @@
/**
* Add stats from other to this BatterySipper.
*/
+ @UnsupportedAppUsage
public void add(BatterySipper other) {
totalPowerMah += other.totalPowerMah;
usageTimeMs += other.usageTimeMs;
diff --git a/core/java/com/android/internal/os/BatteryStatsHelper.java b/core/java/com/android/internal/os/BatteryStatsHelper.java
index 061011b..ead98e7 100644
--- a/core/java/com/android/internal/os/BatteryStatsHelper.java
+++ b/core/java/com/android/internal/os/BatteryStatsHelper.java
@@ -16,6 +16,7 @@
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
@@ -75,9 +76,11 @@
final private boolean mCollectBatteryBroadcast;
final private boolean mWifiOnly;
+ @UnsupportedAppUsage
private IBatteryStats mBatteryInfo;
private BatteryStats mStats;
private Intent mBatteryBroadcast;
+ @UnsupportedAppUsage
private PowerProfile mPowerProfile;
private String[] mSystemPackageArray;
@@ -87,6 +90,7 @@
/**
* List of apps using power.
*/
+ @UnsupportedAppUsage
private final List<BatterySipper> mUsageList = new ArrayList<>();
/**
@@ -166,14 +170,17 @@
profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX) != 0;
}
+ @UnsupportedAppUsage
public BatteryStatsHelper(Context context) {
this(context, true);
}
+ @UnsupportedAppUsage
public BatteryStatsHelper(Context context, boolean collectBatteryBroadcast) {
this(context, collectBatteryBroadcast, checkWifiOnly(context));
}
+ @UnsupportedAppUsage
public BatteryStatsHelper(Context context, boolean collectBatteryBroadcast, boolean wifiOnly) {
mContext = context;
mCollectBatteryBroadcast = collectBatteryBroadcast;
@@ -241,6 +248,7 @@
ServiceManager.getService(BatteryStats.SERVICE_NAME)));
}
+ @UnsupportedAppUsage
public static void dropFile(Context context, String fname) {
makeFilePath(context, fname).delete();
}
@@ -250,10 +258,12 @@
}
/** Clears the current stats and forces recreating for future use. */
+ @UnsupportedAppUsage
public void clearStats() {
mStats = null;
}
+ @UnsupportedAppUsage
public BatteryStats getStats() {
if (mStats == null) {
load();
@@ -261,6 +271,7 @@
return mStats;
}
+ @UnsupportedAppUsage
public Intent getBatteryBroadcast() {
if (mBatteryBroadcast == null && mCollectBatteryBroadcast) {
load();
@@ -277,6 +288,7 @@
mStats = stats;
}
+ @UnsupportedAppUsage
public void create(Bundle icicle) {
if (icicle != null) {
mStats = sStatsXfer;
@@ -287,6 +299,7 @@
mPowerProfile = new PowerProfile(mContext);
}
+ @UnsupportedAppUsage
public void storeState() {
sStatsXfer = mStats;
sBatteryBroadcastXfer = mBatteryBroadcast;
@@ -323,6 +336,7 @@
/**
* Refreshes the power usage list.
*/
+ @UnsupportedAppUsage
public void refreshStats(int statsType, int asUser) {
SparseArray<UserHandle> users = new SparseArray<>(1);
users.put(asUser, new UserHandle(asUser));
@@ -332,6 +346,7 @@
/**
* Refreshes the power usage list.
*/
+ @UnsupportedAppUsage
public void refreshStats(int statsType, List<UserHandle> asUsers) {
final int n = asUsers.size();
SparseArray<UserHandle> users = new SparseArray<>(n);
@@ -345,6 +360,7 @@
/**
* Refreshes the power usage list.
*/
+ @UnsupportedAppUsage
public void refreshStats(int statsType, SparseArray<UserHandle> asUsers) {
refreshStats(statsType, asUsers, SystemClock.elapsedRealtime() * 1000,
SystemClock.uptimeMillis() * 1000);
@@ -783,6 +799,7 @@
return bs;
}
+ @UnsupportedAppUsage
public List<BatterySipper> getUsageList() {
return mUsageList;
}
@@ -799,6 +816,7 @@
return mStatsType;
}
+ @UnsupportedAppUsage
public double getMaxPower() {
return mMaxPower;
}
@@ -807,6 +825,7 @@
return mMaxRealPower;
}
+ @UnsupportedAppUsage
public double getTotalPower() {
return mTotalPower;
}
@@ -1017,6 +1036,7 @@
mServicepackageArray = array;
}
+ @UnsupportedAppUsage
private void load() {
if (mBatteryInfo == null) {
return;
diff --git a/core/java/com/android/internal/os/BatteryStatsImpl.java b/core/java/com/android/internal/os/BatteryStatsImpl.java
index 50d3a56..e6dc352 100644
--- a/core/java/com/android/internal/os/BatteryStatsImpl.java
+++ b/core/java/com/android/internal/os/BatteryStatsImpl.java
@@ -18,6 +18,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.app.ActivityManager;
import android.bluetooth.BluetoothActivityEnergyInfo;
import android.bluetooth.UidTraffic;
@@ -610,8 +611,11 @@
// In order to do this, we must refresh each timer whenever the number of active timers
// changes.
@VisibleForTesting
+ @UnsupportedAppUsage
protected ArrayList<StopwatchTimer> mPartialTimers = new ArrayList<>();
+ @UnsupportedAppUsage
final ArrayList<StopwatchTimer> mFullTimers = new ArrayList<>();
+ @UnsupportedAppUsage
final ArrayList<StopwatchTimer> mWindowTimers = new ArrayList<>();
final ArrayList<StopwatchTimer> mDrawTimers = new ArrayList<>();
final SparseArray<ArrayList<StopwatchTimer>> mSensorTimers = new SparseArray<>();
@@ -989,6 +993,7 @@
*/
private final HashMap<String, SamplingTimer> mKernelWakelockStats = new HashMap<>();
+ @UnsupportedAppUsage
public Map<String, ? extends Timer> getKernelWakelockStats() {
return mKernelWakelockStats;
}
@@ -1271,6 +1276,7 @@
* State for keeping track of counting information.
*/
public static class Counter extends BatteryStats.Counter implements TimeBaseObs {
+ @UnsupportedAppUsage
final AtomicInteger mCount = new AtomicInteger();
final TimeBase mTimeBase;
int mLoadedCount;
@@ -1815,6 +1821,7 @@
* @param out the Parcel to be written to.
* @param timer a Timer, or null.
*/
+ @UnsupportedAppUsage
public static void writeTimerToParcel(Parcel out, Timer timer, long elapsedRealtimeUs) {
if (timer == null) {
out.writeInt(0); // indicates null
@@ -1826,6 +1833,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getTotalTimeLocked(long elapsedRealtimeUs, int which) {
long val = computeRunTimeLocked(mTimeBase.getRealtime(elapsedRealtimeUs));
if (which == STATS_SINCE_UNPLUGGED) {
@@ -1838,6 +1846,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getCountLocked(int which) {
int val = computeCurrentCountLocked();
if (which == STATS_SINCE_UNPLUGGED) {
@@ -2613,6 +2622,7 @@
}
@Override
+ @UnsupportedAppUsage
public void detach() {
super.detach();
if (mTimerPool != null) {
@@ -4973,6 +4983,7 @@
}
}
+ @UnsupportedAppUsage
public void noteScreenBrightnessLocked(int brightness) {
// Bin the brightness.
int bin = brightness / (256/NUM_SCREEN_BRIGHTNESS_BINS);
@@ -4996,6 +5007,7 @@
}
}
+ @UnsupportedAppUsage
public void noteUserActivityLocked(int uid, int event) {
if (mOnBatteryInternal) {
uid = mapUid(uid);
@@ -5232,6 +5244,7 @@
}
}
+ @UnsupportedAppUsage
public void notePhoneOnLocked() {
if (!mPhoneOn) {
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -5245,6 +5258,7 @@
}
}
+ @UnsupportedAppUsage
public void notePhoneOffLocked() {
if (mPhoneOn) {
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -5414,12 +5428,14 @@
updateAllPhoneStateLocked(state, simState, mPhoneSignalStrengthBinRaw);
}
+ @UnsupportedAppUsage
public void notePhoneSignalStrengthLocked(SignalStrength signalStrength) {
// Bin the strength.
int bin = signalStrength.getLevel();
updateAllPhoneStateLocked(mPhoneServiceStateRaw, mPhoneSimStateRaw, bin);
}
+ @UnsupportedAppUsage
public void notePhoneDataConnectionStateLocked(int dataType, boolean hasData) {
// BatteryStats uses 0 to represent no network type.
// Telephony does not have a concept of no network type, and uses 0 to represent unknown.
@@ -5478,6 +5494,7 @@
}
}
+ @UnsupportedAppUsage
public void noteAudioOnLocked(int uid) {
uid = mapUid(uid);
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -5493,6 +5510,7 @@
getUidStatsLocked(uid).noteAudioTurnedOnLocked(elapsedRealtime);
}
+ @UnsupportedAppUsage
public void noteAudioOffLocked(int uid) {
if (mAudioOnNesting == 0) {
return;
@@ -5510,6 +5528,7 @@
getUidStatsLocked(uid).noteAudioTurnedOffLocked(elapsedRealtime);
}
+ @UnsupportedAppUsage
public void noteVideoOnLocked(int uid) {
uid = mapUid(uid);
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -5525,6 +5544,7 @@
getUidStatsLocked(uid).noteVideoTurnedOnLocked(elapsedRealtime);
}
+ @UnsupportedAppUsage
public void noteVideoOffLocked(int uid) {
if (mVideoOnNesting == 0) {
return;
@@ -6002,6 +6022,7 @@
int mWifiFullLockNesting = 0;
+ @UnsupportedAppUsage
public void noteFullWifiLockAcquiredLocked(int uid) {
final long elapsedRealtime = mClocks.elapsedRealtime();
final long uptime = mClocks.uptimeMillis();
@@ -6015,6 +6036,7 @@
getUidStatsLocked(uid).noteFullWifiLockAcquiredLocked(elapsedRealtime);
}
+ @UnsupportedAppUsage
public void noteFullWifiLockReleasedLocked(int uid) {
final long elapsedRealtime = mClocks.elapsedRealtime();
final long uptime = mClocks.uptimeMillis();
@@ -6070,6 +6092,7 @@
int mWifiMulticastNesting = 0;
+ @UnsupportedAppUsage
public void noteWifiMulticastEnabledLocked(int uid) {
uid = mapUid(uid);
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -6090,6 +6113,7 @@
getUidStatsLocked(uid).noteWifiMulticastEnabledLocked(elapsedRealtime);
}
+ @UnsupportedAppUsage
public void noteWifiMulticastDisabledLocked(int uid) {
uid = mapUid(uid);
final long elapsedRealtime = mClocks.elapsedRealtime();
@@ -6286,6 +6310,7 @@
}
}
+ @UnsupportedAppUsage
@Override public long getScreenOnTime(long elapsedRealtimeUs, int which) {
return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
@@ -6302,6 +6327,7 @@
return mScreenDozeTimer.getCountLocked(which);
}
+ @UnsupportedAppUsage
@Override public long getScreenBrightnessTime(int brightnessBin,
long elapsedRealtimeUs, int which) {
return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked(
@@ -6411,6 +6437,7 @@
return (long) energyUsedMaMs;
}
+ @UnsupportedAppUsage
@Override public long getPhoneOnTime(long elapsedRealtimeUs, int which) {
return mPhoneOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
@@ -6419,12 +6446,14 @@
return mPhoneOnTimer.getCountLocked(which);
}
+ @UnsupportedAppUsage
@Override public long getPhoneSignalStrengthTime(int strengthBin,
long elapsedRealtimeUs, int which) {
return mPhoneSignalStrengthsTimer[strengthBin].getTotalTimeLocked(
elapsedRealtimeUs, which);
}
+ @UnsupportedAppUsage
@Override public long getPhoneSignalScanningTime(
long elapsedRealtimeUs, int which) {
return mPhoneSignalScanningTimer.getTotalTimeLocked(
@@ -6435,6 +6464,7 @@
return mPhoneSignalScanningTimer;
}
+ @UnsupportedAppUsage
@Override public int getPhoneSignalStrengthCount(int strengthBin, int which) {
return mPhoneSignalStrengthsTimer[strengthBin].getCountLocked(which);
}
@@ -6443,12 +6473,14 @@
return mPhoneSignalStrengthsTimer[strengthBin];
}
+ @UnsupportedAppUsage
@Override public long getPhoneDataConnectionTime(int dataType,
long elapsedRealtimeUs, int which) {
return mPhoneDataConnectionsTimer[dataType].getTotalTimeLocked(
elapsedRealtimeUs, which);
}
+ @UnsupportedAppUsage
@Override public int getPhoneDataConnectionCount(int dataType, int which) {
return mPhoneDataConnectionsTimer[dataType].getCountLocked(which);
}
@@ -6457,6 +6489,7 @@
return mPhoneDataConnectionsTimer[dataType];
}
+ @UnsupportedAppUsage
@Override public long getMobileRadioActiveTime(long elapsedRealtimeUs, int which) {
return mMobileRadioActiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
@@ -6487,6 +6520,7 @@
return mWifiMulticastWakelockTimer.getCountLocked(which);
}
+ @UnsupportedAppUsage
@Override public long getWifiOnTime(long elapsedRealtimeUs, int which) {
return mWifiOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
@@ -6495,6 +6529,7 @@
return mWifiActiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
+ @UnsupportedAppUsage
@Override public long getGlobalWifiRunningTime(long elapsedRealtimeUs, int which) {
return mGlobalWifiRunningTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
}
@@ -6592,6 +6627,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getNetworkActivityBytes(int type, int which) {
if (type >= 0 && type < mNetworkByteActivityCounters.length) {
return mNetworkByteActivityCounters[type].getCountLocked(which);
@@ -6634,6 +6670,7 @@
return mOnBattery;
}
+ @UnsupportedAppUsage
@Override public SparseArray<? extends BatteryStats.Uid> getUidStats() {
return mUidStats;
}
@@ -7017,6 +7054,7 @@
}
@Override
+ @UnsupportedAppUsage
public ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> getWakelockStats() {
return mWakelockStats.getMap();
}
@@ -7042,11 +7080,13 @@
}
@Override
+ @UnsupportedAppUsage
public SparseArray<? extends BatteryStats.Uid.Sensor> getSensorStats() {
return mSensorStats;
}
@Override
+ @UnsupportedAppUsage
public ArrayMap<String, ? extends BatteryStats.Uid.Proc> getProcessStats() {
return mProcessStats;
}
@@ -7057,6 +7097,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getUid() {
return mUid;
}
@@ -7444,6 +7485,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getWifiRunningTime(long elapsedRealtimeUs, int which) {
if (mWifiRunningTimer == null) {
return 0;
@@ -7460,6 +7502,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getWifiScanTime(long elapsedRealtimeUs, int which) {
if (mWifiScanTimer == null) {
return 0;
@@ -8994,6 +9037,7 @@
}
@Override
+ @UnsupportedAppUsage
public Timer getWakeTime(int type) {
switch (type) {
case WAKE_TYPE_FULL: return mTimerFull;
@@ -9056,6 +9100,7 @@
}
@Override
+ @UnsupportedAppUsage
public Timer getSensorTime() {
return mTimer;
}
@@ -9069,6 +9114,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getHandle() {
return mHandle;
}
@@ -9312,6 +9358,7 @@
readExcessivePowerFromParcelLocked(in);
}
+ @UnsupportedAppUsage
public void addCpuTimeLocked(int utime, int stime) {
addCpuTimeLocked(utime, stime, mBsi.mOnBatteryTimeBase.isRunning());
}
@@ -9323,10 +9370,12 @@
}
}
+ @UnsupportedAppUsage
public void addForegroundTimeLocked(long ttime) {
mForegroundTime += ttime;
}
+ @UnsupportedAppUsage
public void incStartsLocked() {
mStarts++;
}
@@ -9345,6 +9394,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getUserTime(int which) {
long val = mUserTime;
if (which == STATS_CURRENT) {
@@ -9356,6 +9406,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getSystemTime(int which) {
long val = mSystemTime;
if (which == STATS_CURRENT) {
@@ -9367,6 +9418,7 @@
}
@Override
+ @UnsupportedAppUsage
public long getForegroundTime(int which) {
long val = mForegroundTime;
if (which == STATS_CURRENT) {
@@ -9378,6 +9430,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getStarts(int which) {
int val = mStarts;
if (which == STATS_CURRENT) {
@@ -9678,6 +9731,7 @@
return mStartTime + batteryUptime - mRunningSince;
}
+ @UnsupportedAppUsage
public void startLaunchedLocked() {
if (!mLaunched) {
mLaunches++;
@@ -9686,6 +9740,7 @@
}
}
+ @UnsupportedAppUsage
public void stopLaunchedLocked() {
if (mLaunched) {
long time = mBsi.getBatteryUptimeLocked() - mLaunchedSince;
@@ -9698,6 +9753,7 @@
}
}
+ @UnsupportedAppUsage
public void startRunningLocked() {
if (!mRunning) {
mStarts++;
@@ -9706,6 +9762,7 @@
}
}
+ @UnsupportedAppUsage
public void stopRunningLocked() {
if (mRunning) {
long time = mBsi.getBatteryUptimeLocked() - mRunningSince;
@@ -9718,6 +9775,7 @@
}
}
+ @UnsupportedAppUsage
public BatteryStatsImpl getBatteryStats() {
return mBsi;
}
@@ -10215,6 +10273,7 @@
mUserInfoProvider = userInfoProvider;
}
+ @UnsupportedAppUsage
public BatteryStatsImpl(Parcel p) {
this(new SystemClocks(), p);
}
@@ -10657,6 +10716,7 @@
}
@Override
+ @UnsupportedAppUsage
public boolean startIteratingHistoryLocked() {
if (DEBUG_HISTORY) Slog.i(TAG, "ITERATING: buff size=" + mHistoryBuffer.dataSize()
+ " pos=" + mHistoryBuffer.dataPosition());
@@ -10702,6 +10762,7 @@
}
@Override
+ @UnsupportedAppUsage
public boolean getNextHistoryLocked(HistoryItem out) {
final int pos = mHistoryBuffer.dataPosition();
if (pos == 0) {
@@ -10739,6 +10800,7 @@
return mStartCount;
}
+ @UnsupportedAppUsage
public boolean isOnBattery() {
return mOnBattery;
}
@@ -12754,10 +12816,12 @@
}
}
+ @UnsupportedAppUsage
public long getAwakeTimeBattery() {
return computeBatteryUptime(getBatteryUptimeLocked(), STATS_CURRENT);
}
+ @UnsupportedAppUsage
public long getAwakeTimePlugged() {
return (mClocks.uptimeMillis() * 1000) - getAwakeTimeBattery();
}
@@ -12783,11 +12847,13 @@
}
@Override
+ @UnsupportedAppUsage
public long computeBatteryUptime(long curTime, int which) {
return mOnBatteryTimeBase.computeUptime(curTime, which);
}
@Override
+ @UnsupportedAppUsage
public long computeBatteryRealtime(long curTime, int which) {
return mOnBatteryTimeBase.computeRealtime(curTime, which);
}
@@ -12841,6 +12907,7 @@
}
@Override
+ @UnsupportedAppUsage
public long computeBatteryTimeRemaining(long curTime) {
if (!mOnBattery) {
return -1;
@@ -13039,11 +13106,13 @@
}
@Override
+ @UnsupportedAppUsage
public long getBatteryRealtime(long curTime) {
return mOnBatteryTimeBase.getRealtime(curTime);
}
@Override
+ @UnsupportedAppUsage
public int getDischargeStartLevel() {
synchronized(this) {
return getDischargeStartLevelLocked();
@@ -13055,6 +13124,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getDischargeCurrentLevel() {
synchronized(this) {
return getDischargeCurrentLevelLocked();
@@ -13088,6 +13158,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getDischargeAmount(int which) {
int dischargeAmount = which == STATS_SINCE_CHARGED
? getHighDischargeAmountSinceCharge()
@@ -13099,6 +13170,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getDischargeAmountScreenOn() {
synchronized(this) {
int val = mDischargeAmountScreenOn;
@@ -13123,6 +13195,7 @@
}
@Override
+ @UnsupportedAppUsage
public int getDischargeAmountScreenOff() {
synchronized(this) {
int val = mDischargeAmountScreenOff;
@@ -13175,6 +13248,7 @@
/**
* Retrieve the statistics object for a particular uid, creating if needed.
*/
+ @UnsupportedAppUsage
public Uid getUidStatsLocked(int uid) {
Uid u = mUidStats.get(uid);
if (u == null) {
@@ -13213,6 +13287,7 @@
/**
* Remove the statistics object for a particular uid.
*/
+ @UnsupportedAppUsage
public void removeUidStatsLocked(int uid) {
mUidStats.remove(uid);
mPendingRemovedUids.add(new UidToRemove(uid, mClocks.elapsedRealtime()));
@@ -13222,6 +13297,7 @@
* Retrieve the statistics object for a particular process, creating
* if needed.
*/
+ @UnsupportedAppUsage
public Uid.Proc getProcessStatsLocked(int uid, String name) {
uid = mapUid(uid);
Uid u = getUidStatsLocked(uid);
@@ -13232,6 +13308,7 @@
* Retrieve the statistics object for a particular process, creating
* if needed.
*/
+ @UnsupportedAppUsage
public Uid.Pkg getPackageStatsLocked(int uid, String pkg) {
uid = mapUid(uid);
Uid u = getUidStatsLocked(uid);
@@ -13242,6 +13319,7 @@
* Retrieve the statistics object for a particular service, creating
* if needed.
*/
+ @UnsupportedAppUsage
public Uid.Pkg.Serv getServiceStatsLocked(int uid, String pkg, String name) {
uid = mapUid(uid);
Uid u = getUidStatsLocked(uid);
@@ -13493,6 +13571,7 @@
}
}
+ @UnsupportedAppUsage
public void commitPendingDataToDisk() {
final Parcel next;
synchronized (this) {
@@ -13523,6 +13602,7 @@
}
}
+ @UnsupportedAppUsage
public void readLocked() {
if (mDailyFile != null) {
readDailyStatsLocked();
@@ -15082,6 +15162,7 @@
}
}
+ @UnsupportedAppUsage
public static final Parcelable.Creator<BatteryStatsImpl> CREATOR =
new Parcelable.Creator<BatteryStatsImpl>() {
public BatteryStatsImpl createFromParcel(Parcel in) {
diff --git a/core/java/com/android/internal/os/FuseAppLoop.java b/core/java/com/android/internal/os/FuseAppLoop.java
index 67fbe5e..d08930b 100644
--- a/core/java/com/android/internal/os/FuseAppLoop.java
+++ b/core/java/com/android/internal/os/FuseAppLoop.java
@@ -18,6 +18,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.os.ProxyFileDescriptorCallback;
import android.os.Handler;
import android.os.Message;
@@ -226,6 +227,7 @@
// Called by JNI.
@SuppressWarnings("unused")
+ @UnsupportedAppUsage
private void onCommand(int command, long unique, long inode, long offset, int size,
byte[] data) {
synchronized (mLock) {
@@ -254,6 +256,7 @@
// Called by JNI.
@SuppressWarnings("unused")
+ @UnsupportedAppUsage
private byte[] onOpen(long unique, long inode) {
synchronized (mLock) {
try {
diff --git a/core/java/com/android/internal/os/HandlerCaller.java b/core/java/com/android/internal/os/HandlerCaller.java
index ae7c5f2..63ff990 100644
--- a/core/java/com/android/internal/os/HandlerCaller.java
+++ b/core/java/com/android/internal/os/HandlerCaller.java
@@ -16,6 +16,7 @@
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
@@ -82,6 +83,7 @@
mH.removeMessages(what, obj);
}
+ @UnsupportedAppUsage
public void sendMessage(Message msg) {
mH.sendMessage(msg);
}
@@ -106,6 +108,7 @@
return args;
}
+ @UnsupportedAppUsage
public Message obtainMessage(int what) {
return mH.obtainMessage(what);
}
@@ -121,6 +124,7 @@
return mH.obtainMessage(what, arg1 ? 1 : 0, 0, args);
}
+ @UnsupportedAppUsage
public Message obtainMessageO(int what, Object arg1) {
return mH.obtainMessage(what, 0, 0, arg1);
}
@@ -133,6 +137,7 @@
return mH.obtainMessage(what, arg1, arg2);
}
+ @UnsupportedAppUsage
public Message obtainMessageIO(int what, int arg1, Object arg2) {
return mH.obtainMessage(what, arg1, 0, arg2);
}
@@ -149,6 +154,7 @@
return mH.obtainMessage(what, arg1, arg2, args);
}
+ @UnsupportedAppUsage
public Message obtainMessageIOO(int what, int arg1, Object arg2, Object arg3) {
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg2;
@@ -183,6 +189,7 @@
return mH.obtainMessage(what, arg1, arg2, args);
}
+ @UnsupportedAppUsage
public Message obtainMessageOO(int what, Object arg1, Object arg2) {
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
@@ -190,6 +197,7 @@
return mH.obtainMessage(what, 0, 0, args);
}
+ @UnsupportedAppUsage
public Message obtainMessageOOO(int what, Object arg1, Object arg2, Object arg3) {
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
diff --git a/core/java/com/android/internal/os/PowerProfile.java b/core/java/com/android/internal/os/PowerProfile.java
index 246a50f..997b722 100644
--- a/core/java/com/android/internal/os/PowerProfile.java
+++ b/core/java/com/android/internal/os/PowerProfile.java
@@ -17,6 +17,7 @@
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
@@ -57,22 +58,27 @@
* + core_power.cluster1 * num running cores in cluster 1
*/
public static final String POWER_CPU_SUSPEND = "cpu.suspend";
+ @UnsupportedAppUsage
public static final String POWER_CPU_IDLE = "cpu.idle";
+ @UnsupportedAppUsage
public static final String POWER_CPU_ACTIVE = "cpu.active";
/**
* Power consumption when WiFi driver is scanning for networks.
*/
+ @UnsupportedAppUsage
public static final String POWER_WIFI_SCAN = "wifi.scan";
/**
* Power consumption when WiFi driver is on.
*/
+ @UnsupportedAppUsage
public static final String POWER_WIFI_ON = "wifi.on";
/**
* Power consumption when WiFi driver is transmitting/receiving.
*/
+ @UnsupportedAppUsage
public static final String POWER_WIFI_ACTIVE = "wifi.active";
//
@@ -101,6 +107,7 @@
/**
* Power consumption when GPS is on.
*/
+ @UnsupportedAppUsage
public static final String POWER_GPS_ON = "gps.on";
/**
@@ -115,6 +122,7 @@
* @deprecated
*/
@Deprecated
+ @UnsupportedAppUsage
public static final String POWER_BLUETOOTH_ON = "bluetooth.on";
/**
@@ -131,6 +139,7 @@
* @deprecated
*/
@Deprecated
+ @UnsupportedAppUsage
public static final String POWER_BLUETOOTH_AT_CMD = "bluetooth.at";
/**
@@ -141,27 +150,32 @@
/**
* Power consumption when screen is on, not including the backlight power.
*/
+ @UnsupportedAppUsage
public static final String POWER_SCREEN_ON = "screen.on";
/**
* Power consumption when cell radio is on but not on a call.
*/
+ @UnsupportedAppUsage
public static final String POWER_RADIO_ON = "radio.on";
/**
* Power consumption when cell radio is hunting for a signal.
*/
+ @UnsupportedAppUsage
public static final String POWER_RADIO_SCANNING = "radio.scanning";
/**
* Power consumption when talking on the phone.
*/
+ @UnsupportedAppUsage
public static final String POWER_RADIO_ACTIVE = "radio.active";
/**
* Power consumption at full backlight brightness. If the backlight is at
* 50% brightness, then this should be multiplied by 0.5
*/
+ @UnsupportedAppUsage
public static final String POWER_SCREEN_FULL = "screen.full";
/**
@@ -224,6 +238,7 @@
private static final Object sLock = new Object();
@VisibleForTesting
+ @UnsupportedAppUsage
public PowerProfile(Context context) {
this(context, false);
}
@@ -371,6 +386,7 @@
}
}
+ @UnsupportedAppUsage
public int getNumCpuClusters() {
return mCpuClusters.length;
}
@@ -379,6 +395,7 @@
return mCpuClusters[cluster].numCpus;
}
+ @UnsupportedAppUsage
public int getNumSpeedStepsInCpuCluster(int cluster) {
if (cluster < 0 || cluster >= mCpuClusters.length) {
return 0; // index out of bound
@@ -442,6 +459,7 @@
* @param type the subsystem type
* @return the average current in milliAmps.
*/
+ @UnsupportedAppUsage
public double getAveragePower(String type) {
return getAveragePowerOrDefault(type, 0);
}
@@ -455,6 +473,7 @@
* If there is no data for multiple levels, the level is ignored.
* @return the average current in milliAmps.
*/
+ @UnsupportedAppUsage
public double getAveragePower(String type, int level) {
if (sPowerItemMap.containsKey(type)) {
return sPowerItemMap.get(type);
@@ -478,6 +497,7 @@
*
* @return the battery capacity in mAh
*/
+ @UnsupportedAppUsage
public double getBatteryCapacity() {
return getAveragePower(POWER_BATTERY_CAPACITY);
}
diff --git a/core/java/com/android/internal/os/SomeArgs.java b/core/java/com/android/internal/os/SomeArgs.java
index d9aa325..b9d53c1 100644
--- a/core/java/com/android/internal/os/SomeArgs.java
+++ b/core/java/com/android/internal/os/SomeArgs.java
@@ -16,6 +16,8 @@
package com.android.internal.os;
+import android.annotation.UnsupportedAppUsage;
+
/**
* Helper class for passing more arguments though a message
* and avoiding allocation of a custom class for wrapping the
@@ -40,8 +42,11 @@
static final int WAIT_FINISHED = 2;
int mWaitState = WAIT_NONE;
+ @UnsupportedAppUsage
public Object arg1;
+ @UnsupportedAppUsage
public Object arg2;
+ @UnsupportedAppUsage
public Object arg3;
public Object arg4;
public Object arg5;
@@ -50,7 +55,9 @@
public Object arg8;
public Object arg9;
public int argi1;
+ @UnsupportedAppUsage
public int argi2;
+ @UnsupportedAppUsage
public int argi3;
public int argi4;
public int argi5;
@@ -60,6 +67,7 @@
/* do nothing - reduce visibility */
}
+ @UnsupportedAppUsage
public static SomeArgs obtain() {
synchronized (sPoolLock) {
if (sPoolSize > 0) {
@@ -85,6 +93,7 @@
}
}
+ @UnsupportedAppUsage
public void recycle() {
if (mInPool) {
throw new IllegalStateException("Already recycled.");
diff --git a/core/java/com/android/internal/util/AsyncChannel.java b/core/java/com/android/internal/util/AsyncChannel.java
index e760f25..69297b5 100644
--- a/core/java/com/android/internal/util/AsyncChannel.java
+++ b/core/java/com/android/internal/util/AsyncChannel.java
@@ -16,6 +16,7 @@
package com.android.internal.util;
+import android.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -105,6 +106,7 @@
* msg.obj == the AsyncChannel
* msg.replyTo == dstMessenger if successful
*/
+ @UnsupportedAppUsage
public static final int CMD_CHANNEL_HALF_CONNECTED = BASE + 0;
/**
@@ -114,6 +116,7 @@
*
* msg.replyTo = srcMessenger.
*/
+ @UnsupportedAppUsage
public static final int CMD_CHANNEL_FULL_CONNECTION = BASE + 1;
/**
@@ -159,6 +162,7 @@
sCmdToString[CMD_CHANNEL_DISCONNECT - BASE] = "CMD_CHANNEL_DISCONNECT";
sCmdToString[CMD_CHANNEL_DISCONNECTED - BASE] = "CMD_CHANNEL_DISCONNECTED";
}
+ @UnsupportedAppUsage
protected static String cmdToString(int cmd) {
cmd -= BASE;
if ((cmd >= 0) && (cmd < sCmdToString.length)) {
@@ -169,6 +173,7 @@
}
/** Successful status always 0, !0 is an unsuccessful status */
+ @UnsupportedAppUsage
public static final int STATUS_SUCCESSFUL = 0;
/** Error attempting to bind on a connect */
@@ -204,6 +209,7 @@
/**
* AsyncChannel constructor
*/
+ @UnsupportedAppUsage
public AsyncChannel() {
}
@@ -255,6 +261,7 @@
*
* @return STATUS_SUCCESSFUL on success any other value is an error.
*/
+ @UnsupportedAppUsage
public int connectSync(Context srcContext, Handler srcHandler, Messenger dstMessenger) {
if (DBG) log("halfConnectSync srcHandler to the dstMessenger E");
@@ -370,6 +377,7 @@
* @param srcHandler
* @param dstMessenger
*/
+ @UnsupportedAppUsage
public void connect(Context srcContext, Handler srcHandler, Messenger dstMessenger) {
if (DBG) log("connect srcHandler to the dstMessenger E");
@@ -392,6 +400,7 @@
* @param srcHandler
* @param dstMessenger
*/
+ @UnsupportedAppUsage
public void connected(Context srcContext, Handler srcHandler, Messenger dstMessenger) {
if (DBG) log("connected srcHandler to the dstMessenger E");
@@ -446,6 +455,7 @@
/**
* Disconnect
*/
+ @UnsupportedAppUsage
public void disconnect() {
if ((mConnection != null) && (mSrcContext != null)) {
mSrcContext.unbindService(mConnection);
@@ -475,6 +485,7 @@
*
* @param msg
*/
+ @UnsupportedAppUsage
public void sendMessage(Message msg) {
msg.replyTo = mSrcMessenger;
try {
@@ -489,6 +500,7 @@
*
* @param what
*/
+ @UnsupportedAppUsage
public void sendMessage(int what) {
Message msg = Message.obtain();
msg.what = what;
@@ -501,6 +513,7 @@
* @param what
* @param arg1
*/
+ @UnsupportedAppUsage
public void sendMessage(int what, int arg1) {
Message msg = Message.obtain();
msg.what = what;
@@ -515,6 +528,7 @@
* @param arg1
* @param arg2
*/
+ @UnsupportedAppUsage
public void sendMessage(int what, int arg1, int arg2) {
Message msg = Message.obtain();
msg.what = what;
@@ -531,6 +545,7 @@
* @param arg2
* @param obj
*/
+ @UnsupportedAppUsage
public void sendMessage(int what, int arg1, int arg2, Object obj) {
Message msg = Message.obtain();
msg.what = what;
@@ -559,6 +574,7 @@
* @param srcMsg
* @param dstMsg
*/
+ @UnsupportedAppUsage
public void replyToMessage(Message srcMsg, Message dstMsg) {
try {
dstMsg.replyTo = mSrcMessenger;
@@ -575,6 +591,7 @@
* @param srcMsg
* @param what
*/
+ @UnsupportedAppUsage
public void replyToMessage(Message srcMsg, int what) {
Message msg = Message.obtain();
msg.what = what;
@@ -588,6 +605,7 @@
* @param what
* @param arg1
*/
+ @UnsupportedAppUsage
public void replyToMessage(Message srcMsg, int what, int arg1) {
Message msg = Message.obtain();
msg.what = what;
@@ -620,6 +638,7 @@
* @param arg2
* @param obj
*/
+ @UnsupportedAppUsage
public void replyToMessage(Message srcMsg, int what, int arg1, int arg2, Object obj) {
Message msg = Message.obtain();
msg.what = what;
@@ -636,6 +655,7 @@
* @param what
* @param obj
*/
+ @UnsupportedAppUsage
public void replyToMessage(Message srcMsg, int what, Object obj) {
Message msg = Message.obtain();
msg.what = what;
@@ -649,6 +669,7 @@
* @param msg to send
* @return reply message or null if an error.
*/
+ @UnsupportedAppUsage
public Message sendMessageSynchronously(Message msg) {
Message resultMsg = SyncMessenger.sendMessageSynchronously(mDstMessenger, msg);
return resultMsg;
@@ -690,6 +711,7 @@
* @param arg2
* @return reply message or null if an error.
*/
+ @UnsupportedAppUsage
public Message sendMessageSynchronously(int what, int arg1, int arg2) {
Message msg = Message.obtain();
msg.what = what;
diff --git a/core/java/com/android/internal/util/FastPrintWriter.java b/core/java/com/android/internal/util/FastPrintWriter.java
index cc2c4cf..981fbaa 100644
--- a/core/java/com/android/internal/util/FastPrintWriter.java
+++ b/core/java/com/android/internal/util/FastPrintWriter.java
@@ -16,6 +16,7 @@
package com.android.internal.util;
+import android.annotation.UnsupportedAppUsage;
import android.util.Log;
import android.util.Printer;
@@ -77,6 +78,7 @@
* @throws NullPointerException
* if {@code out} is {@code null}.
*/
+ @UnsupportedAppUsage
public FastPrintWriter(OutputStream out) {
this(out, false, 8192);
}
diff --git a/core/java/com/android/internal/util/IndentingPrintWriter.java b/core/java/com/android/internal/util/IndentingPrintWriter.java
index e453866..03a555e 100644
--- a/core/java/com/android/internal/util/IndentingPrintWriter.java
+++ b/core/java/com/android/internal/util/IndentingPrintWriter.java
@@ -16,6 +16,7 @@
package com.android.internal.util;
+import android.annotation.UnsupportedAppUsage;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.Arrays;
@@ -47,6 +48,7 @@
private char[] mSingleChar = new char[1];
+ @UnsupportedAppUsage
public IndentingPrintWriter(Writer writer, String singleIndent) {
this(writer, singleIndent, -1);
}
@@ -72,12 +74,14 @@
return this;
}
+ @UnsupportedAppUsage
public IndentingPrintWriter increaseIndent() {
mIndentBuilder.append(mSingleIndent);
mCurrentIndent = null;
return this;
}
+ @UnsupportedAppUsage
public IndentingPrintWriter decreaseIndent() {
mIndentBuilder.delete(0, mSingleIndent.length());
mCurrentIndent = null;
diff --git a/core/java/com/android/internal/util/JournaledFile.java b/core/java/com/android/internal/util/JournaledFile.java
index 5372fc0..73e0488 100644
--- a/core/java/com/android/internal/util/JournaledFile.java
+++ b/core/java/com/android/internal/util/JournaledFile.java
@@ -16,6 +16,7 @@
package com.android.internal.util;
+import android.annotation.UnsupportedAppUsage;
import java.io.File;
import java.io.IOException;
@@ -33,6 +34,7 @@
File mTemp;
boolean mWriting;
+ @UnsupportedAppUsage
public JournaledFile(File real, File temp) {
mReal = real;
mTemp = temp;
@@ -44,6 +46,7 @@
* it to the real one. If there is both a real file and a temp one, assumes that the
* temp one isn't fully written and deletes it.
*/
+ @UnsupportedAppUsage
public File chooseForRead() {
File result;
if (mReal.exists()) {
@@ -68,6 +71,7 @@
* <p>
* Call {@link #commit} to commit the changes, or {@link #rollback} to forget the changes.
*/
+ @UnsupportedAppUsage
public File chooseForWrite() {
if (mWriting) {
throw new IllegalStateException("uncommitted write already in progress");
@@ -95,6 +99,7 @@
/**
* Commit changes.
*/
+ @UnsupportedAppUsage
public void commit() {
if (!mWriting) {
throw new IllegalStateException("no file to commit");
@@ -106,6 +111,7 @@
/**
* Roll back changes.
*/
+ @UnsupportedAppUsage
public void rollback() {
if (!mWriting) {
throw new IllegalStateException("no file to roll back");
diff --git a/core/java/com/android/internal/util/XmlUtils.java b/core/java/com/android/internal/util/XmlUtils.java
index 3188d30..5da587b 100644
--- a/core/java/com/android/internal/util/XmlUtils.java
+++ b/core/java/com/android/internal/util/XmlUtils.java
@@ -16,6 +16,7 @@
package com.android.internal.util;
+import android.annotation.UnsupportedAppUsage;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Bitmap.CompressFormat;
@@ -48,6 +49,7 @@
private static final String STRING_ARRAY_SEPARATOR = ":";
+ @UnsupportedAppUsage
public static void skipCurrentTag(XmlPullParser parser)
throws XmlPullParserException, IOException {
int outerDepth = parser.getDepth();
@@ -71,6 +73,7 @@
return defaultValue;
}
+ @UnsupportedAppUsage
public static final boolean
convertValueToBoolean(CharSequence value, boolean defaultValue)
{
@@ -87,6 +90,7 @@
return result;
}
+ @UnsupportedAppUsage
public static final int
convertValueToInt(CharSequence charSeq, int defaultValue)
{
@@ -183,6 +187,7 @@
* @see #writeValueXml
* @see #readMapXml
*/
+ @UnsupportedAppUsage
public static final void writeMapXml(Map val, OutputStream out)
throws XmlPullParserException, java.io.IOException {
XmlSerializer serializer = new FastXmlSerializer();
@@ -732,6 +737,7 @@
* #see #writeMapXml
*/
@SuppressWarnings("unchecked")
+ @UnsupportedAppUsage
public static final HashMap<String, ?> readMapXml(InputStream in)
throws XmlPullParserException, java.io.IOException
{
@@ -1550,6 +1556,7 @@
}
}
+ @UnsupportedAppUsage
public static final void beginDocument(XmlPullParser parser, String firstElementName) throws XmlPullParserException, IOException
{
int type;
@@ -1568,6 +1575,7 @@
}
}
+ @UnsupportedAppUsage
public static final void nextElement(XmlPullParser parser) throws XmlPullParserException, IOException
{
int type;
diff --git a/core/java/com/android/internal/view/BaseIWindow.java b/core/java/com/android/internal/view/BaseIWindow.java
index 7178a0d..e3490f1 100644
--- a/core/java/com/android/internal/view/BaseIWindow.java
+++ b/core/java/com/android/internal/view/BaseIWindow.java
@@ -16,6 +16,7 @@
package com.android.internal.view;
+import android.annotation.UnsupportedAppUsage;
import android.graphics.Rect;
import android.hardware.input.InputManager;
import android.os.Bundle;
diff --git a/core/java/com/android/internal/view/IInputConnectionWrapper.java b/core/java/com/android/internal/view/IInputConnectionWrapper.java
index 28291ae..189c8d5 100644
--- a/core/java/com/android/internal/view/IInputConnectionWrapper.java
+++ b/core/java/com/android/internal/view/IInputConnectionWrapper.java
@@ -21,6 +21,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
@@ -67,10 +68,12 @@
@GuardedBy("mLock")
@Nullable
+ @UnsupportedAppUsage
private InputConnection mInputConnection;
private Looper mMainLooper;
private Handler mH;
+ @UnsupportedAppUsage
private Object mLock = new Object();
@GuardedBy("mLock")
private boolean mFinished = false;
diff --git a/core/java/com/android/internal/view/InputBindResult.java b/core/java/com/android/internal/view/InputBindResult.java
index f05bd32..9d4383f 100644
--- a/core/java/com/android/internal/view/InputBindResult.java
+++ b/core/java/com/android/internal/view/InputBindResult.java
@@ -19,6 +19,7 @@
import static java.lang.annotation.RetentionPolicy.SOURCE;
import android.annotation.IntDef;
+import android.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
@@ -151,6 +152,7 @@
/**
* The input method service.
*/
+ @UnsupportedAppUsage
public final IInputMethodSession method;
/**
@@ -230,6 +232,7 @@
/**
* Used to make this class parcelable.
*/
+ @UnsupportedAppUsage
public static final Parcelable.Creator<InputBindResult> CREATOR =
new Parcelable.Creator<InputBindResult>() {
@Override
diff --git a/core/java/com/android/internal/view/menu/ActionMenuItemView.java b/core/java/com/android/internal/view/menu/ActionMenuItemView.java
index 92e1d80..eb94db3 100644
--- a/core/java/com/android/internal/view/menu/ActionMenuItemView.java
+++ b/core/java/com/android/internal/view/menu/ActionMenuItemView.java
@@ -16,6 +16,7 @@
package com.android.internal.view.menu;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
@@ -224,6 +225,7 @@
updateTextButtonVisibility();
}
+ @UnsupportedAppUsage
public boolean hasText() {
return !TextUtils.isEmpty(getText());
}
diff --git a/core/java/com/android/internal/view/menu/MenuBuilder.java b/core/java/com/android/internal/view/menu/MenuBuilder.java
index 48485e0..0e07ca7 100644
--- a/core/java/com/android/internal/view/menu/MenuBuilder.java
+++ b/core/java/com/android/internal/view/menu/MenuBuilder.java
@@ -18,6 +18,7 @@
import android.annotation.NonNull;
+import android.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -64,6 +65,7 @@
0, /* SELECTED_ALTERNATIVE */
};
+ @UnsupportedAppUsage
private final Context mContext;
private final Resources mResources;
@@ -173,6 +175,7 @@
* @param item The menu item that is selected
* @return whether the menu item selection was handled
*/
+ @UnsupportedAppUsage
public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item);
/**
@@ -180,6 +183,7 @@
*
* @param menu the menu that has changed modes
*/
+ @UnsupportedAppUsage
public void onMenuModeChange(MenuBuilder menu);
}
@@ -190,6 +194,7 @@
public boolean invokeItem(MenuItemImpl item);
}
+ @UnsupportedAppUsage
public MenuBuilder(Context context) {
mContext = context;
mResources = context.getResources();
@@ -205,6 +210,7 @@
setShortcutsVisibleInner(true);
}
+ @UnsupportedAppUsage
public MenuBuilder setDefaultShowAsAction(int defaultShowAsAction) {
mDefaultShowAsAction = defaultShowAsAction;
return this;
@@ -217,6 +223,7 @@
*
* @param presenter The presenter to add
*/
+ @UnsupportedAppUsage
public void addMenuPresenter(MenuPresenter presenter) {
addMenuPresenter(presenter, mContext);
}
@@ -230,6 +237,7 @@
* @param presenter The presenter to add
* @param menuContext The context used to inflate menu items
*/
+ @UnsupportedAppUsage
public void addMenuPresenter(MenuPresenter presenter, Context menuContext) {
mPresenters.add(new WeakReference<MenuPresenter>(presenter));
presenter.initForMenu(menuContext, this);
@@ -242,6 +250,7 @@
*
* @param presenter The presenter to remove
*/
+ @UnsupportedAppUsage
public void removeMenuPresenter(MenuPresenter presenter) {
for (WeakReference<MenuPresenter> ref : mPresenters) {
final MenuPresenter item = ref.get();
@@ -401,6 +410,7 @@
return ACTION_VIEW_STATES_KEY;
}
+ @UnsupportedAppUsage
public void setCallback(Callback cb) {
mCallback = cb;
}
@@ -768,6 +778,7 @@
return mResources;
}
+ @UnsupportedAppUsage
public Context getContext() {
return mContext;
}
@@ -1004,6 +1015,7 @@
* {@link #startDispatchingItemsChanged()} is called. Useful when
* many menu operations are going to be performed as a batch.
*/
+ @UnsupportedAppUsage
public void stopDispatchingItemsChanged() {
if (!mPreventDispatchingItemsChanged) {
mPreventDispatchingItemsChanged = true;
@@ -1011,6 +1023,7 @@
}
}
+ @UnsupportedAppUsage
public void startDispatchingItemsChanged() {
mPreventDispatchingItemsChanged = false;
@@ -1041,6 +1054,7 @@
}
@NonNull
+ @UnsupportedAppUsage
public ArrayList<MenuItemImpl> getVisibleItems() {
if (!mIsVisibleItemsStale) return mVisibleItems;
@@ -1131,6 +1145,7 @@
return mActionItems;
}
+ @UnsupportedAppUsage
public ArrayList<MenuItemImpl> getNonActionItems() {
flagActionItems();
return mNonActionItems;
@@ -1235,10 +1250,12 @@
return this;
}
+ @UnsupportedAppUsage
public CharSequence getHeaderTitle() {
return mHeaderTitle;
}
+ @UnsupportedAppUsage
public Drawable getHeaderIcon() {
return mHeaderIcon;
}
@@ -1251,6 +1268,7 @@
* Gets the root menu (if this is a submenu, find its root menu).
* @return The root menu.
*/
+ @UnsupportedAppUsage
public MenuBuilder getRootMenu() {
return this;
}
@@ -1262,10 +1280,12 @@
*
* @param menuInfo The extra menu information to add.
*/
+ @UnsupportedAppUsage
public void setCurrentMenuInfo(ContextMenuInfo menuInfo) {
mCurrentMenuInfo = menuInfo;
}
+ @UnsupportedAppUsage
void setOptionalIconsVisible(boolean visible) {
mOptionalIconsVisible = visible;
}
@@ -1296,6 +1316,7 @@
return expanded;
}
+ @UnsupportedAppUsage
public boolean collapseItemActionView(MenuItemImpl item) {
if (mPresenters.isEmpty() || mExpandedItem != item) return false;
diff --git a/core/java/com/android/internal/view/menu/MenuItemImpl.java b/core/java/com/android/internal/view/menu/MenuItemImpl.java
index 0c5ea63..994a9c1 100644
--- a/core/java/com/android/internal/view/menu/MenuItemImpl.java
+++ b/core/java/com/android/internal/view/menu/MenuItemImpl.java
@@ -19,6 +19,7 @@
import com.android.internal.view.menu.MenuView.ItemView;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
@@ -67,6 +68,7 @@
* needed (if the Drawable isn't already obtained--only one of the two is
* needed).
*/
+ @UnsupportedAppUsage
private int mIconResId = NO_ICON;
private ColorStateList mIconTintList = null;
@@ -139,6 +141,7 @@
*
* @return true if the invocation was handled, false otherwise
*/
+ @UnsupportedAppUsage
public boolean invoke() {
if (mClickListener != null &&
mClickListener.onMenuItemClick(this)) {
@@ -565,6 +568,7 @@
return this;
}
+ @UnsupportedAppUsage
public void setExclusiveCheckable(boolean exclusive) {
mFlags = (mFlags & ~EXCLUSIVE) | (exclusive ? EXCLUSIVE : 0);
}
@@ -638,6 +642,7 @@
return mTitle != null ? mTitle.toString() : null;
}
+ @UnsupportedAppUsage
void setMenuInfo(ContextMenuInfo menuInfo) {
mMenuInfo = menuInfo;
}
@@ -657,14 +662,17 @@
return mMenu.getOptionalIconsVisible();
}
+ @UnsupportedAppUsage
public boolean isActionButton() {
return (mFlags & IS_ACTION) == IS_ACTION;
}
+ @UnsupportedAppUsage
public boolean requestsActionButton() {
return (mShowAsAction & SHOW_AS_ACTION_IF_ROOM) == SHOW_AS_ACTION_IF_ROOM;
}
+ @UnsupportedAppUsage
public boolean requiresActionButton() {
return (mShowAsAction & SHOW_AS_ACTION_ALWAYS) == SHOW_AS_ACTION_ALWAYS;
}
@@ -806,6 +814,7 @@
return false;
}
+ @UnsupportedAppUsage
public void setActionViewExpanded(boolean isExpanded) {
mIsActionViewExpanded = isExpanded;
mMenu.onItemsChanged(false);
diff --git a/core/java/com/android/internal/view/menu/MenuPopupHelper.java b/core/java/com/android/internal/view/menu/MenuPopupHelper.java
index 324f923..e6d3460 100644
--- a/core/java/com/android/internal/view/menu/MenuPopupHelper.java
+++ b/core/java/com/android/internal/view/menu/MenuPopupHelper.java
@@ -22,6 +22,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.StyleRes;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.graphics.Point;
import android.graphics.Rect;
@@ -49,16 +50,19 @@
// Mutable cached popup menu properties.
private View mAnchorView;
private int mDropDownGravity = Gravity.START;
+ @UnsupportedAppUsage
private boolean mForceShowIcon;
private Callback mPresenterCallback;
private MenuPopup mPopup;
private OnDismissListener mOnDismissListener;
+ @UnsupportedAppUsage
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu) {
this(context, menu, null, false, com.android.internal.R.attr.popupMenuStyle, 0);
}
+ @UnsupportedAppUsage
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu,
@NonNull View anchorView) {
this(context, menu, anchorView, false, com.android.internal.R.attr.popupMenuStyle, 0);
@@ -92,6 +96,7 @@
*
* @param anchor the view to which the popup window should be anchored
*/
+ @UnsupportedAppUsage
public void setAnchorView(@NonNull View anchor) {
mAnchorView = anchor;
}
@@ -105,6 +110,7 @@
* @param forceShowIcon {@code true} to force icons to be shown, or
* {@code false} for icons to be optionally shown
*/
+ @UnsupportedAppUsage
public void setForceShowIcon(boolean forceShowIcon) {
mForceShowIcon = forceShowIcon;
if (mPopup != null) {
@@ -119,6 +125,7 @@
*
* @param gravity alignment of the popup relative to the anchor
*/
+ @UnsupportedAppUsage
public void setGravity(int gravity) {
mDropDownGravity = gravity;
}
@@ -130,6 +137,7 @@
return mDropDownGravity;
}
+ @UnsupportedAppUsage
public void show() {
if (!tryShow()) {
throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
@@ -143,6 +151,7 @@
}
@NonNull
+ @UnsupportedAppUsage
public MenuPopup getPopup() {
if (mPopup == null) {
mPopup = createPopup();
@@ -156,6 +165,7 @@
* @return {@code true} if the popup was shown or was already showing prior to calling this
* method, {@code false} otherwise
*/
+ @UnsupportedAppUsage
public boolean tryShow() {
if (isShowing()) {
return true;
@@ -280,6 +290,7 @@
* Dismisses the popup, if showing.
*/
@Override
+ @UnsupportedAppUsage
public void dismiss() {
if (isShowing()) {
mPopup.dismiss();
diff --git a/core/java/com/android/internal/view/menu/MenuPresenter.java b/core/java/com/android/internal/view/menu/MenuPresenter.java
index 65bdc09..c5df8ad 100644
--- a/core/java/com/android/internal/view/menu/MenuPresenter.java
+++ b/core/java/com/android/internal/view/menu/MenuPresenter.java
@@ -18,6 +18,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.os.Parcelable;
import android.view.ViewGroup;
@@ -47,6 +48,7 @@
* @return true if the Callback will handle presenting the submenu, false if
* the presenter should attempt to do so.
*/
+ @UnsupportedAppUsage
public boolean onOpenSubMenu(MenuBuilder subMenu);
}
diff --git a/core/java/com/android/internal/view/menu/MenuView.java b/core/java/com/android/internal/view/menu/MenuView.java
index 407caae..67a5530 100644
--- a/core/java/com/android/internal/view/menu/MenuView.java
+++ b/core/java/com/android/internal/view/menu/MenuView.java
@@ -19,6 +19,7 @@
import com.android.internal.view.menu.MenuBuilder;
import com.android.internal.view.menu.MenuItemImpl;
+import android.annotation.UnsupportedAppUsage;
import android.graphics.drawable.Drawable;
/**
@@ -40,6 +41,7 @@
* Returns the default animations to be used for this menu when entering/exiting.
* @return A resource ID for the default animations to be used for this menu.
*/
+ @UnsupportedAppUsage
public int getWindowAnimations();
/**
@@ -61,6 +63,7 @@
* Gets the item data that this view is displaying.
* @return the item data, or null if there is not one
*/
+ @UnsupportedAppUsage
public MenuItemImpl getItemData();
/**
diff --git a/core/java/com/android/internal/view/menu/SubMenuBuilder.java b/core/java/com/android/internal/view/menu/SubMenuBuilder.java
index 897440e..cf6d974 100644
--- a/core/java/com/android/internal/view/menu/SubMenuBuilder.java
+++ b/core/java/com/android/internal/view/menu/SubMenuBuilder.java
@@ -16,6 +16,7 @@
package com.android.internal.view.menu;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.Menu;
@@ -67,11 +68,13 @@
}
@Override
+ @UnsupportedAppUsage
public void setCallback(Callback callback) {
mParentMenu.setCallback(callback);
}
@Override
+ @UnsupportedAppUsage
public MenuBuilder getRootMenu() {
return mParentMenu.getRootMenu();
}
diff --git a/core/java/com/android/internal/widget/CachingIconView.java b/core/java/com/android/internal/widget/CachingIconView.java
index f3b6552..35bff6d 100644
--- a/core/java/com/android/internal/widget/CachingIconView.java
+++ b/core/java/com/android/internal/widget/CachingIconView.java
@@ -18,6 +18,7 @@
import android.annotation.DrawableRes;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
@@ -44,6 +45,7 @@
private boolean mForceHidden;
private int mDesiredVisibility;
+ @UnsupportedAppUsage
public CachingIconView(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
diff --git a/core/java/com/android/internal/widget/ScrollingTabContainerView.java b/core/java/com/android/internal/widget/ScrollingTabContainerView.java
index 311bfac..5d48ab9 100644
--- a/core/java/com/android/internal/widget/ScrollingTabContainerView.java
+++ b/core/java/com/android/internal/widget/ScrollingTabContainerView.java
@@ -20,6 +20,7 @@
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
+import android.annotation.UnsupportedAppUsage;
import android.app.ActionBar;
import android.content.Context;
import android.content.res.Configuration;
@@ -67,6 +68,7 @@
private static final int FADE_DURATION = 200;
+ @UnsupportedAppUsage
public ScrollingTabContainerView(Context context) {
super(context);
setHorizontalScrollBarEnabled(false);
@@ -134,6 +136,7 @@
return mTabSpinner != null && mTabSpinner.getParent() == this;
}
+ @UnsupportedAppUsage
public void setAllowCollapse(boolean allowCollapse) {
mAllowCollapse = allowCollapse;
}
@@ -169,6 +172,7 @@
return false;
}
+ @UnsupportedAppUsage
public void setTabSelected(int position) {
mSelectedTabIndex = position;
final int tabCount = mTabLayout.getChildCount();
@@ -220,6 +224,7 @@
mStackedTabMaxWidth = abp.getStackedTabMaxWidth();
}
+ @UnsupportedAppUsage
public void animateToVisibility(int visibility) {
if (mVisibilityAnim != null) {
mVisibilityAnim.cancel();
@@ -244,6 +249,7 @@
}
}
+ @UnsupportedAppUsage
public void animateToTab(final int position) {
final View tabView = mTabLayout.getChildAt(position);
if (mTabSelector != null) {
@@ -293,6 +299,7 @@
return tabView;
}
+ @UnsupportedAppUsage
public void addTab(ActionBar.Tab tab, boolean setSelected) {
TabView tabView = createTabView(mContext, tab, false);
mTabLayout.addView(tabView, new LinearLayout.LayoutParams(0,
@@ -308,6 +315,7 @@
}
}
+ @UnsupportedAppUsage
public void addTab(ActionBar.Tab tab, int position, boolean setSelected) {
final TabView tabView = createTabView(mContext, tab, false);
mTabLayout.addView(tabView, position, new LinearLayout.LayoutParams(
@@ -323,6 +331,7 @@
}
}
+ @UnsupportedAppUsage
public void updateTab(int position) {
((TabView) mTabLayout.getChildAt(position)).update();
if (mTabSpinner != null) {
@@ -333,6 +342,7 @@
}
}
+ @UnsupportedAppUsage
public void removeTabAt(int position) {
mTabLayout.removeViewAt(position);
if (mTabSpinner != null) {
@@ -343,6 +353,7 @@
}
}
+ @UnsupportedAppUsage
public void removeAllTabs() {
mTabLayout.removeAllViews();
if (mTabSpinner != null) {
diff --git a/location/java/com/android/internal/location/ProviderRequest.java b/location/java/com/android/internal/location/ProviderRequest.java
index 45fdb76..88919f6 100644
--- a/location/java/com/android/internal/location/ProviderRequest.java
+++ b/location/java/com/android/internal/location/ProviderRequest.java
@@ -19,6 +19,7 @@
import java.util.ArrayList;
import java.util.List;
+import android.annotation.UnsupportedAppUsage;
import android.location.LocationRequest;
import android.os.Parcel;
import android.os.Parcelable;
@@ -27,9 +28,11 @@
/** @hide */
public final class ProviderRequest implements Parcelable {
/** Location reporting is requested (true) */
+ @UnsupportedAppUsage
public boolean reportLocation = false;
/** The smallest requested interval */
+ @UnsupportedAppUsage
public long interval = Long.MAX_VALUE;
/**
@@ -45,8 +48,10 @@
* is a high power slow interval request and a
* low power fast interval request.
*/
+ @UnsupportedAppUsage
public List<LocationRequest> locationRequests = new ArrayList<LocationRequest>();
+ @UnsupportedAppUsage
public ProviderRequest() {
}