Merge "cold sim clean up" into nyc-mr1-dev am: ba3428f01b
am: dc9ff70da1
* commit 'dc9ff70da15c927afccad064f16d143a25b92aca':
cold sim clean up
Change-Id: Ie35dd1dbede46a1ae6f6a1c902e8d54321325500
This commit is contained in:
@@ -51,6 +51,15 @@ public class NetworkMisc implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
public boolean acceptUnvalidated;
|
public boolean acceptUnvalidated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set to avoid surfacing the "Sign in to network" notification.
|
||||||
|
* if carrier receivers/apps are registered to handle the carrier-specific provisioning
|
||||||
|
* procedure, a carrier specific provisioning notification will be placed.
|
||||||
|
* only one notification should be displayed. This field is set based on
|
||||||
|
* which notification should be used for provisioning.
|
||||||
|
*/
|
||||||
|
public boolean provisioningNotificationDisabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For mobile networks, this is the subscriber ID (such as IMSI).
|
* For mobile networks, this is the subscriber ID (such as IMSI).
|
||||||
*/
|
*/
|
||||||
@@ -65,6 +74,7 @@ public class NetworkMisc implements Parcelable {
|
|||||||
explicitlySelected = nm.explicitlySelected;
|
explicitlySelected = nm.explicitlySelected;
|
||||||
acceptUnvalidated = nm.acceptUnvalidated;
|
acceptUnvalidated = nm.acceptUnvalidated;
|
||||||
subscriberId = nm.subscriberId;
|
subscriberId = nm.subscriberId;
|
||||||
|
provisioningNotificationDisabled = nm.provisioningNotificationDisabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,6 +89,7 @@ public class NetworkMisc implements Parcelable {
|
|||||||
out.writeInt(explicitlySelected ? 1 : 0);
|
out.writeInt(explicitlySelected ? 1 : 0);
|
||||||
out.writeInt(acceptUnvalidated ? 1 : 0);
|
out.writeInt(acceptUnvalidated ? 1 : 0);
|
||||||
out.writeString(subscriberId);
|
out.writeString(subscriberId);
|
||||||
|
out.writeInt(provisioningNotificationDisabled ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Creator<NetworkMisc> CREATOR = new Creator<NetworkMisc>() {
|
public static final Creator<NetworkMisc> CREATOR = new Creator<NetworkMisc>() {
|
||||||
@@ -89,6 +100,7 @@ public class NetworkMisc implements Parcelable {
|
|||||||
networkMisc.explicitlySelected = in.readInt() != 0;
|
networkMisc.explicitlySelected = in.readInt() != 0;
|
||||||
networkMisc.acceptUnvalidated = in.readInt() != 0;
|
networkMisc.acceptUnvalidated = in.readInt() != 0;
|
||||||
networkMisc.subscriberId = in.readString();
|
networkMisc.subscriberId = in.readString();
|
||||||
|
networkMisc.provisioningNotificationDisabled = in.readInt() != 0;
|
||||||
return networkMisc;
|
return networkMisc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2153,9 +2153,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
loge("EVENT_PROVISIONING_NOTIFICATION from unknown NetworkMonitor");
|
loge("EVENT_PROVISIONING_NOTIFICATION from unknown NetworkMonitor");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
setProvNotificationVisibleIntent(true, netId, NotificationType.SIGN_IN,
|
if (!nai.networkMisc.provisioningNotificationDisabled) {
|
||||||
nai.networkInfo.getType(), nai.networkInfo.getExtraInfo(),
|
setProvNotificationVisibleIntent(true, netId, NotificationType.SIGN_IN,
|
||||||
(PendingIntent)msg.obj, nai.networkMisc.explicitlySelected);
|
nai.networkInfo.getType(), nai.networkInfo.getExtraInfo(),
|
||||||
|
(PendingIntent)msg.obj, nai.networkMisc.explicitlySelected);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2556,6 +2558,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
|
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivityAsUser(
|
PendingIntent pendingIntent = PendingIntent.getActivityAsUser(
|
||||||
mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT);
|
mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT);
|
||||||
|
|
||||||
setProvNotificationVisibleIntent(true, nai.network.netId, NotificationType.NO_INTERNET,
|
setProvNotificationVisibleIntent(true, nai.network.netId, NotificationType.NO_INTERNET,
|
||||||
nai.networkInfo.getType(), nai.networkInfo.getExtraInfo(), pendingIntent, true);
|
nai.networkInfo.getType(), nai.networkInfo.getExtraInfo(), pendingIntent, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user