Add @UnsupportedAppUsage annotations
For packages: com.android.internal.app com.android.internal.database com.android.internal.http com.android.internal.os com.android.internal.policy com.android.internal.util com.android.internal.view com.android.internal.view.menu com.android.internal.widget com.android.server.net com.android.server com.google.android.collect com.google.android.util This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Merged-In: Ia5306f4713298b46ae3aba6fc9d87fae41f8a593 Change-Id: Ie26033d486033289ad3e010a534a921d29c3b2ca
This commit is contained in:
@@ -794,11 +794,6 @@ Lcom/android/ims/internal/uce/presence/IPresenceService$Stub;-><init>()V
|
||||
Lcom/android/ims/internal/uce/uceservice/IUceListener$Stub;-><init>()V
|
||||
Lcom/android/ims/internal/uce/uceservice/IUceService$Stub;-><init>()V
|
||||
Lcom/android/internal/app/AlertActivity;-><init>()V
|
||||
Lcom/android/internal/app/AlertActivity;->mAlert:Lcom/android/internal/app/AlertController;
|
||||
Lcom/android/internal/app/AlertActivity;->mAlertParams:Lcom/android/internal/app/AlertController$AlertParams;
|
||||
Lcom/android/internal/app/AlertActivity;->setupAlert()V
|
||||
Lcom/android/internal/app/AssistUtils;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/app/AssistUtils;->getAssistComponentForUser(I)Landroid/content/ComponentName;
|
||||
Lcom/android/internal/app/ChooserActivity;-><init>()V
|
||||
Lcom/android/internal/app/IAppOpsCallback$Stub;-><init>()V
|
||||
Lcom/android/internal/app/IAppOpsService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
@@ -826,34 +821,9 @@ Lcom/android/internal/app/IAppOpsService$Stub;->TRANSACTION_stopWatchingMode:I
|
||||
Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Lcom/android/internal/app/IBatteryStats$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/app/IBatteryStats;
|
||||
Lcom/android/internal/app/IMediaContainerService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/app/IMediaContainerService;
|
||||
Lcom/android/internal/app/IntentForwarderActivity;->TAG:Ljava/lang/String;
|
||||
Lcom/android/internal/app/IVoiceInteractionManagerService$Stub$Proxy;->showSessionFromSession(Landroid/os/IBinder;Landroid/os/Bundle;I)Z
|
||||
Lcom/android/internal/app/IVoiceInteractionManagerService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/app/IVoiceInteractionManagerService;
|
||||
Lcom/android/internal/app/LocaleHelper$LocaleInfoComparator;-><init>(Ljava/util/Locale;Z)V
|
||||
Lcom/android/internal/app/LocaleHelper$LocaleInfoComparator;->compare(Lcom/android/internal/app/LocaleStore$LocaleInfo;Lcom/android/internal/app/LocaleStore$LocaleInfo;)I
|
||||
Lcom/android/internal/app/LocaleHelper;->getDisplayCountry(Ljava/util/Locale;Ljava/util/Locale;)Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocaleHelper;->getDisplayName(Ljava/util/Locale;Ljava/util/Locale;Z)Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocaleHelper;->normalizeForSearch(Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocalePicker$LocaleInfo;->getLocale()Ljava/util/Locale;
|
||||
Lcom/android/internal/app/LocalePicker;->getLocales()Landroid/os/LocaleList;
|
||||
Lcom/android/internal/app/LocalePicker;->updateLocale(Ljava/util/Locale;)V
|
||||
Lcom/android/internal/app/LocalePicker;->updateLocales(Landroid/os/LocaleList;)V
|
||||
Lcom/android/internal/app/LocaleStore$LocaleInfo;->getFullNameInUiLanguage()Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocaleStore$LocaleInfo;->getFullNameNative()Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocaleStore$LocaleInfo;->getId()Ljava/lang/String;
|
||||
Lcom/android/internal/app/LocaleStore$LocaleInfo;->getLocale()Ljava/util/Locale;
|
||||
Lcom/android/internal/app/LocaleStore$LocaleInfo;->getParent()Ljava/util/Locale;
|
||||
Lcom/android/internal/app/LocaleStore;->fillCache(Landroid/content/Context;)V
|
||||
Lcom/android/internal/app/LocaleStore;->getLevelLocales(Landroid/content/Context;Ljava/util/Set;Lcom/android/internal/app/LocaleStore$LocaleInfo;Z)Ljava/util/Set;
|
||||
Lcom/android/internal/app/LocaleStore;->getLocaleInfo(Ljava/util/Locale;)Lcom/android/internal/app/LocaleStore$LocaleInfo;
|
||||
Lcom/android/internal/app/NetInitiatedActivity;->handleNIVerify(Landroid/content/Intent;)V
|
||||
Lcom/android/internal/app/ResolverActivity;-><init>()V
|
||||
Lcom/android/internal/app/ResolverActivity;->mAdapter:Lcom/android/internal/app/ResolverActivity$ResolveListAdapter;
|
||||
Lcom/android/internal/app/ResolverActivity;->mPm:Landroid/content/pm/PackageManager;
|
||||
Lcom/android/internal/app/ResolverActivity;->onCreate(Landroid/os/Bundle;Landroid/content/Intent;Ljava/lang/CharSequence;[Landroid/content/Intent;Ljava/util/List;Z)V
|
||||
Lcom/android/internal/app/WindowDecorActionBar$TabImpl;->mCallback:Landroid/app/ActionBar$TabListener;
|
||||
Lcom/android/internal/app/WindowDecorActionBar;->mTabScrollView:Lcom/android/internal/widget/ScrollingTabContainerView;
|
||||
Lcom/android/internal/app/WindowDecorActionBar;->setShowHideAnimationEnabled(Z)V
|
||||
Lcom/android/internal/appwidget/IAppWidgetService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/appwidget/IAppWidgetService;
|
||||
Lcom/android/internal/appwidget/IAppWidgetService$Stub;->TRANSACTION_bindAppWidgetId:I
|
||||
Lcom/android/internal/backup/IBackupTransport$Stub;-><init>()V
|
||||
@@ -861,10 +831,6 @@ Lcom/android/internal/backup/LocalTransport;->mDataDir:Ljava/io/File;
|
||||
Lcom/android/internal/backup/LocalTransport;->mRestorePackage:I
|
||||
Lcom/android/internal/backup/LocalTransport;->mRestorePackages:[Landroid/content/pm/PackageInfo;
|
||||
Lcom/android/internal/content/PackageMonitor;-><init>()V
|
||||
Lcom/android/internal/database/SortCursor;-><init>([Landroid/database/Cursor;Ljava/lang/String;)V
|
||||
Lcom/android/internal/database/SortCursor;->mCursor:Landroid/database/Cursor;
|
||||
Lcom/android/internal/database/SortCursor;->mCursors:[Landroid/database/Cursor;
|
||||
Lcom/android/internal/http/HttpDateTime;->parse(Ljava/lang/String;)J
|
||||
Lcom/android/internal/location/GpsNetInitiatedHandler$GpsNiNotification;-><init>()V
|
||||
Lcom/android/internal/location/GpsNetInitiatedHandler$GpsNiNotification;->requestorId:Ljava/lang/String;
|
||||
Lcom/android/internal/location/GpsNetInitiatedHandler$GpsNiNotification;->requestorIdEncoding:I
|
||||
@@ -878,48 +844,11 @@ Lcom/android/internal/location/ILocationProvider$Stub;->asInterface(Landroid/os/
|
||||
Lcom/android/internal/logging/MetricsLogger;-><init>()V
|
||||
Lcom/android/internal/net/LegacyVpnInfo;-><init>()V
|
||||
Lcom/android/internal/net/VpnConfig;-><init>()V
|
||||
Lcom/android/internal/os/AndroidPrintStream;-><init>(ILjava/lang/String;)V
|
||||
Lcom/android/internal/os/BaseCommand;-><init>()V
|
||||
Lcom/android/internal/os/BaseCommand;->mArgs:Landroid/os/ShellCommand;
|
||||
Lcom/android/internal/os/BatterySipper$DrainType;->values()[Lcom/android/internal/os/BatterySipper$DrainType;
|
||||
Lcom/android/internal/os/BinderInternal;->getContextObject()Landroid/os/IBinder;
|
||||
Lcom/android/internal/os/BinderInternal;->handleGc()V
|
||||
Lcom/android/internal/os/ClassLoaderFactory;->createClassloaderNamespace(Ljava/lang/ClassLoader;ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/String;
|
||||
Lcom/android/internal/os/IDropBoxManagerService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/os/IDropBoxManagerService;
|
||||
Lcom/android/internal/os/ProcessCpuTracker$Stats;->name:Ljava/lang/String;
|
||||
Lcom/android/internal/os/ProcessCpuTracker$Stats;->rel_stime:I
|
||||
Lcom/android/internal/os/ProcessCpuTracker$Stats;->rel_uptime:J
|
||||
Lcom/android/internal/os/ProcessCpuTracker$Stats;->rel_utime:I
|
||||
Lcom/android/internal/os/ProcessCpuTracker;-><init>(Z)V
|
||||
Lcom/android/internal/os/ProcessCpuTracker;->countWorkingStats()I
|
||||
Lcom/android/internal/os/ProcessCpuTracker;->getWorkingStats(I)Lcom/android/internal/os/ProcessCpuTracker$Stats;
|
||||
Lcom/android/internal/os/ProcessCpuTracker;->update()V
|
||||
Lcom/android/internal/os/RuntimeInit;->commonInit()V
|
||||
Lcom/android/internal/os/RuntimeInit;->getApplicationObject()Landroid/os/IBinder;
|
||||
Lcom/android/internal/os/RuntimeInit;->initialized:Z
|
||||
Lcom/android/internal/os/RuntimeInit;->main([Ljava/lang/String;)V
|
||||
Lcom/android/internal/os/RuntimeInit;->mApplicationObject:Landroid/os/IBinder;
|
||||
Lcom/android/internal/os/ZygoteConnection;->closeSocket()V
|
||||
Lcom/android/internal/os/ZygoteConnection;->mSocket:Landroid/net/LocalSocket;
|
||||
Lcom/android/internal/os/ZygoteConnection;->mSocketOutStream:Ljava/io/DataOutputStream;
|
||||
Lcom/android/internal/os/ZygoteConnection;->peer:Landroid/net/Credentials;
|
||||
Lcom/android/internal/os/ZygoteInit;->main([Ljava/lang/String;)V
|
||||
Lcom/android/internal/os/ZygoteInit;->mResources:Landroid/content/res/Resources;
|
||||
Lcom/android/internal/os/ZygoteSecurityException;-><init>(Ljava/lang/String;)V
|
||||
Lcom/android/internal/policy/DecorView;->mLastBottomInset:I
|
||||
Lcom/android/internal/policy/DecorView;->mLastLeftInset:I
|
||||
Lcom/android/internal/policy/DecorView;->mLastRightInset:I
|
||||
Lcom/android/internal/policy/DecorView;->mWindow:Lcom/android/internal/policy/PhoneWindow;
|
||||
Lcom/android/internal/policy/IKeyguardService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/policy/IKeyguardService;
|
||||
Lcom/android/internal/policy/IKeyguardStateCallback$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/policy/IKeyguardStateCallback;
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;->mContext:Landroid/content/Context;
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;->mView:Landroid/view/View;
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;->onKeyDown(ILandroid/view/KeyEvent;)Z
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;->onKeyUp(ILandroid/view/KeyEvent;)Z
|
||||
Lcom/android/internal/policy/PhoneFallbackEventHandler;->startCallActivity()V
|
||||
Lcom/android/internal/policy/PhoneWindow;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/policy/PhoneWindow;->mTitle:Ljava/lang/CharSequence;
|
||||
Lcom/android/internal/preference/YesNoPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
Lcom/android/internal/R$anim;->fade_in:I
|
||||
Lcom/android/internal/R$array;->config_autoBrightnessLcdBacklightValues:I
|
||||
@@ -1671,203 +1600,15 @@ Lcom/android/internal/telephony/uicc/IccUtils;->parseToBnW([BI)Landroid/graphics
|
||||
Lcom/android/internal/telephony/uicc/IccUtils;->parseToRGB([BIZ)Landroid/graphics/Bitmap;
|
||||
Lcom/android/internal/telephony/uicc/SIMRecords$GetSpnFsmState;->values()[Lcom/android/internal/telephony/uicc/SIMRecords$GetSpnFsmState;
|
||||
Lcom/android/internal/textservice/ITextServicesManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Lcom/android/internal/util/ArrayUtils;->appendElement(Ljava/lang/Class;[Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
Lcom/android/internal/util/ArrayUtils;->appendInt([II)[I
|
||||
Lcom/android/internal/util/ArrayUtils;->contains([II)Z
|
||||
Lcom/android/internal/util/ArrayUtils;->contains([Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
Lcom/android/internal/util/ArrayUtils;->emptyArray(Ljava/lang/Class;)[Ljava/lang/Object;
|
||||
Lcom/android/internal/util/ArrayUtils;->indexOf([Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
Lcom/android/internal/util/ArrayUtils;->isEmpty([Ljava/lang/Object;)Z
|
||||
Lcom/android/internal/util/ArrayUtils;->newUnpaddedArray(Ljava/lang/Class;I)[Ljava/lang/Object;
|
||||
Lcom/android/internal/util/ArrayUtils;->newUnpaddedIntArray(I)[I
|
||||
Lcom/android/internal/util/ArrayUtils;->removeElement(Ljava/lang/Class;[Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
Lcom/android/internal/util/BitwiseInputStream;-><init>([B)V
|
||||
Lcom/android/internal/util/BitwiseInputStream;->available()I
|
||||
Lcom/android/internal/util/BitwiseInputStream;->read(I)I
|
||||
Lcom/android/internal/util/BitwiseInputStream;->readByteArray(I)[B
|
||||
Lcom/android/internal/util/BitwiseInputStream;->skip(I)V
|
||||
Lcom/android/internal/util/BitwiseOutputStream;-><init>(I)V
|
||||
Lcom/android/internal/util/BitwiseOutputStream;->toByteArray()[B
|
||||
Lcom/android/internal/util/BitwiseOutputStream;->write(II)V
|
||||
Lcom/android/internal/util/BitwiseOutputStream;->writeByteArray(I[B)V
|
||||
Lcom/android/internal/util/CharSequences;->compareToIgnoreCase(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)I
|
||||
Lcom/android/internal/util/CharSequences;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
||||
Lcom/android/internal/util/FastMath;->round(F)I
|
||||
Lcom/android/internal/util/FastXmlSerializer;-><init>()V
|
||||
Lcom/android/internal/util/GrowingArrayUtils;->append([III)[I
|
||||
Lcom/android/internal/util/GrowingArrayUtils;->append([Ljava/lang/Object;ILjava/lang/Object;)[Ljava/lang/Object;
|
||||
Lcom/android/internal/util/HexDump;->hexStringToByteArray(Ljava/lang/String;)[B
|
||||
Lcom/android/internal/util/HexDump;->toHexString(I)Ljava/lang/String;
|
||||
Lcom/android/internal/util/HexDump;->toHexString([B)Ljava/lang/String;
|
||||
Lcom/android/internal/util/HexDump;->toHexString([BII)Ljava/lang/String;
|
||||
Lcom/android/internal/util/HexDump;->toHexString([BZ)Ljava/lang/String;
|
||||
Lcom/android/internal/util/IState;->getName()Ljava/lang/String;
|
||||
Lcom/android/internal/util/MemInfoReader;-><init>()V
|
||||
Lcom/android/internal/util/MemInfoReader;->getCachedSize()J
|
||||
Lcom/android/internal/util/MemInfoReader;->getFreeSize()J
|
||||
Lcom/android/internal/util/MemInfoReader;->getRawInfo()[J
|
||||
Lcom/android/internal/util/MemInfoReader;->getTotalSize()J
|
||||
Lcom/android/internal/util/MemInfoReader;->readMemInfo()V
|
||||
Lcom/android/internal/util/Preconditions;->checkArgument(Z)V
|
||||
Lcom/android/internal/util/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
||||
Lcom/android/internal/util/Preconditions;->checkArgumentInRange(IIILjava/lang/String;)I
|
||||
Lcom/android/internal/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
Lcom/android/internal/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
Lcom/android/internal/util/Preconditions;->checkState(Z)V
|
||||
Lcom/android/internal/util/Preconditions;->checkState(ZLjava/lang/String;)V
|
||||
Lcom/android/internal/util/State;-><init>()V
|
||||
Lcom/android/internal/util/State;->enter()V
|
||||
Lcom/android/internal/util/State;->exit()V
|
||||
Lcom/android/internal/util/State;->getName()Ljava/lang/String;
|
||||
Lcom/android/internal/util/State;->processMessage(Landroid/os/Message;)Z
|
||||
Lcom/android/internal/util/StateMachine;-><init>(Ljava/lang/String;)V
|
||||
Lcom/android/internal/util/StateMachine;-><init>(Ljava/lang/String;Landroid/os/Handler;)V
|
||||
Lcom/android/internal/util/StateMachine;-><init>(Ljava/lang/String;Landroid/os/Looper;)V
|
||||
Lcom/android/internal/util/StateMachine;->dump(Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
|
||||
Lcom/android/internal/util/StateMachine;->obtainMessage(III)Landroid/os/Message;
|
||||
Lcom/android/internal/util/StateMachine;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
|
||||
Lcom/android/internal/util/StateMachine;->sendMessage(I)V
|
||||
Lcom/android/internal/util/StateMachine;->sendMessage(II)V
|
||||
Lcom/android/internal/util/StateMachine;->sendMessage(IIILjava/lang/Object;)V
|
||||
Lcom/android/internal/util/StateMachine;->sendMessage(ILjava/lang/Object;)V
|
||||
Lcom/android/internal/util/StateMachine;->sendMessage(Landroid/os/Message;)V
|
||||
Lcom/android/internal/view/ActionBarPolicy;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/view/ActionBarPolicy;->get(Landroid/content/Context;)Lcom/android/internal/view/ActionBarPolicy;
|
||||
Lcom/android/internal/view/ActionBarPolicy;->getEmbeddedMenuWidthLimit()I
|
||||
Lcom/android/internal/view/ActionBarPolicy;->getMaxActionButtons()I
|
||||
Lcom/android/internal/view/ActionBarPolicy;->getStackedTabMaxWidth()I
|
||||
Lcom/android/internal/view/ActionBarPolicy;->getTabContainerHeight()I
|
||||
Lcom/android/internal/view/ActionBarPolicy;->hasEmbeddedTabs()Z
|
||||
Lcom/android/internal/view/ActionBarPolicy;->mContext:Landroid/content/Context;
|
||||
Lcom/android/internal/view/ActionBarPolicy;->showsOverflowMenuButton()Z
|
||||
Lcom/android/internal/view/IInputMethodManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Lcom/android/internal/view/IInputMethodManager$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/view/IInputMethodManager;
|
||||
Lcom/android/internal/view/IInputMethodSession$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/view/IInputMethodSession;
|
||||
Lcom/android/internal/view/InputConnectionWrapper$InputContextCallback;->dispose()V
|
||||
Lcom/android/internal/view/InputConnectionWrapper$InputContextCallback;->getInstance()Lcom/android/internal/view/InputConnectionWrapper$InputContextCallback;
|
||||
Lcom/android/internal/view/menu/ActionMenu;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/view/menu/ActionMenuItem;-><init>(Landroid/content/Context;IIIILjava/lang/CharSequence;)V
|
||||
Lcom/android/internal/view/menu/ContextMenuBuilder;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/view/menu/IconMenuItemView;->getTextAppropriateLayoutParams()Lcom/android/internal/view/menu/IconMenuView$LayoutParams;
|
||||
Lcom/android/internal/view/menu/IconMenuItemView;->setIconMenuView(Lcom/android/internal/view/menu/IconMenuView;)V
|
||||
Lcom/android/internal/view/menu/IconMenuItemView;->setItemInvoker(Lcom/android/internal/view/menu/MenuBuilder$ItemInvoker;)V
|
||||
Lcom/android/internal/view/menu/IconMenuView$SavedState;-><init>(Landroid/os/Parcel;)V
|
||||
Lcom/android/internal/view/menu/IconMenuView;->createMoreItemView()Lcom/android/internal/view/menu/IconMenuItemView;
|
||||
Lcom/android/internal/view/menu/IconMenuView;->getNumActualItemsShown()I
|
||||
Lcom/android/internal/view/menu/IconMenuView;->mItemBackground:Landroid/graphics/drawable/Drawable;
|
||||
Lcom/android/internal/view/menu/IconMenuView;->mMaxItems:I
|
||||
Lcom/android/internal/view/menu/IconMenuView;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;
|
||||
Lcom/android/internal/view/menu/MenuDialogHelper;-><init>(Lcom/android/internal/view/menu/MenuBuilder;)V
|
||||
Lcom/android/internal/view/menu/MenuDialogHelper;->dismiss()V
|
||||
Lcom/android/internal/view/menu/MenuDialogHelper;->show(Landroid/os/IBinder;)V
|
||||
Lcom/android/internal/view/WindowManagerPolicyThread;->getLooper()Landroid/os/Looper;
|
||||
Lcom/android/internal/widget/AbsActionBarView;->dismissPopupMenus()V
|
||||
Lcom/android/internal/widget/ActionBarContextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
Lcom/android/internal/widget/ActionBarOverlayLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
Lcom/android/internal/widget/ActionBarOverlayLayout;->setWindowCallback(Landroid/view/Window$Callback;)V
|
||||
Lcom/android/internal/widget/EditableInputConnection;-><init>(Landroid/widget/TextView;)V
|
||||
Lcom/android/internal/widget/ILockSettings$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/widget/ILockSettings;
|
||||
Lcom/android/internal/widget/IRemoteViewsFactory$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/widget/IRemoteViewsFactory;
|
||||
Lcom/android/internal/widget/LinearLayoutWithDefaultTouchRecepient;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/widget/LinearLayoutWithDefaultTouchRecepient;->setDefaultTouchRecepient(Landroid/view/View;)V
|
||||
Lcom/android/internal/widget/LockPatternChecker;->checkPassword(Lcom/android/internal/widget/LockPatternUtils;Ljava/lang/String;ILcom/android/internal/widget/LockPatternChecker$OnCheckCallback;)Landroid/os/AsyncTask;
|
||||
Lcom/android/internal/widget/LockPatternUtils$RequestThrottledException;-><init>(I)V
|
||||
Lcom/android/internal/widget/LockPatternUtils$RequestThrottledException;->getTimeoutMs()I
|
||||
Lcom/android/internal/widget/LockPatternUtils;-><init>(Landroid/content/Context;)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->checkPassword(Ljava/lang/String;I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getActivePasswordQuality(I)I
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getDevicePolicyManager()Landroid/app/admin/DevicePolicyManager;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getKeyguardStoredPasswordQuality(I)I
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getLockSettings()Lcom/android/internal/widget/ILockSettings;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getOwnerInfo(I)Ljava/lang/String;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getPowerButtonInstantlyLocks(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->getString(Ljava/lang/String;I)Ljava/lang/String;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isDeviceEncryptionEnabled()Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isLockPasswordEnabled(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isLockPatternEnabled(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isLockScreenDisabled(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isSecure(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isTactileFeedbackEnabled()Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->isVisiblePatternEnabled(I)Z
|
||||
Lcom/android/internal/widget/LockPatternUtils;->mContentResolver:Landroid/content/ContentResolver;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->mContext:Landroid/content/Context;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->patternToHash(Ljava/util/List;)[B
|
||||
Lcom/android/internal/widget/LockPatternUtils;->patternToString(Ljava/util/List;)Ljava/lang/String;
|
||||
Lcom/android/internal/widget/LockPatternUtils;->reportFailedPasswordAttempt(I)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->reportSuccessfulPasswordAttempt(I)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->saveLockPassword(Ljava/lang/String;Ljava/lang/String;II)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->setLockoutAttemptDeadline(II)J
|
||||
Lcom/android/internal/widget/LockPatternUtils;->setLong(Ljava/lang/String;JI)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->setOwnerInfo(Ljava/lang/String;I)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->setOwnerInfoEnabled(ZI)V
|
||||
Lcom/android/internal/widget/LockPatternUtils;->setString(Ljava/lang/String;Ljava/lang/String;I)V
|
||||
Lcom/android/internal/widget/LockPatternView$Cell;->column:I
|
||||
Lcom/android/internal/widget/LockPatternView$Cell;->row:I
|
||||
Lcom/android/internal/widget/LockPatternView$DisplayMode;->Animate:Lcom/android/internal/widget/LockPatternView$DisplayMode;
|
||||
Lcom/android/internal/widget/LockPatternView$DisplayMode;->Correct:Lcom/android/internal/widget/LockPatternView$DisplayMode;
|
||||
Lcom/android/internal/widget/LockPatternView$DisplayMode;->Wrong:Lcom/android/internal/widget/LockPatternView$DisplayMode;
|
||||
Lcom/android/internal/widget/LockPatternView$SavedState;-><init>(Landroid/os/Parcel;)V
|
||||
Lcom/android/internal/widget/LockPatternView$SavedState;-><init>(Landroid/os/Parcelable;Ljava/lang/String;IZZZ)V
|
||||
Lcom/android/internal/widget/LockPatternView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
Lcom/android/internal/widget/LockPatternView;->clearPattern()V
|
||||
Lcom/android/internal/widget/LockPatternView;->disableInput()V
|
||||
Lcom/android/internal/widget/LockPatternView;->enableInput()V
|
||||
Lcom/android/internal/widget/LockPatternView;->getCellStates()[[Lcom/android/internal/widget/LockPatternView$CellState;
|
||||
Lcom/android/internal/widget/LockPatternView;->mInStealthMode:Z
|
||||
Lcom/android/internal/widget/LockPatternView;->mPaint:Landroid/graphics/Paint;
|
||||
Lcom/android/internal/widget/LockPatternView;->mPathPaint:Landroid/graphics/Paint;
|
||||
Lcom/android/internal/widget/LockPatternView;->mPattern:Ljava/util/ArrayList;
|
||||
Lcom/android/internal/widget/LockPatternView;->mPatternDisplayMode:Lcom/android/internal/widget/LockPatternView$DisplayMode;
|
||||
Lcom/android/internal/widget/LockPatternView;->mPatternInProgress:Z
|
||||
Lcom/android/internal/widget/LockPatternView;->mSquareHeight:F
|
||||
Lcom/android/internal/widget/LockPatternView;->mSquareWidth:F
|
||||
Lcom/android/internal/widget/LockPatternView;->notifyPatternDetected()V
|
||||
Lcom/android/internal/widget/LockPatternView;->setDisplayMode(Lcom/android/internal/widget/LockPatternView$DisplayMode;)V
|
||||
Lcom/android/internal/widget/LockPatternView;->setInStealthMode(Z)V
|
||||
Lcom/android/internal/widget/LockPatternView;->setOnPatternListener(Lcom/android/internal/widget/LockPatternView$OnPatternListener;)V
|
||||
Lcom/android/internal/widget/LockPatternView;->setTactileFeedbackEnabled(Z)V
|
||||
Lcom/android/internal/widget/PointerLocationView$PointerState;-><init>()V
|
||||
Lcom/android/internal/widget/PointerLocationView$PointerState;->mCurDown:Z
|
||||
Lcom/android/internal/widget/PointerLocationView;->mCurDown:Z
|
||||
Lcom/android/internal/widget/PointerLocationView;->mCurNumPointers:I
|
||||
Lcom/android/internal/widget/PointerLocationView;->mMaxNumPointers:I
|
||||
Lcom/android/internal/widget/PointerLocationView;->mPointers:Ljava/util/ArrayList;
|
||||
Lcom/android/internal/widget/PointerLocationView;->mPrintCoords:Z
|
||||
Lcom/android/internal/widget/PreferenceImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
Lcom/android/internal/widget/RecyclerView$RecycledViewPool$ScrapData;->mScrapHeap:Ljava/util/ArrayList;
|
||||
Lcom/android/internal/widget/ScrollBarUtils;->getThumbLength(IIII)I
|
||||
Lcom/android/internal/widget/SlidingTab$Slider;->tab:Landroid/widget/ImageView;
|
||||
Lcom/android/internal/widget/SlidingTab$Slider;->text:Landroid/widget/TextView;
|
||||
Lcom/android/internal/widget/SlidingTab;->mAnimationDoneListener:Landroid/view/animation/Animation$AnimationListener;
|
||||
Lcom/android/internal/widget/SlidingTab;->mLeftSlider:Lcom/android/internal/widget/SlidingTab$Slider;
|
||||
Lcom/android/internal/widget/SlidingTab;->mRightSlider:Lcom/android/internal/widget/SlidingTab$Slider;
|
||||
Lcom/android/internal/widget/SlidingTab;->onAnimationDone()V
|
||||
Lcom/android/internal/widget/SlidingTab;->resetView()V
|
||||
Lcom/android/internal/widget/SlidingTab;->setHoldAfterTrigger(ZZ)V
|
||||
Lcom/android/internal/widget/SlidingTab;->setLeftHintText(I)V
|
||||
Lcom/android/internal/widget/SlidingTab;->setLeftTabResources(IIII)V
|
||||
Lcom/android/internal/widget/SlidingTab;->setOnTriggerListener(Lcom/android/internal/widget/SlidingTab$OnTriggerListener;)V
|
||||
Lcom/android/internal/widget/SlidingTab;->setRightHintText(I)V
|
||||
Lcom/android/internal/widget/SlidingTab;->setRightTabResources(IIII)V
|
||||
Lcom/android/internal/widget/TextViewInputDisabler;-><init>(Landroid/widget/TextView;)V
|
||||
Lcom/android/internal/widget/TextViewInputDisabler;->setInputEnabled(Z)V
|
||||
Lcom/android/internal/widget/ViewPager$OnPageChangeListener;->onPageScrolled(IFI)V
|
||||
Lcom/android/internal/widget/ViewPager$OnPageChangeListener;->onPageScrollStateChanged(I)V
|
||||
Lcom/android/internal/widget/ViewPager$OnPageChangeListener;->onPageSelected(I)V
|
||||
Lcom/android/internal/widget/ViewPager;->getCurrentItem()I
|
||||
Lcom/android/server/net/BaseNetworkObserver;-><init>()V
|
||||
Lcom/android/server/net/NetlinkTracker;-><init>(Ljava/lang/String;Lcom/android/server/net/NetlinkTracker$Callback;)V
|
||||
Lcom/android/server/net/NetlinkTracker;->clearLinkProperties()V
|
||||
Lcom/android/server/net/NetlinkTracker;->getLinkProperties()Landroid/net/LinkProperties;
|
||||
Lcom/android/server/ResettableTimeout$T;-><init>(Lcom/android/server/ResettableTimeout;)V
|
||||
Lcom/android/server/ResettableTimeout;->mLock:Landroid/os/ConditionVariable;
|
||||
Lcom/android/server/ResettableTimeout;->mOffAt:J
|
||||
Lcom/google/android/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;
|
||||
Lcom/google/android/collect/Sets;->newArraySet()Landroid/util/ArraySet;
|
||||
Lcom/google/android/collect/Sets;->newArraySet([Ljava/lang/Object;)Landroid/util/ArraySet;
|
||||
Lcom/google/android/collect/Sets;->newHashSet()Ljava/util/HashSet;
|
||||
Lcom/google/android/collect/Sets;->newHashSet([Ljava/lang/Object;)Ljava/util/HashSet;
|
||||
Lcom/google/android/collect/Sets;->newSortedSet()Ljava/util/SortedSet;
|
||||
Lcom/google/android/gles_jni/EGLImpl;-><init>()V
|
||||
Lcom/google/android/gles_jni/GLImpl;-><init>()V
|
||||
Lcom/google/android/mms/ContentType;->getAudioTypes()Ljava/util/ArrayList;
|
||||
@@ -2150,17 +1891,7 @@ Lcom/google/android/mms/util/SqliteWrapper;->insert(Landroid/content/Context;Lan
|
||||
Lcom/google/android/mms/util/SqliteWrapper;->query(Landroid/content/Context;Landroid/content/ContentResolver;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
||||
Lcom/google/android/mms/util/SqliteWrapper;->requery(Landroid/content/Context;Landroid/database/Cursor;)Z
|
||||
Lcom/google/android/mms/util/SqliteWrapper;->update(Landroid/content/Context;Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->ACRONYM:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->FLICKR:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->FORMAT:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->GOOGLE_VIDEO:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->HTML:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->LINK:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->MUSIC:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->PHOTO:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->SMILEY:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->values()[Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lcom/google/android/util/AbstractMessageParser$Token$Type;->YOUTUBE_VIDEO:Lcom/google/android/util/AbstractMessageParser$Token$Type;
|
||||
Lgov/nist/core/Debug;->printStackTrace(Ljava/lang/Exception;)V
|
||||
Lgov/nist/core/GenericObject;-><init>()V
|
||||
Lgov/nist/core/GenericObject;->dbgPrint()V
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.app;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
@@ -38,11 +39,13 @@ public abstract class AlertActivity extends Activity implements DialogInterface
|
||||
*
|
||||
* @see #mAlertParams
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected AlertController mAlert;
|
||||
|
||||
/**
|
||||
* The parameters for the alert.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected AlertController.AlertParams mAlertParams;
|
||||
|
||||
@Override
|
||||
@@ -90,6 +93,7 @@ public abstract class AlertActivity extends Activity implements DialogInterface
|
||||
* @see #mAlert
|
||||
* @see #mAlertParams
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected void setupAlert() {
|
||||
mAlert.installContent(mAlertParams);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.app;
|
||||
|
||||
import com.android.internal.R;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.SearchManager;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@@ -53,6 +54,7 @@ public class AssistUtils {
|
||||
private final Context mContext;
|
||||
private final IVoiceInteractionManagerService mVoiceInteractionManagerService;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public AssistUtils(Context context) {
|
||||
mContext = context;
|
||||
mVoiceInteractionManagerService = IVoiceInteractionManagerService.Stub.asInterface(
|
||||
@@ -155,6 +157,7 @@ public class AssistUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ComponentName getAssistComponentForUser(int userId) {
|
||||
final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(),
|
||||
Settings.Secure.ASSISTANT, userId);
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.usage.UsageStatsManager;
|
||||
|
||||
@@ -20,6 +20,7 @@ import static android.content.pm.PackageManager.MATCH_DEFAULT_ONLY;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.StringRes;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityThread;
|
||||
@@ -50,6 +51,7 @@ import java.util.Set;
|
||||
* be passed in and out of a managed profile.
|
||||
*/
|
||||
public class IntentForwarderActivity extends Activity {
|
||||
@UnsupportedAppUsage
|
||||
public static String TAG = "IntentForwarderActivity";
|
||||
|
||||
public static String FORWARD_INTENT_TO_PARENT
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.internal.app;
|
||||
|
||||
import android.annotation.IntRange;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.icu.text.ListFormatter;
|
||||
import android.icu.util.ULocale;
|
||||
import android.os.LocaleList;
|
||||
@@ -84,6 +85,7 @@ public class LocaleHelper {
|
||||
* @param locale the locale that might be used for certain operations (i.e. case conversion)
|
||||
* @return the string normalized for search
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String normalizeForSearch(String str, Locale locale) {
|
||||
// TODO: tbd if it needs to be smarter (real normalization, remove accents, etc.)
|
||||
// If needed we might use case folding and ICU/CLDR's collation-based loose searching.
|
||||
@@ -109,6 +111,7 @@ public class LocaleHelper {
|
||||
* @param sentenceCase true if the result should be sentence-cased
|
||||
* @return the localized name of the locale.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String getDisplayName(Locale locale, Locale displayLocale, boolean sentenceCase) {
|
||||
final ULocale displayULocale = ULocale.forLocale(displayLocale);
|
||||
String result = shouldUseDialectName(locale)
|
||||
@@ -135,6 +138,7 @@ public class LocaleHelper {
|
||||
* @param displayLocale the locale in which to display the name.
|
||||
* @return the localized country name.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String getDisplayCountry(Locale locale, Locale displayLocale) {
|
||||
final String languageTag = locale.toLanguageTag();
|
||||
final ULocale uDisplayLocale = ULocale.forLocale(displayLocale);
|
||||
@@ -226,6 +230,7 @@ public class LocaleHelper {
|
||||
*
|
||||
* @param sortLocale the locale to be used for sorting.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public LocaleInfoComparator(Locale sortLocale, boolean countryMode) {
|
||||
mCollator = Collator.getInstance(sortLocale);
|
||||
mCountryMode = countryMode;
|
||||
@@ -253,6 +258,7 @@ public class LocaleHelper {
|
||||
* @return a negative integer, zero, or a positive integer as the first
|
||||
* argument is less than, equal to, or greater than the second.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) {
|
||||
// We don't care about the various suggestion types, just "suggested" (!= 0)
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.app;
|
||||
|
||||
import com.android.internal.R;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.IActivityManager;
|
||||
import android.app.ListFragment;
|
||||
@@ -70,6 +71,7 @@ public class LocalePicker extends ListFragment {
|
||||
return label;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Locale getLocale() {
|
||||
return locale;
|
||||
}
|
||||
@@ -251,6 +253,7 @@ public class LocalePicker extends ListFragment {
|
||||
*
|
||||
* @see #updateLocales(LocaleList)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void updateLocale(Locale locale) {
|
||||
updateLocales(new LocaleList(locale));
|
||||
}
|
||||
@@ -260,6 +263,7 @@ public class LocalePicker extends ListFragment {
|
||||
* Note that the system looks halted for a while during the Locale migration,
|
||||
* so the caller need to take care of it.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void updateLocales(LocaleList locales) {
|
||||
try {
|
||||
final IActivityManager am = ActivityManager.getService();
|
||||
@@ -281,6 +285,7 @@ public class LocalePicker extends ListFragment {
|
||||
*
|
||||
* @return The locale list.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static LocaleList getLocales() {
|
||||
try {
|
||||
return ActivityManager.getService()
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.app;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.os.LocaleList;
|
||||
import android.provider.Settings;
|
||||
@@ -80,14 +81,17 @@ public class LocaleStore {
|
||||
return mId;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Locale getLocale() {
|
||||
return mLocale;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Locale getParent() {
|
||||
return mParent;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String getId() {
|
||||
return mId;
|
||||
}
|
||||
@@ -114,6 +118,7 @@ public class LocaleStore {
|
||||
return (mSuggestionFlags & suggestionMask) == suggestionMask;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String getFullNameNative() {
|
||||
if (mFullNameNative == null) {
|
||||
mFullNameNative =
|
||||
@@ -139,6 +144,7 @@ public class LocaleStore {
|
||||
* For instance German will show as "Deutsch" in the list, but we will also search for
|
||||
* "allemand" if the system UI is in French.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public String getFullNameInUiLanguage() {
|
||||
// We don't cache the UI name because the default locale keeps changing
|
||||
return LocaleHelper.getDisplayName(mLocale, true /* sentence case */);
|
||||
@@ -253,6 +259,7 @@ public class LocaleStore {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static void fillCache(Context context) {
|
||||
if (sFullyInitialized) {
|
||||
return;
|
||||
@@ -339,6 +346,7 @@ public class LocaleStore {
|
||||
* Example: if the parent is "ar", then the region list will contain all Arabic locales.
|
||||
* (this is not language based, but language-script, so that it works for zh-Hant and so on.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static Set<LocaleInfo> getLevelLocales(Context context, Set<String> ignorables,
|
||||
LocaleInfo parent, boolean translatedOnly) {
|
||||
fillCache(context);
|
||||
@@ -364,6 +372,7 @@ public class LocaleStore {
|
||||
return result;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static LocaleInfo getLocaleInfo(Locale locale) {
|
||||
String id = locale.toLanguageTag();
|
||||
LocaleInfo result;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.app;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@@ -141,6 +142,7 @@ public class NetInitiatedActivity extends AlertActivity implements DialogInterfa
|
||||
locationManager.sendNiResponse(notificationId, response);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void handleNIVerify(Intent intent) {
|
||||
int notifId = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_NOTIF_ID, -1);
|
||||
notificationId = notifId;
|
||||
|
||||
@@ -19,6 +19,7 @@ package com.android.internal.app;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.StringRes;
|
||||
import android.annotation.UiThread;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityThread;
|
||||
@@ -90,6 +91,7 @@ import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
|
||||
@UiThread
|
||||
public class ResolverActivity extends Activity {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
protected ResolveListAdapter mAdapter;
|
||||
private boolean mSafeForwardingMode;
|
||||
private AbsListView mAdapterView;
|
||||
@@ -110,6 +112,7 @@ public class ResolverActivity extends Activity {
|
||||
// Whether or not this activity supports choosing a default handler for the intent.
|
||||
private boolean mSupportsAlwaysUseOption;
|
||||
protected ResolverDrawerLayout mResolverDrawerLayout;
|
||||
@UnsupportedAppUsage
|
||||
protected PackageManager mPm;
|
||||
protected int mLaunchedFromUid;
|
||||
|
||||
@@ -242,6 +245,7 @@ public class ResolverActivity extends Activity {
|
||||
* Compatibility version for other bundled services that use this overload without
|
||||
* a default title resource
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected void onCreate(Bundle savedInstanceState, Intent intent,
|
||||
CharSequence title, Intent[] initialIntents,
|
||||
List<ResolveInfo> rList, boolean supportsAlwaysUseOption) {
|
||||
|
||||
@@ -84,6 +84,7 @@ public class WindowDecorActionBar extends ActionBar implements
|
||||
private ActionBarContextView mContextView;
|
||||
private ActionBarContainer mSplitView;
|
||||
private View mContentView;
|
||||
@UnsupportedAppUsage
|
||||
private ScrollingTabContainerView mTabScrollView;
|
||||
|
||||
private ArrayList<TabImpl> mTabs = new ArrayList<TabImpl>();
|
||||
@@ -331,6 +332,7 @@ public class WindowDecorActionBar extends ActionBar implements
|
||||
*
|
||||
* @param enabled true to animate, false to not animate.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setShowHideAnimationEnabled(boolean enabled) {
|
||||
mShowHideAnimationEnabled = enabled;
|
||||
if (!enabled && mCurrentShowAnim != null) {
|
||||
@@ -1147,6 +1149,7 @@ public class WindowDecorActionBar extends ActionBar implements
|
||||
* @hide
|
||||
*/
|
||||
public class TabImpl extends ActionBar.Tab {
|
||||
@UnsupportedAppUsage
|
||||
private ActionBar.TabListener mCallback;
|
||||
private Object mTag;
|
||||
private Drawable mIcon;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.database;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.database.AbstractCursor;
|
||||
import android.database.Cursor;
|
||||
import android.database.DataSetObserver;
|
||||
@@ -28,7 +29,9 @@ import android.util.Log;
|
||||
public class SortCursor extends AbstractCursor
|
||||
{
|
||||
private static final String TAG = "SortCursor";
|
||||
@UnsupportedAppUsage
|
||||
private Cursor mCursor; // updated in onMove
|
||||
@UnsupportedAppUsage
|
||||
private Cursor[] mCursors;
|
||||
private int [] mSortColumns;
|
||||
private final int ROWCACHESIZE = 64;
|
||||
@@ -52,6 +55,7 @@ public class SortCursor extends AbstractCursor
|
||||
}
|
||||
};
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public SortCursor(Cursor[] cursors, String sortcolumn)
|
||||
{
|
||||
mCursors = cursors;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.http;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.text.format.Time;
|
||||
|
||||
import java.util.Calendar;
|
||||
@@ -82,6 +83,7 @@ public final class HttpDateTime {
|
||||
int second;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static long parse(String timeString)
|
||||
throws IllegalArgumentException {
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
|
||||
/**
|
||||
@@ -34,6 +35,7 @@ class AndroidPrintStream extends LoggingPrintStream {
|
||||
* @param priority from {@link android.util.Log}
|
||||
* @param tag to log
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public AndroidPrintStream(int priority, String tag) {
|
||||
if (tag == null) {
|
||||
throw new NullPointerException("tag");
|
||||
|
||||
@@ -17,12 +17,14 @@
|
||||
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.ShellCommand;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
||||
public abstract class BaseCommand {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final protected ShellCommand mArgs = new ShellCommand() {
|
||||
@Override public int onCommand(String cmd) {
|
||||
return 0;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.SystemClock;
|
||||
@@ -94,6 +95,7 @@ public class BinderInternal {
|
||||
* an implementation of IServiceManager, which you can use to find
|
||||
* other services.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static final native IBinder getContextObject();
|
||||
|
||||
/**
|
||||
@@ -105,6 +107,7 @@ public class BinderInternal {
|
||||
|
||||
public static final native void setMaxThreads(int numThreads);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
static native final void handleGc();
|
||||
|
||||
public static void forceGc(String reason) {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Trace;
|
||||
|
||||
import dalvik.system.DelegateLastClassLoader;
|
||||
@@ -132,6 +133,7 @@ public class ClassLoaderFactory {
|
||||
return classLoader;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static native String createClassloaderNamespace(ClassLoader classLoader,
|
||||
int targetSdkVersion,
|
||||
String librarySearchPath,
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.os;
|
||||
|
||||
import static android.os.Process.*;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.FileUtils;
|
||||
import android.os.Process;
|
||||
import android.os.StrictMode;
|
||||
@@ -197,6 +198,7 @@ public class ProcessCpuTracker {
|
||||
public boolean interesting;
|
||||
|
||||
public String baseName;
|
||||
@UnsupportedAppUsage
|
||||
public String name;
|
||||
public int nameWidth;
|
||||
|
||||
@@ -212,6 +214,7 @@ public class ProcessCpuTracker {
|
||||
/**
|
||||
* Time in milliseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long rel_uptime;
|
||||
|
||||
/**
|
||||
@@ -227,11 +230,13 @@ public class ProcessCpuTracker {
|
||||
/**
|
||||
* Time in milliseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int rel_utime;
|
||||
|
||||
/**
|
||||
* Time in milliseconds.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int rel_stime;
|
||||
|
||||
public long base_minfaults;
|
||||
@@ -292,6 +297,7 @@ public class ProcessCpuTracker {
|
||||
};
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ProcessCpuTracker(boolean includeThreads) {
|
||||
mIncludeThreads = includeThreads;
|
||||
long jiffyHz = Os.sysconf(OsConstants._SC_CLK_TCK);
|
||||
@@ -311,6 +317,7 @@ public class ProcessCpuTracker {
|
||||
update();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void update() {
|
||||
if (DEBUG) Slog.v(TAG, "Update: " + this);
|
||||
|
||||
@@ -713,11 +720,13 @@ public class ProcessCpuTracker {
|
||||
return statses;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final public int countWorkingStats() {
|
||||
buildWorkingProcs();
|
||||
return mWorkingProcs.size();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
final public Stats getWorkingStats(int index) {
|
||||
return mWorkingProcs.get(index);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityThread;
|
||||
import android.app.ApplicationErrorReport;
|
||||
@@ -48,8 +49,10 @@ public class RuntimeInit {
|
||||
final static boolean DEBUG = false;
|
||||
|
||||
/** true if commonInit() has been called */
|
||||
@UnsupportedAppUsage
|
||||
private static boolean initialized;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static IBinder mApplicationObject;
|
||||
|
||||
private static volatile boolean mCrashing = false;
|
||||
@@ -186,6 +189,7 @@ public class RuntimeInit {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
protected static final void commonInit() {
|
||||
if (DEBUG) Slog.d(TAG, "Entered RuntimeInit!");
|
||||
|
||||
@@ -315,6 +319,7 @@ public class RuntimeInit {
|
||||
return new MethodAndArgsCaller(m, argv);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final void main(String[] argv) {
|
||||
enableDdms();
|
||||
if (argv.length == 2 && argv[1].equals("application")) {
|
||||
@@ -402,6 +407,7 @@ public class RuntimeInit {
|
||||
mApplicationObject = app;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static final IBinder getApplicationObject() {
|
||||
return mApplicationObject;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import static android.system.OsConstants.STDOUT_FILENO;
|
||||
import static com.android.internal.os.ZygoteConnectionConstants.CONNECTION_TIMEOUT_MILLIS;
|
||||
import static com.android.internal.os.ZygoteConnectionConstants.WRAPPED_PID_TIMEOUT_MILLIS;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.metrics.LogMaker;
|
||||
import android.net.Credentials;
|
||||
import android.net.LocalSocket;
|
||||
@@ -65,9 +66,12 @@ class ZygoteConnection {
|
||||
* that it closes when the child process terminates. In other cases,
|
||||
* it is closed in the peer.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private final LocalSocket mSocket;
|
||||
@UnsupportedAppUsage
|
||||
private final DataOutputStream mSocketOutStream;
|
||||
private final BufferedReader mSocketReader;
|
||||
@UnsupportedAppUsage
|
||||
private final Credentials peer;
|
||||
private final String abiList;
|
||||
private boolean isEof;
|
||||
@@ -396,6 +400,7 @@ class ZygoteConnection {
|
||||
/**
|
||||
* Closes socket associated with this connection.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
void closeSocket() {
|
||||
try {
|
||||
mSocket.close();
|
||||
|
||||
@@ -19,6 +19,7 @@ package com.android.internal.os;
|
||||
import static android.system.OsConstants.S_IRWXG;
|
||||
import static android.system.OsConstants.S_IRWXO;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Build;
|
||||
@@ -105,6 +106,7 @@ public class ZygoteInit {
|
||||
/**
|
||||
* Used to pre-load resources.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private static Resources mResources;
|
||||
|
||||
/**
|
||||
@@ -787,6 +789,7 @@ public class ZygoteInit {
|
||||
return result;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static void main(String argv[]) {
|
||||
ZygoteServer zygoteServer = new ZygoteServer();
|
||||
|
||||
|
||||
@@ -16,10 +16,13 @@
|
||||
|
||||
package com.android.internal.os;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Exception thrown when a security policy is violated.
|
||||
*/
|
||||
class ZygoteSecurityException extends RuntimeException {
|
||||
@UnsupportedAppUsage
|
||||
ZygoteSecurityException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ import java.util.List;
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
@@ -207,8 +208,11 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
private final BackgroundFallback mBackgroundFallback = new BackgroundFallback();
|
||||
|
||||
private int mLastTopInset = 0;
|
||||
@UnsupportedAppUsage
|
||||
private int mLastBottomInset = 0;
|
||||
@UnsupportedAppUsage
|
||||
private int mLastRightInset = 0;
|
||||
@UnsupportedAppUsage
|
||||
private int mLastLeftInset = 0;
|
||||
private boolean mLastHasTopStableInset = false;
|
||||
private boolean mLastHasBottomStableInset = false;
|
||||
@@ -219,6 +223,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
|
||||
private int mRootScrollY = 0;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private PhoneWindow mWindow;
|
||||
|
||||
ViewGroup mContentRoot;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.policy;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.SearchManager;
|
||||
import android.content.ActivityNotFoundException;
|
||||
@@ -41,7 +42,9 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
|
||||
private static String TAG = "PhoneFallbackEventHandler";
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
Context mContext;
|
||||
@UnsupportedAppUsage
|
||||
View mView;
|
||||
|
||||
AudioManager mAudioManager;
|
||||
@@ -50,6 +53,7 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
|
||||
TelephonyManager mTelephonyManager;
|
||||
MediaSessionManager mMediaSessionManager;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public PhoneFallbackEventHandler(Context context) {
|
||||
mContext = context;
|
||||
}
|
||||
@@ -74,6 +78,7 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
/* ****************************************************************************
|
||||
* HOW TO DECIDE WHERE YOUR KEY HANDLING GOES.
|
||||
@@ -207,6 +212,7 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
|
||||
&& (getKeyguardManager().inKeyguardRestrictedInputMode() || dispatcher == null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
boolean onKeyUp(int keyCode, KeyEvent event) {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "up " + keyCode);
|
||||
@@ -270,6 +276,7 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void startCallActivity() {
|
||||
sendCloseSystemWindows();
|
||||
Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
|
||||
|
||||
@@ -63,6 +63,7 @@ import com.android.internal.view.menu.MenuView;
|
||||
import com.android.internal.widget.DecorContentParent;
|
||||
import com.android.internal.widget.SwipeDismissLayout;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.KeyguardManager;
|
||||
import android.content.Context;
|
||||
@@ -237,6 +238,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
||||
private boolean mForcedStatusBarColor = false;
|
||||
private boolean mForcedNavigationBarColor = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private CharSequence mTitle = null;
|
||||
|
||||
private int mTitleColor = 0;
|
||||
@@ -300,6 +302,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
||||
|
||||
static final RotationWatcher sRotationWatcher = new RotationWatcher();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public PhoneWindow(Context context) {
|
||||
super(context);
|
||||
mLayoutInflater = LayoutInflater.from(context);
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.util;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ArraySet;
|
||||
|
||||
import dalvik.system.VMRuntime;
|
||||
@@ -51,6 +52,7 @@ public class ArrayUtils {
|
||||
return (char[])VMRuntime.getRuntime().newUnpaddedArray(char.class, minLen);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static int[] newUnpaddedIntArray(int minLen) {
|
||||
return (int[])VMRuntime.getRuntime().newUnpaddedArray(int.class, minLen);
|
||||
}
|
||||
@@ -71,6 +73,7 @@ public class ArrayUtils {
|
||||
return (Object[])VMRuntime.getRuntime().newUnpaddedArray(Object.class, minLen);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> T[] newUnpaddedArray(Class<T> clazz, int minLen) {
|
||||
return (T[])VMRuntime.getRuntime().newUnpaddedArray(clazz, minLen);
|
||||
@@ -108,6 +111,7 @@ public class ArrayUtils {
|
||||
* it will return the same empty array every time to avoid reallocation,
|
||||
* although this is not guaranteed.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> T[] emptyArray(Class<T> kind) {
|
||||
if (kind == Object.class) {
|
||||
@@ -144,6 +148,7 @@ public class ArrayUtils {
|
||||
/**
|
||||
* Checks if given array is null or has zero elements.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <T> boolean isEmpty(@Nullable T[] array) {
|
||||
return array == null || array.length == 0;
|
||||
}
|
||||
@@ -196,6 +201,7 @@ public class ArrayUtils {
|
||||
* @param value the value to check for
|
||||
* @return true if the value is present in the array
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <T> boolean contains(@Nullable T[] array, T value) {
|
||||
return indexOf(array, value) != -1;
|
||||
}
|
||||
@@ -204,6 +210,7 @@ public class ArrayUtils {
|
||||
* Return first index of {@code value} in {@code array}, or {@code -1} if
|
||||
* not found.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <T> int indexOf(@Nullable T[] array, T value) {
|
||||
if (array == null) return -1;
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
@@ -238,6 +245,7 @@ public class ArrayUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static boolean contains(@Nullable int[] array, int value) {
|
||||
if (array == null) return false;
|
||||
for (int element : array) {
|
||||
@@ -329,6 +337,7 @@ public class ArrayUtils {
|
||||
* Adds value to given array if not already present, providing set-like
|
||||
* behavior.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unchecked")
|
||||
public static @NonNull <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) {
|
||||
return appendElement(kind, array, element, false);
|
||||
@@ -358,6 +367,7 @@ public class ArrayUtils {
|
||||
/**
|
||||
* Removes value from given array if present, providing set-like behavior.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SuppressWarnings("unchecked")
|
||||
public static @Nullable <T> T[] removeElement(Class<T> kind, @Nullable T[] array, T element) {
|
||||
if (array != null) {
|
||||
@@ -404,6 +414,7 @@ public class ArrayUtils {
|
||||
* Adds value to given array if not already present, providing set-like
|
||||
* behavior.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static @NonNull int[] appendInt(@Nullable int[] cur, int val) {
|
||||
return appendInt(cur, val, false);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* An object that provides bitwise incremental read access to a byte array.
|
||||
*
|
||||
@@ -49,6 +51,7 @@ public class BitwiseInputStream {
|
||||
*
|
||||
* @param buf a byte array containing data
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public BitwiseInputStream(byte buf[]) {
|
||||
mBuf = buf;
|
||||
mEnd = buf.length << 3;
|
||||
@@ -58,6 +61,7 @@ public class BitwiseInputStream {
|
||||
/**
|
||||
* Return the number of bit still available for reading.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int available() {
|
||||
return mEnd - mPos;
|
||||
}
|
||||
@@ -71,6 +75,7 @@ public class BitwiseInputStream {
|
||||
* @param bits the amount of data to read (gte 0, lte 8)
|
||||
* @return byte of read data (possibly partially filled, from lsb)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int read(int bits) throws AccessException {
|
||||
int index = mPos >>> 3;
|
||||
int offset = 16 - (mPos & 0x07) - bits; // &7==%8
|
||||
@@ -92,6 +97,7 @@ public class BitwiseInputStream {
|
||||
* @param bits the amount of data to read
|
||||
* @return newly allocated byte array of read data
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public byte[] readByteArray(int bits) throws AccessException {
|
||||
int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8
|
||||
byte[] arr = new byte[bytes];
|
||||
@@ -107,6 +113,7 @@ public class BitwiseInputStream {
|
||||
*
|
||||
* @param bits the amount by which to increment the position
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void skip(int bits) throws AccessException {
|
||||
if ((mPos + bits) > mEnd) {
|
||||
throw new AccessException("illegal skip " +
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* An object that provides bitwise incremental write access to a byte array.
|
||||
*
|
||||
@@ -49,6 +51,7 @@ public class BitwiseOutputStream {
|
||||
*
|
||||
* @param startingLength initial internal byte array length in bytes
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public BitwiseOutputStream(int startingLength) {
|
||||
mBuf = new byte[startingLength];
|
||||
mEnd = startingLength << 3;
|
||||
@@ -60,6 +63,7 @@ public class BitwiseOutputStream {
|
||||
*
|
||||
* @return newly allocated byte array
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public byte[] toByteArray() {
|
||||
int len = (mPos >>> 3) + ((mPos & 0x07) > 0 ? 1 : 0); // &7==%8
|
||||
byte[] newBuf = new byte[len];
|
||||
@@ -89,6 +93,7 @@ public class BitwiseOutputStream {
|
||||
* @param bits the amount of data to write (gte 0, lte 8)
|
||||
* @param data to write, will be masked to expose only bits param from lsb
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void write(int bits, int data) throws AccessException {
|
||||
if ((bits < 0) || (bits > 8)) {
|
||||
throw new AccessException("illegal write (" + bits + " bits)");
|
||||
@@ -109,6 +114,7 @@ public class BitwiseOutputStream {
|
||||
* @param bits the amount of data to write
|
||||
* @param arr the byte array containing data to be written
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void writeByteArray(int bits, byte[] arr) throws AccessException {
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
int increment = Math.min(8, bits - (i << 3));
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* {@link CharSequence} utility methods.
|
||||
*/
|
||||
@@ -93,6 +95,7 @@ public class CharSequences {
|
||||
/**
|
||||
* Compares two character sequences for equality.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean equals(CharSequence a, CharSequence b) {
|
||||
if (a.length() != b.length()) {
|
||||
return false;
|
||||
@@ -114,6 +117,7 @@ public class CharSequences {
|
||||
* @param another The other CharSequence.
|
||||
* @return See {@link Comparable#compareTo}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int compareToIgnoreCase(CharSequence me, CharSequence another) {
|
||||
// Code adapted from String#compareTo
|
||||
int myLen = me.length(), anotherLen = another.length();
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Fast and loose math routines.
|
||||
*/
|
||||
@@ -26,6 +28,7 @@ public class FastMath {
|
||||
* thought it may return slightly different results. It does not try to
|
||||
* handle (in any meaningful way) NaN or infinities.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int round(float value) {
|
||||
long lx = (long) (value * (65536 * 256f));
|
||||
return (int) ((lx + 0x800000) >> 24);
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.util;
|
||||
|
||||
import org.xmlpull.v1.XmlSerializer;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
@@ -69,6 +70,7 @@ public class FastXmlSerializer implements XmlSerializer {
|
||||
private int mNesting = 0;
|
||||
private boolean mLineStart = true;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public FastXmlSerializer() {
|
||||
this(DEFAULT_BUFFER_LEN);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* A helper class that aims to provide comparable growth performance to ArrayList, but on primitive
|
||||
* arrays. Common array operations are implemented for efficient use in dynamic containers.
|
||||
@@ -37,6 +39,7 @@ public final class GrowingArrayUtils {
|
||||
* @return the array to which the element was appended. This may be different than the given
|
||||
* array.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <T> T[] append(T[] array, int currentSize, T element) {
|
||||
assert currentSize <= array.length;
|
||||
|
||||
@@ -54,6 +57,7 @@ public final class GrowingArrayUtils {
|
||||
/**
|
||||
* Primitive int version of {@link #append(Object[], int, Object)}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int[] append(int[] array, int currentSize, int element) {
|
||||
assert currentSize <= array.length;
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
public class HexDump
|
||||
{
|
||||
@@ -100,16 +101,19 @@ public class HexDump
|
||||
return toHexString(toByteArray(b));
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static String toHexString(byte[] array)
|
||||
{
|
||||
return toHexString(array, 0, array.length, true);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static String toHexString(byte[] array, boolean upperCase)
|
||||
{
|
||||
return toHexString(array, 0, array.length, upperCase);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static String toHexString(byte[] array, int offset, int length)
|
||||
{
|
||||
return toHexString(array, offset, length, true);
|
||||
@@ -131,6 +135,7 @@ public class HexDump
|
||||
return new String(buf);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static String toHexString(int i)
|
||||
{
|
||||
return toHexString(toByteArray(i));
|
||||
@@ -164,6 +169,7 @@ public class HexDump
|
||||
throw new RuntimeException ("Invalid hex char '" + c + "'");
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static byte[] hexStringToByteArray(String hexString)
|
||||
{
|
||||
int length = hexString.length();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Message;
|
||||
|
||||
/**
|
||||
@@ -67,5 +68,6 @@ public interface IState {
|
||||
*
|
||||
* @return name of state.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
String getName();
|
||||
}
|
||||
|
||||
@@ -16,12 +16,14 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Debug;
|
||||
import android.os.StrictMode;
|
||||
|
||||
public final class MemInfoReader {
|
||||
final long[] mInfos = new long[Debug.MEMINFO_COUNT];
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void readMemInfo() {
|
||||
// Permit disk reads here, as /proc/meminfo isn't really "on
|
||||
// disk" and should be fast. TODO: make BlockGuard ignore
|
||||
@@ -37,6 +39,7 @@ public final class MemInfoReader {
|
||||
/**
|
||||
* Total amount of RAM available to the kernel.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long getTotalSize() {
|
||||
return mInfos[Debug.MEMINFO_TOTAL] * 1024;
|
||||
}
|
||||
@@ -44,6 +47,7 @@ public final class MemInfoReader {
|
||||
/**
|
||||
* Amount of RAM that is not being used for anything.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long getFreeSize() {
|
||||
return mInfos[Debug.MEMINFO_FREE] * 1024;
|
||||
}
|
||||
@@ -52,6 +56,7 @@ public final class MemInfoReader {
|
||||
* Amount of RAM that the kernel is being used for caches, not counting caches
|
||||
* that are mapped in to processes.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long getCachedSize() {
|
||||
return getCachedSizeKb() * 1024;
|
||||
}
|
||||
@@ -107,6 +112,7 @@ public final class MemInfoReader {
|
||||
return mInfos[Debug.MEMINFO_ZRAM_TOTAL];
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public long[] getRawInfo() {
|
||||
return mInfos;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.util;
|
||||
|
||||
import android.annotation.IntRange;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -28,6 +29,7 @@ import java.util.Collection;
|
||||
*/
|
||||
public class Preconditions {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static void checkArgument(boolean expression) {
|
||||
if (!expression) {
|
||||
throw new IllegalArgumentException();
|
||||
@@ -42,6 +44,7 @@ public class Preconditions {
|
||||
* be converted to a string using {@link String#valueOf(Object)}
|
||||
* @throws IllegalArgumentException if {@code expression} is false
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void checkArgument(boolean expression, final Object errorMessage) {
|
||||
if (!expression) {
|
||||
throw new IllegalArgumentException(String.valueOf(errorMessage));
|
||||
@@ -106,6 +109,7 @@ public class Preconditions {
|
||||
* @return the non-null reference that was validated
|
||||
* @throws NullPointerException if {@code reference} is null
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static @NonNull <T> T checkNotNull(final T reference) {
|
||||
if (reference == null) {
|
||||
throw new NullPointerException();
|
||||
@@ -123,6 +127,7 @@ public class Preconditions {
|
||||
* @return the non-null reference that was validated
|
||||
* @throws NullPointerException if {@code reference} is null
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static @NonNull <T> T checkNotNull(final T reference, final Object errorMessage) {
|
||||
if (reference == null) {
|
||||
throw new NullPointerException(String.valueOf(errorMessage));
|
||||
@@ -158,6 +163,7 @@ public class Preconditions {
|
||||
* @param message exception message
|
||||
* @throws IllegalStateException if {@code expression} is false
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void checkState(final boolean expression, String message) {
|
||||
if (!expression) {
|
||||
throw new IllegalStateException(message);
|
||||
@@ -171,6 +177,7 @@ public class Preconditions {
|
||||
* @param expression a boolean expression
|
||||
* @throws IllegalStateException if {@code expression} is false
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static void checkState(final boolean expression) {
|
||||
checkState(expression, null);
|
||||
}
|
||||
@@ -338,6 +345,7 @@ public class Preconditions {
|
||||
*
|
||||
* @throws IllegalArgumentException if {@code value} was not within the range
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static int checkArgumentInRange(int value, int lower, int upper,
|
||||
String valueName) {
|
||||
if (value < lower) {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Message;
|
||||
|
||||
/**
|
||||
@@ -28,12 +29,14 @@ public class State implements IState {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected State() {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.android.internal.util.IState#enter()
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public void enter() {
|
||||
}
|
||||
@@ -41,6 +44,7 @@ public class State implements IState {
|
||||
/* (non-Javadoc)
|
||||
* @see com.android.internal.util.IState#exit()
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public void exit() {
|
||||
}
|
||||
@@ -48,6 +52,7 @@ public class State implements IState {
|
||||
/* (non-Javadoc)
|
||||
* @see com.android.internal.util.IState#processMessage(android.os.Message)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public boolean processMessage(Message msg) {
|
||||
return false;
|
||||
@@ -65,6 +70,7 @@ public class State implements IState {
|
||||
*
|
||||
* @see com.android.internal.util.IState#processMessage(android.os.Message)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public String getName() {
|
||||
String name = getClass().getName();
|
||||
|
||||
@@ -1301,6 +1301,7 @@ public class StateMachine {
|
||||
*
|
||||
* @param name of the state machine
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected StateMachine(String name) {
|
||||
mSmThread = new HandlerThread(name);
|
||||
mSmThread.start();
|
||||
@@ -1314,6 +1315,7 @@ public class StateMachine {
|
||||
*
|
||||
* @param name of the state machine
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected StateMachine(String name, Looper looper) {
|
||||
initStateMachine(name, looper);
|
||||
}
|
||||
@@ -1323,6 +1325,7 @@ public class StateMachine {
|
||||
*
|
||||
* @param name of the state machine
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
protected StateMachine(String name, Handler handler) {
|
||||
initStateMachine(name, handler.getLooper());
|
||||
}
|
||||
@@ -1678,6 +1681,7 @@ public class StateMachine {
|
||||
* @param arg2 is assigned to Message.arg2
|
||||
* @return A Message object from the global pool
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final Message obtainMessage(int what, int arg1, int arg2) {
|
||||
return Message.obtain(mSmHandler, what, arg1, arg2);
|
||||
}
|
||||
@@ -1697,6 +1701,7 @@ public class StateMachine {
|
||||
* @param obj is assigned to Message.obj
|
||||
* @return A Message object from the global pool
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public final Message obtainMessage(int what, int arg1, int arg2, Object obj) {
|
||||
return Message.obtain(mSmHandler, what, arg1, arg2, obj);
|
||||
}
|
||||
@@ -1706,6 +1711,7 @@ public class StateMachine {
|
||||
*
|
||||
* Message is ignored if state machine has quit.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendMessage(int what) {
|
||||
// mSmHandler can be null if the state machine has quit.
|
||||
SmHandler smh = mSmHandler;
|
||||
@@ -1719,6 +1725,7 @@ public class StateMachine {
|
||||
*
|
||||
* Message is ignored if state machine has quit.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendMessage(int what, Object obj) {
|
||||
// mSmHandler can be null if the state machine has quit.
|
||||
SmHandler smh = mSmHandler;
|
||||
@@ -1732,6 +1739,7 @@ public class StateMachine {
|
||||
*
|
||||
* Message is ignored if state machine has quit.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendMessage(int what, int arg1) {
|
||||
// mSmHandler can be null if the state machine has quit.
|
||||
SmHandler smh = mSmHandler;
|
||||
@@ -1758,6 +1766,7 @@ public class StateMachine {
|
||||
*
|
||||
* Message is ignored if state machine has quit.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendMessage(int what, int arg1, int arg2, Object obj) {
|
||||
// mSmHandler can be null if the state machine has quit.
|
||||
SmHandler smh = mSmHandler;
|
||||
@@ -1771,6 +1780,7 @@ public class StateMachine {
|
||||
*
|
||||
* Message is ignored if state machine has quit.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendMessage(Message msg) {
|
||||
// mSmHandler can be null if the state machine has quit.
|
||||
SmHandler smh = mSmHandler;
|
||||
@@ -2074,6 +2084,7 @@ public class StateMachine {
|
||||
* @param pw
|
||||
* @param args
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||
pw.println(getName() + ":");
|
||||
pw.println(" total records=" + getLogRecCount());
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.view;
|
||||
|
||||
import com.android.internal.R;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
@@ -29,12 +30,15 @@ import android.os.Build;
|
||||
* about how the action bar should lay out and behave on the current device.
|
||||
*/
|
||||
public class ActionBarPolicy {
|
||||
@UnsupportedAppUsage
|
||||
private Context mContext;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static ActionBarPolicy get(Context context) {
|
||||
return new ActionBarPolicy(context);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private ActionBarPolicy(Context context) {
|
||||
mContext = context;
|
||||
}
|
||||
@@ -44,6 +48,7 @@ public class ActionBarPolicy {
|
||||
* bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit.
|
||||
* "always" items can override this.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getMaxActionButtons() {
|
||||
final Configuration config = mContext.getResources().getConfiguration();
|
||||
final int width = config.screenWidthDp;
|
||||
@@ -62,14 +67,17 @@ public class ActionBarPolicy {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@UnsupportedAppUsage
|
||||
public boolean showsOverflowMenuButton() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int getEmbeddedMenuWidthLimit() {
|
||||
return mContext.getResources().getDisplayMetrics().widthPixels / 2;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public boolean hasEmbeddedTabs() {
|
||||
final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
|
||||
if (targetSdk >= Build.VERSION_CODES.JELLY_BEAN) {
|
||||
@@ -85,6 +93,7 @@ public class ActionBarPolicy {
|
||||
width >= 480 || (width >= 640 && height >= 480);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int getTabContainerHeight() {
|
||||
TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
|
||||
com.android.internal.R.attr.actionBarStyle, 0);
|
||||
@@ -106,6 +115,7 @@ public class ActionBarPolicy {
|
||||
Build.VERSION_CODES.ICE_CREAM_SANDWICH;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int getStackedTabMaxWidth() {
|
||||
return mContext.getResources().getDimensionPixelSize(
|
||||
R.dimen.action_bar_stacked_tab_max_width);
|
||||
|
||||
@@ -19,6 +19,7 @@ package com.android.internal.view;
|
||||
import android.annotation.AnyThread;
|
||||
import android.annotation.BinderThread;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.inputmethodservice.AbstractInputMethodService;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
@@ -78,6 +79,7 @@ public class InputConnectionWrapper implements InputConnection {
|
||||
* sequence number is set to a new integer. We use a sequence number so that replies that
|
||||
* occur after a timeout has expired are not interpreted as replies to a later request.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@AnyThread
|
||||
private static InputContextCallback getInstance() {
|
||||
synchronized (InputContextCallback.class) {
|
||||
@@ -102,6 +104,7 @@ public class InputConnectionWrapper implements InputConnection {
|
||||
/**
|
||||
* Makes the given InputContextCallback available for use in the future.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@AnyThread
|
||||
private void dispose() {
|
||||
synchronized (InputContextCallback.class) {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.view;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Looper;
|
||||
|
||||
/**
|
||||
@@ -35,6 +36,7 @@ public class WindowManagerPolicyThread {
|
||||
return mThread;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static Looper getLooper() {
|
||||
return mLooper;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ package com.android.internal.view.menu;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -39,6 +40,7 @@ public class ActionMenu implements Menu {
|
||||
|
||||
private ArrayList<ActionMenuItem> mItems;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ActionMenu(Context context) {
|
||||
mContext = context;
|
||||
mItems = new ArrayList<ActionMenuItem>();
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.internal.view.menu;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.ColorStateList;
|
||||
@@ -69,6 +70,7 @@ public class ActionMenuItem implements MenuItem {
|
||||
private static final int HIDDEN = 0x00000008;
|
||||
private static final int ENABLED = 0x00000010;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ActionMenuItem(Context context, int group, int id, int categoryOrder, int ordering,
|
||||
CharSequence title) {
|
||||
mContext = context;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.view.menu;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.IBinder;
|
||||
@@ -39,6 +40,7 @@ import android.view.View;
|
||||
*/
|
||||
public class ContextMenuBuilder extends MenuBuilder implements ContextMenu {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ContextMenuBuilder(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.view.menu;
|
||||
|
||||
import com.android.internal.view.menu.MenuBuilder.ItemInvoker;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Rect;
|
||||
@@ -213,6 +214,7 @@ public final class IconMenuItemView extends TextView implements MenuView.ItemVie
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setItemInvoker(ItemInvoker itemInvoker) {
|
||||
mItemInvoker = itemInvoker;
|
||||
}
|
||||
@@ -232,6 +234,7 @@ public final class IconMenuItemView extends TextView implements MenuView.ItemVie
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void setIconMenuView(IconMenuView iconMenuView) {
|
||||
mIconMenuView = iconMenuView;
|
||||
}
|
||||
@@ -267,6 +270,7 @@ public final class IconMenuItemView extends TextView implements MenuView.ItemVie
|
||||
* @return layout params appropriate for this view. If layout params already exist, it will
|
||||
* augment them to be appropriate to the current text size.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
IconMenuView.LayoutParams getTextAppropriateLayoutParams() {
|
||||
IconMenuView.LayoutParams lp = (IconMenuView.LayoutParams) getLayoutParams();
|
||||
if (lp == null) {
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.view.menu;
|
||||
|
||||
import com.android.internal.view.menu.MenuBuilder.ItemInvoker;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -51,6 +52,7 @@ import java.util.ArrayList;
|
||||
public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuView, Runnable {
|
||||
private static final int ITEM_CAPTION_CYCLE_DELAY = 1000;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private MenuBuilder mMenu;
|
||||
|
||||
/** Height of each row */
|
||||
@@ -58,6 +60,7 @@ public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuVi
|
||||
/** Maximum number of rows to be shown */
|
||||
private int mMaxRows;
|
||||
/** Maximum number of items to show in the icon menu. */
|
||||
@UnsupportedAppUsage
|
||||
private int mMaxItems;
|
||||
/** Maximum number of items per row */
|
||||
private int mMaxItemsPerRow;
|
||||
@@ -82,6 +85,7 @@ public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuVi
|
||||
private Drawable mMoreIcon;
|
||||
|
||||
/** Background of each item (should contain the selected and focused states) */
|
||||
@UnsupportedAppUsage
|
||||
private Drawable mItemBackground;
|
||||
|
||||
/** Default animations for this menu */
|
||||
@@ -288,6 +292,7 @@ public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuVi
|
||||
* have a MenuItemData backing it.
|
||||
* @return The IconMenuItemView for the 'More' button
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
IconMenuItemView createMoreItemView() {
|
||||
Context context = getContext();
|
||||
LayoutInflater inflater = LayoutInflater.from(context);
|
||||
@@ -494,6 +499,7 @@ public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuVi
|
||||
* {@link MenuView.ItemView} implementation--eg: excludes More
|
||||
* item).
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
int getNumActualItemsShown() {
|
||||
return mNumActualItemsShown;
|
||||
}
|
||||
@@ -717,6 +723,7 @@ public final class IconMenuView extends ViewGroup implements ItemInvoker, MenuVi
|
||||
/**
|
||||
* Constructor called from {@link #CREATOR}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private SavedState(Parcel in) {
|
||||
super(in);
|
||||
focusedPosition = in.readInt();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.view.menu;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
@@ -36,6 +37,7 @@ public class MenuDialogHelper implements MenuHelper, DialogInterface.OnKeyListen
|
||||
ListMenuPresenter mPresenter;
|
||||
private MenuPresenter.Callback mPresenterCallback;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public MenuDialogHelper(MenuBuilder menu) {
|
||||
mMenu = menu;
|
||||
}
|
||||
@@ -45,6 +47,7 @@ public class MenuDialogHelper implements MenuHelper, DialogInterface.OnKeyListen
|
||||
*
|
||||
* @param windowToken Optional token to assign to the window.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void show(IBinder windowToken) {
|
||||
// Many references to mMenu, create local reference
|
||||
final MenuBuilder menu = mMenu;
|
||||
@@ -132,6 +135,7 @@ public class MenuDialogHelper implements MenuHelper, DialogInterface.OnKeyListen
|
||||
*
|
||||
* @see Dialog#dismiss()
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public void dismiss() {
|
||||
if (mDialog != null) {
|
||||
|
||||
@@ -27,6 +27,7 @@ import android.animation.Animator;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -294,6 +295,7 @@ public abstract class AbsActionBarView extends ViewGroup {
|
||||
return isOverflowReserved() && getVisibility() == VISIBLE;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void dismissPopupMenus() {
|
||||
if (mActionMenuPresenter != null) {
|
||||
mActionMenuPresenter.dismissPopupMenus();
|
||||
|
||||
@@ -21,6 +21,7 @@ import android.widget.ActionMenuPresenter;
|
||||
import android.widget.ActionMenuView;
|
||||
import com.android.internal.view.menu.MenuBuilder;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
@@ -58,6 +59,7 @@ public class ActionBarContextView extends AbsActionBarView {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ActionBarContextView(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, com.android.internal.R.attr.actionModeStyle);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.widget;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.res.Configuration;
|
||||
@@ -168,6 +169,7 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar
|
||||
init(context);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public ActionBarOverlayLayout(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
init(context);
|
||||
@@ -672,6 +674,7 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar
|
||||
return finalY > mActionBarTop.getHeight();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@Override
|
||||
public void setWindowCallback(Window.Callback cb) {
|
||||
pullChildren();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.Spanned;
|
||||
@@ -41,6 +42,7 @@ public class EditableInputConnection extends BaseInputConnection {
|
||||
// A negative value means that this connection has been finished by the InputMethodManager.
|
||||
private int mBatchEditNesting;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public EditableInputConnection(TextView textview) {
|
||||
super(textview, true);
|
||||
mTextView = textview;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
@@ -36,6 +37,7 @@ public class LinearLayoutWithDefaultTouchRecepient extends LinearLayout {
|
||||
private final Rect mTempRect = new Rect();
|
||||
private View mDefaultTouchRecepient;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public LinearLayoutWithDefaultTouchRecepient(Context context) {
|
||||
super(context);
|
||||
}
|
||||
@@ -44,6 +46,7 @@ public class LinearLayoutWithDefaultTouchRecepient extends LinearLayout {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setDefaultTouchRecepient(View defaultTouchRecepient) {
|
||||
mDefaultTouchRecepient = defaultTouchRecepient;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.AsyncTask;
|
||||
|
||||
import com.android.internal.widget.LockPatternUtils.RequestThrottledException;
|
||||
@@ -223,6 +224,7 @@ public final class LockPatternChecker {
|
||||
* @param userId The user to check against the pattern.
|
||||
* @param callback The callback to be invoked with the check result.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static AsyncTask<?, ?, ?> checkPassword(final LockPatternUtils utils,
|
||||
final String password,
|
||||
final int userId,
|
||||
|
||||
@@ -27,6 +27,7 @@ import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED
|
||||
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.app.admin.PasswordMetrics;
|
||||
import android.app.trust.IStrongAuthTracker;
|
||||
@@ -169,7 +170,9 @@ public class LockPatternUtils {
|
||||
public static final String SYNTHETIC_PASSWORD_ENABLED_KEY = "enable-sp";
|
||||
private static final String HISTORY_DELIMITER = ",";
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final Context mContext;
|
||||
@UnsupportedAppUsage
|
||||
private final ContentResolver mContentResolver;
|
||||
private DevicePolicyManager mDevicePolicyManager;
|
||||
private ILockSettings mLockSettingsService;
|
||||
@@ -212,6 +215,7 @@ public class LockPatternUtils {
|
||||
|
||||
public static final class RequestThrottledException extends Exception {
|
||||
private int mTimeoutMs;
|
||||
@UnsupportedAppUsage
|
||||
public RequestThrottledException(int timeoutMs) {
|
||||
mTimeoutMs = timeoutMs;
|
||||
}
|
||||
@@ -220,12 +224,14 @@ public class LockPatternUtils {
|
||||
* @return The amount of time in ms before another request may
|
||||
* be executed
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getTimeoutMs() {
|
||||
return mTimeoutMs;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public DevicePolicyManager getDevicePolicyManager() {
|
||||
if (mDevicePolicyManager == null) {
|
||||
mDevicePolicyManager =
|
||||
@@ -254,6 +260,7 @@ public class LockPatternUtils {
|
||||
return trust;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public LockPatternUtils(Context context) {
|
||||
mContext = context;
|
||||
mContentResolver = context.getContentResolver();
|
||||
@@ -262,6 +269,7 @@ public class LockPatternUtils {
|
||||
mHandler = looper != null ? new Handler(looper) : null;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@VisibleForTesting
|
||||
public ILockSettings getLockSettings() {
|
||||
if (mLockSettingsService == null) {
|
||||
@@ -312,6 +320,7 @@ public class LockPatternUtils {
|
||||
return getDevicePolicyManager().getPasswordMinimumNonLetter(null, userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void reportFailedPasswordAttempt(int userId) {
|
||||
if (userId == USER_FRP && frpCredentialEnabled(mContext)) {
|
||||
return;
|
||||
@@ -320,6 +329,7 @@ public class LockPatternUtils {
|
||||
getTrustManager().reportUnlockAttempt(false /* authenticated */, userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void reportSuccessfulPasswordAttempt(int userId) {
|
||||
if (userId == USER_FRP && frpCredentialEnabled(mContext)) {
|
||||
return;
|
||||
@@ -479,6 +489,7 @@ public class LockPatternUtils {
|
||||
* @param password The password to check.
|
||||
* @return Whether the password matches the stored one.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean checkPassword(String password, int userId) throws RequestThrottledException {
|
||||
return checkPassword(password, userId, null /* progressCallback */);
|
||||
}
|
||||
@@ -602,6 +613,7 @@ public class LockPatternUtils {
|
||||
* Used by device policy manager to validate the current password
|
||||
* information it has.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getActivePasswordQuality(int userId) {
|
||||
int quality = getKeyguardStoredPasswordQuality(userId);
|
||||
|
||||
@@ -672,6 +684,7 @@ public class LockPatternUtils {
|
||||
*
|
||||
* @return true if lock screen is disabled
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isLockScreenDisabled(int userId) {
|
||||
if (isSecure(userId)) {
|
||||
return false;
|
||||
@@ -754,16 +767,19 @@ public class LockPatternUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setOwnerInfo(String info, int userId) {
|
||||
setString(LOCK_SCREEN_OWNER_INFO, info, userId);
|
||||
updateCryptoUserInfo(userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setOwnerInfoEnabled(boolean enabled, int userId) {
|
||||
setBoolean(LOCK_SCREEN_OWNER_INFO_ENABLED, enabled, userId);
|
||||
updateCryptoUserInfo(userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public String getOwnerInfo(int userId) {
|
||||
return getString(LOCK_SCREEN_OWNER_INFO, userId);
|
||||
}
|
||||
@@ -829,6 +845,7 @@ public class LockPatternUtils {
|
||||
* @param requestedQuality {@see DevicePolicyManager#getPasswordQuality(android.content.ComponentName)}
|
||||
* @param userHandle The userId of the user to change the password for
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void saveLockPassword(String password, String savedPassword, int requestedQuality,
|
||||
int userHandle) {
|
||||
if (password == null || password.length() < MIN_LOCK_PASSWORD_SIZE) {
|
||||
@@ -926,6 +943,7 @@ public class LockPatternUtils {
|
||||
* encrypted with the default password.
|
||||
* @return true if device encryption is enabled
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static boolean isDeviceEncryptionEnabled() {
|
||||
return StorageManager.isEncrypted();
|
||||
}
|
||||
@@ -951,6 +969,7 @@ public class LockPatternUtils {
|
||||
*
|
||||
* @return stored password quality
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public int getKeyguardStoredPasswordQuality(int userHandle) {
|
||||
return (int) getLong(PASSWORD_TYPE_KEY, PASSWORD_QUALITY_UNSPECIFIED, userHandle);
|
||||
}
|
||||
@@ -1072,6 +1091,7 @@ public class LockPatternUtils {
|
||||
* @param pattern The pattern.
|
||||
* @return The pattern in string form.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static String patternToString(List<LockPatternView.Cell> pattern) {
|
||||
if (pattern == null) {
|
||||
return "";
|
||||
@@ -1107,6 +1127,7 @@ public class LockPatternUtils {
|
||||
* @param pattern the gesture pattern.
|
||||
* @return the hash of the pattern in a byte array.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static byte[] patternToHash(List<LockPatternView.Cell> pattern) {
|
||||
if (pattern == null) {
|
||||
return null;
|
||||
@@ -1193,11 +1214,13 @@ public class LockPatternUtils {
|
||||
* @param userId the user for which to report the value
|
||||
* @return Whether the lock screen is secured.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isSecure(int userId) {
|
||||
int mode = getKeyguardStoredPasswordQuality(userId);
|
||||
return isLockPatternEnabled(mode, userId) || isLockPasswordEnabled(mode, userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public boolean isLockPasswordEnabled(int userId) {
|
||||
return isLockPasswordEnabled(getKeyguardStoredPasswordQuality(userId), userId);
|
||||
}
|
||||
@@ -1215,6 +1238,7 @@ public class LockPatternUtils {
|
||||
/**
|
||||
* @return Whether the lock pattern is enabled
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isLockPatternEnabled(int userId) {
|
||||
return isLockPatternEnabled(getKeyguardStoredPasswordQuality(userId), userId);
|
||||
}
|
||||
@@ -1239,6 +1263,7 @@ public class LockPatternUtils {
|
||||
/**
|
||||
* @return Whether the visible pattern is enabled.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isVisiblePatternEnabled(int userId) {
|
||||
return getBoolean(Settings.Secure.LOCK_PATTERN_VISIBLE, false, userId);
|
||||
}
|
||||
@@ -1298,6 +1323,7 @@ public class LockPatternUtils {
|
||||
/**
|
||||
* @return Whether tactile feedback for the pattern is enabled.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public boolean isTactileFeedbackEnabled() {
|
||||
return Settings.System.getIntForUser(mContentResolver,
|
||||
Settings.System.HAPTIC_FEEDBACK_ENABLED, 1, UserHandle.USER_CURRENT) != 0;
|
||||
@@ -1308,6 +1334,7 @@ public class LockPatternUtils {
|
||||
* pattern until the deadline has passed.
|
||||
* @return the chosen deadline.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public long setLockoutAttemptDeadline(int userId, int timeoutMs) {
|
||||
final long deadline = SystemClock.elapsedRealtime() + timeoutMs;
|
||||
if (userId == USER_FRP) {
|
||||
@@ -1360,6 +1387,7 @@ public class LockPatternUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void setLong(String secureSettingKey, long value, int userHandle) {
|
||||
try {
|
||||
getLockSettings().setLong(secureSettingKey, value, userHandle);
|
||||
@@ -1369,6 +1397,7 @@ public class LockPatternUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private String getString(String secureSettingKey, int userHandle) {
|
||||
try {
|
||||
return getLockSettings().getString(secureSettingKey, null, userHandle);
|
||||
@@ -1377,6 +1406,7 @@ public class LockPatternUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void setString(String secureSettingKey, String value, int userHandle) {
|
||||
try {
|
||||
getLockSettings().setString(secureSettingKey, value, userHandle);
|
||||
@@ -1390,6 +1420,7 @@ public class LockPatternUtils {
|
||||
setBoolean(LOCKSCREEN_POWER_BUTTON_INSTANTLY_LOCKS, enabled, userId);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public boolean getPowerButtonInstantlyLocks(int userId) {
|
||||
return getBoolean(LOCKSCREEN_POWER_BUTTON_INSTANTLY_LOCKS, true, userId);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ package com.android.internal.widget;
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -79,7 +80,9 @@ public class LockPatternView extends View {
|
||||
|
||||
private boolean mDrawingProfilingStarted = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final Paint mPaint = new Paint();
|
||||
@UnsupportedAppUsage
|
||||
private final Paint mPathPaint = new Paint();
|
||||
|
||||
/**
|
||||
@@ -99,6 +102,7 @@ public class LockPatternView extends View {
|
||||
private static final String TAG = "LockPatternView";
|
||||
|
||||
private OnPatternListener mOnPatternListener;
|
||||
@UnsupportedAppUsage
|
||||
private final ArrayList<Cell> mPattern = new ArrayList<Cell>(9);
|
||||
|
||||
/**
|
||||
@@ -120,16 +124,21 @@ public class LockPatternView extends View {
|
||||
private long mAnimatingPeriodStart;
|
||||
private long[] mLineFadeStart = new long[9];
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private DisplayMode mPatternDisplayMode = DisplayMode.Correct;
|
||||
private boolean mInputEnabled = true;
|
||||
@UnsupportedAppUsage
|
||||
private boolean mInStealthMode = false;
|
||||
private boolean mEnableHapticFeedback = true;
|
||||
@UnsupportedAppUsage
|
||||
private boolean mPatternInProgress = false;
|
||||
private boolean mFadePattern = true;
|
||||
|
||||
private float mHitFactor = 0.6f;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private float mSquareWidth;
|
||||
@UnsupportedAppUsage
|
||||
private float mSquareHeight;
|
||||
|
||||
private final Path mCurrentPath = new Path();
|
||||
@@ -154,7 +163,9 @@ public class LockPatternView extends View {
|
||||
* Represents a cell in the 3 X 3 matrix of the unlock pattern view.
|
||||
*/
|
||||
public static final class Cell {
|
||||
@UnsupportedAppUsage
|
||||
final int row;
|
||||
@UnsupportedAppUsage
|
||||
final int column;
|
||||
|
||||
// keep # objects limited to 9
|
||||
@@ -232,16 +243,19 @@ public class LockPatternView extends View {
|
||||
/**
|
||||
* The pattern drawn is correct (i.e draw it in a friendly color)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
Correct,
|
||||
|
||||
/**
|
||||
* Animate the pattern (for demo, and help).
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
Animate,
|
||||
|
||||
/**
|
||||
* The pattern is wrong (i.e draw a foreboding color)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
Wrong
|
||||
}
|
||||
|
||||
@@ -277,6 +291,7 @@ public class LockPatternView extends View {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public LockPatternView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
@@ -348,6 +363,7 @@ public class LockPatternView extends View {
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public CellState[][] getCellStates() {
|
||||
return mCellStates;
|
||||
}
|
||||
@@ -372,6 +388,7 @@ public class LockPatternView extends View {
|
||||
*
|
||||
* @param inStealthMode Whether in stealth mode.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setInStealthMode(boolean inStealthMode) {
|
||||
mInStealthMode = inStealthMode;
|
||||
}
|
||||
@@ -390,6 +407,7 @@ public class LockPatternView extends View {
|
||||
*
|
||||
* @param tactileFeedbackEnabled Whether tactile feedback is enabled
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setTactileFeedbackEnabled(boolean tactileFeedbackEnabled) {
|
||||
mEnableHapticFeedback = tactileFeedbackEnabled;
|
||||
}
|
||||
@@ -398,6 +416,7 @@ public class LockPatternView extends View {
|
||||
* Set the call back for pattern detection.
|
||||
* @param onPatternListener The call back.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setOnPatternListener(
|
||||
OnPatternListener onPatternListener) {
|
||||
mOnPatternListener = onPatternListener;
|
||||
@@ -426,6 +445,7 @@ public class LockPatternView extends View {
|
||||
* in progress result to correct or wrong.
|
||||
* @param displayMode The display mode.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setDisplayMode(DisplayMode displayMode) {
|
||||
mPatternDisplayMode = displayMode;
|
||||
if (displayMode == DisplayMode.Animate) {
|
||||
@@ -565,6 +585,7 @@ public class LockPatternView extends View {
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void notifyPatternDetected() {
|
||||
sendAccessEvent(R.string.lockscreen_access_pattern_detected);
|
||||
if (mOnPatternListener != null) {
|
||||
@@ -582,6 +603,7 @@ public class LockPatternView extends View {
|
||||
/**
|
||||
* Clear the pattern.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void clearPattern() {
|
||||
resetPattern();
|
||||
}
|
||||
@@ -622,6 +644,7 @@ public class LockPatternView extends View {
|
||||
* Disable input (for instance when displaying a message that will
|
||||
* timeout so user doesn't get view into messy state).
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void disableInput() {
|
||||
mInputEnabled = false;
|
||||
}
|
||||
@@ -629,6 +652,7 @@ public class LockPatternView extends View {
|
||||
/**
|
||||
* Enable input.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void enableInput() {
|
||||
mInputEnabled = true;
|
||||
}
|
||||
@@ -1307,6 +1331,7 @@ public class LockPatternView extends View {
|
||||
/**
|
||||
* Constructor called from {@link LockPatternView#onSaveInstanceState()}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private SavedState(Parcelable superState, String serializedPattern, int displayMode,
|
||||
boolean inputEnabled, boolean inStealthMode, boolean tactileFeedbackEnabled) {
|
||||
super(superState);
|
||||
@@ -1320,6 +1345,7 @@ public class LockPatternView extends View {
|
||||
/**
|
||||
* Constructor called from {@link #CREATOR}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private SavedState(Parcel in) {
|
||||
super(in);
|
||||
mSerializedPattern = in.readString();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
@@ -53,6 +54,7 @@ public class PointerLocationView extends View implements InputDeviceListener,
|
||||
private int mTraceCount;
|
||||
|
||||
// True if the pointer is down.
|
||||
@UnsupportedAppUsage
|
||||
private boolean mCurDown;
|
||||
|
||||
// Most recent coordinates.
|
||||
@@ -120,10 +122,14 @@ public class PointerLocationView extends View implements InputDeviceListener,
|
||||
private final Paint mPathPaint;
|
||||
private final FontMetricsInt mTextMetrics = new FontMetricsInt();
|
||||
private int mHeaderBottom;
|
||||
@UnsupportedAppUsage
|
||||
private boolean mCurDown;
|
||||
@UnsupportedAppUsage
|
||||
private int mCurNumPointers;
|
||||
@UnsupportedAppUsage
|
||||
private int mMaxNumPointers;
|
||||
private int mActivePointerId;
|
||||
@UnsupportedAppUsage
|
||||
private final ArrayList<PointerState> mPointers = new ArrayList<PointerState>();
|
||||
private final PointerCoords mTempCoords = new PointerCoords();
|
||||
|
||||
@@ -132,6 +138,7 @@ public class PointerLocationView extends View implements InputDeviceListener,
|
||||
|
||||
private final FasterStringBuilder mText = new FasterStringBuilder();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private boolean mPrintCoords = true;
|
||||
|
||||
public PointerLocationView(Context c) {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.ImageView;
|
||||
@@ -29,6 +30,7 @@ public class PreferenceImageView extends ImageView {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public PreferenceImageView(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.annotation.CallSuper;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.database.Observable;
|
||||
@@ -4953,6 +4954,7 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro
|
||||
* constructed by {@link GapWorker} prefetch from being bound to a lower priority prefetch.
|
||||
*/
|
||||
static class ScrapData {
|
||||
@UnsupportedAppUsage
|
||||
ArrayList<ViewHolder> mScrapHeap = new ArrayList<>();
|
||||
int mMaxScrap = DEFAULT_MAX_SCRAP;
|
||||
long mCreateRunningAverageNs = 0;
|
||||
|
||||
@@ -16,8 +16,11 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
public class ScrollBarUtils {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public static int getThumbLength(int size, int thickness, int extent, int range) {
|
||||
// Avoid the tiny thumb.
|
||||
final int minLength = thickness * 2;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -83,7 +84,9 @@ public class SlidingTab extends ViewGroup {
|
||||
*/
|
||||
private final int mOrientation;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final Slider mLeftSlider;
|
||||
@UnsupportedAppUsage
|
||||
private final Slider mRightSlider;
|
||||
private Slider mCurrentSlider;
|
||||
private boolean mTracking;
|
||||
@@ -95,6 +98,7 @@ public class SlidingTab extends ViewGroup {
|
||||
/**
|
||||
* Listener used to reset the view when the current animation completes.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
private final AnimationListener mAnimationDoneListener = new AnimationListener() {
|
||||
public void onAnimationStart(Animation animation) {
|
||||
|
||||
@@ -178,7 +182,9 @@ public class SlidingTab extends ViewGroup {
|
||||
private static final int STATE_PRESSED = 1;
|
||||
private static final int STATE_ACTIVE = 2;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final ImageView tab;
|
||||
@UnsupportedAppUsage
|
||||
private final TextView text;
|
||||
private final ImageView target;
|
||||
private int currentState = STATE_NORMAL;
|
||||
@@ -708,6 +714,7 @@ public class SlidingTab extends ViewGroup {
|
||||
slider.startAnimation(trans1, trans2);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void onAnimationDone() {
|
||||
resetView();
|
||||
mAnimating = false;
|
||||
@@ -722,6 +729,7 @@ public class SlidingTab extends ViewGroup {
|
||||
return mOrientation == HORIZONTAL;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private void resetView() {
|
||||
mLeftSlider.reset(false);
|
||||
mRightSlider.reset(false);
|
||||
@@ -763,6 +771,7 @@ public class SlidingTab extends ViewGroup {
|
||||
* @param barId the resource of the bar drawable (stateful)
|
||||
* @param tabId the resource of the
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setLeftTabResources(int iconId, int targetId, int barId, int tabId) {
|
||||
mLeftSlider.setIcon(iconId);
|
||||
mLeftSlider.setTarget(targetId);
|
||||
@@ -776,6 +785,7 @@ public class SlidingTab extends ViewGroup {
|
||||
*
|
||||
* @param resId
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setLeftHintText(int resId) {
|
||||
if (isHorizontal()) {
|
||||
mLeftSlider.setHintText(resId);
|
||||
@@ -793,6 +803,7 @@ public class SlidingTab extends ViewGroup {
|
||||
* @param barId the resource of the bar drawable (stateful)
|
||||
* @param tabId the resource of the
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setRightTabResources(int iconId, int targetId, int barId, int tabId) {
|
||||
mRightSlider.setIcon(iconId);
|
||||
mRightSlider.setTarget(targetId);
|
||||
@@ -806,12 +817,14 @@ public class SlidingTab extends ViewGroup {
|
||||
*
|
||||
* @param resId
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setRightHintText(int resId) {
|
||||
if (isHorizontal()) {
|
||||
mRightSlider.setHintText(resId);
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setHoldAfterTrigger(boolean holdLeft, boolean holdRight) {
|
||||
mHoldLeftOnTransition = holdLeft;
|
||||
mHoldRightOnTransition = holdRight;
|
||||
@@ -838,6 +851,7 @@ public class SlidingTab extends ViewGroup {
|
||||
*
|
||||
* @param listener the OnDialTriggerListener to attach to this view
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setOnTriggerListener(OnTriggerListener listener) {
|
||||
mOnTriggerListener = listener;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.internal.widget;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.text.InputFilter;
|
||||
import android.text.Spanned;
|
||||
import android.widget.TextView;
|
||||
@@ -38,11 +39,13 @@ public class TextViewInputDisabler {
|
||||
}
|
||||
};
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public TextViewInputDisabler(TextView textView) {
|
||||
mTextView = textView;
|
||||
mDefaultFilters = mTextView.getFilters();
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void setInputEnabled(boolean enabled) {
|
||||
mTextView.setFilters(enabled ? mDefaultFilters : mNoInputFilters);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.internal.widget;
|
||||
|
||||
import android.annotation.DrawableRes;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -243,6 +244,7 @@ public class ViewPager extends ViewGroup {
|
||||
* @param positionOffset Value from [0, 1) indicating the offset from the page at position.
|
||||
* @param positionOffsetPixels Value in pixels indicating the offset from position.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels);
|
||||
|
||||
/**
|
||||
@@ -251,6 +253,7 @@ public class ViewPager extends ViewGroup {
|
||||
*
|
||||
* @param position Position index of the new selected page.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void onPageSelected(int position);
|
||||
|
||||
/**
|
||||
@@ -263,6 +266,7 @@ public class ViewPager extends ViewGroup {
|
||||
* @see com.android.internal.widget.ViewPager#SCROLL_STATE_DRAGGING
|
||||
* @see com.android.internal.widget.ViewPager#SCROLL_STATE_SETTLING
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void onPageScrollStateChanged(int state);
|
||||
}
|
||||
|
||||
@@ -483,6 +487,7 @@ public class ViewPager extends ViewGroup {
|
||||
setCurrentItemInternal(item, smoothScroll, false);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public int getCurrentItem() {
|
||||
return mCurItem;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.android.server;
|
||||
|
||||
import android.os.SystemClock;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.ConditionVariable;
|
||||
|
||||
/**
|
||||
@@ -120,9 +121,11 @@ abstract class ResettableTimeout
|
||||
}
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private ConditionVariable mLock = new ConditionVariable();
|
||||
|
||||
// turn it off at this time.
|
||||
@UnsupportedAppUsage
|
||||
private volatile long mOffAt;
|
||||
private volatile boolean mOffCalled;
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.net;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.net.INetworkManagementEventObserver;
|
||||
import android.net.LinkAddress;
|
||||
import android.net.RouteInfo;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.net;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.net.LinkAddress;
|
||||
import android.net.LinkProperties;
|
||||
import android.net.RouteInfo;
|
||||
@@ -79,6 +80,7 @@ public class NetlinkTracker extends BaseNetworkObserver {
|
||||
|
||||
private static final boolean DBG = false;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public NetlinkTracker(String iface, Callback callback) {
|
||||
TAG = "NetlinkTracker/" + iface;
|
||||
mInterfaceName = iface;
|
||||
@@ -187,10 +189,12 @@ public class NetlinkTracker extends BaseNetworkObserver {
|
||||
/**
|
||||
* Returns a copy of this object's LinkProperties.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public synchronized LinkProperties getLinkProperties() {
|
||||
return new LinkProperties(mLinkProperties);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void clearLinkProperties() {
|
||||
// Clear the repository before clearing mLinkProperties. That way, if a clear() happens
|
||||
// while interfaceDnsServerInfo() is being called, we'll end up with no DNS servers in
|
||||
|
||||
@@ -57,6 +57,7 @@ public class Lists {
|
||||
* @param elements the elements that the list should contain, in order
|
||||
* @return a newly-created {@code ArrayList} containing those elements
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <E> ArrayList<E> newArrayList(E... elements) {
|
||||
int capacity = (elements.length * 110) / 100 + 5;
|
||||
ArrayList<E> list = new ArrayList<E>(capacity);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.google.android.collect;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.util.ArraySet;
|
||||
|
||||
import java.util.Collections;
|
||||
@@ -42,6 +43,7 @@ public class Sets {
|
||||
*
|
||||
* @return a newly-created, initially-empty {@code HashSet}
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <K> HashSet<K> newHashSet() {
|
||||
return new HashSet<K>();
|
||||
}
|
||||
@@ -63,6 +65,7 @@ public class Sets {
|
||||
* @return a newly-created {@code HashSet} containing those elements (minus
|
||||
* duplicates)
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <E> HashSet<E> newHashSet(E... elements) {
|
||||
int capacity = elements.length * 4 / 3 + 1;
|
||||
HashSet<E> set = new HashSet<E>(capacity);
|
||||
@@ -75,6 +78,7 @@ public class Sets {
|
||||
*
|
||||
* @return a newly-created, initially-empty {@code SortedSet}.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <E> SortedSet<E> newSortedSet() {
|
||||
return new TreeSet<E>();
|
||||
}
|
||||
@@ -95,6 +99,7 @@ public class Sets {
|
||||
/**
|
||||
* Creates a {@code ArraySet} instance.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <E> ArraySet<E> newArraySet() {
|
||||
return new ArraySet<E>();
|
||||
}
|
||||
@@ -102,6 +107,7 @@ public class Sets {
|
||||
/**
|
||||
* Creates a {@code ArraySet} instance containing the given elements.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static <E> ArraySet<E> newArraySet(E... elements) {
|
||||
int capacity = elements.length * 4 / 3 + 1;
|
||||
ArraySet<E> set = new ArraySet<E>(capacity);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.google.android.util;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -654,15 +655,25 @@ public abstract class AbstractMessageParser {
|
||||
public static abstract class Token {
|
||||
public enum Type {
|
||||
|
||||
@UnsupportedAppUsage
|
||||
HTML ("html"),
|
||||
@UnsupportedAppUsage
|
||||
FORMAT ("format"), // subtype of HTML
|
||||
@UnsupportedAppUsage
|
||||
LINK ("l"),
|
||||
@UnsupportedAppUsage
|
||||
SMILEY ("e"),
|
||||
@UnsupportedAppUsage
|
||||
ACRONYM ("a"),
|
||||
@UnsupportedAppUsage
|
||||
MUSIC ("m"),
|
||||
@UnsupportedAppUsage
|
||||
GOOGLE_VIDEO ("v"),
|
||||
@UnsupportedAppUsage
|
||||
YOUTUBE_VIDEO ("yt"),
|
||||
@UnsupportedAppUsage
|
||||
PHOTO ("p"),
|
||||
@UnsupportedAppUsage
|
||||
FLICKR ("f");
|
||||
|
||||
//stringreps for HTML and FORMAT don't really matter
|
||||
|
||||
Reference in New Issue
Block a user