Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
This commit is contained in:
@@ -27,6 +27,7 @@ import android.graphics.drawable.Drawable;
|
||||
import android.location.Country;
|
||||
import android.location.CountryDetector;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.provider.ContactsContract.CommonDataKinds.Phone;
|
||||
import android.provider.ContactsContract.Contacts;
|
||||
import android.provider.ContactsContract.Data;
|
||||
@@ -186,7 +187,7 @@ public class CallerInfo {
|
||||
private boolean mIsVoiceMail;
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public CallerInfo() {
|
||||
// TODO: Move all the basic initialization here?
|
||||
mIsEmergency = false;
|
||||
@@ -347,7 +348,7 @@ public class CallerInfo {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public static CallerInfo getCallerInfo(Context context, Uri contactRef) {
|
||||
CallerInfo info = null;
|
||||
ContentResolver cr = CallerInfoAsyncQuery.getCurrentProfileContentResolver(context);
|
||||
@@ -374,7 +375,7 @@ public class CallerInfo {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public static CallerInfo getCallerInfo(Context context, String number) {
|
||||
if (VDBG) Log.v(TAG, "getCallerInfo() based on number...");
|
||||
|
||||
@@ -395,7 +396,7 @@ public class CallerInfo {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public static CallerInfo getCallerInfo(Context context, String number, int subId) {
|
||||
|
||||
if (TextUtils.isEmpty(number)) {
|
||||
|
||||
Reference in New Issue
Block a user