Loading telephony/java/com/android/internal/telephony/gsm/GsmConnection.java +31 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.os.SystemClock; import android.util.Log; import android.telephony.PhoneNumberUtils; import android.telephony.ServiceState; import android.text.TextUtils; import com.android.internal.telephony.*; Loading @@ -46,6 +47,7 @@ public class GsmConnection extends Connection { boolean isIncoming; boolean disconnected; String cnapName; int index; // index in GsmCallTracker.connections[], -1 if unassigned // The GSM index is 1 + this Loading @@ -72,6 +74,7 @@ public class GsmConnection extends Connection { DisconnectCause cause = DisconnectCause.NOT_DISCONNECTED; PostDialState postDialState = PostDialState.NOT_STARTED; int numberPresentation = Connection.PRESENTATION_ALLOWED; int cnapNamePresentation = Connection.PRESENTATION_ALLOWED; UUSInfo uusInfo; Handler h; Loading Loading @@ -125,6 +128,8 @@ public class GsmConnection extends Connection { isIncoming = dc.isMT; createTime = System.currentTimeMillis(); cnapName = dc.name; cnapNamePresentation = dc.namePresentation; numberPresentation = dc.numberPresentation; uusInfo = dc.uusInfo; Loading @@ -151,6 +156,9 @@ public class GsmConnection extends Connection { index = -1; isIncoming = false; cnapName = null; cnapNamePresentation = Connection.PRESENTATION_ALLOWED; numberPresentation = Connection.PRESENTATION_ALLOWED; createTime = System.currentTimeMillis(); this.parent = parent; Loading Loading @@ -189,6 +197,14 @@ public class GsmConnection extends Connection { return parent; } public String getCnapName() { return cnapName; } public int getCnapNamePresentation() { return cnapNamePresentation; } public long getCreateTime() { return createTime; } Loading Loading @@ -437,6 +453,21 @@ public class GsmConnection extends Connection { changed = true; } // A null cnapName should be the same as "" if (TextUtils.isEmpty(dc.name)) { if (!TextUtils.isEmpty(cnapName)) { changed = true; cnapName = ""; } } else if (!dc.name.equals(cnapName)) { changed = true; cnapName = dc.name; } if (Phone.DEBUG_PHONE) log("--dssds----"+cnapName); cnapNamePresentation = dc.namePresentation; numberPresentation = dc.numberPresentation; if (newParent != parent) { if (parent != null) { parent.detach(this); Loading Loading
telephony/java/com/android/internal/telephony/gsm/GsmConnection.java +31 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.os.SystemClock; import android.util.Log; import android.telephony.PhoneNumberUtils; import android.telephony.ServiceState; import android.text.TextUtils; import com.android.internal.telephony.*; Loading @@ -46,6 +47,7 @@ public class GsmConnection extends Connection { boolean isIncoming; boolean disconnected; String cnapName; int index; // index in GsmCallTracker.connections[], -1 if unassigned // The GSM index is 1 + this Loading @@ -72,6 +74,7 @@ public class GsmConnection extends Connection { DisconnectCause cause = DisconnectCause.NOT_DISCONNECTED; PostDialState postDialState = PostDialState.NOT_STARTED; int numberPresentation = Connection.PRESENTATION_ALLOWED; int cnapNamePresentation = Connection.PRESENTATION_ALLOWED; UUSInfo uusInfo; Handler h; Loading Loading @@ -125,6 +128,8 @@ public class GsmConnection extends Connection { isIncoming = dc.isMT; createTime = System.currentTimeMillis(); cnapName = dc.name; cnapNamePresentation = dc.namePresentation; numberPresentation = dc.numberPresentation; uusInfo = dc.uusInfo; Loading @@ -151,6 +156,9 @@ public class GsmConnection extends Connection { index = -1; isIncoming = false; cnapName = null; cnapNamePresentation = Connection.PRESENTATION_ALLOWED; numberPresentation = Connection.PRESENTATION_ALLOWED; createTime = System.currentTimeMillis(); this.parent = parent; Loading Loading @@ -189,6 +197,14 @@ public class GsmConnection extends Connection { return parent; } public String getCnapName() { return cnapName; } public int getCnapNamePresentation() { return cnapNamePresentation; } public long getCreateTime() { return createTime; } Loading Loading @@ -437,6 +453,21 @@ public class GsmConnection extends Connection { changed = true; } // A null cnapName should be the same as "" if (TextUtils.isEmpty(dc.name)) { if (!TextUtils.isEmpty(cnapName)) { changed = true; cnapName = ""; } } else if (!dc.name.equals(cnapName)) { changed = true; cnapName = dc.name; } if (Phone.DEBUG_PHONE) log("--dssds----"+cnapName); cnapNamePresentation = dc.namePresentation; numberPresentation = dc.numberPresentation; if (newParent != parent) { if (parent != null) { parent.detach(this); Loading