Merge "API review: rename CarrierIdentification to Carrier id" into pi-dev
This commit is contained in:
@@ -37532,11 +37532,11 @@ package android.provider {
|
|||||||
field public static final java.lang.String ADDRESS = "address";
|
field public static final java.lang.String ADDRESS = "address";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Telephony.CarrierIdentification implements android.provider.BaseColumns {
|
public static final class Telephony.CarrierId implements android.provider.BaseColumns {
|
||||||
method public static android.net.Uri getUriForSubscriptionId(int);
|
method public static android.net.Uri getUriForSubscriptionId(int);
|
||||||
field public static final java.lang.String CID = "carrier_id";
|
field public static final java.lang.String CARRIER_ID = "carrier_id";
|
||||||
|
field public static final java.lang.String CARRIER_NAME = "carrier_name";
|
||||||
field public static final android.net.Uri CONTENT_URI;
|
field public static final android.net.Uri CONTENT_URI;
|
||||||
field public static final java.lang.String NAME = "carrier_name";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Telephony.Carriers implements android.provider.BaseColumns {
|
public static final class Telephony.Carriers implements android.provider.BaseColumns {
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.provider.Telephony;
|
import android.provider.Telephony;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
public class CarrierIdInstallReceiver extends ConfigUpdateInstallReceiver {
|
public class CarrierIdInstallReceiver extends ConfigUpdateInstallReceiver {
|
||||||
|
|
||||||
@@ -33,7 +32,7 @@ public class CarrierIdInstallReceiver extends ConfigUpdateInstallReceiver {
|
|||||||
@Override
|
@Override
|
||||||
protected void postInstall(Context context, Intent intent) {
|
protected void postInstall(Context context, Intent intent) {
|
||||||
ContentResolver resolver = context.getContentResolver();
|
ContentResolver resolver = context.getContentResolver();
|
||||||
resolver.update(Uri.withAppendedPath(Telephony.CarrierIdentification.All.CONTENT_URI,
|
resolver.update(Uri.withAppendedPath(Telephony.CarrierId.All.CONTENT_URI,
|
||||||
"update_db"), new ContentValues(), null, null);
|
"update_db"), new ContentValues(), null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3356,23 +3356,23 @@ public final class Telephony {
|
|||||||
* Contains carrier identification information for the current subscriptions.
|
* Contains carrier identification information for the current subscriptions.
|
||||||
* @see SubscriptionManager#getActiveSubscriptionIdList()
|
* @see SubscriptionManager#getActiveSubscriptionIdList()
|
||||||
*/
|
*/
|
||||||
public static final class CarrierIdentification implements BaseColumns {
|
public static final class CarrierId implements BaseColumns {
|
||||||
/**
|
/**
|
||||||
* Not instantiable.
|
* Not instantiable.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
private CarrierIdentification() {}
|
private CarrierId() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@code content://} style URI for this provider.
|
* The {@code content://} style URI for this provider.
|
||||||
*/
|
*/
|
||||||
public static final Uri CONTENT_URI = Uri.parse("content://carrier_identification");
|
public static final Uri CONTENT_URI = Uri.parse("content://carrier_id");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authority string for the CarrierIdentification Provider
|
* The authority string for the CarrierId Provider
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String AUTHORITY = "carrier_identification";
|
public static final String AUTHORITY = "carrier_id";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -3399,14 +3399,14 @@ public final class Telephony {
|
|||||||
* @see TelephonyManager#getAndroidCarrierNameForSubscription()
|
* @see TelephonyManager#getAndroidCarrierNameForSubscription()
|
||||||
* <P>Type: TEXT </P>
|
* <P>Type: TEXT </P>
|
||||||
*/
|
*/
|
||||||
public static final String NAME = "carrier_name";
|
public static final String CARRIER_NAME = "carrier_name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A unique carrier id
|
* A unique carrier id
|
||||||
* @see TelephonyManager#getAndroidCarrierIdForSubscription()
|
* @see TelephonyManager#getAndroidCarrierIdForSubscription()
|
||||||
* <P>Type: INTEGER </P>
|
* <P>Type: INTEGER </P>
|
||||||
*/
|
*/
|
||||||
public static final String CID = "carrier_id";
|
public static final String CARRIER_ID = "carrier_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains mappings between matching rules with carrier id for all carriers.
|
* Contains mappings between matching rules with carrier id for all carriers.
|
||||||
@@ -3464,7 +3464,7 @@ public final class Telephony {
|
|||||||
/**
|
/**
|
||||||
* The {@code content://} URI for this table.
|
* The {@code content://} URI for this table.
|
||||||
*/
|
*/
|
||||||
public static final Uri CONTENT_URI = Uri.parse("content://carrier_identification/all");
|
public static final Uri CONTENT_URI = Uri.parse("content://carrier_id/all");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user