Loading config/hiddenapi-light-greylist.txt +0 −199 Original line number Diff line number Diff line Loading @@ -961,206 +961,8 @@ Landroid/appwidget/AppWidgetManager;->getInstalledProviders(I)Ljava/util/List; Landroid/appwidget/AppWidgetManager;->getInstalledProvidersForProfile(ILandroid/os/UserHandle;Ljava/lang/String;)Ljava/util/List; Landroid/appwidget/AppWidgetManager;->mService:Lcom/android/internal/appwidget/IAppWidgetService; Landroid/appwidget/AppWidgetProviderInfo;->providerInfo:Landroid/content/pm/ActivityInfo; Landroid/bluetooth/BluetoothA2dp;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->ACTION_CODEC_CONFIG_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->close()V Landroid/bluetooth/BluetoothA2dp;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->disableOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)V Landroid/bluetooth/BluetoothA2dp;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->enableOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)V Landroid/bluetooth/BluetoothA2dp;->getActiveDevice()Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothA2dp;->getCodecStatus(Landroid/bluetooth/BluetoothDevice;)Landroid/bluetooth/BluetoothCodecStatus; Landroid/bluetooth/BluetoothA2dp;->getOptionalCodecsEnabled(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dp;->getPriority(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_NOT_SUPPORTED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_DISABLED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_ENABLED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_UNKNOWN:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_SUPPORTED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_SUPPORT_UNKNOWN:I Landroid/bluetooth/BluetoothA2dp;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->setCodecConfigPreference(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothCodecConfig;)V Landroid/bluetooth/BluetoothA2dp;->setOptionalCodecsEnabled(Landroid/bluetooth/BluetoothDevice;I)V Landroid/bluetooth/BluetoothA2dp;->stateToString(I)Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->supportsOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dpSink;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothAdapter;->disable(Z)Z Landroid/bluetooth/BluetoothAdapter;->factoryReset()Z Landroid/bluetooth/BluetoothAdapter;->getBluetoothManager()Landroid/bluetooth/IBluetoothManager; Landroid/bluetooth/BluetoothAdapter;->getBluetoothService(Landroid/bluetooth/IBluetoothManagerCallback;)Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothAdapter;->getConnectionState()I Landroid/bluetooth/BluetoothAdapter;->getDiscoverableTimeout()I Landroid/bluetooth/BluetoothAdapter;->getLeState()I Landroid/bluetooth/BluetoothAdapter;->getUuids()[Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothAdapter;->listenUsingEncryptedRfcommWithServiceRecord(Ljava/lang/String;Ljava/util/UUID;)Landroid/bluetooth/BluetoothServerSocket; Landroid/bluetooth/BluetoothAdapter;->listenUsingRfcommOn(IZZ)Landroid/bluetooth/BluetoothServerSocket; Landroid/bluetooth/BluetoothAdapter;->mService:Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothAdapter;->setDiscoverableTimeout(I)V Landroid/bluetooth/BluetoothAdapter;->setScanMode(I)Z Landroid/bluetooth/BluetoothAdapter;->setScanMode(II)Z Landroid/bluetooth/BluetoothClass;-><init>(I)V Landroid/bluetooth/BluetoothClass;->doesClassMatch(I)Z Landroid/bluetooth/BluetoothClass;->PROFILE_A2DP:I Landroid/bluetooth/BluetoothClass;->PROFILE_HEADSET:I Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecConfig;-><init>(IIIIIJJJJ)V Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_16:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_24:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_32:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_MONO:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_STEREO:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_DEFAULT:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_DISABLED:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_HIGHEST:I Landroid/bluetooth/BluetoothCodecConfig;->getBitsPerSample()I Landroid/bluetooth/BluetoothCodecConfig;->getChannelMode()I Landroid/bluetooth/BluetoothCodecConfig;->getCodecPriority()I Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific1()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific2()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific3()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific4()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecType()I Landroid/bluetooth/BluetoothCodecConfig;->getSampleRate()I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_176400:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_192000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_44100:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_48000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_88200:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_96000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->setCodecPriority(I)V Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_AAC:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_APTX:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_APTX_HD:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_INVALID:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_LDAC:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_MAX:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_SBC:I Landroid/bluetooth/BluetoothCodecStatus; Landroid/bluetooth/BluetoothCodecStatus;->EXTRA_CODEC_STATUS:Ljava/lang/String; Landroid/bluetooth/BluetoothCodecStatus;->getCodecConfig()Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecStatus;->getCodecsLocalCapabilities()[Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecStatus;->getCodecsSelectableCapabilities()[Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothDevice;-><init>(Ljava/lang/String;)V Landroid/bluetooth/BluetoothDevice;->ACTION_ALIAS_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_DISAPPEARED:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_PAIRING_CANCEL:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_SDP_RECORD:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->cancelPairingUserInput()Z Landroid/bluetooth/BluetoothDevice;->connectGatt(Landroid/content/Context;ZLandroid/bluetooth/BluetoothGattCallback;IZILandroid/os/Handler;)Landroid/bluetooth/BluetoothGatt; Landroid/bluetooth/BluetoothDevice;->convertPinToBytes(Ljava/lang/String;)[B Landroid/bluetooth/BluetoothDevice;->createBond(I)Z Landroid/bluetooth/BluetoothDevice;->createInsecureRfcommSocket(I)Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->createRfcommSocket(I)Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->createScoSocket()Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->EXTRA_REASON:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->EXTRA_SDP_SEARCH_STATUS:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getAlias()Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getAliasName()Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getBatteryLevel()I Landroid/bluetooth/BluetoothDevice;->getMessageAccessPermission()I Landroid/bluetooth/BluetoothDevice;->getPhonebookAccessPermission()I Landroid/bluetooth/BluetoothDevice;->getService()Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothDevice;->isBluetoothDock()Z Landroid/bluetooth/BluetoothDevice;->isBondingInitiatedLocally()Z Landroid/bluetooth/BluetoothDevice;->setAlias(Ljava/lang/String;)Z Landroid/bluetooth/BluetoothDevice;->setMessageAccessPermission(I)Z Landroid/bluetooth/BluetoothDevice;->setPasskey(I)Z Landroid/bluetooth/BluetoothDevice;->setSimAccessPermission(I)Z Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_FAILED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_REJECTED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_TIMEOUT:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_DISCOVERY_IN_PROGRESS:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REMOTE_AUTH_CANCELED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REMOTE_DEVICE_DOWN:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REPEATED_ATTEMPTS:I Landroid/bluetooth/BluetoothGatt;->connect(Ljava/lang/Boolean;Landroid/bluetooth/BluetoothGattCallback;Landroid/os/Handler;)Z Landroid/bluetooth/BluetoothGatt;->mAuthRetryState:I Landroid/bluetooth/BluetoothGatt;->mAutoConnect:Z Landroid/bluetooth/BluetoothGatt;->mCallback:Landroid/bluetooth/BluetoothGattCallback; Landroid/bluetooth/BluetoothGatt;->mClientIf:I Landroid/bluetooth/BluetoothGatt;->mDeviceBusy:Ljava/lang/Boolean; Landroid/bluetooth/BluetoothGatt;->mService:Landroid/bluetooth/IBluetoothGatt; Landroid/bluetooth/BluetoothGatt;->mTransport:I Landroid/bluetooth/BluetoothGatt;->refresh()Z Landroid/bluetooth/BluetoothGatt;->unregisterApp()V Landroid/bluetooth/BluetoothGattCharacteristic;->mInstance:I Landroid/bluetooth/BluetoothGattCharacteristic;->mService:Landroid/bluetooth/BluetoothGattService; Landroid/bluetooth/BluetoothGattCharacteristic;->setKeySize(I)V Landroid/bluetooth/BluetoothGattCharacteristic;->setService(Landroid/bluetooth/BluetoothGattService;)V Landroid/bluetooth/BluetoothGattDescriptor;->mCharacteristic:Landroid/bluetooth/BluetoothGattCharacteristic; Landroid/bluetooth/BluetoothGattDescriptor;->mInstance:I Landroid/bluetooth/BluetoothGattDescriptor;->setCharacteristic(Landroid/bluetooth/BluetoothGattCharacteristic;)V Landroid/bluetooth/BluetoothGattService;->mDevice:Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothGattService;->setAdvertisePreferred(Z)V Landroid/bluetooth/BluetoothGattService;->setInstanceId(I)V Landroid/bluetooth/BluetoothHeadset;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothHeadset;->close()V Landroid/bluetooth/BluetoothHeadset;->connectAudio()Z Landroid/bluetooth/BluetoothHeadset;->disconnectAudio()Z Landroid/bluetooth/BluetoothHeadset;->getActiveDevice()Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothHeadset;->getAudioState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadset;->getPriority(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadset;->isEnabled()Z Landroid/bluetooth/BluetoothHeadset;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadset;->startScoUsingVirtualVoiceCall()Z Landroid/bluetooth/BluetoothHeadset;->stopScoUsingVirtualVoiceCall()Z Landroid/bluetooth/BluetoothHeadsetClient;->acceptCall(Landroid/bluetooth/BluetoothDevice;I)Z Landroid/bluetooth/BluetoothHeadsetClient;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClient;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClient;->getAudioState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadsetClient;->rejectCall(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClientCall;->getId()I Landroid/bluetooth/BluetoothHeadsetClientCall;->getNumber()Ljava/lang/String; Landroid/bluetooth/BluetoothHeadsetClientCall;->getState()I Landroid/bluetooth/BluetoothHeadsetClientCall;->isMultiParty()Z Landroid/bluetooth/BluetoothHeadsetClientCall;->isOutgoing()Z Landroid/bluetooth/BluetoothHearingAid;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothHearingAid;->getActiveDevices()Ljava/util/List; Landroid/bluetooth/BluetoothHearingAid;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothMap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothMapClient;->sendMessage(Landroid/bluetooth/BluetoothDevice;[Landroid/net/Uri;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Z Landroid/bluetooth/BluetoothPan;-><init>(Landroid/content/Context;Landroid/bluetooth/BluetoothProfile$ServiceListener;)V Landroid/bluetooth/BluetoothPan;->close()V Landroid/bluetooth/BluetoothPan;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->doBind()Z Landroid/bluetooth/BluetoothPan;->isEnabled()Z Landroid/bluetooth/BluetoothPan;->isTetheringOn()Z Landroid/bluetooth/BluetoothPan;->isValidDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->log(Ljava/lang/String;)V Landroid/bluetooth/BluetoothPan;->setBluetoothTethering(Z)V Landroid/bluetooth/BluetoothPbap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothProfile;->A2DP_SINK:I Landroid/bluetooth/BluetoothProfile;->AVRCP_CONTROLLER:I Landroid/bluetooth/BluetoothProfile;->PAN:I Landroid/bluetooth/BluetoothProfile;->PRIORITY_AUTO_CONNECT:I Landroid/bluetooth/BluetoothProfile;->PRIORITY_UNDEFINED:I Landroid/bluetooth/BluetoothSap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothServerSocket;->mSocket:Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothSocket;->EADDRINUSE:I Landroid/bluetooth/BluetoothSocket;->flush()V Landroid/bluetooth/BluetoothSocket;->mPfd:Landroid/os/ParcelFileDescriptor; Landroid/bluetooth/BluetoothSocket;->mPort:I Landroid/bluetooth/BluetoothSocket;->mSocket:Landroid/net/LocalSocket; Landroid/bluetooth/BluetoothUuid;->AdvAudioDist:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->AudioSink:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->containsAnyUuid([Landroid/os/ParcelUuid;[Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->Handsfree:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->Hogp:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->HSP:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->is16BitUuid(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->is32BitUuid(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAdvAudioDist(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAudioSource(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAvrcpTarget(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isUuidPresent([Landroid/os/ParcelUuid;Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->NAP:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->ObexObjectPush:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->PBAP_PSE:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->RESERVED_UUIDS:[Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetooth$Stub$Proxy;->getAddress()Ljava/lang/String; Landroid/bluetooth/IBluetooth$Stub$Proxy;->getConnectionState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/IBluetooth$Stub;-><init>()V Loading Loading @@ -1197,7 +999,6 @@ Landroid/bluetooth/IBluetoothManager;->unregisterStateChangeCallback(Landroid/bl Landroid/bluetooth/IBluetoothManagerCallback$Stub;-><init>()V Landroid/bluetooth/IBluetoothPbap$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothPbap; Landroid/bluetooth/IBluetoothStateChangeCallback$Stub;-><init>()V Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/content/AsyncTaskLoader;->mExecutor:Ljava/util/concurrent/Executor; Landroid/content/AsyncTaskLoader;->waitForLoader()V Landroid/content/BroadcastReceiver$PendingResult;-><init>(ILjava/lang/String;Landroid/os/Bundle;IZZLandroid/os/IBinder;II)V Loading config/hiddenapi-vendor-list.txt +0 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ Landroid/app/TaskStackListener;->onTaskRemoved(I)V Landroid/app/TaskStackListener;->onTaskSnapshotChanged(ILandroid/app/ActivityManager$TaskSnapshot;)V Landroid/app/TaskStackListener;->onTaskStackChanged()V Landroid/app/WallpaperColors;-><init>(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;I)V Landroid/bluetooth/BluetoothHeadset;->phoneStateChanged(IIILjava/lang/String;I)V Landroid/bluetooth/IBluetooth;->sendConnectionStateChange(Landroid/bluetooth/BluetoothDevice;III)V Landroid/companion/AssociationRequest;->getDeviceFilters()Ljava/util/List; Landroid/companion/AssociationRequest;->isSingleDevice()Z Loading core/java/android/bluetooth/BluetoothA2dp.java +23 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.content.Context; import android.content.Intent; Loading Loading @@ -117,6 +118,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) @UnsupportedAppUsage public static final String ACTION_ACTIVE_DEVICE_CHANGED = "android.bluetooth.a2dp.profile.action.ACTIVE_DEVICE_CHANGED"; Loading @@ -137,6 +139,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) @UnsupportedAppUsage public static final String ACTION_CODEC_CONFIG_CHANGED = "android.bluetooth.a2dp.profile.action.CODEC_CONFIG_CHANGED"; Loading @@ -160,6 +163,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_SUPPORT_UNKNOWN = -1; /** Loading @@ -167,6 +171,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_NOT_SUPPORTED = 0; /** Loading @@ -174,6 +179,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_SUPPORTED = 1; /** Loading @@ -182,6 +188,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_UNKNOWN = -1; /** Loading @@ -189,6 +196,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_DISABLED = 0; /** Loading @@ -196,6 +204,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_ENABLED = 1; private Context mContext; Loading Loading @@ -268,6 +277,7 @@ public final class BluetoothA2dp implements BluetoothProfile { return true; } @UnsupportedAppUsage /*package*/ void close() { mServiceListener = null; IBluetoothManager mgr = mAdapter.getBluetoothManager(); Loading Loading @@ -315,6 +325,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean connect(BluetoothDevice device) { if (DBG) log("connect(" + device + ")"); try { Loading Loading @@ -357,6 +368,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean disconnect(BluetoothDevice device) { if (DBG) log("disconnect(" + device + ")"); try { Loading Loading @@ -460,6 +472,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean setActiveDevice(@Nullable BluetoothDevice device) { if (DBG) log("setActiveDevice(" + device + ")"); try { Loading Loading @@ -490,6 +503,7 @@ public final class BluetoothA2dp implements BluetoothProfile { */ @RequiresPermission(Manifest.permission.BLUETOOTH) @Nullable @UnsupportedAppUsage public BluetoothDevice getActiveDevice() { if (VDBG) log("getActiveDevice()"); try { Loading Loading @@ -556,6 +570,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @RequiresPermission(Manifest.permission.BLUETOOTH) @UnsupportedAppUsage public int getPriority(BluetoothDevice device) { if (VDBG) log("getPriority(" + device + ")"); try { Loading Loading @@ -671,6 +686,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return the current codec status * @hide */ @UnsupportedAppUsage public BluetoothCodecStatus getCodecStatus(BluetoothDevice device) { if (DBG) Log.d(TAG, "getCodecStatus(" + device + ")"); try { Loading Loading @@ -698,6 +714,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @param codecConfig the codec configuration preference * @hide */ @UnsupportedAppUsage public void setCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig) { if (DBG) Log.d(TAG, "setCodecConfigPreference(" + device + ")"); Loading @@ -723,6 +740,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * active A2DP Bluetooth device. * @hide */ @UnsupportedAppUsage public void enableOptionalCodecs(BluetoothDevice device) { if (DBG) Log.d(TAG, "enableOptionalCodecs(" + device + ")"); enableDisableOptionalCodecs(device, true); Loading @@ -735,6 +753,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * active A2DP Bluetooth device. * @hide */ @UnsupportedAppUsage public void disableOptionalCodecs(BluetoothDevice device) { if (DBG) Log.d(TAG, "disableOptionalCodecs(" + device + ")"); enableDisableOptionalCodecs(device, false); Loading Loading @@ -775,6 +794,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_SUPPORTED. * @hide */ @UnsupportedAppUsage public int supportsOptionalCodecs(BluetoothDevice device) { try { mServiceLock.readLock().lock(); Loading @@ -799,6 +819,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_PREF_DISABLED. * @hide */ @UnsupportedAppUsage public int getOptionalCodecsEnabled(BluetoothDevice device) { try { mServiceLock.readLock().lock(); Loading @@ -824,6 +845,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_PREF_DISABLED. * @hide */ @UnsupportedAppUsage public void setOptionalCodecsEnabled(BluetoothDevice device, int value) { try { if (value != BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN Loading Loading @@ -854,6 +876,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static String stateToString(int state) { switch (state) { case STATE_DISCONNECTED: Loading core/java/android/bluetooth/BluetoothA2dpSink.java +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.bluetooth; import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.content.Context; import android.content.Intent; Loading Loading @@ -278,6 +279,7 @@ public final class BluetoothA2dpSink implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean disconnect(BluetoothDevice device) { if (DBG) log("disconnect(" + device + ")"); final IBluetoothA2dpSink service = mService; Loading core/java/android/bluetooth/BluetoothAdapter.java +15 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.app.ActivityThread; import android.bluetooth.le.BluetoothLeAdvertiser; import android.bluetooth.le.BluetoothLeScanner; Loading Loading @@ -629,6 +630,7 @@ public final class BluetoothAdapter { private static PeriodicAdvertisingManager sPeriodicAdvertisingManager; private final IBluetoothManager mManagerService; @UnsupportedAppUsage private IBluetooth mService; private final ReentrantReadWriteLock mServiceLock = new ReentrantReadWriteLock(); Loading Loading @@ -988,6 +990,7 @@ public final class BluetoothAdapter { */ @RequiresPermission(Manifest.permission.BLUETOOTH) @AdapterState @UnsupportedAppUsage public int getLeState() { int state = BluetoothAdapter.STATE_OFF; Loading Loading @@ -1098,6 +1101,7 @@ public final class BluetoothAdapter { * @return true to indicate adapter shutdown has begun, or false on immediate error * @hide */ @UnsupportedAppUsage public boolean disable(boolean persist) { try { Loading Loading @@ -1149,6 +1153,7 @@ public final class BluetoothAdapter { * @return true to indicate that the config file was successfully cleared * @hide */ @UnsupportedAppUsage public boolean factoryReset() { try { mServiceLock.readLock().lock(); Loading @@ -1172,6 +1177,7 @@ public final class BluetoothAdapter { * @return the UUIDs supported by the local Bluetooth Adapter. * @hide */ @UnsupportedAppUsage public ParcelUuid[] getUuids() { if (getState() != STATE_ON) { return null; Loading Loading @@ -1438,6 +1444,7 @@ public final class BluetoothAdapter { * @return true if the scan mode was set, false otherwise * @hide */ @UnsupportedAppUsage public boolean setScanMode(@ScanMode int mode, int duration) { if (getState() != STATE_ON) { return false; Loading @@ -1456,6 +1463,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public boolean setScanMode(int mode) { if (getState() != STATE_ON) { return false; Loading @@ -1465,6 +1473,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public int getDiscoverableTimeout() { if (getState() != STATE_ON) { return -1; Loading @@ -1483,6 +1492,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public void setDiscoverableTimeout(int timeout) { if (getState() != STATE_ON) { return; Loading Loading @@ -2007,6 +2017,7 @@ public final class BluetoothAdapter { * #STATE_CONNECTING} or {@link #STATE_DISCONNECTED} * @hide */ @UnsupportedAppUsage public int getConnectionState() { if (getState() != STATE_ON) { return BluetoothAdapter.STATE_DISCONNECTED; Loading Loading @@ -2094,6 +2105,7 @@ public final class BluetoothAdapter { * permissions, or channel in use. * @hide */ @UnsupportedAppUsage public BluetoothServerSocket listenUsingRfcommOn(int channel, boolean mitm, boolean min16DigitPin) throws IOException { BluetoothServerSocket socket = Loading Loading @@ -2206,6 +2218,7 @@ public final class BluetoothAdapter { * permissions, or channel in use. * @hide */ @UnsupportedAppUsage public BluetoothServerSocket listenUsingEncryptedRfcommWithServiceRecord(String name, UUID uuid) throws IOException { return createNewRfcommSocketAndRecord(name, uuid, false, true); Loading Loading @@ -2749,6 +2762,7 @@ public final class BluetoothAdapter { return true; } @UnsupportedAppUsage /*package*/ IBluetoothManager getBluetoothManager() { return mManagerService; } Loading @@ -2756,6 +2770,7 @@ public final class BluetoothAdapter { private final ArrayList<IBluetoothManagerCallback> mProxyServiceStateCallbacks = new ArrayList<IBluetoothManagerCallback>(); @UnsupportedAppUsage /*package*/ IBluetooth getBluetoothService(IBluetoothManagerCallback cb) { synchronized (mProxyServiceStateCallbacks) { if (cb == null) { Loading Loading
config/hiddenapi-light-greylist.txt +0 −199 Original line number Diff line number Diff line Loading @@ -961,206 +961,8 @@ Landroid/appwidget/AppWidgetManager;->getInstalledProviders(I)Ljava/util/List; Landroid/appwidget/AppWidgetManager;->getInstalledProvidersForProfile(ILandroid/os/UserHandle;Ljava/lang/String;)Ljava/util/List; Landroid/appwidget/AppWidgetManager;->mService:Lcom/android/internal/appwidget/IAppWidgetService; Landroid/appwidget/AppWidgetProviderInfo;->providerInfo:Landroid/content/pm/ActivityInfo; Landroid/bluetooth/BluetoothA2dp;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->ACTION_CODEC_CONFIG_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->close()V Landroid/bluetooth/BluetoothA2dp;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->disableOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)V Landroid/bluetooth/BluetoothA2dp;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->enableOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)V Landroid/bluetooth/BluetoothA2dp;->getActiveDevice()Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothA2dp;->getCodecStatus(Landroid/bluetooth/BluetoothDevice;)Landroid/bluetooth/BluetoothCodecStatus; Landroid/bluetooth/BluetoothA2dp;->getOptionalCodecsEnabled(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dp;->getPriority(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_NOT_SUPPORTED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_DISABLED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_ENABLED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_PREF_UNKNOWN:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_SUPPORTED:I Landroid/bluetooth/BluetoothA2dp;->OPTIONAL_CODECS_SUPPORT_UNKNOWN:I Landroid/bluetooth/BluetoothA2dp;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothA2dp;->setCodecConfigPreference(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothCodecConfig;)V Landroid/bluetooth/BluetoothA2dp;->setOptionalCodecsEnabled(Landroid/bluetooth/BluetoothDevice;I)V Landroid/bluetooth/BluetoothA2dp;->stateToString(I)Ljava/lang/String; Landroid/bluetooth/BluetoothA2dp;->supportsOptionalCodecs(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothA2dpSink;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothAdapter;->disable(Z)Z Landroid/bluetooth/BluetoothAdapter;->factoryReset()Z Landroid/bluetooth/BluetoothAdapter;->getBluetoothManager()Landroid/bluetooth/IBluetoothManager; Landroid/bluetooth/BluetoothAdapter;->getBluetoothService(Landroid/bluetooth/IBluetoothManagerCallback;)Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothAdapter;->getConnectionState()I Landroid/bluetooth/BluetoothAdapter;->getDiscoverableTimeout()I Landroid/bluetooth/BluetoothAdapter;->getLeState()I Landroid/bluetooth/BluetoothAdapter;->getUuids()[Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothAdapter;->listenUsingEncryptedRfcommWithServiceRecord(Ljava/lang/String;Ljava/util/UUID;)Landroid/bluetooth/BluetoothServerSocket; Landroid/bluetooth/BluetoothAdapter;->listenUsingRfcommOn(IZZ)Landroid/bluetooth/BluetoothServerSocket; Landroid/bluetooth/BluetoothAdapter;->mService:Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothAdapter;->setDiscoverableTimeout(I)V Landroid/bluetooth/BluetoothAdapter;->setScanMode(I)Z Landroid/bluetooth/BluetoothAdapter;->setScanMode(II)Z Landroid/bluetooth/BluetoothClass;-><init>(I)V Landroid/bluetooth/BluetoothClass;->doesClassMatch(I)Z Landroid/bluetooth/BluetoothClass;->PROFILE_A2DP:I Landroid/bluetooth/BluetoothClass;->PROFILE_HEADSET:I Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecConfig;-><init>(IIIIIJJJJ)V Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_16:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_24:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_32:I Landroid/bluetooth/BluetoothCodecConfig;->BITS_PER_SAMPLE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_MONO:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->CHANNEL_MODE_STEREO:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_DEFAULT:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_DISABLED:I Landroid/bluetooth/BluetoothCodecConfig;->CODEC_PRIORITY_HIGHEST:I Landroid/bluetooth/BluetoothCodecConfig;->getBitsPerSample()I Landroid/bluetooth/BluetoothCodecConfig;->getChannelMode()I Landroid/bluetooth/BluetoothCodecConfig;->getCodecPriority()I Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific1()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific2()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific3()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecSpecific4()J Landroid/bluetooth/BluetoothCodecConfig;->getCodecType()I Landroid/bluetooth/BluetoothCodecConfig;->getSampleRate()I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_176400:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_192000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_44100:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_48000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_88200:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_96000:I Landroid/bluetooth/BluetoothCodecConfig;->SAMPLE_RATE_NONE:I Landroid/bluetooth/BluetoothCodecConfig;->setCodecPriority(I)V Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_AAC:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_APTX:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_APTX_HD:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_INVALID:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_LDAC:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_MAX:I Landroid/bluetooth/BluetoothCodecConfig;->SOURCE_CODEC_TYPE_SBC:I Landroid/bluetooth/BluetoothCodecStatus; Landroid/bluetooth/BluetoothCodecStatus;->EXTRA_CODEC_STATUS:Ljava/lang/String; Landroid/bluetooth/BluetoothCodecStatus;->getCodecConfig()Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecStatus;->getCodecsLocalCapabilities()[Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothCodecStatus;->getCodecsSelectableCapabilities()[Landroid/bluetooth/BluetoothCodecConfig; Landroid/bluetooth/BluetoothDevice;-><init>(Ljava/lang/String;)V Landroid/bluetooth/BluetoothDevice;->ACTION_ALIAS_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_DISAPPEARED:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_PAIRING_CANCEL:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->ACTION_SDP_RECORD:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->cancelPairingUserInput()Z Landroid/bluetooth/BluetoothDevice;->connectGatt(Landroid/content/Context;ZLandroid/bluetooth/BluetoothGattCallback;IZILandroid/os/Handler;)Landroid/bluetooth/BluetoothGatt; Landroid/bluetooth/BluetoothDevice;->convertPinToBytes(Ljava/lang/String;)[B Landroid/bluetooth/BluetoothDevice;->createBond(I)Z Landroid/bluetooth/BluetoothDevice;->createInsecureRfcommSocket(I)Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->createRfcommSocket(I)Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->createScoSocket()Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothDevice;->EXTRA_REASON:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->EXTRA_SDP_SEARCH_STATUS:Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getAlias()Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getAliasName()Ljava/lang/String; Landroid/bluetooth/BluetoothDevice;->getBatteryLevel()I Landroid/bluetooth/BluetoothDevice;->getMessageAccessPermission()I Landroid/bluetooth/BluetoothDevice;->getPhonebookAccessPermission()I Landroid/bluetooth/BluetoothDevice;->getService()Landroid/bluetooth/IBluetooth; Landroid/bluetooth/BluetoothDevice;->isBluetoothDock()Z Landroid/bluetooth/BluetoothDevice;->isBondingInitiatedLocally()Z Landroid/bluetooth/BluetoothDevice;->setAlias(Ljava/lang/String;)Z Landroid/bluetooth/BluetoothDevice;->setMessageAccessPermission(I)Z Landroid/bluetooth/BluetoothDevice;->setPasskey(I)Z Landroid/bluetooth/BluetoothDevice;->setSimAccessPermission(I)Z Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_FAILED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_REJECTED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_AUTH_TIMEOUT:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_DISCOVERY_IN_PROGRESS:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REMOTE_AUTH_CANCELED:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REMOTE_DEVICE_DOWN:I Landroid/bluetooth/BluetoothDevice;->UNBOND_REASON_REPEATED_ATTEMPTS:I Landroid/bluetooth/BluetoothGatt;->connect(Ljava/lang/Boolean;Landroid/bluetooth/BluetoothGattCallback;Landroid/os/Handler;)Z Landroid/bluetooth/BluetoothGatt;->mAuthRetryState:I Landroid/bluetooth/BluetoothGatt;->mAutoConnect:Z Landroid/bluetooth/BluetoothGatt;->mCallback:Landroid/bluetooth/BluetoothGattCallback; Landroid/bluetooth/BluetoothGatt;->mClientIf:I Landroid/bluetooth/BluetoothGatt;->mDeviceBusy:Ljava/lang/Boolean; Landroid/bluetooth/BluetoothGatt;->mService:Landroid/bluetooth/IBluetoothGatt; Landroid/bluetooth/BluetoothGatt;->mTransport:I Landroid/bluetooth/BluetoothGatt;->refresh()Z Landroid/bluetooth/BluetoothGatt;->unregisterApp()V Landroid/bluetooth/BluetoothGattCharacteristic;->mInstance:I Landroid/bluetooth/BluetoothGattCharacteristic;->mService:Landroid/bluetooth/BluetoothGattService; Landroid/bluetooth/BluetoothGattCharacteristic;->setKeySize(I)V Landroid/bluetooth/BluetoothGattCharacteristic;->setService(Landroid/bluetooth/BluetoothGattService;)V Landroid/bluetooth/BluetoothGattDescriptor;->mCharacteristic:Landroid/bluetooth/BluetoothGattCharacteristic; Landroid/bluetooth/BluetoothGattDescriptor;->mInstance:I Landroid/bluetooth/BluetoothGattDescriptor;->setCharacteristic(Landroid/bluetooth/BluetoothGattCharacteristic;)V Landroid/bluetooth/BluetoothGattService;->mDevice:Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothGattService;->setAdvertisePreferred(Z)V Landroid/bluetooth/BluetoothGattService;->setInstanceId(I)V Landroid/bluetooth/BluetoothHeadset;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothHeadset;->close()V Landroid/bluetooth/BluetoothHeadset;->connectAudio()Z Landroid/bluetooth/BluetoothHeadset;->disconnectAudio()Z Landroid/bluetooth/BluetoothHeadset;->getActiveDevice()Landroid/bluetooth/BluetoothDevice; Landroid/bluetooth/BluetoothHeadset;->getAudioState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadset;->getPriority(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadset;->isEnabled()Z Landroid/bluetooth/BluetoothHeadset;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadset;->startScoUsingVirtualVoiceCall()Z Landroid/bluetooth/BluetoothHeadset;->stopScoUsingVirtualVoiceCall()Z Landroid/bluetooth/BluetoothHeadsetClient;->acceptCall(Landroid/bluetooth/BluetoothDevice;I)Z Landroid/bluetooth/BluetoothHeadsetClient;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClient;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClient;->getAudioState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/BluetoothHeadsetClient;->rejectCall(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothHeadsetClientCall;->getId()I Landroid/bluetooth/BluetoothHeadsetClientCall;->getNumber()Ljava/lang/String; Landroid/bluetooth/BluetoothHeadsetClientCall;->getState()I Landroid/bluetooth/BluetoothHeadsetClientCall;->isMultiParty()Z Landroid/bluetooth/BluetoothHeadsetClientCall;->isOutgoing()Z Landroid/bluetooth/BluetoothHearingAid;->ACTION_ACTIVE_DEVICE_CHANGED:Ljava/lang/String; Landroid/bluetooth/BluetoothHearingAid;->getActiveDevices()Ljava/util/List; Landroid/bluetooth/BluetoothHearingAid;->setActiveDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothMap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothMapClient;->sendMessage(Landroid/bluetooth/BluetoothDevice;[Landroid/net/Uri;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Z Landroid/bluetooth/BluetoothPan;-><init>(Landroid/content/Context;Landroid/bluetooth/BluetoothProfile$ServiceListener;)V Landroid/bluetooth/BluetoothPan;->close()V Landroid/bluetooth/BluetoothPan;->connect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->doBind()Z Landroid/bluetooth/BluetoothPan;->isEnabled()Z Landroid/bluetooth/BluetoothPan;->isTetheringOn()Z Landroid/bluetooth/BluetoothPan;->isValidDevice(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothPan;->log(Ljava/lang/String;)V Landroid/bluetooth/BluetoothPan;->setBluetoothTethering(Z)V Landroid/bluetooth/BluetoothPbap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothProfile;->A2DP_SINK:I Landroid/bluetooth/BluetoothProfile;->AVRCP_CONTROLLER:I Landroid/bluetooth/BluetoothProfile;->PAN:I Landroid/bluetooth/BluetoothProfile;->PRIORITY_AUTO_CONNECT:I Landroid/bluetooth/BluetoothProfile;->PRIORITY_UNDEFINED:I Landroid/bluetooth/BluetoothSap;->disconnect(Landroid/bluetooth/BluetoothDevice;)Z Landroid/bluetooth/BluetoothServerSocket;->mSocket:Landroid/bluetooth/BluetoothSocket; Landroid/bluetooth/BluetoothSocket;->EADDRINUSE:I Landroid/bluetooth/BluetoothSocket;->flush()V Landroid/bluetooth/BluetoothSocket;->mPfd:Landroid/os/ParcelFileDescriptor; Landroid/bluetooth/BluetoothSocket;->mPort:I Landroid/bluetooth/BluetoothSocket;->mSocket:Landroid/net/LocalSocket; Landroid/bluetooth/BluetoothUuid;->AdvAudioDist:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->AudioSink:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->containsAnyUuid([Landroid/os/ParcelUuid;[Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->Handsfree:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->Hogp:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->HSP:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->is16BitUuid(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->is32BitUuid(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAdvAudioDist(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAudioSource(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isAvrcpTarget(Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->isUuidPresent([Landroid/os/ParcelUuid;Landroid/os/ParcelUuid;)Z Landroid/bluetooth/BluetoothUuid;->NAP:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->ObexObjectPush:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->PBAP_PSE:Landroid/os/ParcelUuid; Landroid/bluetooth/BluetoothUuid;->RESERVED_UUIDS:[Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetooth$Stub$Proxy;->getAddress()Ljava/lang/String; Landroid/bluetooth/IBluetooth$Stub$Proxy;->getConnectionState(Landroid/bluetooth/BluetoothDevice;)I Landroid/bluetooth/IBluetooth$Stub;-><init>()V Loading Loading @@ -1197,7 +999,6 @@ Landroid/bluetooth/IBluetoothManager;->unregisterStateChangeCallback(Landroid/bl Landroid/bluetooth/IBluetoothManagerCallback$Stub;-><init>()V Landroid/bluetooth/IBluetoothPbap$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothPbap; Landroid/bluetooth/IBluetoothStateChangeCallback$Stub;-><init>()V Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/content/AsyncTaskLoader;->mExecutor:Ljava/util/concurrent/Executor; Landroid/content/AsyncTaskLoader;->waitForLoader()V Landroid/content/BroadcastReceiver$PendingResult;-><init>(ILjava/lang/String;Landroid/os/Bundle;IZZLandroid/os/IBinder;II)V Loading
config/hiddenapi-vendor-list.txt +0 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ Landroid/app/TaskStackListener;->onTaskRemoved(I)V Landroid/app/TaskStackListener;->onTaskSnapshotChanged(ILandroid/app/ActivityManager$TaskSnapshot;)V Landroid/app/TaskStackListener;->onTaskStackChanged()V Landroid/app/WallpaperColors;-><init>(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;I)V Landroid/bluetooth/BluetoothHeadset;->phoneStateChanged(IIILjava/lang/String;I)V Landroid/bluetooth/IBluetooth;->sendConnectionStateChange(Landroid/bluetooth/BluetoothDevice;III)V Landroid/companion/AssociationRequest;->getDeviceFilters()Ljava/util/List; Landroid/companion/AssociationRequest;->isSingleDevice()Z Loading
core/java/android/bluetooth/BluetoothA2dp.java +23 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.content.Context; import android.content.Intent; Loading Loading @@ -117,6 +118,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) @UnsupportedAppUsage public static final String ACTION_ACTIVE_DEVICE_CHANGED = "android.bluetooth.a2dp.profile.action.ACTIVE_DEVICE_CHANGED"; Loading @@ -137,6 +139,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) @UnsupportedAppUsage public static final String ACTION_CODEC_CONFIG_CHANGED = "android.bluetooth.a2dp.profile.action.CODEC_CONFIG_CHANGED"; Loading @@ -160,6 +163,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_SUPPORT_UNKNOWN = -1; /** Loading @@ -167,6 +171,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_NOT_SUPPORTED = 0; /** Loading @@ -174,6 +179,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_SUPPORTED = 1; /** Loading @@ -182,6 +188,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_UNKNOWN = -1; /** Loading @@ -189,6 +196,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_DISABLED = 0; /** Loading @@ -196,6 +204,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static final int OPTIONAL_CODECS_PREF_ENABLED = 1; private Context mContext; Loading Loading @@ -268,6 +277,7 @@ public final class BluetoothA2dp implements BluetoothProfile { return true; } @UnsupportedAppUsage /*package*/ void close() { mServiceListener = null; IBluetoothManager mgr = mAdapter.getBluetoothManager(); Loading Loading @@ -315,6 +325,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean connect(BluetoothDevice device) { if (DBG) log("connect(" + device + ")"); try { Loading Loading @@ -357,6 +368,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean disconnect(BluetoothDevice device) { if (DBG) log("disconnect(" + device + ")"); try { Loading Loading @@ -460,6 +472,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean setActiveDevice(@Nullable BluetoothDevice device) { if (DBG) log("setActiveDevice(" + device + ")"); try { Loading Loading @@ -490,6 +503,7 @@ public final class BluetoothA2dp implements BluetoothProfile { */ @RequiresPermission(Manifest.permission.BLUETOOTH) @Nullable @UnsupportedAppUsage public BluetoothDevice getActiveDevice() { if (VDBG) log("getActiveDevice()"); try { Loading Loading @@ -556,6 +570,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @hide */ @RequiresPermission(Manifest.permission.BLUETOOTH) @UnsupportedAppUsage public int getPriority(BluetoothDevice device) { if (VDBG) log("getPriority(" + device + ")"); try { Loading Loading @@ -671,6 +686,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return the current codec status * @hide */ @UnsupportedAppUsage public BluetoothCodecStatus getCodecStatus(BluetoothDevice device) { if (DBG) Log.d(TAG, "getCodecStatus(" + device + ")"); try { Loading Loading @@ -698,6 +714,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @param codecConfig the codec configuration preference * @hide */ @UnsupportedAppUsage public void setCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig) { if (DBG) Log.d(TAG, "setCodecConfigPreference(" + device + ")"); Loading @@ -723,6 +740,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * active A2DP Bluetooth device. * @hide */ @UnsupportedAppUsage public void enableOptionalCodecs(BluetoothDevice device) { if (DBG) Log.d(TAG, "enableOptionalCodecs(" + device + ")"); enableDisableOptionalCodecs(device, true); Loading @@ -735,6 +753,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * active A2DP Bluetooth device. * @hide */ @UnsupportedAppUsage public void disableOptionalCodecs(BluetoothDevice device) { if (DBG) Log.d(TAG, "disableOptionalCodecs(" + device + ")"); enableDisableOptionalCodecs(device, false); Loading Loading @@ -775,6 +794,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_SUPPORTED. * @hide */ @UnsupportedAppUsage public int supportsOptionalCodecs(BluetoothDevice device) { try { mServiceLock.readLock().lock(); Loading @@ -799,6 +819,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_PREF_DISABLED. * @hide */ @UnsupportedAppUsage public int getOptionalCodecsEnabled(BluetoothDevice device) { try { mServiceLock.readLock().lock(); Loading @@ -824,6 +845,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * OPTIONAL_CODECS_PREF_DISABLED. * @hide */ @UnsupportedAppUsage public void setOptionalCodecsEnabled(BluetoothDevice device, int value) { try { if (value != BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN Loading Loading @@ -854,6 +876,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * * @hide */ @UnsupportedAppUsage public static String stateToString(int state) { switch (state) { case STATE_DISCONNECTED: Loading
core/java/android/bluetooth/BluetoothA2dpSink.java +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.bluetooth; import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.content.Context; import android.content.Intent; Loading Loading @@ -278,6 +279,7 @@ public final class BluetoothA2dpSink implements BluetoothProfile { * @return false on immediate error, true otherwise * @hide */ @UnsupportedAppUsage public boolean disconnect(BluetoothDevice device) { if (DBG) log("disconnect(" + device + ")"); final IBluetoothA2dpSink service = mService; Loading
core/java/android/bluetooth/BluetoothAdapter.java +15 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.app.ActivityThread; import android.bluetooth.le.BluetoothLeAdvertiser; import android.bluetooth.le.BluetoothLeScanner; Loading Loading @@ -629,6 +630,7 @@ public final class BluetoothAdapter { private static PeriodicAdvertisingManager sPeriodicAdvertisingManager; private final IBluetoothManager mManagerService; @UnsupportedAppUsage private IBluetooth mService; private final ReentrantReadWriteLock mServiceLock = new ReentrantReadWriteLock(); Loading Loading @@ -988,6 +990,7 @@ public final class BluetoothAdapter { */ @RequiresPermission(Manifest.permission.BLUETOOTH) @AdapterState @UnsupportedAppUsage public int getLeState() { int state = BluetoothAdapter.STATE_OFF; Loading Loading @@ -1098,6 +1101,7 @@ public final class BluetoothAdapter { * @return true to indicate adapter shutdown has begun, or false on immediate error * @hide */ @UnsupportedAppUsage public boolean disable(boolean persist) { try { Loading Loading @@ -1149,6 +1153,7 @@ public final class BluetoothAdapter { * @return true to indicate that the config file was successfully cleared * @hide */ @UnsupportedAppUsage public boolean factoryReset() { try { mServiceLock.readLock().lock(); Loading @@ -1172,6 +1177,7 @@ public final class BluetoothAdapter { * @return the UUIDs supported by the local Bluetooth Adapter. * @hide */ @UnsupportedAppUsage public ParcelUuid[] getUuids() { if (getState() != STATE_ON) { return null; Loading Loading @@ -1438,6 +1444,7 @@ public final class BluetoothAdapter { * @return true if the scan mode was set, false otherwise * @hide */ @UnsupportedAppUsage public boolean setScanMode(@ScanMode int mode, int duration) { if (getState() != STATE_ON) { return false; Loading @@ -1456,6 +1463,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public boolean setScanMode(int mode) { if (getState() != STATE_ON) { return false; Loading @@ -1465,6 +1473,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public int getDiscoverableTimeout() { if (getState() != STATE_ON) { return -1; Loading @@ -1483,6 +1492,7 @@ public final class BluetoothAdapter { } /** @hide */ @UnsupportedAppUsage public void setDiscoverableTimeout(int timeout) { if (getState() != STATE_ON) { return; Loading Loading @@ -2007,6 +2017,7 @@ public final class BluetoothAdapter { * #STATE_CONNECTING} or {@link #STATE_DISCONNECTED} * @hide */ @UnsupportedAppUsage public int getConnectionState() { if (getState() != STATE_ON) { return BluetoothAdapter.STATE_DISCONNECTED; Loading Loading @@ -2094,6 +2105,7 @@ public final class BluetoothAdapter { * permissions, or channel in use. * @hide */ @UnsupportedAppUsage public BluetoothServerSocket listenUsingRfcommOn(int channel, boolean mitm, boolean min16DigitPin) throws IOException { BluetoothServerSocket socket = Loading Loading @@ -2206,6 +2218,7 @@ public final class BluetoothAdapter { * permissions, or channel in use. * @hide */ @UnsupportedAppUsage public BluetoothServerSocket listenUsingEncryptedRfcommWithServiceRecord(String name, UUID uuid) throws IOException { return createNewRfcommSocketAndRecord(name, uuid, false, true); Loading Loading @@ -2749,6 +2762,7 @@ public final class BluetoothAdapter { return true; } @UnsupportedAppUsage /*package*/ IBluetoothManager getBluetoothManager() { return mManagerService; } Loading @@ -2756,6 +2770,7 @@ public final class BluetoothAdapter { private final ArrayList<IBluetoothManagerCallback> mProxyServiceStateCallbacks = new ArrayList<IBluetoothManagerCallback>(); @UnsupportedAppUsage /*package*/ IBluetooth getBluetoothService(IBluetoothManagerCallback cb) { synchronized (mProxyServiceStateCallbacks) { if (cb == null) { Loading