Merge "Add @UnsupportedAppUsage annotations"
This commit is contained in:
@@ -1063,6 +1063,7 @@ java_library {
|
||||
"core/java/android/annotation/Nullable.java",
|
||||
"core/java/android/annotation/SystemApi.java",
|
||||
"core/java/android/annotation/TestApi.java",
|
||||
"core/java/android/annotation/UnsupportedAppUsage.java",
|
||||
"core/java/android/os/HwBinder.java",
|
||||
"core/java/android/os/HwBlob.java",
|
||||
"core/java/android/os/HwParcel.java",
|
||||
|
||||
@@ -378,232 +378,17 @@ Landroid/net/wifi/IWifiScanner$Stub;-><init>()V
|
||||
Landroid/net/wifi/IWifiScanner$Stub;->asInterface(Landroid/os/IBinder;)Landroid/net/wifi/IWifiScanner;
|
||||
Landroid/net/wifi/p2p/IWifiP2pManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/net/wifi/p2p/IWifiP2pManager;
|
||||
Landroid/nfc/INfcAdapter$Stub;->TRANSACTION_enable:I
|
||||
Landroid/os/AsyncResult;-><init>(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Throwable;)V
|
||||
Landroid/os/AsyncResult;->exception:Ljava/lang/Throwable;
|
||||
Landroid/os/AsyncResult;->forMessage(Landroid/os/Message;)Landroid/os/AsyncResult;
|
||||
Landroid/os/AsyncResult;->forMessage(Landroid/os/Message;Ljava/lang/Object;Ljava/lang/Throwable;)Landroid/os/AsyncResult;
|
||||
Landroid/os/AsyncResult;->result:Ljava/lang/Object;
|
||||
Landroid/os/AsyncResult;->userObj:Ljava/lang/Object;
|
||||
Landroid/os/AsyncTask;->mFuture:Ljava/util/concurrent/FutureTask;
|
||||
Landroid/os/AsyncTask;->mStatus:Landroid/os/AsyncTask$Status;
|
||||
Landroid/os/AsyncTask;->mTaskInvoked:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
Landroid/os/AsyncTask;->mWorker:Landroid/os/AsyncTask$WorkerRunnable;
|
||||
Landroid/os/AsyncTask;->sDefaultExecutor:Ljava/util/concurrent/Executor;
|
||||
Landroid/os/AsyncTask;->setDefaultExecutor(Ljava/util/concurrent/Executor;)V
|
||||
Landroid/os/BaseBundle;->isParcelled()Z
|
||||
Landroid/os/BaseBundle;->mMap:Landroid/util/ArrayMap;
|
||||
Landroid/os/BaseBundle;->mParcelledData:Landroid/os/Parcel;
|
||||
Landroid/os/BaseBundle;->unparcel()V
|
||||
Landroid/os/BatteryManager;->EXTRA_CHARGE_COUNTER:Ljava/lang/String;
|
||||
Landroid/os/BatteryManager;->EXTRA_INVALID_CHARGER:Ljava/lang/String;
|
||||
Landroid/os/BatteryManager;->EXTRA_MAX_CHARGING_CURRENT:Ljava/lang/String;
|
||||
Landroid/os/BatteryManager;->EXTRA_MAX_CHARGING_VOLTAGE:Ljava/lang/String;
|
||||
Landroid/os/BatteryStats$Counter;->getCountLocked(I)I
|
||||
Landroid/os/BatteryStats$HistoryItem;-><init>()V
|
||||
Landroid/os/BatteryStats$HistoryItem;->batteryHealth:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->batteryLevel:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->batteryPlugType:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->batteryStatus:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->batteryVoltage:C
|
||||
Landroid/os/BatteryStats$HistoryItem;->cmd:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->CMD_UPDATE:B
|
||||
Landroid/os/BatteryStats$HistoryItem;->states2:I
|
||||
Landroid/os/BatteryStats$HistoryItem;->states:I
|
||||
Landroid/os/BatteryStats$HistoryItem;->time:J
|
||||
Landroid/os/BatteryStats$Timer;->getCountLocked(I)I
|
||||
Landroid/os/BatteryStats$Timer;->getTotalTimeLocked(JI)J
|
||||
Landroid/os/BatteryStats$Uid$Pkg$Serv;->getLaunches(I)I
|
||||
Landroid/os/BatteryStats$Uid$Pkg$Serv;->getStarts(I)I
|
||||
Landroid/os/BatteryStats$Uid$Pkg$Serv;->getStartTime(JI)J
|
||||
Landroid/os/BatteryStats$Uid$Pkg;->getServiceStats()Landroid/util/ArrayMap;
|
||||
Landroid/os/BatteryStats$Uid$Pkg;->getWakeupAlarmStats()Landroid/util/ArrayMap;
|
||||
Landroid/os/BatteryStats$Uid$Proc$ExcessivePower;-><init>()V
|
||||
Landroid/os/BatteryStats$Uid$Proc$ExcessivePower;->overTime:J
|
||||
Landroid/os/BatteryStats$Uid$Proc$ExcessivePower;->type:I
|
||||
Landroid/os/BatteryStats$Uid$Proc$ExcessivePower;->usedTime:J
|
||||
Landroid/os/BatteryStats$Uid$Proc;->countExcessivePowers()I
|
||||
Landroid/os/BatteryStats$Uid$Proc;->getExcessivePower(I)Landroid/os/BatteryStats$Uid$Proc$ExcessivePower;
|
||||
Landroid/os/BatteryStats$Uid$Proc;->getForegroundTime(I)J
|
||||
Landroid/os/BatteryStats$Uid$Proc;->getStarts(I)I
|
||||
Landroid/os/BatteryStats$Uid$Proc;->getSystemTime(I)J
|
||||
Landroid/os/BatteryStats$Uid$Proc;->getUserTime(I)J
|
||||
Landroid/os/BatteryStats$Uid$Sensor;->getHandle()I
|
||||
Landroid/os/BatteryStats$Uid$Sensor;->getSensorTime()Landroid/os/BatteryStats$Timer;
|
||||
Landroid/os/BatteryStats$Uid$Sensor;->GPS:I
|
||||
Landroid/os/BatteryStats$Uid$Wakelock;->getWakeTime(I)Landroid/os/BatteryStats$Timer;
|
||||
Landroid/os/BatteryStats$Uid;-><init>()V
|
||||
Landroid/os/BatteryStats$Uid;->getAudioTurnedOnTimer()Landroid/os/BatteryStats$Timer;
|
||||
Landroid/os/BatteryStats$Uid;->getFullWifiLockTime(JI)J
|
||||
Landroid/os/BatteryStats$Uid;->getMobileRadioActiveTime(I)J
|
||||
Landroid/os/BatteryStats$Uid;->getNetworkActivityBytes(II)J
|
||||
Landroid/os/BatteryStats$Uid;->getPackageStats()Landroid/util/ArrayMap;
|
||||
Landroid/os/BatteryStats$Uid;->getProcessStats()Landroid/util/ArrayMap;
|
||||
Landroid/os/BatteryStats$Uid;->getSensorStats()Landroid/util/SparseArray;
|
||||
Landroid/os/BatteryStats$Uid;->getUid()I
|
||||
Landroid/os/BatteryStats$Uid;->getVideoTurnedOnTimer()Landroid/os/BatteryStats$Timer;
|
||||
Landroid/os/BatteryStats$Uid;->getWakelockStats()Landroid/util/ArrayMap;
|
||||
Landroid/os/BatteryStats$Uid;->getWifiBatchedScanTime(IJI)J
|
||||
Landroid/os/BatteryStats$Uid;->getWifiMulticastTime(JI)J
|
||||
Landroid/os/BatteryStats$Uid;->getWifiRunningTime(JI)J
|
||||
Landroid/os/BatteryStats$Uid;->getWifiScanTime(JI)J
|
||||
Landroid/os/BatteryStats;->computeBatteryRealtime(JI)J
|
||||
Landroid/os/BatteryStats;->computeBatteryTimeRemaining(J)J
|
||||
Landroid/os/BatteryStats;->computeBatteryUptime(JI)J
|
||||
Landroid/os/BatteryStats;->computeChargeTimeRemaining(J)J
|
||||
Landroid/os/BatteryStats;->dumpLine(Ljava/io/PrintWriter;ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
||||
Landroid/os/BatteryStats;->getBatteryUptime(J)J
|
||||
Landroid/os/BatteryStats;->getGlobalWifiRunningTime(JI)J
|
||||
Landroid/os/BatteryStats;->getNextHistoryLocked(Landroid/os/BatteryStats$HistoryItem;)Z
|
||||
Landroid/os/BatteryStats;->getPhoneOnTime(JI)J
|
||||
Landroid/os/BatteryStats;->getPhoneSignalStrengthTime(IJI)J
|
||||
Landroid/os/BatteryStats;->getScreenBrightnessTime(IJI)J
|
||||
Landroid/os/BatteryStats;->getScreenOnTime(JI)J
|
||||
Landroid/os/BatteryStats;->getUidStats()Landroid/util/SparseArray;
|
||||
Landroid/os/BatteryStats;->getWifiOnTime(JI)J
|
||||
Landroid/os/BatteryStats;->NUM_DATA_CONNECTION_TYPES:I
|
||||
Landroid/os/BatteryStats;->NUM_SCREEN_BRIGHTNESS_BINS:I
|
||||
Landroid/os/BatteryStats;->startIteratingHistoryLocked()Z
|
||||
Landroid/os/BatteryStats;->STATS_CURRENT:I
|
||||
Landroid/os/BatteryStats;->WAKE_TYPE_PARTIAL:I
|
||||
Landroid/os/Binder;->execTransact(IJJI)Z
|
||||
Landroid/os/Binder;->mObject:J
|
||||
Landroid/os/Broadcaster;-><init>()V
|
||||
Landroid/os/Broadcaster;->broadcast(Landroid/os/Message;)V
|
||||
Landroid/os/Broadcaster;->cancelRequest(ILandroid/os/Handler;I)V
|
||||
Landroid/os/Broadcaster;->request(ILandroid/os/Handler;I)V
|
||||
Landroid/os/Build$VERSION;->ACTIVE_CODENAMES:[Ljava/lang/String;
|
||||
Landroid/os/Build;->getLong(Ljava/lang/String;)J
|
||||
Landroid/os/Build;->getString(Ljava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/Build;->IS_DEBUGGABLE:Z
|
||||
Landroid/os/Build;->IS_EMULATOR:Z
|
||||
Landroid/os/Bundle;->filterValues()Landroid/os/Bundle;
|
||||
Landroid/os/Bundle;->forPair(Ljava/lang/String;Ljava/lang/String;)Landroid/os/Bundle;
|
||||
Landroid/os/Bundle;->getIBinder(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/Bundle;->getSize()I
|
||||
Landroid/os/Bundle;->putIBinder(Ljava/lang/String;Landroid/os/IBinder;)V
|
||||
Landroid/os/Bundle;->putParcelableList(Ljava/lang/String;Ljava/util/List;)V
|
||||
Landroid/os/Bundle;->setDefusable(Landroid/os/Bundle;Z)Landroid/os/Bundle;
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikPrivateClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikRss:I
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikSharedClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikSwappablePss:I
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikSwappedOut:I
|
||||
Landroid/os/Debug$MemoryInfo;->dalvikSwappedOutPss:I
|
||||
Landroid/os/Debug$MemoryInfo;->getOtherLabel(I)Ljava/lang/String;
|
||||
Landroid/os/Debug$MemoryInfo;->getOtherPrivate(I)I
|
||||
Landroid/os/Debug$MemoryInfo;->getOtherPrivateDirty(I)I
|
||||
Landroid/os/Debug$MemoryInfo;->getOtherPss(I)I
|
||||
Landroid/os/Debug$MemoryInfo;->getOtherSharedDirty(I)I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryCode()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryGraphics()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryJavaHeap()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryNativeHeap()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryPrivateOther()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummaryStack()I
|
||||
Landroid/os/Debug$MemoryInfo;->getSummarySystem()I
|
||||
Landroid/os/Debug$MemoryInfo;->getTotalUss()I
|
||||
Landroid/os/Debug$MemoryInfo;->hasSwappedOutPss:Z
|
||||
Landroid/os/Debug$MemoryInfo;->nativePrivateClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->nativeRss:I
|
||||
Landroid/os/Debug$MemoryInfo;->nativeSharedClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->nativeSwappablePss:I
|
||||
Landroid/os/Debug$MemoryInfo;->nativeSwappedOut:I
|
||||
Landroid/os/Debug$MemoryInfo;->nativeSwappedOutPss:I
|
||||
Landroid/os/Debug$MemoryInfo;->NUM_DVK_STATS:I
|
||||
Landroid/os/Debug$MemoryInfo;->NUM_OTHER_STATS:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherPrivateClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherRss:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherSharedClean:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherStats:[I
|
||||
Landroid/os/Debug$MemoryInfo;->otherSwappablePss:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherSwappedOut:I
|
||||
Landroid/os/Debug$MemoryInfo;->otherSwappedOutPss:I
|
||||
Landroid/os/Debug;-><init>()V
|
||||
Landroid/os/Debug;->countInstancesOfClass(Ljava/lang/Class;)J
|
||||
Landroid/os/Debug;->dumpNativeHeap(Ljava/io/FileDescriptor;)V
|
||||
Landroid/os/Debug;->dumpReferenceTables()V
|
||||
Landroid/os/Debug;->getCaller()Ljava/lang/String;
|
||||
Landroid/os/Debug;->getCallers(I)Ljava/lang/String;
|
||||
Landroid/os/Debug;->getMemInfo([J)V
|
||||
Landroid/os/Debug;->getMemoryInfo(ILandroid/os/Debug$MemoryInfo;)V
|
||||
Landroid/os/DropBoxManager;->mService:Lcom/android/internal/os/IDropBoxManagerService;
|
||||
Landroid/os/Environment$UserEnvironment;-><init>(I)V
|
||||
Landroid/os/Environment$UserEnvironment;->getExternalDirs()[Ljava/io/File;
|
||||
Landroid/os/Environment$UserEnvironment;->getExternalStorageDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment$UserEnvironment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAndroidDataDirs()[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAppCacheDirs(Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAppDataDirs(Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAppFilesDirs(Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAppMediaDirs(Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildExternalStorageAppObbDirs(Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->buildPaths([Ljava/io/File;[Ljava/lang/String;)[Ljava/io/File;
|
||||
Landroid/os/Environment;->getDataSystemDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->getLegacyExternalStorageDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->getLegacyExternalStorageObbDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->getOemDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->getStorageDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->getVendorDirectory()Ljava/io/File;
|
||||
Landroid/os/Environment;->initForCurrentUser()V
|
||||
Landroid/os/Environment;->maybeTranslateEmulatedPathToInternal(Ljava/io/File;)Ljava/io/File;
|
||||
Landroid/os/Environment;->sCurrentUser:Landroid/os/Environment$UserEnvironment;
|
||||
Landroid/os/FileObserver$ObserverThread;->onEvent(IILjava/lang/String;)V
|
||||
Landroid/os/FileObserver;->s_observerThread:Landroid/os/FileObserver$ObserverThread;
|
||||
Landroid/os/FileUtils;-><init>()V
|
||||
Landroid/os/FileUtils;->checksumCrc32(Ljava/io/File;)J
|
||||
Landroid/os/FileUtils;->copyFile(Ljava/io/File;Ljava/io/File;)Z
|
||||
Landroid/os/FileUtils;->copyToFile(Ljava/io/InputStream;Ljava/io/File;)Z
|
||||
Landroid/os/FileUtils;->deleteContents(Ljava/io/File;)Z
|
||||
Landroid/os/FileUtils;->deleteOlderFiles(Ljava/io/File;IJ)Z
|
||||
Landroid/os/FileUtils;->isFilenameSafe(Ljava/io/File;)Z
|
||||
Landroid/os/FileUtils;->readTextFile(Ljava/io/File;ILjava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/FileUtils;->setPermissions(Ljava/io/File;III)I
|
||||
Landroid/os/FileUtils;->setPermissions(Ljava/io/FileDescriptor;III)I
|
||||
Landroid/os/FileUtils;->setPermissions(Ljava/lang/String;III)I
|
||||
Landroid/os/FileUtils;->stringToFile(Ljava/io/File;Ljava/lang/String;)V
|
||||
Landroid/os/FileUtils;->stringToFile(Ljava/lang/String;Ljava/lang/String;)V
|
||||
Landroid/os/FileUtils;->sync(Ljava/io/FileOutputStream;)Z
|
||||
Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;Z)V
|
||||
Landroid/os/Handler;-><init>(Z)V
|
||||
Landroid/os/Handler;->getIMessenger()Landroid/os/IMessenger;
|
||||
Landroid/os/Handler;->getMain()Landroid/os/Handler;
|
||||
Landroid/os/Handler;->getPostMessage(Ljava/lang/Runnable;Ljava/lang/Object;)Landroid/os/Message;
|
||||
Landroid/os/Handler;->hasCallbacks(Ljava/lang/Runnable;)Z
|
||||
Landroid/os/Handler;->mCallback:Landroid/os/Handler$Callback;
|
||||
Landroid/os/Handler;->mLooper:Landroid/os/Looper;
|
||||
Landroid/os/Handler;->mMessenger:Landroid/os/IMessenger;
|
||||
Landroid/os/HwBinder;->reportSyspropChanged()V
|
||||
Landroid/os/HwParcel;-><init>(Z)V
|
||||
Landroid/os/HwRemoteBinder;-><init>()V
|
||||
Landroid/os/IBatteryPropertiesRegistrar$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/os/IBinder;->SYSPROPS_TRANSACTION:I
|
||||
Landroid/os/IDeviceIdentifiersPolicyService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IDeviceIdentifiersPolicyService;
|
||||
Landroid/os/IDeviceIdleController$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IDeviceIdleController;
|
||||
Landroid/os/IDeviceIdleController;->addPowerSaveTempWhitelistApp(Ljava/lang/String;JILjava/lang/String;)V
|
||||
Landroid/os/IDeviceIdleController;->getAppIdTempWhitelist()[I
|
||||
Landroid/os/IDeviceIdleController;->getFullPowerWhitelistExceptIdle()[Ljava/lang/String;
|
||||
Landroid/os/INetworkManagementService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/os/INetworkManagementService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/INetworkManagementService;
|
||||
Landroid/os/INetworkManagementService;->clearInterfaceAddresses(Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->disableIpv6(Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->disableNat(Ljava/lang/String;Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->enableIpv6(Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->enableNat(Ljava/lang/String;Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->getInterfaceConfig(Ljava/lang/String;)Landroid/net/InterfaceConfiguration;
|
||||
Landroid/os/INetworkManagementService;->getIpForwardingEnabled()Z
|
||||
Landroid/os/INetworkManagementService;->isBandwidthControlEnabled()Z
|
||||
Landroid/os/INetworkManagementService;->isTetheringStarted()Z
|
||||
Landroid/os/INetworkManagementService;->listTetheredInterfaces()[Ljava/lang/String;
|
||||
Landroid/os/INetworkManagementService;->registerObserver(Landroid/net/INetworkManagementEventObserver;)V
|
||||
Landroid/os/INetworkManagementService;->setInterfaceConfig(Ljava/lang/String;Landroid/net/InterfaceConfiguration;)V
|
||||
Landroid/os/INetworkManagementService;->setInterfaceIpv6PrivacyExtensions(Ljava/lang/String;Z)V
|
||||
Landroid/os/INetworkManagementService;->setIpForwardingEnabled(Z)V
|
||||
Landroid/os/INetworkManagementService;->setIPv6AddrGenMode(Ljava/lang/String;I)V
|
||||
Landroid/os/INetworkManagementService;->startTethering([Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->stopTethering()V
|
||||
Landroid/os/INetworkManagementService;->tetherInterface(Ljava/lang/String;)V
|
||||
Landroid/os/INetworkManagementService;->unregisterObserver(Landroid/net/INetworkManagementEventObserver;)V
|
||||
Landroid/os/INetworkManagementService;->untetherInterface(Ljava/lang/String;)V
|
||||
Landroid/os/IPermissionController$Stub$Proxy;->checkPermission(Ljava/lang/String;II)Z
|
||||
Landroid/os/IPermissionController$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IPermissionController;
|
||||
Landroid/os/IPowerManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
@@ -611,313 +396,21 @@ Landroid/os/IPowerManager$Stub$Proxy;->isLightDeviceIdleMode()Z
|
||||
Landroid/os/IPowerManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IPowerManager;
|
||||
Landroid/os/IPowerManager$Stub;->TRANSACTION_acquireWakeLock:I
|
||||
Landroid/os/IPowerManager$Stub;->TRANSACTION_goToSleep:I
|
||||
Landroid/os/IPowerManager;->goToSleep(JII)V
|
||||
Landroid/os/IPowerManager;->isInteractive()Z
|
||||
Landroid/os/IPowerManager;->reboot(ZLjava/lang/String;Z)V
|
||||
Landroid/os/IPowerManager;->releaseWakeLock(Landroid/os/IBinder;I)V
|
||||
Landroid/os/IPowerManager;->userActivity(JII)V
|
||||
Landroid/os/IPowerManager;->wakeUp(JLjava/lang/String;Ljava/lang/String;)V
|
||||
Landroid/os/IRecoverySystem$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IRecoverySystem;
|
||||
Landroid/os/IRemoteCallback$Stub;-><init>()V
|
||||
Landroid/os/IRemoteCallback;->sendResult(Landroid/os/Bundle;)V
|
||||
Landroid/os/IServiceManager;->checkService(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/IServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/IUpdateEngine$Stub;-><init>()V
|
||||
Landroid/os/IUpdateEngineCallback;->onStatusUpdate(IF)V
|
||||
Landroid/os/IUserManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/os/IUserManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IUserManager;
|
||||
Landroid/os/IUserManager;->getUserInfo(I)Landroid/content/pm/UserInfo;
|
||||
Landroid/os/IVibratorService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IVibratorService;
|
||||
Landroid/os/LocaleList;->setDefault(Landroid/os/LocaleList;I)V
|
||||
Landroid/os/Looper;->mLogging:Landroid/util/Printer;
|
||||
Landroid/os/Looper;->mQueue:Landroid/os/MessageQueue;
|
||||
Landroid/os/Looper;->setTraceTag(J)V
|
||||
Landroid/os/Looper;->sMainLooper:Landroid/os/Looper;
|
||||
Landroid/os/Looper;->sThreadLocal:Ljava/lang/ThreadLocal;
|
||||
Landroid/os/MemoryFile;->deactivate()V
|
||||
Landroid/os/MemoryFile;->getFileDescriptor()Ljava/io/FileDescriptor;
|
||||
Landroid/os/MemoryFile;->getSize(Ljava/io/FileDescriptor;)I
|
||||
Landroid/os/MemoryFile;->native_get_size(Ljava/io/FileDescriptor;)I
|
||||
Landroid/os/MemoryFile;->native_pin(Ljava/io/FileDescriptor;Z)Z
|
||||
Landroid/os/Message;->callback:Ljava/lang/Runnable;
|
||||
Landroid/os/Message;->flags:I
|
||||
Landroid/os/Message;->markInUse()V
|
||||
Landroid/os/Message;->next:Landroid/os/Message;
|
||||
Landroid/os/Message;->recycleUnchecked()V
|
||||
Landroid/os/Message;->setCallback(Ljava/lang/Runnable;)Landroid/os/Message;
|
||||
Landroid/os/Message;->target:Landroid/os/Handler;
|
||||
Landroid/os/Message;->toString(J)Ljava/lang/String;
|
||||
Landroid/os/Message;->when:J
|
||||
Landroid/os/MessageQueue;->dispatchEvents(II)I
|
||||
Landroid/os/MessageQueue;->hasMessages(Landroid/os/Handler;Ljava/lang/Runnable;Ljava/lang/Object;)Z
|
||||
Landroid/os/MessageQueue;->mIdleHandlers:Ljava/util/ArrayList;
|
||||
Landroid/os/MessageQueue;->mMessages:Landroid/os/Message;
|
||||
Landroid/os/MessageQueue;->mNextBarrierToken:I
|
||||
Landroid/os/MessageQueue;->mPtr:J
|
||||
Landroid/os/MessageQueue;->mQuitAllowed:Z
|
||||
Landroid/os/MessageQueue;->nativePollOnce(JI)V
|
||||
Landroid/os/MessageQueue;->next()Landroid/os/Message;
|
||||
Landroid/os/MessageQueue;->postSyncBarrier()I
|
||||
Landroid/os/MessageQueue;->removeSyncBarrier(I)V
|
||||
Landroid/os/Parcel$ReadWriteHelper;-><init>()V
|
||||
Landroid/os/Parcel;->getGlobalAllocCount()J
|
||||
Landroid/os/Parcel;->getGlobalAllocSize()J
|
||||
Landroid/os/Parcel;->mNativePtr:J
|
||||
Landroid/os/Parcel;->readArrayMap(Landroid/util/ArrayMap;Ljava/lang/ClassLoader;)V
|
||||
Landroid/os/Parcel;->readArraySet(Ljava/lang/ClassLoader;)Landroid/util/ArraySet;
|
||||
Landroid/os/Parcel;->readBlob()[B
|
||||
Landroid/os/Parcel;->readCharSequence()Ljava/lang/CharSequence;
|
||||
Landroid/os/Parcel;->readCreator(Landroid/os/Parcelable$Creator;Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
||||
Landroid/os/Parcel;->readExceptionCode()I
|
||||
Landroid/os/Parcel;->readParcelableCreator(Ljava/lang/ClassLoader;)Landroid/os/Parcelable$Creator;
|
||||
Landroid/os/Parcel;->readParcelableList(Ljava/util/List;Ljava/lang/ClassLoader;)Ljava/util/List;
|
||||
Landroid/os/Parcel;->readRawFileDescriptor()Ljava/io/FileDescriptor;
|
||||
Landroid/os/Parcel;->readStringArray()[Ljava/lang/String;
|
||||
Landroid/os/Parcel;->writeArrayMap(Landroid/util/ArrayMap;)V
|
||||
Landroid/os/Parcel;->writeArraySet(Landroid/util/ArraySet;)V
|
||||
Landroid/os/Parcel;->writeBlob([B)V
|
||||
Landroid/os/Parcel;->writeCharSequence(Ljava/lang/CharSequence;)V
|
||||
Landroid/os/Parcel;->writeParcelableCreator(Landroid/os/Parcelable;)V
|
||||
Landroid/os/Parcel;->writeParcelableList(Ljava/util/List;I)V
|
||||
Landroid/os/ParcelableParcel;-><init>(Ljava/lang/ClassLoader;)V
|
||||
Landroid/os/ParcelableParcel;->CREATOR:Landroid/os/Parcelable$ClassLoaderCreator;
|
||||
Landroid/os/ParcelableParcel;->getClassLoader()Ljava/lang/ClassLoader;
|
||||
Landroid/os/ParcelableParcel;->getParcel()Landroid/os/Parcel;
|
||||
Landroid/os/ParcelFileDescriptor;-><init>(Ljava/io/FileDescriptor;)V
|
||||
Landroid/os/ParcelFileDescriptor;->fromData([BLjava/lang/String;)Landroid/os/ParcelFileDescriptor;
|
||||
Landroid/os/ParcelFileDescriptor;->getFile(Ljava/io/FileDescriptor;)Ljava/io/File;
|
||||
Landroid/os/ParcelFileDescriptor;->seekTo(J)J
|
||||
Landroid/os/PerformanceCollector;-><init>()V
|
||||
Landroid/os/PerformanceCollector;->beginSnapshot(Ljava/lang/String;)V
|
||||
Landroid/os/PerformanceCollector;->endSnapshot()Landroid/os/Bundle;
|
||||
Landroid/os/PerformanceCollector;->startTiming(Ljava/lang/String;)V
|
||||
Landroid/os/PerformanceCollector;->stopTiming(Ljava/lang/String;)Landroid/os/Bundle;
|
||||
Landroid/os/PowerManager$WakeLock;->mFlags:I
|
||||
Landroid/os/PowerManager$WakeLock;->mTag:Ljava/lang/String;
|
||||
Landroid/os/PowerManager;->ACTION_LIGHT_DEVICE_IDLE_MODE_CHANGED:Ljava/lang/String;
|
||||
Landroid/os/PowerManager;->ACTION_POWER_SAVE_MODE_CHANGING:Ljava/lang/String;
|
||||
Landroid/os/PowerManager;->BRIGHTNESS_ON:I
|
||||
Landroid/os/PowerManager;->EXTRA_POWER_SAVE_MODE:Ljava/lang/String;
|
||||
Landroid/os/PowerManager;->getDefaultScreenBrightnessSetting()I
|
||||
Landroid/os/PowerManager;->getMaximumScreenBrightnessSetting()I
|
||||
Landroid/os/PowerManager;->getMinimumScreenBrightnessSetting()I
|
||||
Landroid/os/PowerManager;->goToSleep(JII)V
|
||||
Landroid/os/PowerManager;->GO_TO_SLEEP_REASON_TIMEOUT:I
|
||||
Landroid/os/PowerManager;->isLightDeviceIdleMode()Z
|
||||
Landroid/os/PowerManager;->mService:Landroid/os/IPowerManager;
|
||||
Landroid/os/PowerManager;->setPowerSaveMode(Z)Z
|
||||
Landroid/os/PowerManager;->validateWakeLockParameters(ILjava/lang/String;)V
|
||||
Landroid/os/PowerManager;->wakeUp(JLjava/lang/String;)V
|
||||
Landroid/os/Process;->DRM_UID:I
|
||||
Landroid/os/Process;->getFreeMemory()J
|
||||
Landroid/os/Process;->getParentPid(I)I
|
||||
Landroid/os/Process;->getPids(Ljava/lang/String;[I)[I
|
||||
Landroid/os/Process;->getPidsForCommands([Ljava/lang/String;)[I
|
||||
Landroid/os/Process;->getPss(I)J
|
||||
Landroid/os/Process;->getTotalMemory()J
|
||||
Landroid/os/Process;->getUidForPid(I)I
|
||||
Landroid/os/Process;->isIsolated(I)Z
|
||||
Landroid/os/Process;->LOG_UID:I
|
||||
Landroid/os/Process;->MEDIA_UID:I
|
||||
Landroid/os/Process;->myPpid()I
|
||||
Landroid/os/Process;->NFC_UID:I
|
||||
Landroid/os/Process;->parseProcLine([BII[I[Ljava/lang/String;[J[F)Z
|
||||
Landroid/os/Process;->PROC_COMBINE:I
|
||||
Landroid/os/Process;->PROC_OUT_FLOAT:I
|
||||
Landroid/os/Process;->PROC_OUT_LONG:I
|
||||
Landroid/os/Process;->PROC_OUT_STRING:I
|
||||
Landroid/os/Process;->PROC_PARENS:I
|
||||
Landroid/os/Process;->PROC_QUOTES:I
|
||||
Landroid/os/Process;->PROC_SPACE_TERM:I
|
||||
Landroid/os/Process;->PROC_TAB_TERM:I
|
||||
Landroid/os/Process;->PROC_TERM_MASK:I
|
||||
Landroid/os/Process;->PROC_ZERO_TERM:I
|
||||
Landroid/os/Process;->readProcFile(Ljava/lang/String;[I[Ljava/lang/String;[J[F)Z
|
||||
Landroid/os/Process;->readProcLines(Ljava/lang/String;[Ljava/lang/String;[J)V
|
||||
Landroid/os/Process;->setArgV0(Ljava/lang/String;)V
|
||||
Landroid/os/Process;->setProcessGroup(II)V
|
||||
Landroid/os/Process;->VPN_UID:I
|
||||
Landroid/os/Process;->WIFI_UID:I
|
||||
Landroid/os/RecoverySystem;->verifyPackageCompatibility(Ljava/io/InputStream;)Z
|
||||
Landroid/os/Registrant;-><init>(Landroid/os/Handler;ILjava/lang/Object;)V
|
||||
Landroid/os/Registrant;->clear()V
|
||||
Landroid/os/Registrant;->messageForRegistrant()Landroid/os/Message;
|
||||
Landroid/os/Registrant;->notifyRegistrant()V
|
||||
Landroid/os/Registrant;->notifyRegistrant(Landroid/os/AsyncResult;)V
|
||||
Landroid/os/Registrant;->notifyResult(Ljava/lang/Object;)V
|
||||
Landroid/os/RegistrantList;-><init>()V
|
||||
Landroid/os/RegistrantList;->add(Landroid/os/Handler;ILjava/lang/Object;)V
|
||||
Landroid/os/RegistrantList;->add(Landroid/os/Registrant;)V
|
||||
Landroid/os/RegistrantList;->addUnique(Landroid/os/Handler;ILjava/lang/Object;)V
|
||||
Landroid/os/RegistrantList;->notifyRegistrants()V
|
||||
Landroid/os/RegistrantList;->notifyRegistrants(Landroid/os/AsyncResult;)V
|
||||
Landroid/os/RegistrantList;->notifyResult(Ljava/lang/Object;)V
|
||||
Landroid/os/RegistrantList;->remove(Landroid/os/Handler;)V
|
||||
Landroid/os/RegistrantList;->removeCleared()V
|
||||
Landroid/os/RegistrantList;->size()I
|
||||
Landroid/os/RemoteCallbackList;->mCallbacks:Landroid/util/ArrayMap;
|
||||
Landroid/os/RemoteException;->rethrowFromSystemServer()Ljava/lang/RuntimeException;
|
||||
Landroid/os/SELinux;->checkSELinuxAccess(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
|
||||
Landroid/os/SELinux;->getContext()Ljava/lang/String;
|
||||
Landroid/os/SELinux;->getFileContext(Ljava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/SELinux;->getPidContext(I)Ljava/lang/String;
|
||||
Landroid/os/SELinux;->isSELinuxEnabled()Z
|
||||
Landroid/os/SELinux;->isSELinuxEnforced()Z
|
||||
Landroid/os/SELinux;->restoreconRecursive(Ljava/io/File;)Z
|
||||
Landroid/os/ServiceManager;-><init>()V
|
||||
Landroid/os/ServiceManager;->addService(Ljava/lang/String;Landroid/os/IBinder;)V
|
||||
Landroid/os/ServiceManager;->addService(Ljava/lang/String;Landroid/os/IBinder;Z)V
|
||||
Landroid/os/ServiceManager;->addService(Ljava/lang/String;Landroid/os/IBinder;ZI)V
|
||||
Landroid/os/ServiceManager;->checkService(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/ServiceManager;->getIServiceManager()Landroid/os/IServiceManager;
|
||||
Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/ServiceManager;->listServices()[Ljava/lang/String;
|
||||
Landroid/os/ServiceManager;->sCache:Ljava/util/HashMap;
|
||||
Landroid/os/ServiceManager;->sServiceManager:Landroid/os/IServiceManager;
|
||||
Landroid/os/ServiceManagerNative;->asInterface(Landroid/os/IBinder;)Landroid/os/IServiceManager;
|
||||
Landroid/os/ServiceManagerProxy;->getService(Ljava/lang/String;)Landroid/os/IBinder;
|
||||
Landroid/os/ServiceManagerProxy;->mRemote:Landroid/os/IBinder;
|
||||
Landroid/os/SharedMemory;->getFd()I
|
||||
Landroid/os/ShellCommand;->peekNextArg()Ljava/lang/String;
|
||||
Landroid/os/StatFs;->mStat:Landroid/system/StructStatVfs;
|
||||
Landroid/os/storage/IObbActionListener$Stub;-><init>()V
|
||||
Landroid/os/storage/IStorageManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/os/storage/IStorageManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/storage/IStorageManager;
|
||||
Landroid/os/storage/StorageEventListener;-><init>()V
|
||||
Landroid/os/StrictMode$Span;->finish()V
|
||||
Landroid/os/StrictMode$ThreadPolicy;->mask:I
|
||||
Landroid/os/StrictMode$VmPolicy$Builder;->mMask:I
|
||||
Landroid/os/StrictMode$VmPolicy;->mask:I
|
||||
Landroid/os/StrictMode;->conditionallyCheckInstanceCounts()V
|
||||
Landroid/os/StrictMode;->disableDeathOnFileUriExposure()V
|
||||
Landroid/os/StrictMode;->enableDeathOnFileUriExposure()V
|
||||
Landroid/os/StrictMode;->enterCriticalSpan(Ljava/lang/String;)Landroid/os/StrictMode$Span;
|
||||
Landroid/os/StrictMode;->getThreadPolicyMask()I
|
||||
Landroid/os/StrictMode;->incrementExpectedActivityCount(Ljava/lang/Class;)V
|
||||
Landroid/os/StrictMode;->onBinderStrictModePolicyChange(I)V
|
||||
Landroid/os/StrictMode;->onWebViewMethodCalledOnWrongThread(Ljava/lang/Throwable;)V
|
||||
Landroid/os/StrictMode;->sLastVmViolationTime:Ljava/util/HashMap;
|
||||
Landroid/os/StrictMode;->sWindowManager:Landroid/util/Singleton;
|
||||
Landroid/os/StrictMode;->violationsBeingTimed:Ljava/lang/ThreadLocal;
|
||||
Landroid/os/SystemClock;-><init>()V
|
||||
Landroid/os/SystemClock;->currentThreadTimeMicro()J
|
||||
Landroid/os/SystemClock;->currentTimeMicro()J
|
||||
Landroid/os/SystemProperties;-><init>()V
|
||||
Landroid/os/SystemProperties;->addChangeCallback(Ljava/lang/Runnable;)V
|
||||
Landroid/os/SystemProperties;->native_get(Ljava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/SystemProperties;->native_get_long(Ljava/lang/String;J)J
|
||||
Landroid/os/SystemProperties;->PROP_NAME_MAX:I
|
||||
Landroid/os/SystemProperties;->reportSyspropChanged()V
|
||||
Landroid/os/SystemProperties;->sChangeCallbacks:Ljava/util/ArrayList;
|
||||
Landroid/os/SystemProperties;->set(Ljava/lang/String;Ljava/lang/String;)V
|
||||
Landroid/os/SystemService;->start(Ljava/lang/String;)V
|
||||
Landroid/os/SystemService;->stop(Ljava/lang/String;)V
|
||||
Landroid/os/SystemVibrator;-><init>()V
|
||||
Landroid/os/SystemVibrator;-><init>(Landroid/content/Context;)V
|
||||
Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V
|
||||
Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V
|
||||
Landroid/os/Trace;->isTagEnabled(J)Z
|
||||
Landroid/os/Trace;->nativeGetEnabledTags()J
|
||||
Landroid/os/Trace;->sEnabledTags:J
|
||||
Landroid/os/Trace;->setAppTracingAllowed(Z)V
|
||||
Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V
|
||||
Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V
|
||||
Landroid/os/Trace;->traceEnd(J)V
|
||||
Landroid/os/Trace;->TRACE_TAG_APP:J
|
||||
Landroid/os/Trace;->TRACE_TAG_VIEW:J
|
||||
Landroid/os/UEventObserver$UEvent;->get(Ljava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/UEventObserver$UEvent;->get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
Landroid/os/UEventObserver;-><init>()V
|
||||
Landroid/os/UEventObserver;->onUEvent(Landroid/os/UEventObserver$UEvent;)V
|
||||
Landroid/os/UEventObserver;->startObserving(Ljava/lang/String;)V
|
||||
Landroid/os/UEventObserver;->stopObserving()V
|
||||
Landroid/os/UpdateLock;->acquire()V
|
||||
Landroid/os/UpdateLock;->isHeld()Z
|
||||
Landroid/os/UpdateLock;->NOW_IS_CONVENIENT:Ljava/lang/String;
|
||||
Landroid/os/UpdateLock;->release()V
|
||||
Landroid/os/UpdateLock;->TIMESTAMP:Ljava/lang/String;
|
||||
Landroid/os/UpdateLock;->UPDATE_LOCK_CHANGED:Ljava/lang/String;
|
||||
Landroid/os/UserHandle;-><init>(I)V
|
||||
Landroid/os/UserHandle;->AID_APP_END:I
|
||||
Landroid/os/UserHandle;->AID_APP_START:I
|
||||
Landroid/os/UserHandle;->AID_CACHE_GID_START:I
|
||||
Landroid/os/UserHandle;->AID_ROOT:I
|
||||
Landroid/os/UserHandle;->AID_SHARED_GID_START:I
|
||||
Landroid/os/UserHandle;->CURRENT_OR_SELF:Landroid/os/UserHandle;
|
||||
Landroid/os/UserHandle;->ERR_GID:I
|
||||
Landroid/os/UserHandle;->getAppIdFromSharedAppGid(I)I
|
||||
Landroid/os/UserHandle;->getCallingUserId()I
|
||||
Landroid/os/UserHandle;->getUid(II)I
|
||||
Landroid/os/UserHandle;->getUserId(I)I
|
||||
Landroid/os/UserHandle;->isApp(I)Z
|
||||
Landroid/os/UserHandle;->isIsolated(I)Z
|
||||
Landroid/os/UserHandle;->isSameApp(II)Z
|
||||
Landroid/os/UserHandle;->mHandle:I
|
||||
Landroid/os/UserHandle;->MU_ENABLED:Z
|
||||
Landroid/os/UserHandle;->OWNER:Landroid/os/UserHandle;
|
||||
Landroid/os/UserHandle;->PER_USER_RANGE:I
|
||||
Landroid/os/UserHandle;->USER_ALL:I
|
||||
Landroid/os/UserHandle;->USER_CURRENT:I
|
||||
Landroid/os/UserHandle;->USER_CURRENT_OR_SELF:I
|
||||
Landroid/os/UserHandle;->USER_NULL:I
|
||||
Landroid/os/UserHandle;->USER_OWNER:I
|
||||
Landroid/os/UserHandle;->USER_SERIAL_SYSTEM:I
|
||||
Landroid/os/UserHandle;->USER_SYSTEM:I
|
||||
Landroid/os/UserManager;->createProfileForUser(Ljava/lang/String;II)Landroid/content/pm/UserInfo;
|
||||
Landroid/os/UserManager;->createUser(Ljava/lang/String;I)Landroid/content/pm/UserInfo;
|
||||
Landroid/os/UserManager;->DISALLOW_RECORD_AUDIO:Ljava/lang/String;
|
||||
Landroid/os/UserManager;->get(Landroid/content/Context;)Landroid/os/UserManager;
|
||||
Landroid/os/UserManager;->getEnabledProfiles(I)Ljava/util/List;
|
||||
Landroid/os/UserManager;->getMaxSupportedUsers()I
|
||||
Landroid/os/UserManager;->getProfileIdsWithDisabled(I)[I
|
||||
Landroid/os/UserManager;->getProfileParent(I)Landroid/content/pm/UserInfo;
|
||||
Landroid/os/UserManager;->getProfiles(I)Ljava/util/List;
|
||||
Landroid/os/UserManager;->getUserHandle()I
|
||||
Landroid/os/UserManager;->getUserHandle(I)I
|
||||
Landroid/os/UserManager;->getUserIcon(I)Landroid/graphics/Bitmap;
|
||||
Landroid/os/UserManager;->getUserInfo(I)Landroid/content/pm/UserInfo;
|
||||
Landroid/os/UserManager;->getUsers()Ljava/util/List;
|
||||
Landroid/os/UserManager;->getUsers(Z)Ljava/util/List;
|
||||
Landroid/os/UserManager;->getUserSerialNumber(I)I
|
||||
Landroid/os/UserManager;->getUserStartRealtime()J
|
||||
Landroid/os/UserManager;->getUserUnlockRealtime()J
|
||||
Landroid/os/UserManager;->hasBaseUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z
|
||||
Landroid/os/UserManager;->hasUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z
|
||||
Landroid/os/UserManager;->isAdminUser()Z
|
||||
Landroid/os/UserManager;->isDeviceInDemoMode(Landroid/content/Context;)Z
|
||||
Landroid/os/UserManager;->isGuestUser(I)Z
|
||||
Landroid/os/UserManager;->isLinkedUser()Z
|
||||
Landroid/os/UserManager;->isUserAdmin(I)Z
|
||||
Landroid/os/UserManager;->isUserUnlocked(I)Z
|
||||
Landroid/os/UserManager;->mService:Landroid/os/IUserManager;
|
||||
Landroid/os/UserManager;->removeUser(I)Z
|
||||
Landroid/os/Vibrator;-><init>()V
|
||||
Landroid/os/VintfObject;->getHalNamesAndVersions()[Ljava/lang/String;
|
||||
Landroid/os/VintfObject;->getSepolicyVersion()Ljava/lang/String;
|
||||
Landroid/os/VintfObject;->getTargetFrameworkCompatibilityMatrixVersion()Ljava/lang/Long;
|
||||
Landroid/os/VintfObject;->getVndkSnapshots()Ljava/util/Map;
|
||||
Landroid/os/VintfObject;->report()[Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getCpuInfo()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getHardwareId()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getKernelVersion()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getNodeName()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getOsName()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getOsRelease()Ljava/lang/String;
|
||||
Landroid/os/VintfRuntimeInfo;->getOsVersion()Ljava/lang/String;
|
||||
Landroid/os/WorkSource;-><init>(I)V
|
||||
Landroid/os/WorkSource;-><init>(Landroid/os/Parcel;)V
|
||||
Landroid/os/WorkSource;->add(I)Z
|
||||
Landroid/os/WorkSource;->add(ILjava/lang/String;)Z
|
||||
Landroid/os/WorkSource;->addReturningNewbs(Landroid/os/WorkSource;)Landroid/os/WorkSource;
|
||||
Landroid/os/WorkSource;->get(I)I
|
||||
Landroid/os/WorkSource;->getName(I)Ljava/lang/String;
|
||||
Landroid/os/WorkSource;->mNames:[Ljava/lang/String;
|
||||
Landroid/os/WorkSource;->mNum:I
|
||||
Landroid/os/WorkSource;->mUids:[I
|
||||
Landroid/os/WorkSource;->setReturningDiffs(Landroid/os/WorkSource;)[Landroid/os/WorkSource;
|
||||
Landroid/os/WorkSource;->size()I
|
||||
Landroid/os/ZygoteStartFailedEx;-><init>(Ljava/lang/String;)V
|
||||
Landroid/os/ZygoteStartFailedEx;-><init>(Ljava/lang/Throwable;)V
|
||||
Landroid/preference/PreferenceGroupAdapter;->getItem(I)Landroid/preference/Preference;
|
||||
Landroid/R$styleable;->ActionBar:[I
|
||||
Landroid/R$styleable;->ActionBar_background:I
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Message;
|
||||
|
||||
/** @hide */
|
||||
@@ -25,13 +26,17 @@ public class AsyncResult
|
||||
/*************************** Instance Variables **************************/
|
||||
|
||||
// Expect either exception or result to be null
|
||||
@UnsupportedAppUsage
|
||||
public Object userObj;
|
||||
@UnsupportedAppUsage
|
||||
public Throwable exception;
|
||||
@UnsupportedAppUsage
|
||||
public Object result;
|
||||
|
||||
/***************************** Class Methods *****************************/
|
||||
|
||||
/** Saves and sets m.obj */
|
||||
@UnsupportedAppUsage
|
||||
public static AsyncResult
|
||||
forMessage(Message m, Object r, Throwable ex)
|
||||
{
|
||||
@@ -45,6 +50,7 @@ public class AsyncResult
|
||||
}
|
||||
|
||||
/** Saves and sets m.obj */
|
||||
@UnsupportedAppUsage
|
||||
public static AsyncResult
|
||||
forMessage(Message m)
|
||||
{
|
||||
@@ -58,6 +64,7 @@ public class AsyncResult
|
||||
}
|
||||
|
||||
/** please note, this sets m.obj to be this */
|
||||
@UnsupportedAppUsage
|
||||
public
|
||||
AsyncResult (Object uo, Object r, Throwable ex)
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.MainThread;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.annotation.WorkerThread;
|
||||
|
||||
import java.util.ArrayDeque;
|
||||
@@ -259,15 +260,20 @@ public abstract class AsyncTask<Params, Progress, Result> {
|
||||
private static final int MESSAGE_POST_RESULT = 0x1;
|
||||
private static final int MESSAGE_POST_PROGRESS = 0x2;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static volatile Executor sDefaultExecutor = SERIAL_EXECUTOR;
|
||||
private static InternalHandler sHandler;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final WorkerRunnable<Params, Result> mWorker;
|
||||
@UnsupportedAppUsage
|
||||
private final FutureTask<Result> mFuture;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private volatile Status mStatus = Status.PENDING;
|
||||
|
||||
private final AtomicBoolean mCancelled = new AtomicBoolean();
|
||||
@UnsupportedAppUsage
|
||||
private final AtomicBoolean mTaskInvoked = new AtomicBoolean();
|
||||
|
||||
private final Handler mHandler;
|
||||
@@ -331,6 +337,7 @@ public abstract class AsyncTask<Params, Progress, Result> {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static void setDefaultExecutor(Executor exec) {
|
||||
sDefaultExecutor = exec;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Log;
|
||||
import android.util.MathUtils;
|
||||
@@ -82,6 +83,7 @@ public class BaseBundle {
|
||||
// Invariant - exactly one of mMap / mParcelledData will be null
|
||||
// (except inside a call to unparcel)
|
||||
|
||||
@UnsupportedAppUsage
|
||||
ArrayMap<String, Object> mMap = null;
|
||||
|
||||
/*
|
||||
@@ -89,6 +91,7 @@ public class BaseBundle {
|
||||
* data are stored as a Parcel containing a Bundle. When the data
|
||||
* are unparcelled, mParcelledData willbe set to null.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
Parcel mParcelledData = null;
|
||||
|
||||
/**
|
||||
@@ -225,6 +228,7 @@ public class BaseBundle {
|
||||
* If the underlying data are stored as a Parcel, unparcel them
|
||||
* using the currently assigned class loader.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
/* package */ void unparcel() {
|
||||
synchronized (this) {
|
||||
final Parcel source = mParcelledData;
|
||||
@@ -311,6 +315,7 @@ public class BaseBundle {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isParcelled() {
|
||||
return mParcelledData != null;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.hardware.health.V1_0.Constants;
|
||||
@@ -109,6 +110,7 @@ public class BatteryManager {
|
||||
* to the device.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String EXTRA_INVALID_CHARGER = "invalid_charger";
|
||||
|
||||
/**
|
||||
@@ -116,6 +118,7 @@ public class BatteryManager {
|
||||
* Int value set to the maximum charging current supported by the charger in micro amperes.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String EXTRA_MAX_CHARGING_CURRENT = "max_charging_current";
|
||||
|
||||
/**
|
||||
@@ -123,6 +126,7 @@ public class BatteryManager {
|
||||
* Int value set to the maximum charging voltage supported by the charger in micro volts.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String EXTRA_MAX_CHARGING_VOLTAGE = "max_charging_voltage";
|
||||
|
||||
/**
|
||||
@@ -130,6 +134,7 @@ public class BatteryManager {
|
||||
* integer containing the charge counter present in the battery.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String EXTRA_CHARGE_COUNTER = "charge_counter";
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.job.JobParameters;
|
||||
import android.content.Context;
|
||||
@@ -71,6 +72,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
/**
|
||||
* A constant indicating a partial wake lock timer.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int WAKE_TYPE_PARTIAL = 0;
|
||||
|
||||
/**
|
||||
@@ -196,6 +198,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
/**
|
||||
* Include only the current run in the stats.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int STATS_CURRENT = 1;
|
||||
|
||||
/**
|
||||
@@ -390,6 +393,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getCountLocked(int which);
|
||||
|
||||
/**
|
||||
@@ -491,6 +495,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getCountLocked(int which);
|
||||
|
||||
/**
|
||||
@@ -501,6 +506,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
|
||||
* @return a time in microseconds
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which);
|
||||
|
||||
/**
|
||||
@@ -603,6 +609,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @return a Map from Strings to Uid.Wakelock objects.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract ArrayMap<String, ? extends Wakelock> getWakelockStats();
|
||||
|
||||
/**
|
||||
@@ -637,6 +644,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* The statistics associated with a particular wake lock.
|
||||
*/
|
||||
public static abstract class Wakelock {
|
||||
@UnsupportedAppUsage
|
||||
public abstract Timer getWakeTime(int type);
|
||||
}
|
||||
|
||||
@@ -652,6 +660,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @return a Map from Integer sensor ids to Uid.Sensor objects.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract SparseArray<? extends Sensor> getSensorStats();
|
||||
|
||||
/**
|
||||
@@ -664,6 +673,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @return a Map from Strings to Uid.Proc objects.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract ArrayMap<String, ? extends Proc> getProcessStats();
|
||||
|
||||
/**
|
||||
@@ -671,6 +681,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @return a Map from Strings to Uid.Pkg objects.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract ArrayMap<String, ? extends Pkg> getPackageStats();
|
||||
|
||||
public abstract ControllerActivityCounter getWifiControllerActivity();
|
||||
@@ -680,6 +691,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
/**
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getUid();
|
||||
|
||||
public abstract void noteWifiRunningLocked(long elapsedRealtime);
|
||||
@@ -694,8 +706,11 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public abstract void noteWifiMulticastDisabledLocked(long elapsedRealtime);
|
||||
public abstract void noteActivityResumedLocked(long elapsedRealtime);
|
||||
public abstract void noteActivityPausedLocked(long elapsedRealtime);
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getWifiRunningTime(long elapsedRealtimeUs, int which);
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getFullWifiLockTime(long elapsedRealtimeUs, int which);
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getWifiScanTime(long elapsedRealtimeUs, int which);
|
||||
public abstract int getWifiScanCount(int which);
|
||||
/**
|
||||
@@ -709,10 +724,14 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* Returns the timer keeping track of background wifi scans.
|
||||
*/
|
||||
public abstract Timer getWifiScanBackgroundTimer();
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getWifiBatchedScanTime(int csphBin, long elapsedRealtimeUs, int which);
|
||||
public abstract int getWifiBatchedScanCount(int csphBin, int which);
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getWifiMulticastTime(long elapsedRealtimeUs, int which);
|
||||
@UnsupportedAppUsage
|
||||
public abstract Timer getAudioTurnedOnTimer();
|
||||
@UnsupportedAppUsage
|
||||
public abstract Timer getVideoTurnedOnTimer();
|
||||
public abstract Timer getFlashlightTurnedOnTimer();
|
||||
public abstract Timer getCameraTurnedOnTimer();
|
||||
@@ -842,8 +861,10 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public abstract int getUserActivityCount(int type, int which);
|
||||
|
||||
public abstract boolean hasNetworkActivity();
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getNetworkActivityBytes(int type, int which);
|
||||
public abstract long getNetworkActivityPackets(int type, int which);
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getMobileRadioActiveTime(int which);
|
||||
public abstract int getMobileRadioActiveCount(int which);
|
||||
|
||||
@@ -903,10 +924,13 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* the sensor HAL, and therefore out of our control
|
||||
*/
|
||||
// Magic sensor number for the GPS.
|
||||
@UnsupportedAppUsage
|
||||
public static final int GPS = -10000;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getHandle();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract Timer getSensorTime();
|
||||
|
||||
/** Returns a Timer for sensor usage when app is in the background. */
|
||||
@@ -928,8 +952,11 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public static final int TYPE_WAKE = 1;
|
||||
public static final int TYPE_CPU = 2;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int type;
|
||||
@UnsupportedAppUsage
|
||||
public long overTime;
|
||||
@UnsupportedAppUsage
|
||||
public long usedTime;
|
||||
}
|
||||
|
||||
@@ -943,6 +970,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getUserTime(int which);
|
||||
|
||||
/**
|
||||
@@ -950,6 +978,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getSystemTime(int which);
|
||||
|
||||
/**
|
||||
@@ -957,6 +986,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getStarts(int which);
|
||||
|
||||
/**
|
||||
@@ -978,10 +1008,13 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
* @return foreground cpu time in microseconds
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getForegroundTime(int which);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract int countExcessivePowers();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract ExcessivePower getExcessivePower(int i);
|
||||
}
|
||||
|
||||
@@ -995,11 +1028,13 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* package. The mapping keys are tag names for the alarms, the counter contains
|
||||
* the number of times the alarm was triggered while on battery.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract ArrayMap<String, ? extends Counter> getWakeupAlarmStats();
|
||||
|
||||
/**
|
||||
* Returns a mapping containing service statistics.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract ArrayMap<String, ? extends Serv> getServiceStats();
|
||||
|
||||
/**
|
||||
@@ -1014,6 +1049,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
* @return
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getStartTime(long batteryUptime, int which);
|
||||
|
||||
/**
|
||||
@@ -1021,6 +1057,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getStarts(int which);
|
||||
|
||||
/**
|
||||
@@ -1028,6 +1065,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getLaunches(int which);
|
||||
}
|
||||
}
|
||||
@@ -1490,8 +1528,10 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public HistoryItem next;
|
||||
|
||||
// The time of this event in milliseconds, as per SystemClock.elapsedRealtime().
|
||||
@UnsupportedAppUsage
|
||||
public long time;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final byte CMD_UPDATE = 0; // These can be written as deltas
|
||||
public static final byte CMD_NULL = -1;
|
||||
public static final byte CMD_START = 4;
|
||||
@@ -1500,6 +1540,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public static final byte CMD_RESET = 7;
|
||||
public static final byte CMD_SHUTDOWN = 8;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public byte cmd = CMD_NULL;
|
||||
|
||||
/**
|
||||
@@ -1509,12 +1550,17 @@ public abstract class BatteryStats implements Parcelable {
|
||||
return cmd == CMD_UPDATE;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public byte batteryLevel;
|
||||
@UnsupportedAppUsage
|
||||
public byte batteryStatus;
|
||||
@UnsupportedAppUsage
|
||||
public byte batteryHealth;
|
||||
@UnsupportedAppUsage
|
||||
public byte batteryPlugType;
|
||||
|
||||
public short batteryTemperature;
|
||||
@UnsupportedAppUsage
|
||||
public char batteryVoltage;
|
||||
|
||||
// The charge of the battery in micro-Ampere-hours.
|
||||
@@ -1561,6 +1607,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
|
||||
public static final int SETTLE_TO_ZERO_STATES = 0xffff0000 & ~MOST_INTERESTING_STATES;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int states;
|
||||
|
||||
// Constants from WIFI_SUPPL_STATE_*
|
||||
@@ -1596,6 +1643,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
|
||||
public static final int SETTLE_TO_ZERO_STATES2 = 0xffff0000 & ~MOST_INTERESTING_STATES2;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int states2;
|
||||
|
||||
// The wake lock that was acquired at this point.
|
||||
@@ -1704,6 +1752,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
public final HistoryTag localWakeReasonTag = new HistoryTag();
|
||||
public final HistoryTag localEventTag = new HistoryTag();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public HistoryItem() {
|
||||
}
|
||||
|
||||
@@ -1995,6 +2044,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
|
||||
public abstract int getHistoryUsedSize();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean startIteratingHistoryLocked();
|
||||
|
||||
public abstract int getHistoryStringPoolSize();
|
||||
@@ -2005,6 +2055,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
|
||||
public abstract int getHistoryTagPoolUid(int index);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean getNextHistoryLocked(HistoryItem out);
|
||||
|
||||
public abstract void finishIteratingHistoryLocked();
|
||||
@@ -2031,6 +2082,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getScreenOnTime(long elapsedRealtimeUs, int which);
|
||||
|
||||
/**
|
||||
@@ -2071,6 +2123,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
"0", "1", "2", "3", "4"
|
||||
};
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final int NUM_SCREEN_BRIGHTNESS_BINS = 5;
|
||||
|
||||
/**
|
||||
@@ -2079,6 +2132,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getScreenBrightnessTime(int brightnessBin,
|
||||
long elapsedRealtimeUs, int which);
|
||||
|
||||
@@ -2187,6 +2241,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getPhoneOnTime(long elapsedRealtimeUs, int which);
|
||||
|
||||
/**
|
||||
@@ -2202,6 +2257,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getPhoneSignalStrengthTime(int strengthBin,
|
||||
long elapsedRealtimeUs, int which);
|
||||
|
||||
@@ -2284,6 +2340,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
"ehrpd", "hspap", "gsm", "td_scdma", "iwlan", "lte_ca", "other"
|
||||
};
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final int NUM_DATA_CONNECTION_TYPES = DATA_CONNECTION_OTHER+1;
|
||||
|
||||
/**
|
||||
@@ -2446,6 +2503,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getWifiOnTime(long elapsedRealtimeUs, int which);
|
||||
|
||||
/**
|
||||
@@ -2462,6 +2520,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getGlobalWifiRunningTime(long elapsedRealtimeUs, int which);
|
||||
|
||||
public static final int WIFI_STATE_OFF = 0;
|
||||
@@ -2667,6 +2726,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
/**
|
||||
* Returns a SparseArray containing the statistics for each uid.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract SparseArray<? extends Uid> getUidStats();
|
||||
|
||||
/**
|
||||
@@ -2674,6 +2734,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param curTime the amount of elapsed realtime in microseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long getBatteryUptime(long curTime);
|
||||
|
||||
/**
|
||||
@@ -2754,6 +2815,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param curTime the elapsed realtime in microseconds.
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long computeBatteryUptime(long curTime, int which);
|
||||
|
||||
/**
|
||||
@@ -2762,6 +2824,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param curTime the current elapsed realtime in microseconds.
|
||||
* @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long computeBatteryRealtime(long curTime, int which);
|
||||
|
||||
/**
|
||||
@@ -2804,6 +2867,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param curTime The current elepsed realtime in microseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long computeBatteryTimeRemaining(long curTime);
|
||||
|
||||
// The part of a step duration that is the actual time.
|
||||
@@ -2938,6 +3002,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
*
|
||||
* @param curTime The current elepsed realtime in microseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract long computeChargeTimeRemaining(long curTime);
|
||||
|
||||
/**
|
||||
@@ -3222,6 +3287,7 @@ public abstract class BatteryStats implements Parcelable {
|
||||
* @param type type of data (e.g. "wakelock", "sensor", "process", "apk" , "process", "network")
|
||||
* @param args type-dependent data arguments
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private static final void dumpLine(PrintWriter pw, int uid, String category, String type,
|
||||
Object... args ) {
|
||||
dumpLineHeader(pw, uid, category, type);
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ExceptionUtils;
|
||||
import android.util.Log;
|
||||
import android.util.Slog;
|
||||
@@ -221,6 +222,7 @@ public class Binder implements IBinder {
|
||||
/**
|
||||
* Raw native pointer to JavaBBinderHolder object. Owned by this Java object. Not null.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private final long mObject;
|
||||
|
||||
private IInterface mOwner;
|
||||
@@ -720,6 +722,7 @@ public class Binder implements IBinder {
|
||||
private static native long getFinalizer();
|
||||
|
||||
// Entry point from android_util_Binder.cpp's onTransact
|
||||
@UnsupportedAppUsage
|
||||
private boolean execTransact(int code, long dataObj, long replyObj,
|
||||
int flags) {
|
||||
BinderCallsStats binderCallsStats = BinderCallsStats.getInstance();
|
||||
|
||||
@@ -16,9 +16,12 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/** @hide */
|
||||
public class Broadcaster
|
||||
{
|
||||
@UnsupportedAppUsage
|
||||
public Broadcaster()
|
||||
{
|
||||
}
|
||||
@@ -29,6 +32,7 @@ public class Broadcaster
|
||||
* When this broadcaster pushes a message with senderWhat in the what field,
|
||||
* target will be sent a copy of that message with targetWhat in the what field.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void request(int senderWhat, Handler target, int targetWhat)
|
||||
{
|
||||
synchronized (this) {
|
||||
@@ -96,6 +100,7 @@ public class Broadcaster
|
||||
/**
|
||||
* Unregister for notifications for this senderWhat/target/targetWhat tuple.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void cancelRequest(int senderWhat, Handler target, int targetWhat)
|
||||
{
|
||||
synchronized (this) {
|
||||
@@ -168,6 +173,7 @@ public class Broadcaster
|
||||
* Send out msg. Anyone who has registered via the request() method will be
|
||||
* sent the message.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void broadcast(Message msg)
|
||||
{
|
||||
synchronized (this) {
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.Manifest;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
@@ -102,6 +103,7 @@ public class Build {
|
||||
* Whether this build was for an emulator device.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final boolean IS_EMULATOR = getString("ro.kernel.qemu").equals("1");
|
||||
|
||||
/**
|
||||
@@ -285,6 +287,7 @@ public class Build {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String[] ACTIVE_CODENAMES = "REL".equals(ALL_CODENAMES[0])
|
||||
? new String[0] : ALL_CODENAMES;
|
||||
|
||||
@@ -1083,6 +1086,7 @@ public class Build {
|
||||
* Returns true if we are running a debug build such as "user-debug" or "eng".
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final boolean IS_DEBUGGABLE =
|
||||
SystemProperties.getInt("ro.debuggable", 0) == 1;
|
||||
|
||||
@@ -1131,6 +1135,7 @@ public class Build {
|
||||
return TextUtils.isEmpty(propVal) ? null : propVal;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static String getString(String property) {
|
||||
return SystemProperties.get(property, UNKNOWN);
|
||||
}
|
||||
@@ -1144,6 +1149,7 @@ public class Build {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static long getLong(String property) {
|
||||
try {
|
||||
return Long.parseLong(SystemProperties.get(property));
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Size;
|
||||
import android.util.SizeF;
|
||||
@@ -173,6 +174,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static Bundle forPair(String key, String value) {
|
||||
Bundle b = new Bundle(1);
|
||||
b.putString(key, value);
|
||||
@@ -229,6 +231,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static Bundle setDefusable(Bundle bundle, boolean defusable) {
|
||||
if (bundle != null) {
|
||||
bundle.setDefusable(defusable);
|
||||
@@ -303,6 +306,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSize() {
|
||||
if (mParcelledData != null) {
|
||||
return mParcelledData.dataSize();
|
||||
@@ -385,6 +389,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
* Filter values in Bundle to only basic types.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Bundle filterValues() {
|
||||
unparcel();
|
||||
Bundle bundle = this;
|
||||
@@ -557,6 +562,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public void putParcelableList(String key, List<? extends Parcelable> value) {
|
||||
unparcel();
|
||||
mMap.put(key, value);
|
||||
@@ -728,6 +734,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
* @deprecated
|
||||
* @hide This is the old name of the function.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public void putIBinder(@Nullable String key, @Nullable IBinder value) {
|
||||
unparcel();
|
||||
@@ -1180,6 +1187,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
* @deprecated
|
||||
* @hide This is the old name of the function.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
@Nullable
|
||||
public IBinder getIBinder(@Nullable String key) {
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.AppGlobals;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
@@ -87,6 +88,7 @@ public final class Debug
|
||||
// set/cleared by waitForDebugger()
|
||||
private static volatile boolean mWaiting = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private Debug() {}
|
||||
|
||||
/*
|
||||
@@ -115,8 +117,10 @@ public final class Debug
|
||||
public int dalvikPss;
|
||||
/** The proportional set size that is swappable for dalvik heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikSwappablePss;
|
||||
/** @hide The resident set size for dalvik heap. (Without other Dalvik overhead.) */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikRss;
|
||||
/** The private dirty pages used by dalvik heap. */
|
||||
public int dalvikPrivateDirty;
|
||||
@@ -124,23 +128,29 @@ public final class Debug
|
||||
public int dalvikSharedDirty;
|
||||
/** The private clean pages used by dalvik heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikPrivateClean;
|
||||
/** The shared clean pages used by dalvik heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikSharedClean;
|
||||
/** The dirty dalvik pages that have been swapped out. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikSwappedOut;
|
||||
/** The dirty dalvik pages that have been swapped out, proportional. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int dalvikSwappedOutPss;
|
||||
|
||||
/** The proportional set size for the native heap. */
|
||||
public int nativePss;
|
||||
/** The proportional set size that is swappable for the native heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativeSwappablePss;
|
||||
/** @hide The resident set size for the native heap. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativeRss;
|
||||
/** The private dirty pages used by the native heap. */
|
||||
public int nativePrivateDirty;
|
||||
@@ -148,23 +158,29 @@ public final class Debug
|
||||
public int nativeSharedDirty;
|
||||
/** The private clean pages used by the native heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativePrivateClean;
|
||||
/** The shared clean pages used by the native heap. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativeSharedClean;
|
||||
/** The dirty native pages that have been swapped out. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativeSwappedOut;
|
||||
/** The dirty native pages that have been swapped out, proportional. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int nativeSwappedOutPss;
|
||||
|
||||
/** The proportional set size for everything else. */
|
||||
public int otherPss;
|
||||
/** The proportional set size that is swappable for everything else. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherSwappablePss;
|
||||
/** @hide The resident set size for everything else. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherRss;
|
||||
/** The private dirty pages used by everything else. */
|
||||
public int otherPrivateDirty;
|
||||
@@ -172,19 +188,24 @@ public final class Debug
|
||||
public int otherSharedDirty;
|
||||
/** The private clean pages used by everything else. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherPrivateClean;
|
||||
/** The shared clean pages used by everything else. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherSharedClean;
|
||||
/** The dirty pages used by anyting else that have been swapped out. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherSwappedOut;
|
||||
/** The dirty pages used by anyting else that have been swapped out, proportional. */
|
||||
/** @hide We may want to expose this, eventually. */
|
||||
@UnsupportedAppUsage
|
||||
public int otherSwappedOutPss;
|
||||
|
||||
/** Whether the kernel reports proportional swap usage */
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public boolean hasSwappedOutPss;
|
||||
|
||||
/** @hide */
|
||||
@@ -231,6 +252,7 @@ public final class Debug
|
||||
|
||||
// Needs to be declared here for the DVK_STAT ranges below.
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int NUM_OTHER_STATS = 17;
|
||||
|
||||
// Dalvik subsections.
|
||||
@@ -291,6 +313,7 @@ public final class Debug
|
||||
public static final int OTHER_DVK_STAT_ART_END = OTHER_ART_BOOT - NUM_OTHER_STATS;
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int NUM_DVK_STATS = 14;
|
||||
|
||||
/** @hide */
|
||||
@@ -315,6 +338,7 @@ public final class Debug
|
||||
/** @hide */
|
||||
public static final int OFFSET_SWAPPED_OUT_PSS = 8;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private int[] otherStats = new int[(NUM_OTHER_STATS+NUM_DVK_STATS)*NUM_CATEGORIES];
|
||||
|
||||
public MemoryInfo() {
|
||||
@@ -330,6 +354,7 @@ public final class Debug
|
||||
/**
|
||||
* @hide Return total PSS memory usage in kB.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getTotalUss() {
|
||||
return dalvikPrivateClean + dalvikPrivateDirty
|
||||
+ nativePrivateClean + nativePrivateDirty
|
||||
@@ -396,6 +421,7 @@ public final class Debug
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int getOtherPss(int which) {
|
||||
return otherStats[which * NUM_CATEGORIES + OFFSET_PSS];
|
||||
}
|
||||
@@ -411,11 +437,13 @@ public final class Debug
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int getOtherPrivateDirty(int which) {
|
||||
return otherStats[which * NUM_CATEGORIES + OFFSET_PRIVATE_DIRTY];
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int getOtherSharedDirty(int which) {
|
||||
return otherStats[which * NUM_CATEGORIES + OFFSET_SHARED_DIRTY];
|
||||
}
|
||||
@@ -426,6 +454,7 @@ public final class Debug
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int getOtherPrivate(int which) {
|
||||
return getOtherPrivateClean(which) + getOtherPrivateDirty(which);
|
||||
}
|
||||
@@ -446,6 +475,7 @@ public final class Debug
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static String getOtherLabel(int which) {
|
||||
switch (which) {
|
||||
case OTHER_DALVIK_OTHER: return "Dalvik Other";
|
||||
@@ -623,6 +653,7 @@ public final class Debug
|
||||
* such thing as private clean for the Java Heap.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryJavaHeap() {
|
||||
return dalvikPrivateDirty + getOtherPrivate(OTHER_ART);
|
||||
}
|
||||
@@ -635,6 +666,7 @@ public final class Debug
|
||||
* such thing as private clean for the Native Heap.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryNativeHeap() {
|
||||
return nativePrivateDirty;
|
||||
}
|
||||
@@ -644,6 +676,7 @@ public final class Debug
|
||||
* the application.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryCode() {
|
||||
return getOtherPrivate(OTHER_SO)
|
||||
+ getOtherPrivate(OTHER_JAR)
|
||||
@@ -662,6 +695,7 @@ public final class Debug
|
||||
* such thing as private clean for the stack.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryStack() {
|
||||
return getOtherPrivateDirty(OTHER_STACK);
|
||||
}
|
||||
@@ -677,6 +711,7 @@ public final class Debug
|
||||
* memory into the System category.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryGraphics() {
|
||||
return getOtherPrivate(OTHER_GL_DEV)
|
||||
+ getOtherPrivate(OTHER_GRAPHICS)
|
||||
@@ -688,6 +723,7 @@ public final class Debug
|
||||
* accounted for.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummaryPrivateOther() {
|
||||
return getTotalPrivateClean()
|
||||
+ getTotalPrivateDirty()
|
||||
@@ -704,6 +740,7 @@ public final class Debug
|
||||
* * Includes all shared memory.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getSummarySystem() {
|
||||
return getTotalPss()
|
||||
- getTotalPrivateClean()
|
||||
@@ -1743,6 +1780,7 @@ public final class Debug
|
||||
* as the caller.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native void getMemoryInfo(int pid, MemoryInfo memoryInfo);
|
||||
|
||||
/**
|
||||
@@ -1798,6 +1836,7 @@ public final class Debug
|
||||
* as defined by MEMINFO_* offsets.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native void getMemInfo(long[] outSizes);
|
||||
|
||||
/**
|
||||
@@ -1886,6 +1925,7 @@ public final class Debug
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native void dumpNativeHeap(FileDescriptor fd);
|
||||
|
||||
/**
|
||||
@@ -1900,6 +1940,7 @@ public final class Debug
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static long countInstancesOfClass(Class cls) {
|
||||
return VMDebug.countInstancesOfClass(cls, true);
|
||||
}
|
||||
@@ -1959,6 +2000,7 @@ public final class Debug
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final void dumpReferenceTables() {
|
||||
VMDebug.dumpReferenceTables();
|
||||
}
|
||||
@@ -2325,6 +2367,7 @@ public final class Debug
|
||||
* @return a string describing the call stack.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String getCallers(final int depth) {
|
||||
final StackTraceElement[] callStack = Thread.currentThread().getStackTrace();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
@@ -2371,6 +2414,7 @@ public final class Debug
|
||||
* @return a String describing the immediate caller of the calling method.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String getCaller() {
|
||||
return getCaller(Thread.currentThread().getStackTrace(), 0);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ package android.os;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -45,6 +46,7 @@ public class DropBoxManager {
|
||||
private static final String TAG = "DropBoxManager";
|
||||
|
||||
private final Context mContext;
|
||||
@UnsupportedAppUsage
|
||||
private final IDropBoxManagerService mService;
|
||||
|
||||
/** Flag value: Entry's content was deleted to save space. */
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.content.Context;
|
||||
import android.os.storage.StorageManager;
|
||||
@@ -66,6 +67,7 @@ public class Environment {
|
||||
private static final File DIR_VENDOR_ROOT = getDirectory(ENV_VENDOR_ROOT, "/vendor");
|
||||
private static final File DIR_PRODUCT_ROOT = getDirectory(ENV_PRODUCT_ROOT, "/product");
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static UserEnvironment sCurrentUser;
|
||||
private static boolean sUserRequired;
|
||||
|
||||
@@ -74,6 +76,7 @@ public class Environment {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static void initForCurrentUser() {
|
||||
final int userId = UserHandle.myUserId();
|
||||
sCurrentUser = new UserEnvironment(userId);
|
||||
@@ -83,10 +86,12 @@ public class Environment {
|
||||
public static class UserEnvironment {
|
||||
private final int mUserId;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public UserEnvironment(int userId) {
|
||||
mUserId = userId;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public File[] getExternalDirs() {
|
||||
final StorageVolume[] volumes = StorageManager.getVolumeList(mUserId,
|
||||
StorageManager.FLAG_FOR_WRITE);
|
||||
@@ -97,11 +102,13 @@ public class Environment {
|
||||
return files;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public File getExternalStorageDirectory() {
|
||||
return getExternalDirs()[0];
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public File getExternalStoragePublicDirectory(String type) {
|
||||
return buildExternalStoragePublicDirs(type)[0];
|
||||
@@ -149,6 +156,7 @@ public class Environment {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static File getStorageDirectory() {
|
||||
return DIR_ANDROID_STORAGE;
|
||||
}
|
||||
@@ -159,6 +167,7 @@ public class Environment {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File getOemDirectory() {
|
||||
return DIR_OEM_ROOT;
|
||||
}
|
||||
@@ -178,6 +187,7 @@ public class Environment {
|
||||
* software that should persist across simple reflashing of the "system" partition.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File getVendorDirectory() {
|
||||
return DIR_VENDOR_ROOT;
|
||||
}
|
||||
@@ -250,6 +260,7 @@ public class Environment {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static File getDataSystemDirectory() {
|
||||
return new File(getDataDirectory(), "system");
|
||||
}
|
||||
@@ -482,11 +493,13 @@ public class Environment {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static File getLegacyExternalStorageDirectory() {
|
||||
return new File(System.getenv(ENV_EXTERNAL_STORAGE));
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static File getLegacyExternalStorageObbDirectory() {
|
||||
return buildPath(getLegacyExternalStorageDirectory(), DIR_ANDROID, DIR_OBB);
|
||||
}
|
||||
@@ -742,6 +755,7 @@ public class Environment {
|
||||
* Returns the path for android-specific data on the SD card.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAndroidDataDirs() {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAndroidDataDirs();
|
||||
@@ -751,6 +765,7 @@ public class Environment {
|
||||
* Generates the raw path to an application's data
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAppDataDirs(String packageName) {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAppDataDirs(packageName);
|
||||
@@ -760,6 +775,7 @@ public class Environment {
|
||||
* Generates the raw path to an application's media
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAppMediaDirs(String packageName) {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAppMediaDirs(packageName);
|
||||
@@ -769,6 +785,7 @@ public class Environment {
|
||||
* Generates the raw path to an application's OBB files
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAppObbDirs(String packageName) {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAppObbDirs(packageName);
|
||||
@@ -778,6 +795,7 @@ public class Environment {
|
||||
* Generates the path to an application's files.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAppFilesDirs(String packageName) {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAppFilesDirs(packageName);
|
||||
@@ -787,6 +805,7 @@ public class Environment {
|
||||
* Generates the path to an application's cache.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildExternalStorageAppCacheDirs(String packageName) {
|
||||
throwIfUserRequired();
|
||||
return sCurrentUser.buildExternalStorageAppCacheDirs(packageName);
|
||||
@@ -1021,6 +1040,7 @@ public class Environment {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File[] buildPaths(File[] base, String... segments) {
|
||||
File[] result = new File[base.length];
|
||||
for (int i = 0; i < base.length; i++) {
|
||||
@@ -1060,6 +1080,7 @@ public class Environment {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File maybeTranslateEmulatedPathToInternal(File path) {
|
||||
return StorageManager.maybeTranslateEmulatedPathToInternal(path);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
@@ -103,6 +104,7 @@ public abstract class FileObserver {
|
||||
stopWatching(m_fd, descriptor);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void onEvent(int wfd, int mask, String path) {
|
||||
// look up our observer, fixing up the map if necessary...
|
||||
FileObserver observer = null;
|
||||
@@ -133,6 +135,7 @@ public abstract class FileObserver {
|
||||
private native void stopWatching(int fd, int wfd);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static ObserverThread s_observerThread;
|
||||
|
||||
static {
|
||||
|
||||
@@ -35,6 +35,7 @@ import static android.system.OsConstants.S_ISREG;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.provider.DocumentsContract.Document;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
@@ -118,6 +119,7 @@ public class FileUtils {
|
||||
* @param gid to apply through {@code chown}, or -1 to leave unchanged
|
||||
* @return 0 on success, otherwise errno.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int setPermissions(File path, int mode, int uid, int gid) {
|
||||
return setPermissions(path.getAbsolutePath(), mode, uid, gid);
|
||||
}
|
||||
@@ -130,6 +132,7 @@ public class FileUtils {
|
||||
* @param gid to apply through {@code chown}, or -1 to leave unchanged
|
||||
* @return 0 on success, otherwise errno.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int setPermissions(String path, int mode, int uid, int gid) {
|
||||
try {
|
||||
Os.chmod(path, mode);
|
||||
@@ -158,6 +161,7 @@ public class FileUtils {
|
||||
* @param gid to apply through {@code chown}, or -1 to leave unchanged
|
||||
* @return 0 on success, otherwise errno.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) {
|
||||
try {
|
||||
Os.fchmod(fd, mode);
|
||||
@@ -203,6 +207,7 @@ public class FileUtils {
|
||||
* Perform an fsync on the given FileOutputStream. The stream at this
|
||||
* point must be flushed but not yet closed.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean sync(FileOutputStream stream) {
|
||||
try {
|
||||
if (stream != null) {
|
||||
@@ -217,6 +222,7 @@ public class FileUtils {
|
||||
/**
|
||||
* @deprecated use {@link #copy(File, File)} instead.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public static boolean copyFile(File srcFile, File destFile) {
|
||||
try {
|
||||
@@ -240,6 +246,7 @@ public class FileUtils {
|
||||
/**
|
||||
* @deprecated use {@link #copy(InputStream, OutputStream)} instead.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public static boolean copyToFile(InputStream inputStream, File destFile) {
|
||||
try {
|
||||
@@ -507,6 +514,7 @@ public class FileUtils {
|
||||
* Check if a filename is "safe" (no metacharacters or spaces).
|
||||
* @param file The file to check
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isFilenameSafe(File file) {
|
||||
// Note, we check whether it matches what's known to be safe,
|
||||
// rather than what's known to be unsafe. Non-ASCII, control
|
||||
@@ -522,6 +530,7 @@ public class FileUtils {
|
||||
* @return the contents of the file, possibly truncated
|
||||
* @throws IOException if something goes wrong reading the file
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String readTextFile(File file, int max, String ellipsis) throws IOException {
|
||||
InputStream input = new FileInputStream(file);
|
||||
// wrapping a BufferedInputStream around it because when reading /proc with unbuffered
|
||||
@@ -575,6 +584,7 @@ public class FileUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static void stringToFile(File file, String string) throws IOException {
|
||||
stringToFile(file.getAbsolutePath(), string);
|
||||
}
|
||||
@@ -605,6 +615,7 @@ public class FileUtils {
|
||||
* @param string
|
||||
* @throws IOException
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void stringToFile(String filename, String string) throws IOException {
|
||||
bytesToFile(filename, string.getBytes(StandardCharsets.UTF_8));
|
||||
}
|
||||
@@ -616,6 +627,7 @@ public class FileUtils {
|
||||
* @param file the file to checksum, must not be null
|
||||
* @return the checksum value or an exception is thrown.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static long checksumCrc32(File file) throws FileNotFoundException, IOException {
|
||||
CRC32 checkSummer = new CRC32();
|
||||
CheckedInputStream cis = null;
|
||||
@@ -645,6 +657,7 @@ public class FileUtils {
|
||||
* @param minAgeMs Always keep files younger than this age, in milliseconds.
|
||||
* @return if any files were deleted.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean deleteOlderFiles(File dir, int minCount, long minAgeMs) {
|
||||
if (minCount < 0 || minAgeMs < 0) {
|
||||
throw new IllegalArgumentException("Constraints must be positive or 0");
|
||||
@@ -726,6 +739,7 @@ public class FileUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static boolean deleteContents(File dir) {
|
||||
File[] files = dir.listFiles();
|
||||
boolean success = true;
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
import android.util.Printer;
|
||||
|
||||
@@ -168,6 +169,7 @@ public class Handler {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Handler(boolean async) {
|
||||
this(null, async);
|
||||
}
|
||||
@@ -229,6 +231,7 @@ public class Handler {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Handler(Looper looper, Callback callback, boolean async) {
|
||||
mLooper = looper;
|
||||
mQueue = looper.mQueue;
|
||||
@@ -274,6 +277,7 @@ public class Handler {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@NonNull
|
||||
public static Handler getMain() {
|
||||
if (MAIN_THREAD_HANDLER == null) {
|
||||
@@ -801,6 +805,7 @@ public class Handler {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final boolean hasCallbacks(Runnable r) {
|
||||
return mQueue.hasMessages(this, r, null);
|
||||
}
|
||||
@@ -839,6 +844,7 @@ public class Handler {
|
||||
+ "}";
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final IMessenger getIMessenger() {
|
||||
synchronized (mQueue) {
|
||||
if (mMessenger != null) {
|
||||
@@ -862,6 +868,7 @@ public class Handler {
|
||||
return m;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static Message getPostMessage(Runnable r, Object token) {
|
||||
Message m = Message.obtain();
|
||||
m.obj = token;
|
||||
@@ -873,10 +880,13 @@ public class Handler {
|
||||
message.callback.run();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final Looper mLooper;
|
||||
final MessageQueue mQueue;
|
||||
@UnsupportedAppUsage
|
||||
final Callback mCallback;
|
||||
final boolean mAsynchronous;
|
||||
@UnsupportedAppUsage
|
||||
IMessenger mMessenger;
|
||||
|
||||
private static final class BlockingRunnable implements Runnable {
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
import libcore.util.NativeAllocationRegistry;
|
||||
|
||||
@@ -151,6 +152,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void reportSyspropChanged() {
|
||||
native_report_sysprop_change();
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
import libcore.util.NativeAllocationRegistry;
|
||||
|
||||
@@ -49,6 +50,7 @@ public class HwParcel {
|
||||
|
||||
private static final NativeAllocationRegistry sNativeRegistry;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private HwParcel(boolean allocate) {
|
||||
native_setup(allocate);
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import libcore.util.NativeAllocationRegistry;
|
||||
|
||||
/** @hide */
|
||||
@@ -24,6 +25,7 @@ public class HwRemoteBinder implements IHwBinder {
|
||||
|
||||
private static final NativeAllocationRegistry sNativeRegistry;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public HwRemoteBinder() {
|
||||
native_setup_empty();
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
|
||||
@@ -149,6 +150,7 @@ public interface IBinder {
|
||||
int LIKE_TRANSACTION = ('_'<<24)|('L'<<16)|('I'<<8)|'K';
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
int SYSPROPS_TRANSACTION = ('_'<<24)|('S'<<16)|('P'<<8)|'R';
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,6 +39,7 @@ interface IDeviceIdleController {
|
||||
int[] getAppIdTempWhitelist();
|
||||
boolean isPowerSaveWhitelistExceptIdleApp(String name);
|
||||
boolean isPowerSaveWhitelistApp(String name);
|
||||
@UnsupportedAppUsage
|
||||
void addPowerSaveTempWhitelistApp(String name, long duration, int userId, String reason);
|
||||
long addPowerSaveTempWhitelistAppForMms(String name, int userId, String reason);
|
||||
long addPowerSaveTempWhitelistAppForSms(String name, int userId, String reason);
|
||||
|
||||
@@ -38,11 +38,13 @@ interface INetworkManagementService
|
||||
/**
|
||||
* Register an observer to receive events.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void registerObserver(INetworkManagementEventObserver obs);
|
||||
|
||||
/**
|
||||
* Unregister an observer from receiving events.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void unregisterObserver(INetworkManagementEventObserver obs);
|
||||
|
||||
/**
|
||||
@@ -54,16 +56,19 @@ interface INetworkManagementService
|
||||
* Retrieves the specified interface config
|
||||
*
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
InterfaceConfiguration getInterfaceConfig(String iface);
|
||||
|
||||
/**
|
||||
* Sets the configuration of the specified interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void setInterfaceConfig(String iface, in InterfaceConfiguration cfg);
|
||||
|
||||
/**
|
||||
* Clear all IP addresses on the specified interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void clearInterfaceAddresses(String iface);
|
||||
|
||||
/**
|
||||
@@ -79,22 +84,26 @@ interface INetworkManagementService
|
||||
/**
|
||||
* Set interface IPv6 privacy extensions
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable);
|
||||
|
||||
/**
|
||||
* Disable IPv6 on an interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void disableIpv6(String iface);
|
||||
|
||||
/**
|
||||
* Enable IPv6 on an interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void enableIpv6(String iface);
|
||||
|
||||
/**
|
||||
* Set IPv6 autoconf address generation mode.
|
||||
* This is a no-op if an unsupported mode is requested.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void setIPv6AddrGenMode(String iface, int mode);
|
||||
|
||||
/**
|
||||
@@ -124,37 +133,44 @@ interface INetworkManagementService
|
||||
/**
|
||||
* Returns true if IP forwarding is enabled
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
boolean getIpForwardingEnabled();
|
||||
|
||||
/**
|
||||
* Enables/Disables IP Forwarding
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void setIpForwardingEnabled(boolean enabled);
|
||||
|
||||
/**
|
||||
* Start tethering services with the specified dhcp server range
|
||||
* arg is a set of start end pairs defining the ranges.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void startTethering(in String[] dhcpRanges);
|
||||
|
||||
/**
|
||||
* Stop currently running tethering services
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void stopTethering();
|
||||
|
||||
/**
|
||||
* Returns true if tethering services are started
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
boolean isTetheringStarted();
|
||||
|
||||
/**
|
||||
* Tethers the specified interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void tetherInterface(String iface);
|
||||
|
||||
/**
|
||||
* Untethers the specified interface
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void untetherInterface(String iface);
|
||||
|
||||
/**
|
||||
@@ -189,11 +205,13 @@ interface INetworkManagementService
|
||||
* The address and netmask of the external interface is used for
|
||||
* the NAT'ed network.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void enableNat(String internalInterface, String externalInterface);
|
||||
|
||||
/**
|
||||
* Disables Network Address Translation between two interfaces.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void disableNat(String internalInterface, String externalInterface);
|
||||
|
||||
/**
|
||||
@@ -311,6 +329,7 @@ interface INetworkManagementService
|
||||
/**
|
||||
* Return status of bandwidth control module.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
boolean isBandwidthControlEnabled();
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,10 +40,14 @@ interface IPowerManager
|
||||
void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag);
|
||||
boolean isWakeLockLevelSupported(int level);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void userActivity(long time, int event, int flags);
|
||||
@UnsupportedAppUsage
|
||||
void wakeUp(long time, String reason, String opPackageName);
|
||||
@UnsupportedAppUsage
|
||||
void goToSleep(long time, int reason, int flags);
|
||||
void nap(long time);
|
||||
@UnsupportedAppUsage
|
||||
boolean isInteractive();
|
||||
boolean isPowerSaveMode();
|
||||
PowerSaveState getPowerSaveState(int serviceType);
|
||||
@@ -51,6 +55,7 @@ interface IPowerManager
|
||||
boolean isDeviceIdleMode();
|
||||
boolean isLightDeviceIdleMode();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void reboot(boolean confirm, String reason, boolean wait);
|
||||
void rebootSafeMode(boolean confirm, boolean wait);
|
||||
void shutdown(boolean confirm, String reason, boolean wait);
|
||||
|
||||
@@ -21,5 +21,6 @@ import android.os.Bundle;
|
||||
|
||||
/** @hide */
|
||||
oneway interface IRemoteCallback {
|
||||
@UnsupportedAppUsage
|
||||
void sendResult(in Bundle data);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Basic interface for finding and publishing system services.
|
||||
*
|
||||
@@ -33,12 +35,14 @@ public interface IServiceManager extends IInterface
|
||||
* service manager. Blocks for a few seconds waiting for it to be
|
||||
* published if it does not already exist.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
IBinder getService(String name) throws RemoteException;
|
||||
|
||||
/**
|
||||
* Retrieve an existing service called @a name from the
|
||||
* service manager. Non-blocking.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
IBinder checkService(String name) throws RemoteException;
|
||||
|
||||
/**
|
||||
|
||||
@@ -59,6 +59,7 @@ interface IUserManager {
|
||||
boolean canAddMoreManagedProfiles(int userHandle, boolean allowedToRemoveOne);
|
||||
UserInfo getProfileParent(int userHandle);
|
||||
boolean isSameProfileGroup(int userHandle, int otherUserHandle);
|
||||
@UnsupportedAppUsage
|
||||
UserInfo getUserInfo(int userHandle);
|
||||
String getUserAccount(int userHandle);
|
||||
void setUserAccount(int userHandle, String accountName);
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.annotation.IntRange;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.Size;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.LocaleProto;
|
||||
import android.icu.util.ULocale;
|
||||
import android.util.proto.ProtoOutputStream;
|
||||
@@ -558,6 +559,7 @@ public final class LocaleList implements Parcelable {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void setDefault(@NonNull @Size(min=1) LocaleList locales, int localeIndex) {
|
||||
if (locales == null) {
|
||||
throw new NullPointerException("locales is null");
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.LooperProto;
|
||||
import android.util.Log;
|
||||
import android.util.Printer;
|
||||
@@ -68,12 +69,16 @@ public final class Looper {
|
||||
private static final String TAG = "Looper";
|
||||
|
||||
// sThreadLocal.get() will return null unless you've called prepare().
|
||||
@UnsupportedAppUsage
|
||||
static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
|
||||
@UnsupportedAppUsage
|
||||
private static Looper sMainLooper; // guarded by Looper.class
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final MessageQueue mQueue;
|
||||
final Thread mThread;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private Printer mLogging;
|
||||
private long mTraceTag;
|
||||
|
||||
@@ -290,6 +295,7 @@ public final class Looper {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public void setTraceTag(long traceTag) {
|
||||
mTraceTag = traceTag;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.system.ErrnoException;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
@@ -40,7 +41,9 @@ public class MemoryFile {
|
||||
private static String TAG = "MemoryFile";
|
||||
|
||||
// Returns 'true' if purged, 'false' otherwise
|
||||
@UnsupportedAppUsage
|
||||
private static native boolean native_pin(FileDescriptor fd, boolean pin) throws IOException;
|
||||
@UnsupportedAppUsage
|
||||
private static native int native_get_size(FileDescriptor fd) throws IOException;
|
||||
|
||||
private SharedMemory mSharedMemory;
|
||||
@@ -79,6 +82,7 @@ public class MemoryFile {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void deactivate() {
|
||||
if (mMapping != null) {
|
||||
SharedMemory.unmap(mMapping);
|
||||
@@ -222,6 +226,7 @@ public class MemoryFile {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public FileDescriptor getFileDescriptor() throws IOException {
|
||||
return mSharedMemory.getFileDescriptor();
|
||||
}
|
||||
@@ -234,6 +239,7 @@ public class MemoryFile {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int getSize(FileDescriptor fd) throws IOException {
|
||||
return native_get_size(fd);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.MessageProto;
|
||||
import android.util.TimeUtils;
|
||||
import android.util.proto.ProtoOutputStream;
|
||||
@@ -96,17 +97,22 @@ public final class Message implements Parcelable {
|
||||
/** Flags to clear in the copyFrom method */
|
||||
/*package*/ static final int FLAGS_TO_CLEAR_ON_COPY_FROM = FLAG_IN_USE;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ int flags;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ long when;
|
||||
|
||||
/*package*/ Bundle data;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ Handler target;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ Runnable callback;
|
||||
|
||||
// sometimes we store linked lists of these things
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ Message next;
|
||||
|
||||
|
||||
@@ -292,6 +298,7 @@ public final class Message implements Parcelable {
|
||||
* Recycles a Message that may be in-use.
|
||||
* Used internally by the MessageQueue and Looper when disposing of queued Messages.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void recycleUnchecked() {
|
||||
// Mark the message as in use while it remains in the recycled object pool.
|
||||
// Clear out all other details.
|
||||
@@ -373,6 +380,7 @@ public final class Message implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public Message setCallback(Runnable r) {
|
||||
callback = r;
|
||||
return this;
|
||||
@@ -486,6 +494,7 @@ public final class Message implements Parcelable {
|
||||
return ((flags & FLAG_IN_USE) == FLAG_IN_USE);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ void markInUse() {
|
||||
flags |= FLAG_IN_USE;
|
||||
}
|
||||
@@ -500,6 +509,7 @@ public final class Message implements Parcelable {
|
||||
return toString(SystemClock.uptimeMillis());
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
String toString(long now) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
b.append("{ when=");
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.MessageQueueProto;
|
||||
import android.util.Log;
|
||||
import android.util.Printer;
|
||||
@@ -42,12 +43,16 @@ public final class MessageQueue {
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
// True if the message queue can be quit.
|
||||
@UnsupportedAppUsage
|
||||
private final boolean mQuitAllowed;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unused")
|
||||
private long mPtr; // used by native code
|
||||
|
||||
@UnsupportedAppUsage
|
||||
Message mMessages;
|
||||
@UnsupportedAppUsage
|
||||
private final ArrayList<IdleHandler> mIdleHandlers = new ArrayList<IdleHandler>();
|
||||
private SparseArray<FileDescriptorRecord> mFileDescriptorRecords;
|
||||
private IdleHandler[] mPendingIdleHandlers;
|
||||
@@ -58,10 +63,12 @@ public final class MessageQueue {
|
||||
|
||||
// The next barrier token.
|
||||
// Barriers are indicated by messages with a null target whose arg1 field carries the token.
|
||||
@UnsupportedAppUsage
|
||||
private int mNextBarrierToken;
|
||||
|
||||
private native static long nativeInit();
|
||||
private native static void nativeDestroy(long ptr);
|
||||
@UnsupportedAppUsage
|
||||
private native void nativePollOnce(long ptr, int timeoutMillis); /*non-static for callbacks*/
|
||||
private native static void nativeWake(long ptr);
|
||||
private native static boolean nativeIsPolling(long ptr);
|
||||
@@ -259,6 +266,7 @@ public final class MessageQueue {
|
||||
}
|
||||
|
||||
// Called from native code.
|
||||
@UnsupportedAppUsage
|
||||
private int dispatchEvents(int fd, int events) {
|
||||
// Get the file descriptor record and any state that might change.
|
||||
final FileDescriptorRecord record;
|
||||
@@ -307,6 +315,7 @@ public final class MessageQueue {
|
||||
return newWatchedEvents;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
Message next() {
|
||||
// Return here if the message loop has already quit and been disposed.
|
||||
// This can happen if the application tries to restart a looper after quit
|
||||
@@ -458,6 +467,7 @@ public final class MessageQueue {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int postSyncBarrier() {
|
||||
return postSyncBarrier(SystemClock.uptimeMillis());
|
||||
}
|
||||
@@ -501,6 +511,7 @@ public final class MessageQueue {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void removeSyncBarrier(int token) {
|
||||
// Remove a sync barrier token from the queue.
|
||||
// If the queue is no longer stalled by a barrier then wake it.
|
||||
@@ -604,6 +615,7 @@ public final class MessageQueue {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
boolean hasMessages(Handler h, Runnable r, Object object) {
|
||||
if (h == null) {
|
||||
return false;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.text.TextUtils;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.ArraySet;
|
||||
@@ -196,6 +197,7 @@ public final class Parcel {
|
||||
private static final boolean DEBUG_ARRAY_MAP = false;
|
||||
private static final String TAG = "Parcel";
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings({"UnusedDeclaration"})
|
||||
private long mNativePtr; // used by native code
|
||||
|
||||
@@ -445,9 +447,11 @@ public final class Parcel {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static native long getGlobalAllocSize();
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static native long getGlobalAllocCount();
|
||||
|
||||
/**
|
||||
@@ -641,6 +645,7 @@ public final class Parcel {
|
||||
* {@hide}
|
||||
* {@SystemApi}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final void writeBlob(byte[] b) {
|
||||
writeBlob(b, 0, (b != null) ? b.length : 0);
|
||||
}
|
||||
@@ -724,6 +729,7 @@ public final class Parcel {
|
||||
* growing dataCapacity() if needed.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final void writeCharSequence(CharSequence val) {
|
||||
TextUtils.writeToParcel(val, this, 0);
|
||||
}
|
||||
@@ -882,6 +888,7 @@ public final class Parcel {
|
||||
/**
|
||||
* @hide For testing only.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void writeArrayMap(ArrayMap<String, Object> val) {
|
||||
writeArrayMapInternal(val);
|
||||
}
|
||||
@@ -893,6 +900,7 @@ public final class Parcel {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void writeArraySet(@Nullable ArraySet<? extends Object> val) {
|
||||
final int size = (val != null) ? val.size() : -1;
|
||||
writeInt(size);
|
||||
@@ -1454,6 +1462,7 @@ public final class Parcel {
|
||||
* @see #readParcelableList(List, ClassLoader)
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final <T extends Parcelable> void writeParcelableList(List<T> val, int flags) {
|
||||
if (val == null) {
|
||||
writeInt(-1);
|
||||
@@ -1683,6 +1692,7 @@ public final class Parcel {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public final void writeParcelableCreator(Parcelable p) {
|
||||
String name = p.getClass().getName();
|
||||
writeString(name);
|
||||
@@ -1881,6 +1891,7 @@ public final class Parcel {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final int readExceptionCode() {
|
||||
int code = readInt();
|
||||
if (code == EX_HAS_REPLY_HEADER) {
|
||||
@@ -2023,6 +2034,7 @@ public final class Parcel {
|
||||
* Read a CharSequence value from the parcel at the current dataPosition().
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final CharSequence readCharSequence() {
|
||||
return TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(this);
|
||||
}
|
||||
@@ -2043,6 +2055,7 @@ public final class Parcel {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public final FileDescriptor readRawFileDescriptor() {
|
||||
return nativeReadFileDescriptor(mNativePtr);
|
||||
}
|
||||
@@ -2225,6 +2238,7 @@ public final class Parcel {
|
||||
* {@hide}
|
||||
* {@SystemApi}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final byte[] readBlob() {
|
||||
return nativeReadBlob(mNativePtr);
|
||||
}
|
||||
@@ -2233,6 +2247,7 @@ public final class Parcel {
|
||||
* Read and return a String[] object from the parcel.
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final String[] readStringArray() {
|
||||
String[] array = null;
|
||||
|
||||
@@ -2519,6 +2534,7 @@ public final class Parcel {
|
||||
* @see #writeParcelableList(List, int)
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final <T extends Parcelable> List<T> readParcelableList(List<T> list, ClassLoader cl) {
|
||||
final int N = readInt();
|
||||
if (N == -1) {
|
||||
@@ -2761,6 +2777,7 @@ public final class Parcel {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unchecked")
|
||||
public final <T extends Parcelable> T readCreator(Parcelable.Creator<?> creator,
|
||||
ClassLoader loader) {
|
||||
@@ -2773,6 +2790,7 @@ public final class Parcel {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public final Parcelable.Creator<?> readParcelableCreator(ClassLoader loader) {
|
||||
String name = readString();
|
||||
if (name == null) {
|
||||
@@ -3050,6 +3068,7 @@ public final class Parcel {
|
||||
/**
|
||||
* @hide For testing only.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void readArrayMap(ArrayMap outVal, ClassLoader loader) {
|
||||
final int N = readInt();
|
||||
if (N < 0) {
|
||||
@@ -3065,6 +3084,7 @@ public final class Parcel {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public @Nullable ArraySet<? extends Object> readArraySet(ClassLoader loader) {
|
||||
final int size = readInt();
|
||||
if (size < 0) {
|
||||
|
||||
@@ -33,6 +33,7 @@ import static android.system.OsConstants.S_ISLNK;
|
||||
import static android.system.OsConstants.S_ISREG;
|
||||
import static android.system.OsConstants.S_IWOTH;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ContentProvider;
|
||||
import android.os.MessageQueue.OnFileDescriptorEventListener;
|
||||
@@ -178,6 +179,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public ParcelFileDescriptor(FileDescriptor fd) {
|
||||
this(fd, null);
|
||||
}
|
||||
@@ -577,6 +579,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
|
||||
* @return A ParcelFileDescriptor.
|
||||
* @throws IOException if there is an error while creating the shared memory area.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public static ParcelFileDescriptor fromData(byte[] data, String name) throws IOException {
|
||||
if (data == null) return null;
|
||||
@@ -629,6 +632,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static File getFile(FileDescriptor fd) throws IOException {
|
||||
try {
|
||||
final String path = Os.readlink("/proc/self/fd/" + fd.getInt$());
|
||||
@@ -682,6 +686,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
|
||||
* and I really don't think we want it to be public.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long seekTo(long pos) throws IOException {
|
||||
if (mWrapped != null) {
|
||||
return mWrapped.seekTo(pos);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.MathUtils;
|
||||
|
||||
/**
|
||||
@@ -26,6 +27,7 @@ public class ParcelableParcel implements Parcelable {
|
||||
final Parcel mParcel;
|
||||
final ClassLoader mClassLoader;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ParcelableParcel(ClassLoader loader) {
|
||||
mParcel = Parcel.obtain();
|
||||
mClassLoader = loader;
|
||||
@@ -44,11 +46,13 @@ public class ParcelableParcel implements Parcelable {
|
||||
mParcel.appendFrom(src, pos, size);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Parcel getParcel() {
|
||||
mParcel.setDataPosition(0);
|
||||
return mParcel;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ClassLoader getClassLoader() {
|
||||
return mClassLoader;
|
||||
}
|
||||
@@ -64,6 +68,7 @@ public class ParcelableParcel implements Parcelable {
|
||||
dest.appendFrom(mParcel, 0, mParcel.dataSize());
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final Parcelable.ClassLoaderCreator<ParcelableParcel> CREATOR
|
||||
= new Parcelable.ClassLoaderCreator<ParcelableParcel>() {
|
||||
public ParcelableParcel createFromParcel(Parcel in) {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
@@ -285,6 +286,7 @@ public class PerformanceCollector {
|
||||
private long mCpuTime;
|
||||
private long mExecTime;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public PerformanceCollector() {
|
||||
}
|
||||
|
||||
@@ -302,6 +304,7 @@ public class PerformanceCollector {
|
||||
* @param label description of code block between beginSnapshot and
|
||||
* endSnapshot, used to label output
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void beginSnapshot(String label) {
|
||||
if (mPerfWriter != null)
|
||||
mPerfWriter.writeBeginSnapshot(label);
|
||||
@@ -346,6 +349,7 @@ public class PerformanceCollector {
|
||||
* <li>{@link #METRIC_KEY_OTHER_SHARED_DIRTY other_shared_dirty}
|
||||
* </ul>
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Bundle endSnapshot() {
|
||||
endPerformanceSnapshot();
|
||||
if (mPerfWriter != null)
|
||||
@@ -359,6 +363,7 @@ public class PerformanceCollector {
|
||||
* @param label description of code block between startTiming and
|
||||
* stopTiming, used to label output
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void startTiming(String label) {
|
||||
if (mPerfWriter != null)
|
||||
mPerfWriter.writeStartTiming(label);
|
||||
@@ -408,6 +413,7 @@ public class PerformanceCollector {
|
||||
* between calls to startTiming and stopTiming. List of iterations
|
||||
* is keyed by {@link #METRIC_KEY_ITERATIONS iterations}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Bundle stopTiming(String label) {
|
||||
addIteration(label);
|
||||
if (mPerfWriter != null)
|
||||
|
||||
@@ -22,6 +22,7 @@ import android.annotation.SdkConstant;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.util.proto.ProtoOutputStream;
|
||||
@@ -282,6 +283,7 @@ public final class PowerManager {
|
||||
* Brightness value for fully on.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int BRIGHTNESS_ON = 255;
|
||||
|
||||
/**
|
||||
@@ -364,6 +366,7 @@ public final class PowerManager {
|
||||
* Go to sleep reason code: Going to sleep due to a screen timeout.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int GO_TO_SLEEP_REASON_TIMEOUT = 2;
|
||||
|
||||
/**
|
||||
@@ -608,6 +611,7 @@ public final class PowerManager {
|
||||
public @interface LocationPowerSaveMode {}
|
||||
|
||||
final Context mContext;
|
||||
@UnsupportedAppUsage
|
||||
final IPowerManager mService;
|
||||
final Handler mHandler;
|
||||
|
||||
@@ -628,6 +632,7 @@ public final class PowerManager {
|
||||
* this is the minimum value that can be set by the user.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getMinimumScreenBrightnessSetting() {
|
||||
return mContext.getResources().getInteger(
|
||||
com.android.internal.R.integer.config_screenBrightnessSettingMinimum);
|
||||
@@ -639,6 +644,7 @@ public final class PowerManager {
|
||||
* this is the maximum value that can be set by the user.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getMaximumScreenBrightnessSetting() {
|
||||
return mContext.getResources().getInteger(
|
||||
com.android.internal.R.integer.config_screenBrightnessSettingMaximum);
|
||||
@@ -648,6 +654,7 @@ public final class PowerManager {
|
||||
* Gets the default screen brightness setting.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getDefaultScreenBrightnessSetting() {
|
||||
return mContext.getResources().getInteger(
|
||||
com.android.internal.R.integer.config_screenBrightnessSettingDefault);
|
||||
@@ -762,6 +769,7 @@ public final class PowerManager {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static void validateWakeLockParameters(int levelAndFlags, String tag) {
|
||||
switch (levelAndFlags & WAKE_LOCK_LEVEL_MASK) {
|
||||
case PARTIAL_WAKE_LOCK:
|
||||
@@ -894,6 +902,7 @@ public final class PowerManager {
|
||||
*
|
||||
* @hide Requires signature permission.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void goToSleep(long time, int reason, int flags) {
|
||||
try {
|
||||
mService.goToSleep(time, reason, flags);
|
||||
@@ -932,6 +941,7 @@ public final class PowerManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void wakeUp(long time, String reason) {
|
||||
try {
|
||||
mService.wakeUp(time, reason, mContext.getOpPackageName());
|
||||
@@ -1142,6 +1152,7 @@ public final class PowerManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean setPowerSaveMode(boolean mode) {
|
||||
try {
|
||||
return mService.setPowerSaveMode(mode);
|
||||
@@ -1217,6 +1228,7 @@ public final class PowerManager {
|
||||
* restrictions have been lifted.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isLightDeviceIdleMode() {
|
||||
try {
|
||||
return mService.isLightDeviceIdleMode();
|
||||
@@ -1339,6 +1351,7 @@ public final class PowerManager {
|
||||
* This broadcast is only sent to registered receivers.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_LIGHT_DEVICE_IDLE_MODE_CHANGED
|
||||
= "android.os.action.LIGHT_DEVICE_IDLE_MODE_CHANGED";
|
||||
@@ -1365,11 +1378,13 @@ public final class PowerManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_POWER_SAVE_MODE_CHANGING
|
||||
= "android.os.action.POWER_SAVE_MODE_CHANGING";
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final String EXTRA_POWER_SAVE_MODE = "mode";
|
||||
|
||||
/**
|
||||
@@ -1401,7 +1416,9 @@ public final class PowerManager {
|
||||
* </p>
|
||||
*/
|
||||
public final class WakeLock {
|
||||
@UnsupportedAppUsage
|
||||
private int mFlags;
|
||||
@UnsupportedAppUsage
|
||||
private String mTag;
|
||||
private final String mPackageName;
|
||||
private final IBinder mToken;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.system.Os;
|
||||
import android.system.OsConstants;
|
||||
import android.webkit.WebViewZygote;
|
||||
@@ -58,30 +59,35 @@ public class Process {
|
||||
* Defines the UID/GID for the log group.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int LOG_UID = 1007;
|
||||
|
||||
/**
|
||||
* Defines the UID/GID for the WIFI supplicant process.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int WIFI_UID = 1010;
|
||||
|
||||
/**
|
||||
* Defines the UID/GID for the mediaserver process.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int MEDIA_UID = 1013;
|
||||
|
||||
/**
|
||||
* Defines the UID/GID for the DRM process.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int DRM_UID = 1019;
|
||||
|
||||
/**
|
||||
* Defines the UID/GID for the group that controls VPN services.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int VPN_UID = 1016;
|
||||
|
||||
/**
|
||||
@@ -94,6 +100,7 @@ public class Process {
|
||||
* Defines the UID/GID for the NFC service process.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int NFC_UID = 1027;
|
||||
|
||||
/**
|
||||
@@ -565,6 +572,7 @@ public class Process {
|
||||
* Returns the identifier of this process' parent.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int myPpid() {
|
||||
return Os.getppid();
|
||||
}
|
||||
@@ -623,6 +631,7 @@ public class Process {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public static final boolean isIsolated(int uid) {
|
||||
uid = UserHandle.getAppId(uid);
|
||||
return uid >= FIRST_ISOLATED_UID && uid <= LAST_ISOLATED_UID;
|
||||
@@ -648,6 +657,7 @@ public class Process {
|
||||
* @return the uid of the process, or -1 if the process is not running.
|
||||
* @hide pending API council review
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int getUidForPid(int pid) {
|
||||
String[] procStatusLabels = { "Uid:" };
|
||||
long[] procStatusValues = new long[1];
|
||||
@@ -662,6 +672,7 @@ public class Process {
|
||||
* @return the parent process id of the process, or -1 if the process is not running.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int getParentPid(int pid) {
|
||||
String[] procStatusLabels = { "PPid:" };
|
||||
long[] procStatusValues = new long[1];
|
||||
@@ -765,6 +776,7 @@ public class Process {
|
||||
*
|
||||
* Always sets cpusets.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native void setProcessGroup(int pid, int group)
|
||||
throws IllegalArgumentException, SecurityException;
|
||||
|
||||
@@ -906,6 +918,7 @@ public class Process {
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native void setArgV0(String text);
|
||||
|
||||
/**
|
||||
@@ -956,50 +969,67 @@ public class Process {
|
||||
public static final native void sendSignalQuiet(int pid, int signal);
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native long getFreeMemory();
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native long getTotalMemory();
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native void readProcLines(String path,
|
||||
String[] reqFields, long[] outSizes);
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native int[] getPids(String path, int[] lastArray);
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_TERM_MASK = 0xff;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_ZERO_TERM = 0;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_SPACE_TERM = (int)' ';
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_TAB_TERM = (int)'\t';
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_COMBINE = 0x100;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_PARENS = 0x200;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_QUOTES = 0x400;
|
||||
/** @hide */
|
||||
public static final int PROC_CHAR = 0x800;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_OUT_STRING = 0x1000;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_OUT_LONG = 0x2000;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROC_OUT_FLOAT = 0x4000;
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native boolean readProcFile(String file, int[] format,
|
||||
String[] outStrings, long[] outLongs, float[] outFloats);
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native boolean parseProcLine(byte[] buffer, int startIndex,
|
||||
int endIndex, int[] format, String[] outStrings, long[] outLongs, float[] outFloats);
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final native int[] getPidsForCommands(String[] cmds);
|
||||
|
||||
/**
|
||||
@@ -1010,6 +1040,7 @@ public class Process {
|
||||
* or -1 if the value cannot be determined
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native long getPss(int pid);
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ import android.annotation.RequiresPermission;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ContentResolver;
|
||||
@@ -355,6 +356,7 @@ public class RecoverySystem {
|
||||
*
|
||||
* @return the verification result.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private static boolean verifyPackageCompatibility(InputStream inputStream) throws IOException {
|
||||
ArrayList<String> list = new ArrayList<>();
|
||||
ZipInputStream zis = new ZipInputStream(inputStream);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
|
||||
@@ -24,6 +25,7 @@ import java.lang.ref.WeakReference;
|
||||
/** @hide */
|
||||
public class Registrant
|
||||
{
|
||||
@UnsupportedAppUsage
|
||||
public
|
||||
Registrant(Handler h, int what, Object obj)
|
||||
{
|
||||
@@ -32,6 +34,7 @@ public class Registrant
|
||||
userObj = obj;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void
|
||||
clear()
|
||||
{
|
||||
@@ -39,12 +42,14 @@ public class Registrant
|
||||
userObj = null;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void
|
||||
notifyRegistrant()
|
||||
{
|
||||
internalNotifyRegistrant (null, null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void
|
||||
notifyResult(Object result)
|
||||
{
|
||||
@@ -60,6 +65,7 @@ public class Registrant
|
||||
/**
|
||||
* This makes a copy of @param ar
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void
|
||||
notifyRegistrant(AsyncResult ar)
|
||||
{
|
||||
@@ -88,6 +94,7 @@ public class Registrant
|
||||
* NOTE: May return null if weak reference has been collected
|
||||
*/
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Message
|
||||
messageForRegistrant()
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Handler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -25,12 +26,14 @@ public class RegistrantList
|
||||
{
|
||||
ArrayList registrants = new ArrayList(); // of Registrant
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
add(Handler h, int what, Object obj)
|
||||
{
|
||||
add(new Registrant(h, what, obj));
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
addUnique(Handler h, int what, Object obj)
|
||||
{
|
||||
@@ -39,6 +42,7 @@ public class RegistrantList
|
||||
add(new Registrant(h, what, obj));
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
add(Registrant r)
|
||||
{
|
||||
@@ -46,6 +50,7 @@ public class RegistrantList
|
||||
registrants.add(r);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
removeCleared()
|
||||
{
|
||||
@@ -58,6 +63,7 @@ public class RegistrantList
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized int
|
||||
size()
|
||||
{
|
||||
@@ -79,6 +85,7 @@ public class RegistrantList
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public /*synchronized*/ void
|
||||
notifyRegistrants()
|
||||
{
|
||||
@@ -91,6 +98,7 @@ public class RegistrantList
|
||||
internalNotifyRegistrants (null, exception);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public /*synchronized*/ void
|
||||
notifyResult(Object result)
|
||||
{
|
||||
@@ -98,12 +106,14 @@ public class RegistrantList
|
||||
}
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public /*synchronized*/ void
|
||||
notifyRegistrants(AsyncResult ar)
|
||||
{
|
||||
internalNotifyRegistrants(ar.result, ar.exception);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
remove(Handler h)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Slog;
|
||||
|
||||
@@ -53,6 +54,7 @@ import java.util.function.Consumer;
|
||||
public class RemoteCallbackList<E extends IInterface> {
|
||||
private static final String TAG = "RemoteCallbackList";
|
||||
|
||||
@UnsupportedAppUsage
|
||||
/*package*/ ArrayMap<IBinder, Callback> mCallbacks
|
||||
= new ArrayMap<IBinder, Callback>();
|
||||
private Object[] mActiveBroadcast;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.AndroidException;
|
||||
|
||||
/**
|
||||
@@ -54,6 +55,7 @@ public class RemoteException extends AndroidException {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public RuntimeException rethrowFromSystemServer() {
|
||||
if (this instanceof DeadObjectException) {
|
||||
throw new RuntimeException(new DeadSystemException());
|
||||
|
||||
@@ -42,12 +42,14 @@ public class SELinux {
|
||||
* Determine whether SELinux is disabled or enabled.
|
||||
* @return a boolean indicating whether SELinux is enabled.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native boolean isSELinuxEnabled();
|
||||
|
||||
/**
|
||||
* Determine whether SELinux is permissive or enforcing.
|
||||
* @return a boolean indicating whether SELinux is enforcing.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native boolean isSELinuxEnforced();
|
||||
|
||||
/**
|
||||
@@ -91,6 +93,7 @@ public class SELinux {
|
||||
* Gets the security context of the current process.
|
||||
* @return a String representing the security context of the current process.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native String getContext();
|
||||
|
||||
/**
|
||||
@@ -98,6 +101,7 @@ public class SELinux {
|
||||
* @param pid an int representing the process id to check.
|
||||
* @return a String representing the security context of the given pid.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native String getPidContext(int pid);
|
||||
|
||||
/**
|
||||
@@ -108,6 +112,7 @@ public class SELinux {
|
||||
* @param perm The permission name.
|
||||
* @return a boolean indicating whether permission was granted.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native boolean checkSELinuxAccess(String scon, String tcon, String tclass, String perm);
|
||||
|
||||
/**
|
||||
@@ -167,6 +172,7 @@ public class SELinux {
|
||||
*
|
||||
* @return a boolean indicating whether the relabeling succeeded.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean restoreconRecursive(File file) {
|
||||
try {
|
||||
return native_restorecon(file.getCanonicalPath(), SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.annotations.GuardedBy;
|
||||
@@ -30,11 +31,13 @@ public final class ServiceManager {
|
||||
private static final String TAG = "ServiceManager";
|
||||
private static final Object sLock = new Object();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static IServiceManager sServiceManager;
|
||||
|
||||
/**
|
||||
* Cache for the "well known" services, such as WM and AM.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private static HashMap<String, IBinder> sCache = new HashMap<String, IBinder>();
|
||||
|
||||
/**
|
||||
@@ -98,6 +101,7 @@ public final class ServiceManager {
|
||||
"getService()",
|
||||
});
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static IServiceManager getIServiceManager() {
|
||||
if (sServiceManager != null) {
|
||||
return sServiceManager;
|
||||
@@ -115,6 +119,7 @@ public final class ServiceManager {
|
||||
* @param name the name of the service to get
|
||||
* @return a reference to the service, or <code>null</code> if the service doesn't exist
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static IBinder getService(String name) {
|
||||
try {
|
||||
IBinder service = sCache.get(name);
|
||||
@@ -151,6 +156,7 @@ public final class ServiceManager {
|
||||
* @param name the name of the new service
|
||||
* @param service the service object
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void addService(String name, IBinder service) {
|
||||
addService(name, service, false, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT);
|
||||
}
|
||||
@@ -164,6 +170,7 @@ public final class ServiceManager {
|
||||
* @param allowIsolated set to true to allow isolated sandboxed processes
|
||||
* to access this service
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void addService(String name, IBinder service, boolean allowIsolated) {
|
||||
addService(name, service, allowIsolated, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT);
|
||||
}
|
||||
@@ -178,6 +185,7 @@ public final class ServiceManager {
|
||||
* @param dumpPriority supported dump priority levels as a bitmask
|
||||
* to access this service
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void addService(String name, IBinder service, boolean allowIsolated,
|
||||
int dumpPriority) {
|
||||
try {
|
||||
@@ -191,6 +199,7 @@ public final class ServiceManager {
|
||||
* Retrieve an existing service called @a name from the
|
||||
* service manager. Non-blocking.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static IBinder checkService(String name) {
|
||||
try {
|
||||
IBinder service = sCache.get(name);
|
||||
@@ -210,6 +219,7 @@ public final class ServiceManager {
|
||||
* @return an array of all currently running services, or <code>null</code> in
|
||||
* case of an exception
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String[] listServices() {
|
||||
try {
|
||||
return getIServiceManager().listServices(IServiceManager.DUMP_FLAG_PRIORITY_ALL);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
@@ -30,6 +31,7 @@ public abstract class ServiceManagerNative extends Binder implements IServiceMan
|
||||
* Cast a Binder object into a service manager interface, generating
|
||||
* a proxy if needed.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
static public IServiceManager asInterface(IBinder obj)
|
||||
{
|
||||
if (obj == null) {
|
||||
@@ -117,6 +119,7 @@ class ServiceManagerProxy implements IServiceManager {
|
||||
return mRemote;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public IBinder getService(String name) throws RemoteException {
|
||||
Parcel data = Parcel.obtain();
|
||||
Parcel reply = Parcel.obtain();
|
||||
@@ -196,5 +199,6 @@ class ServiceManagerProxy implements IServiceManager {
|
||||
data.recycle();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private IBinder mRemote;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
import android.system.OsConstants;
|
||||
@@ -156,6 +157,7 @@ public final class SharedMemory implements Parcelable, Closeable {
|
||||
*
|
||||
* @hide Exposed for native ASharedMemory_dupFromJava()
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getFd() {
|
||||
return mFileDescriptor.getInt$();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Slog;
|
||||
|
||||
import com.android.internal.util.FastPrintWriter;
|
||||
@@ -300,6 +301,7 @@ public abstract class ShellCommand {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String peekNextArg() {
|
||||
if (mCurArgData != null) {
|
||||
return mCurArgData;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
import android.system.StructStatVfs;
|
||||
@@ -25,6 +26,7 @@ import android.system.StructStatVfs;
|
||||
* wrapper for Unix statvfs().
|
||||
*/
|
||||
public class StatFs {
|
||||
@UnsupportedAppUsage
|
||||
private StructStatVfs mStat;
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,6 +19,7 @@ import android.animation.ValueAnimator;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityThread;
|
||||
import android.app.IActivityManager;
|
||||
@@ -448,6 +449,7 @@ public final class StrictMode {
|
||||
/** The default, lax policy which doesn't catch anything. */
|
||||
public static final ThreadPolicy LAX = new ThreadPolicy(0, null, null);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final int mask;
|
||||
final OnThreadViolationListener mListener;
|
||||
final Executor mCallbackExecutor;
|
||||
@@ -738,6 +740,7 @@ public final class StrictMode {
|
||||
/** The default, lax policy which doesn't catch anything. */
|
||||
public static final VmPolicy LAX = new VmPolicy(0, EMPTY_CLASS_LIMIT_MAP, null, null);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final int mask;
|
||||
final OnVmViolationListener mListener;
|
||||
final Executor mCallbackExecutor;
|
||||
@@ -783,6 +786,7 @@ public final class StrictMode {
|
||||
* </pre>
|
||||
*/
|
||||
public static final class Builder {
|
||||
@UnsupportedAppUsage
|
||||
private int mMask;
|
||||
private OnVmViolationListener mListener;
|
||||
private Executor mExecutor;
|
||||
@@ -1173,6 +1177,7 @@ public final class StrictMode {
|
||||
* @return the bitmask of all the DETECT_* and PENALTY_* bits currently enabled
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int getThreadPolicyMask() {
|
||||
return BlockGuard.getThreadPolicy().getPolicyMask();
|
||||
}
|
||||
@@ -1372,6 +1377,7 @@ public final class StrictMode {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void enableDeathOnFileUriExposure() {
|
||||
sVmPolicy =
|
||||
new VmPolicy(
|
||||
@@ -1389,6 +1395,7 @@ public final class StrictMode {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void disableDeathOnFileUriExposure() {
|
||||
sVmPolicy =
|
||||
new VmPolicy(
|
||||
@@ -1426,6 +1433,7 @@ public final class StrictMode {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static final ThreadLocal<ArrayList<ViolationInfo>> violationsBeingTimed =
|
||||
new ThreadLocal<ArrayList<ViolationInfo>>() {
|
||||
@Override
|
||||
@@ -1840,6 +1848,7 @@ public final class StrictMode {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static void conditionallyCheckInstanceCounts() {
|
||||
VmPolicy policy = getVmPolicy();
|
||||
int policySize = policy.classInstanceLimit.size();
|
||||
@@ -1996,6 +2005,7 @@ public final class StrictMode {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static void onWebViewMethodCalledOnWrongThread(Throwable originStack) {
|
||||
onVmPolicyViolation(new WebViewMethodCalledOnWrongThreadViolation(originStack));
|
||||
}
|
||||
@@ -2063,6 +2073,7 @@ public final class StrictMode {
|
||||
}
|
||||
|
||||
// Map from VM violation fingerprint to uptime millis.
|
||||
@UnsupportedAppUsage
|
||||
private static final HashMap<Integer, Long> sLastVmViolationTime = new HashMap<>();
|
||||
|
||||
/** @hide */
|
||||
@@ -2188,6 +2199,7 @@ public final class StrictMode {
|
||||
* Binder for its current (native) thread-local policy value and synchronize it to libcore's
|
||||
* (Java) thread-local policy value.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private static void onBinderStrictModePolicyChange(int newPolicy) {
|
||||
setBlockGuardPolicy(newPolicy);
|
||||
}
|
||||
@@ -2224,6 +2236,7 @@ public final class StrictMode {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void finish() {
|
||||
ThreadSpanState state = mContainerState;
|
||||
synchronized (state) {
|
||||
@@ -2295,6 +2308,7 @@ public final class StrictMode {
|
||||
}
|
||||
};
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static Singleton<IWindowManager> sWindowManager =
|
||||
new Singleton<IWindowManager>() {
|
||||
protected IWindowManager create() {
|
||||
@@ -2315,6 +2329,7 @@ public final class StrictMode {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static Span enterCriticalSpan(String name) {
|
||||
if (Build.IS_USER) {
|
||||
return NO_OP_SPAN;
|
||||
@@ -2424,6 +2439,7 @@ public final class StrictMode {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static void incrementExpectedActivityCount(Class klass) {
|
||||
if (klass == null) {
|
||||
return;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.IAlarmManager;
|
||||
import android.content.Context;
|
||||
import android.util.Slog;
|
||||
@@ -104,6 +105,7 @@ public final class SystemClock {
|
||||
/**
|
||||
* This class is uninstantiable.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private SystemClock() {
|
||||
// This space intentionally left blank.
|
||||
}
|
||||
@@ -241,6 +243,7 @@ public final class SystemClock {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@CriticalNative
|
||||
public static native long currentThreadTimeMicro();
|
||||
|
||||
@@ -251,6 +254,7 @@ public final class SystemClock {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@CriticalNative
|
||||
public static native long currentTimeMicro();
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
import android.util.MutableInt;
|
||||
|
||||
@@ -46,11 +47,13 @@ public class SystemProperties {
|
||||
* uses reflection to read this whenever text is selected (http://b/36095274).
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int PROP_NAME_MAX = Integer.MAX_VALUE;
|
||||
|
||||
/** @hide */
|
||||
public static final int PROP_VALUE_MAX = 91;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@GuardedBy("sChangeCallbacks")
|
||||
private static final ArrayList<Runnable> sChangeCallbacks = new ArrayList<Runnable>();
|
||||
|
||||
@@ -78,9 +81,11 @@ public class SystemProperties {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static native String native_get(String key);
|
||||
private static native String native_get(String key, String def);
|
||||
private static native int native_get_int(String key, int def);
|
||||
@UnsupportedAppUsage
|
||||
private static native long native_get_long(String key, long def);
|
||||
private static native boolean native_get_boolean(String key, boolean def);
|
||||
private static native void native_set(String key, String def);
|
||||
@@ -174,6 +179,7 @@ public class SystemProperties {
|
||||
* @throws IllegalArgumentException if the {@code val} exceeds 91 characters
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void set(@NonNull String key, @Nullable String val) {
|
||||
if (val != null && !val.startsWith("ro.") && val.length() > PROP_VALUE_MAX) {
|
||||
throw new IllegalArgumentException("value of system property '" + key
|
||||
@@ -190,6 +196,7 @@ public class SystemProperties {
|
||||
* changes.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void addChangeCallback(@NonNull Runnable callback) {
|
||||
synchronized (sChangeCallbacks) {
|
||||
if (sChangeCallbacks.size() == 0) {
|
||||
@@ -222,10 +229,12 @@ public class SystemProperties {
|
||||
* Notifies listeners that a system property has changed
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void reportSyspropChanged() {
|
||||
native_report_sysprop_change();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private SystemProperties() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import com.google.android.collect.Maps;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
@@ -58,11 +59,13 @@ public class SystemService {
|
||||
}
|
||||
|
||||
/** Request that the init daemon start a named service. */
|
||||
@UnsupportedAppUsage
|
||||
public static void start(String name) {
|
||||
SystemProperties.set("ctl.start", name);
|
||||
}
|
||||
|
||||
/** Request that the init daemon stop a named service. */
|
||||
@UnsupportedAppUsage
|
||||
public static void stop(String name) {
|
||||
SystemProperties.set("ctl.stop", name);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.media.AudioAttributes;
|
||||
import android.util.Log;
|
||||
@@ -31,10 +32,12 @@ public class SystemVibrator extends Vibrator {
|
||||
private final IVibratorService mService;
|
||||
private final Binder mToken = new Binder();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public SystemVibrator() {
|
||||
mService = IVibratorService.Stub.asInterface(ServiceManager.getService("vibrator"));
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public SystemVibrator(Context context) {
|
||||
super(context);
|
||||
mService = IVibratorService.Stub.asInterface(ServiceManager.getService("vibrator"));
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.os;
|
||||
|
||||
import com.android.internal.os.Zygote;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import dalvik.annotation.optimization.FastNative;
|
||||
|
||||
/**
|
||||
@@ -50,6 +51,7 @@ public final class Trace {
|
||||
/** @hide */
|
||||
public static final long TRACE_TAG_INPUT = 1L << 2;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final long TRACE_TAG_VIEW = 1L << 3;
|
||||
/** @hide */
|
||||
public static final long TRACE_TAG_WEBVIEW = 1L << 4;
|
||||
@@ -68,6 +70,7 @@ public final class Trace {
|
||||
/** @hide */
|
||||
public static final long TRACE_TAG_HAL = 1L << 11;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final long TRACE_TAG_APP = 1L << 12;
|
||||
/** @hide */
|
||||
public static final long TRACE_TAG_RESOURCES = 1L << 13;
|
||||
@@ -100,10 +103,12 @@ public final class Trace {
|
||||
private static final int MAX_SECTION_NAME_LEN = 127;
|
||||
|
||||
// Must be volatile to avoid word tearing.
|
||||
@UnsupportedAppUsage
|
||||
private static volatile long sEnabledTags = TRACE_TAG_NOT_READY;
|
||||
|
||||
private static int sZygoteDebugFlags = 0;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static native long nativeGetEnabledTags();
|
||||
private static native void nativeSetAppTracingAllowed(boolean allowed);
|
||||
private static native void nativeSetTracingEnabled(boolean allowed);
|
||||
@@ -167,6 +172,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isTagEnabled(long traceTag) {
|
||||
long tags = sEnabledTags;
|
||||
if (tags == TRACE_TAG_NOT_READY) {
|
||||
@@ -184,6 +190,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void traceCounter(long traceTag, String counterName, int counterValue) {
|
||||
if (isTagEnabled(traceTag)) {
|
||||
nativeTraceCounter(traceTag, counterName, counterValue);
|
||||
@@ -196,6 +203,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void setAppTracingAllowed(boolean allowed) {
|
||||
nativeSetAppTracingAllowed(allowed);
|
||||
|
||||
@@ -231,6 +239,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void traceBegin(long traceTag, String methodName) {
|
||||
if (isTagEnabled(traceTag)) {
|
||||
nativeTraceBegin(traceTag, methodName);
|
||||
@@ -245,6 +254,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void traceEnd(long traceTag) {
|
||||
if (isTagEnabled(traceTag)) {
|
||||
nativeTraceEnd(traceTag);
|
||||
@@ -264,6 +274,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void asyncTraceBegin(long traceTag, String methodName, int cookie) {
|
||||
if (isTagEnabled(traceTag)) {
|
||||
nativeAsyncTraceBegin(traceTag, methodName, cookie);
|
||||
@@ -281,6 +292,7 @@ public final class Trace {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void asyncTraceEnd(long traceTag, String methodName, int cookie) {
|
||||
if (isTagEnabled(traceTag)) {
|
||||
nativeAsyncTraceEnd(traceTag, methodName, cookie);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -49,6 +50,7 @@ public abstract class UEventObserver {
|
||||
private static native void nativeAddMatch(String match);
|
||||
private static native void nativeRemoveMatch(String match);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public UEventObserver() {
|
||||
}
|
||||
|
||||
@@ -93,6 +95,7 @@ public abstract class UEventObserver {
|
||||
* are expensive to parse. For example, some devices may send one netlink message
|
||||
* for each vsync period.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final void startObserving(String match) {
|
||||
if (match == null || match.isEmpty()) {
|
||||
throw new IllegalArgumentException("match substring must be non-empty");
|
||||
@@ -107,6 +110,7 @@ public abstract class UEventObserver {
|
||||
* This process's UEvent thread will never call onUEvent() on this
|
||||
* UEventObserver after this call. Repeated calls have no effect.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final void stopObserving() {
|
||||
final UEventThread t = peekThread();
|
||||
if (t != null) {
|
||||
@@ -118,6 +122,7 @@ public abstract class UEventObserver {
|
||||
* Subclasses of UEventObserver should override this method to handle
|
||||
* UEvents.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public abstract void onUEvent(UEvent event);
|
||||
|
||||
/**
|
||||
@@ -146,10 +151,12 @@ public abstract class UEventObserver {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String get(String key) {
|
||||
return mMap.get(key);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String get(String key, String defaultValue) {
|
||||
String result = mMap.get(key);
|
||||
return (result == null ? defaultValue : result);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -50,6 +51,7 @@ public class UpdateLock {
|
||||
* locker releases theirs. The broadcast is sticky but is sent only to
|
||||
* registered receivers.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String UPDATE_LOCK_CHANGED = "android.os.UpdateLock.UPDATE_LOCK_CHANGED";
|
||||
|
||||
/**
|
||||
@@ -58,6 +60,7 @@ public class UpdateLock {
|
||||
* update operation. True means that updates are okay right now; false indicates
|
||||
* that perhaps later would be a better time.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String NOW_IS_CONVENIENT = "nowisconvenient";
|
||||
|
||||
/**
|
||||
@@ -66,6 +69,7 @@ public class UpdateLock {
|
||||
* in the System.currentTimeMillis() time base, which may be non-monotonic especially
|
||||
* around reboots.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String TIMESTAMP = "timestamp";
|
||||
|
||||
/**
|
||||
@@ -90,6 +94,7 @@ public class UpdateLock {
|
||||
/**
|
||||
* Is this lock currently held?
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isHeld() {
|
||||
synchronized (mToken) {
|
||||
return mHeld;
|
||||
@@ -99,6 +104,7 @@ public class UpdateLock {
|
||||
/**
|
||||
* Acquire an update lock.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void acquire() {
|
||||
if (DEBUG) {
|
||||
Log.v(TAG, "acquire() : " + this, new RuntimeException("here"));
|
||||
@@ -125,6 +131,7 @@ public class UpdateLock {
|
||||
/**
|
||||
* Release this update lock.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void release() {
|
||||
if (DEBUG) Log.v(TAG, "release() : " + this, new RuntimeException("here"));
|
||||
checkService();
|
||||
|
||||
@@ -19,6 +19,7 @@ package android.os;
|
||||
import android.annotation.AppIdInt;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.annotation.UserIdInt;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
@@ -32,9 +33,11 @@ public final class UserHandle implements Parcelable {
|
||||
/**
|
||||
* @hide Range of uids allocated for a user.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final int PER_USER_RANGE = 100000;
|
||||
|
||||
/** @hide A user id to indicate all users on the device */
|
||||
@UnsupportedAppUsage
|
||||
public static final @UserIdInt int USER_ALL = -1;
|
||||
|
||||
/** @hide A user handle to indicate all users on the device */
|
||||
@@ -43,6 +46,7 @@ public final class UserHandle implements Parcelable {
|
||||
public static final UserHandle ALL = new UserHandle(USER_ALL);
|
||||
|
||||
/** @hide A user id to indicate the currently active user */
|
||||
@UnsupportedAppUsage
|
||||
public static final @UserIdInt int USER_CURRENT = -2;
|
||||
|
||||
/** @hide A user handle to indicate the current user of the device */
|
||||
@@ -53,14 +57,17 @@ public final class UserHandle implements Parcelable {
|
||||
/** @hide A user id to indicate that we would like to send to the current
|
||||
* user, but if this is calling from a user process then we will send it
|
||||
* to the caller's user instead of failing with a security exception */
|
||||
@UnsupportedAppUsage
|
||||
public static final @UserIdInt int USER_CURRENT_OR_SELF = -3;
|
||||
|
||||
/** @hide A user handle to indicate that we would like to send to the current
|
||||
* user, but if this is calling from a user process then we will send it
|
||||
* to the caller's user instead of failing with a security exception */
|
||||
@UnsupportedAppUsage
|
||||
public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
|
||||
|
||||
/** @hide An undefined user id */
|
||||
@UnsupportedAppUsage
|
||||
public static final @UserIdInt int USER_NULL = -10000;
|
||||
|
||||
/**
|
||||
@@ -68,6 +75,7 @@ public final class UserHandle implements Parcelable {
|
||||
* @deprecated Consider using either {@link UserHandle#USER_SYSTEM} constant or
|
||||
* check the target user's flag {@link android.content.pm.UserInfo#isAdmin}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public static final @UserIdInt int USER_OWNER = 0;
|
||||
|
||||
@@ -76,13 +84,16 @@ public final class UserHandle implements Parcelable {
|
||||
* @deprecated Consider using either {@link UserHandle#SYSTEM} constant or
|
||||
* check the target user's flag {@link android.content.pm.UserInfo#isAdmin}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public static final UserHandle OWNER = new UserHandle(USER_OWNER);
|
||||
|
||||
/** @hide A user id constant to indicate the "system" user of the device */
|
||||
@UnsupportedAppUsage
|
||||
public static final @UserIdInt int USER_SYSTEM = 0;
|
||||
|
||||
/** @hide A user serial constant to indicate the "system" user of the device */
|
||||
@UnsupportedAppUsage
|
||||
public static final int USER_SERIAL_SYSTEM = 0;
|
||||
|
||||
/** @hide A user handle to indicate the "system" user of the device */
|
||||
@@ -94,21 +105,29 @@ public final class UserHandle implements Parcelable {
|
||||
* @hide Enable multi-user related side effects. Set this to false if
|
||||
* there are problems with single user use-cases.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final boolean MU_ENABLED = true;
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int ERR_GID = -1;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int AID_ROOT = android.os.Process.ROOT_UID;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int AID_APP_START = android.os.Process.FIRST_APPLICATION_UID;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int AID_APP_END = android.os.Process.LAST_APPLICATION_UID;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int AID_SHARED_GID_START = android.os.Process.FIRST_SHARED_APPLICATION_GID;
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static final int AID_CACHE_GID_START = android.os.Process.FIRST_APPLICATION_CACHE_GID;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final int mHandle;
|
||||
|
||||
/**
|
||||
@@ -128,6 +147,7 @@ public final class UserHandle implements Parcelable {
|
||||
* @return whether the appId is the same for both uids
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isSameApp(int uid1, int uid2) {
|
||||
return getAppId(uid1) == getAppId(uid2);
|
||||
}
|
||||
@@ -136,6 +156,7 @@ public final class UserHandle implements Parcelable {
|
||||
* Whether a UID is an "isolated" UID.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isIsolated(int uid) {
|
||||
if (uid > 0) {
|
||||
final int appId = getAppId(uid);
|
||||
@@ -150,6 +171,7 @@ public final class UserHandle implements Parcelable {
|
||||
* "it's system", because of isolated UIDs. Use {@link #isCore} for that.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isApp(int uid) {
|
||||
if (uid > 0) {
|
||||
final int appId = getAppId(uid);
|
||||
@@ -185,6 +207,7 @@ public final class UserHandle implements Parcelable {
|
||||
* Returns the user id for a given uid.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static @UserIdInt int getUserId(int uid) {
|
||||
if (MU_ENABLED) {
|
||||
return uid / PER_USER_RANGE;
|
||||
@@ -194,6 +217,7 @@ public final class UserHandle implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static @UserIdInt int getCallingUserId() {
|
||||
return getUserId(Binder.getCallingUid());
|
||||
}
|
||||
@@ -213,6 +237,7 @@ public final class UserHandle implements Parcelable {
|
||||
* Returns the uid that is composed from the userId and the appId.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int getUid(@UserIdInt int userId, @AppIdInt int appId) {
|
||||
if (MU_ENABLED) {
|
||||
return userId * PER_USER_RANGE + (appId % PER_USER_RANGE);
|
||||
@@ -259,6 +284,7 @@ public final class UserHandle implements Parcelable {
|
||||
* Returns the app id for a given shared app gid. Returns -1 if the ID is invalid.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static @AppIdInt int getAppIdFromSharedAppGid(int gid) {
|
||||
final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID
|
||||
- Process.FIRST_SHARED_APPLICATION_GID;
|
||||
@@ -394,6 +420,7 @@ public final class UserHandle implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public UserHandle(int h) {
|
||||
mHandle = h;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.annotation.UserIdInt;
|
||||
import android.annotation.WorkerThread;
|
||||
import android.app.Activity;
|
||||
@@ -69,6 +70,7 @@ import java.util.List;
|
||||
public class UserManager {
|
||||
|
||||
private static final String TAG = "UserManager";
|
||||
@UnsupportedAppUsage
|
||||
private final IUserManager mService;
|
||||
private final Context mContext;
|
||||
|
||||
@@ -781,6 +783,7 @@ public class UserManager {
|
||||
* @see #getUserRestrictions()
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final String DISALLOW_RECORD_AUDIO = "no_record_audio";
|
||||
|
||||
/**
|
||||
@@ -1123,6 +1126,7 @@ public class UserManager {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public static UserManager get(Context context) {
|
||||
return (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
}
|
||||
@@ -1188,6 +1192,7 @@ public class UserManager {
|
||||
* @return the user handle of this process.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public @UserIdInt int getUserHandle() {
|
||||
return UserHandle.myUserId();
|
||||
}
|
||||
@@ -1259,6 +1264,7 @@ public class UserManager {
|
||||
* Returns whether the caller is running as an admin user. There can be more than one admin
|
||||
* user.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isAdminUser() {
|
||||
return isUserAdmin(UserHandle.myUserId());
|
||||
}
|
||||
@@ -1268,6 +1274,7 @@ public class UserManager {
|
||||
* Returns whether the provided user is an admin user. There can be more than one admin
|
||||
* user.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isUserAdmin(@UserIdInt int userId) {
|
||||
UserInfo user = getUserInfo(userId);
|
||||
return user != null && user.isAdmin();
|
||||
@@ -1277,6 +1284,7 @@ public class UserManager {
|
||||
* @hide
|
||||
* @deprecated Use {@link #isRestrictedProfile()}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public boolean isLinkedUser() {
|
||||
return isRestrictedProfile();
|
||||
@@ -1328,6 +1336,7 @@ public class UserManager {
|
||||
* @return whether user is a guest user.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isGuestUser(int id) {
|
||||
UserInfo user = getUserInfo(id);
|
||||
return user != null && user.isGuest();
|
||||
@@ -1534,6 +1543,7 @@ public class UserManager {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
public boolean isUserUnlocked(@UserIdInt int userId) {
|
||||
try {
|
||||
return mService.isUserUnlocked(userId);
|
||||
@@ -1562,6 +1572,7 @@ public class UserManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long getUserStartRealtime() {
|
||||
try {
|
||||
return mService.getUserStartRealtime();
|
||||
@@ -1576,6 +1587,7 @@ public class UserManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long getUserUnlockRealtime() {
|
||||
try {
|
||||
return mService.getUserUnlockRealtime();
|
||||
@@ -1591,6 +1603,7 @@ public class UserManager {
|
||||
* @return the UserInfo object for a specific user.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public UserInfo getUserInfo(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.getUserInfo(userHandle);
|
||||
@@ -1670,6 +1683,7 @@ public class UserManager {
|
||||
* @param restrictionKey the string key representing the restriction
|
||||
* @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) {
|
||||
try {
|
||||
return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier());
|
||||
@@ -1752,6 +1766,7 @@ public class UserManager {
|
||||
* @param restrictionKey the string key representing the restriction
|
||||
* @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) {
|
||||
try {
|
||||
return mService.hasUserRestriction(restrictionKey,
|
||||
@@ -1812,6 +1827,7 @@ public class UserManager {
|
||||
* @return the UserInfo object for the created user, or null if the user could not be created.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public UserInfo createUser(String name, int flags) {
|
||||
UserInfo user = null;
|
||||
try {
|
||||
@@ -1860,6 +1876,7 @@ public class UserManager {
|
||||
* could not be created.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public UserInfo createProfileForUser(String name, int flags, @UserIdInt int userHandle) {
|
||||
return createProfileForUser(name, flags, userHandle, null);
|
||||
}
|
||||
@@ -2148,6 +2165,7 @@ public class UserManager {
|
||||
* @return the list of users that exist on the device.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public List<UserInfo> getUsers() {
|
||||
try {
|
||||
return mService.getUsers(false);
|
||||
@@ -2273,6 +2291,7 @@ public class UserManager {
|
||||
* @return the list of profiles.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public List<UserInfo> getProfiles(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.getProfiles(userHandle, false /* enabledOnly */);
|
||||
@@ -2306,6 +2325,7 @@ public class UserManager {
|
||||
* @return the list of profiles.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public List<UserInfo> getEnabledProfiles(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.getProfiles(userHandle, true /* enabledOnly */);
|
||||
@@ -2351,6 +2371,7 @@ public class UserManager {
|
||||
* @see #getProfileIds(int, boolean)
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int[] getProfileIdsWithDisabled(@UserIdInt int userId) {
|
||||
return getProfileIds(userId, false /* enabledOnly */);
|
||||
}
|
||||
@@ -2384,6 +2405,7 @@ public class UserManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public UserInfo getProfileParent(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.getProfileParent(userHandle);
|
||||
@@ -2532,6 +2554,7 @@ public class UserManager {
|
||||
* @return the list of users that were created.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public @NonNull List<UserInfo> getUsers(boolean excludeDying) {
|
||||
try {
|
||||
return mService.getUsers(excludeDying);
|
||||
@@ -2546,6 +2569,7 @@ public class UserManager {
|
||||
* @param userHandle the integer handle of the user, where 0 is the primary user.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean removeUser(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.removeUser(userHandle);
|
||||
@@ -2607,6 +2631,7 @@ public class UserManager {
|
||||
* @see com.android.internal.util.UserIcons#getDefaultUserIcon for a default.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Bitmap getUserIcon(@UserIdInt int userHandle) {
|
||||
try {
|
||||
ParcelFileDescriptor fd = mService.getUserIcon(userHandle);
|
||||
@@ -2632,6 +2657,7 @@ public class UserManager {
|
||||
* @hide
|
||||
* @return a value greater than or equal to 1
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int getMaxSupportedUsers() {
|
||||
// Don't allow multiple users on certain builds
|
||||
if (android.os.Build.ID.startsWith("JVP")) return 1;
|
||||
@@ -2681,6 +2707,7 @@ public class UserManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isDeviceInDemoMode(Context context) {
|
||||
return Settings.Global.getInt(context.getContentResolver(),
|
||||
Settings.Global.DEVICE_DEMO_MODE, 0) > 0;
|
||||
@@ -2693,6 +2720,7 @@ public class UserManager {
|
||||
* @return a serial number associated with that user, or -1 if the userHandle is not valid.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getUserSerialNumber(@UserIdInt int userHandle) {
|
||||
try {
|
||||
return mService.getUserSerialNumber(userHandle);
|
||||
@@ -2710,6 +2738,7 @@ public class UserManager {
|
||||
* is not valid.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public @UserIdInt int getUserHandle(int userSerialNumber) {
|
||||
try {
|
||||
return mService.getUserHandle(userSerialNumber);
|
||||
|
||||
@@ -19,6 +19,7 @@ package android.os;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityThread;
|
||||
import android.content.Context;
|
||||
import android.media.AudioAttributes;
|
||||
@@ -82,6 +83,7 @@ public abstract class Vibrator {
|
||||
/**
|
||||
* @hide to prevent subclassing from outside of the framework
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Vibrator() {
|
||||
mPackageName = ActivityThread.currentPackageName();
|
||||
final Context ctx = ActivityThread.currentActivityThread().getSystemContext();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@@ -33,6 +34,7 @@ public class VintfObject {
|
||||
* If any error in getting one of the manifests, it is not included in
|
||||
* the list.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String[] report();
|
||||
|
||||
/**
|
||||
@@ -66,11 +68,13 @@ public class VintfObject {
|
||||
* ["android.hidl.manager@1.0", "android.hardware.camera.device@1.0",
|
||||
* "android.hardware.camera.device@3.2"]. There are no duplicates.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String[] getHalNamesAndVersions();
|
||||
|
||||
/**
|
||||
* @return the BOARD_SEPOLICY_VERS build flag available in device manifest.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getSepolicyVersion();
|
||||
|
||||
/**
|
||||
@@ -79,6 +83,7 @@ public class VintfObject {
|
||||
* [("27", ["libjpeg.so", "libbase.so"]),
|
||||
* ("28", ["libjpeg.so", "libbase.so"])]
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native Map<String, String[]> getVndkSnapshots();
|
||||
|
||||
/**
|
||||
@@ -86,5 +91,6 @@ public class VintfObject {
|
||||
* indicating the FCM version that the device manifest implements. Null if
|
||||
* device manifest doesn't specify this number (for legacy devices).
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native Long getTargetFrameworkCompatibilityMatrixVersion();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Java API for ::android::vintf::RuntimeInfo. Methods return null / 0 on any error.
|
||||
*
|
||||
@@ -32,31 +34,38 @@ public class VintfRuntimeInfo {
|
||||
/**
|
||||
* @return content of /proc/cpuinfo
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getCpuInfo();
|
||||
/**
|
||||
* @return os name extracted from uname() native call
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getOsName();
|
||||
/**
|
||||
* @return node name extracted from uname() native call
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getNodeName();
|
||||
/**
|
||||
* @return os release extracted from uname() native call
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getOsRelease();
|
||||
/**
|
||||
* @return os version extracted from uname() native call
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getOsVersion();
|
||||
/**
|
||||
* @return hardware id extracted from uname() native call
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getHardwareId();
|
||||
/**
|
||||
* @return kernel version extracted from uname() native call. Format is
|
||||
* {@code x.y.z}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static native String getKernelVersion();
|
||||
/**
|
||||
* @return libavb version in OS. Format is {@code x.y}.
|
||||
|
||||
@@ -2,6 +2,7 @@ package android.os;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.os.WorkSourceProto;
|
||||
import android.provider.Settings;
|
||||
@@ -23,8 +24,11 @@ public class WorkSource implements Parcelable {
|
||||
static final String TAG = "WorkSource";
|
||||
static final boolean DEBUG = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
int mNum;
|
||||
@UnsupportedAppUsage
|
||||
int[] mUids;
|
||||
@UnsupportedAppUsage
|
||||
String[] mNames;
|
||||
|
||||
private ArrayList<WorkChain> mChains;
|
||||
@@ -83,6 +87,7 @@ public class WorkSource implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public WorkSource(int uid) {
|
||||
mNum = 1;
|
||||
mUids = new int[] { uid, 0 };
|
||||
@@ -101,6 +106,7 @@ public class WorkSource implements Parcelable {
|
||||
mChains = null;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
WorkSource(Parcel in) {
|
||||
mNum = in.readInt();
|
||||
mUids = in.createIntArray();
|
||||
@@ -127,16 +133,19 @@ public class WorkSource implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int size() {
|
||||
return mNum;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public int get(int index) {
|
||||
return mUids[index];
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public String getName(int index) {
|
||||
return mNames != null ? mNames[index] : null;
|
||||
}
|
||||
@@ -327,6 +336,7 @@ public class WorkSource implements Parcelable {
|
||||
* @deprecated for internal use only. WorkSources are opaque and no external callers should need
|
||||
* to be aware of internal differences.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public WorkSource[] setReturningDiffs(WorkSource other) {
|
||||
synchronized (sTmpWorkSource) {
|
||||
@@ -378,6 +388,7 @@ public class WorkSource implements Parcelable {
|
||||
* @hide
|
||||
* @deprecated meant for unit testing use only. Will be removed in a future API revision.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Deprecated
|
||||
public WorkSource addReturningNewbs(WorkSource other) {
|
||||
synchronized (sTmpWorkSource) {
|
||||
@@ -388,6 +399,7 @@ public class WorkSource implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public boolean add(int uid) {
|
||||
if (mNum <= 0) {
|
||||
mNames = null;
|
||||
@@ -407,6 +419,7 @@ public class WorkSource implements Parcelable {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
public boolean add(int uid, String name) {
|
||||
if (mNum <= 0) {
|
||||
insert(0, uid, name);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.net.LocalSocket;
|
||||
import android.net.LocalSocketAddress;
|
||||
import android.util.Log;
|
||||
@@ -37,10 +38,12 @@ import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/*package*/ class ZygoteStartFailedEx extends Exception {
|
||||
@UnsupportedAppUsage
|
||||
ZygoteStartFailedEx(String s) {
|
||||
super(s);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
ZygoteStartFailedEx(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user