Loading src/java/com/android/internal/telephony/CellBroadcastHandler.java +4 −3 Original line number Diff line number Diff line Loading @@ -41,14 +41,15 @@ import android.os.UserHandle; import android.provider.Settings; import android.provider.Telephony; import android.provider.Telephony.CellBroadcasts; import android.telephony.CbGeoUtils; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CbGeoUtils.LatLng; import android.telephony.SmsCbMessage; import android.telephony.SubscriptionManager; import android.text.format.DateUtils; import android.util.LocalLog; import android.util.Log; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CbGeoUtils.LatLng; import com.android.internal.telephony.metrics.TelephonyMetrics; import java.io.FileDescriptor; Loading Loading @@ -142,7 +143,7 @@ public class CellBroadcastHandler extends WakeLockStateMachine { } else { performGeoFencing(message, uri, message.getGeometries(), location); } }, message.getMaximumWaitingTime()); }, message.getMaximumWaitingDuration()); } else { if (DBG) { log("Broadcast the message directly because no geo-fencing required, " Loading src/java/com/android/internal/telephony/gsm/GsmCellBroadcastHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.net.Uri; import android.os.AsyncResult; import android.os.Message; import android.provider.Telephony.CellBroadcasts; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CellLocation; import android.telephony.SmsCbLocation; import android.telephony.SmsCbMessage; Loading @@ -33,7 +34,6 @@ import android.telephony.TelephonyManager; import android.telephony.gsm.GsmCellLocation; import android.text.format.DateUtils; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CellBroadcastHandler; import com.android.internal.telephony.Phone; import com.android.internal.telephony.gsm.GsmSmsCbMessage.GeoFencingTriggerMessage; Loading Loading @@ -138,7 +138,7 @@ public class GsmCellBroadcastHandler extends CellBroadcastHandler { // cell broadcasts. int maximumWaitTimeSec = 0; for (SmsCbMessage msg : cbMessages) { maximumWaitTimeSec = Math.max(maximumWaitTimeSec, msg.getMaximumWaitingTime()); maximumWaitTimeSec = Math.max(maximumWaitTimeSec, msg.getMaximumWaitingDuration()); } if (DBG) { Loading tests/telephonytests/src/com/android/internal/telephony/CbGeoUtilsTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ package com.android.internal.telephony; import static com.google.common.truth.Truth.assertThat; import com.android.internal.telephony.CbGeoUtils.Circle; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CbGeoUtils.LatLng; import com.android.internal.telephony.CbGeoUtils.Polygon; import android.telephony.CbGeoUtils; import android.telephony.CbGeoUtils.Circle; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CbGeoUtils.LatLng; import android.telephony.CbGeoUtils.Polygon; import org.junit.Test; Loading Loading
src/java/com/android/internal/telephony/CellBroadcastHandler.java +4 −3 Original line number Diff line number Diff line Loading @@ -41,14 +41,15 @@ import android.os.UserHandle; import android.provider.Settings; import android.provider.Telephony; import android.provider.Telephony.CellBroadcasts; import android.telephony.CbGeoUtils; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CbGeoUtils.LatLng; import android.telephony.SmsCbMessage; import android.telephony.SubscriptionManager; import android.text.format.DateUtils; import android.util.LocalLog; import android.util.Log; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CbGeoUtils.LatLng; import com.android.internal.telephony.metrics.TelephonyMetrics; import java.io.FileDescriptor; Loading Loading @@ -142,7 +143,7 @@ public class CellBroadcastHandler extends WakeLockStateMachine { } else { performGeoFencing(message, uri, message.getGeometries(), location); } }, message.getMaximumWaitingTime()); }, message.getMaximumWaitingDuration()); } else { if (DBG) { log("Broadcast the message directly because no geo-fencing required, " Loading
src/java/com/android/internal/telephony/gsm/GsmCellBroadcastHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.net.Uri; import android.os.AsyncResult; import android.os.Message; import android.provider.Telephony.CellBroadcasts; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CellLocation; import android.telephony.SmsCbLocation; import android.telephony.SmsCbMessage; Loading @@ -33,7 +34,6 @@ import android.telephony.TelephonyManager; import android.telephony.gsm.GsmCellLocation; import android.text.format.DateUtils; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CellBroadcastHandler; import com.android.internal.telephony.Phone; import com.android.internal.telephony.gsm.GsmSmsCbMessage.GeoFencingTriggerMessage; Loading Loading @@ -138,7 +138,7 @@ public class GsmCellBroadcastHandler extends CellBroadcastHandler { // cell broadcasts. int maximumWaitTimeSec = 0; for (SmsCbMessage msg : cbMessages) { maximumWaitTimeSec = Math.max(maximumWaitTimeSec, msg.getMaximumWaitingTime()); maximumWaitTimeSec = Math.max(maximumWaitTimeSec, msg.getMaximumWaitingDuration()); } if (DBG) { Loading
tests/telephonytests/src/com/android/internal/telephony/CbGeoUtilsTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ package com.android.internal.telephony; import static com.google.common.truth.Truth.assertThat; import com.android.internal.telephony.CbGeoUtils.Circle; import com.android.internal.telephony.CbGeoUtils.Geometry; import com.android.internal.telephony.CbGeoUtils.LatLng; import com.android.internal.telephony.CbGeoUtils.Polygon; import android.telephony.CbGeoUtils; import android.telephony.CbGeoUtils.Circle; import android.telephony.CbGeoUtils.Geometry; import android.telephony.CbGeoUtils.LatLng; import android.telephony.CbGeoUtils.Polygon; import org.junit.Test; Loading