/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | CbGeoUtilsTest.java | 21 import android.telephony.CbGeoUtils; 22 import android.telephony.CbGeoUtils.Circle; 23 import android.telephony.CbGeoUtils.Geometry; 24 import android.telephony.CbGeoUtils.LatLng; 25 import android.telephony.CbGeoUtils.Polygon; 66 CbGeoUtils.Polygon polygon = (Polygon) geo.get(0); in testEncodeGeometries() 70 assertThat(p.lat).isWithin(CbGeoUtils.EPS).of(11.11); in testEncodeGeometries() 71 assertThat(p.lng).isWithin(CbGeoUtils.EPS).of(22.22); in testEncodeGeometries() 73 assertThat(p.lat).isWithin(CbGeoUtils.EPS).of(33.33); in testEncodeGeometries() 74 assertThat(p.lng).isWithin(CbGeoUtils.EPS).of(44.44); in testEncodeGeometries() [all …]
|
/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
H A D | CbGeoUtilsTest.java | 22 import android.telephony.CbGeoUtils.Circle; 23 import android.telephony.CbGeoUtils.Geometry; 24 import android.telephony.CbGeoUtils.LatLng; 129 CbGeoUtils.LineSegment seg = in testDistanceFromSegmentToPerpendicularPoint() 130 new CbGeoUtils.LineSegment( in testDistanceFromSegmentToPerpendicularPoint() 142 CbGeoUtils.LineSegment seg = in testDistanceFromSegmentToAngledPoint() 170 double distance = CbGeoUtils.distance( in testDistanceWithCircleToPoint() 177 CbGeoUtils.Point pt1 = new CbGeoUtils.Point(1.0, 1.0); in testPointEquals() 178 CbGeoUtils.Point pt2 = new CbGeoUtils.Point(1.0, 1.0); in testPointEquals() 185 CbGeoUtils.Point pt = new CbGeoUtils.Point(1.0, 1.0); in testPointToString() [all …]
|
H A D | GsmCellBroadcastHandlerTest.java | 45 import android.telephony.CbGeoUtils; 330 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingAmbiguousWithMockCalculator() 333 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingAmbiguousWithMockCalculator() 365 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingNoCoordinatesWithMockCalculator() 368 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingNoCoordinatesWithMockCalculator() 382 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingSendImmediatelyWithMockCalculator() 385 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingSendImmediatelyWithMockCalculator() 502 CbGeoUtils.LatLng latLng = new CbGeoUtils.LatLng(mRandom.nextFloat() % 150 + 1, in setMockCalculation() 517 ArgumentCaptor<CbGeoUtils.LatLng> acLatLng = in setMockCalculation() 518 ArgumentCaptor.forClass(CbGeoUtils.LatLng.class); in setMockCalculation() [all …]
|
H A D | CbSendMessageCalculatorTest.java | 22 import android.telephony.CbGeoUtils.Circle; 23 import android.telephony.CbGeoUtils.Geometry; 24 import android.telephony.CbGeoUtils.LatLng; 25 import android.telephony.CbGeoUtils.Polygon;
|
H A D | GsmSmsCbMessageTest.java | 19 import android.telephony.CbGeoUtils; 20 import android.telephony.CbGeoUtils.Circle; 21 import android.telephony.CbGeoUtils.Polygon; 148 List<CbGeoUtils.Geometry> geometries = msg.getGeometries(); in testCreateMessageFromBinary()
|
H A D | CellBroadcastHandlerTest.java | 34 import android.telephony.CbGeoUtils; 319 @NonNull List<CbGeoUtils.Geometry> fences) { in createNew()
|
/aosp12/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
H A D | CbSendMessageCalculator.java | 22 import android.telephony.CbGeoUtils; 42 private final List<CbGeoUtils.Geometry> mFences; 56 @NonNull final List<CbGeoUtils.Geometry> fences) { in CbSendMessageCalculator() 61 @NonNull final List<CbGeoUtils.Geometry> fences, final double thresholdMeters) { in CbSendMessageCalculator() 139 public @NonNull List<CbGeoUtils.Geometry> getFences() { in getFences() 157 public void addCoordinate(CbGeoUtils.LatLng coordinate, float accuracyMeters) { in addCoordinate() 210 CbGeoUtils.Geometry fence = mFences.get(i); in calculateActionFromFences() 228 private int calculateSingleFence(CbGeoUtils.LatLng coordinate, float accuracyMeters, in calculateSingleFence() 229 CbGeoUtils.Geometry fence) { in calculateSingleFence() 242 CbGeoUtils.Geometry fence) { in calculateSysSingleFence() [all …]
|
H A D | CbGeoUtils.java | 20 import android.telephony.CbGeoUtils.Circle; 21 import android.telephony.CbGeoUtils.Geometry; 22 import android.telephony.CbGeoUtils.LatLng; 23 import android.telephony.CbGeoUtils.Polygon; 41 public class CbGeoUtils { class 172 if (geo instanceof android.telephony.CbGeoUtils.Polygon) { in distance() 173 CbGeoUtils.DistancePolygon distancePolygon = in distance() 174 new CbGeoUtils.DistancePolygon((Polygon) geo); in distance() 177 CbGeoUtils.DistanceCircle distanceCircle = in distance() 178 new CbGeoUtils.DistanceCircle((Circle) geo); in distance() [all …]
|
H A D | GsmSmsCbMessage.java | 31 import android.telephony.CbGeoUtils.Circle; 32 import android.telephony.CbGeoUtils.Geometry; 33 import android.telephony.CbGeoUtils.LatLng; 34 import android.telephony.CbGeoUtils.Polygon; 260 case CbGeoUtils.GEO_FENCING_MAXIMUM_WAIT_TIME: in parseWarningAreaCoordinates() 263 case CbGeoUtils.GEOMETRY_TYPE_POLYGON: in parseWarningAreaCoordinates() 275 case CbGeoUtils.GEOMETRY_TYPE_CIRCLE: in parseWarningAreaCoordinates()
|
H A D | GsmCellBroadcastHandler.java | 40 import android.telephony.CbGeoUtils; 41 import android.telephony.CbGeoUtils.Geometry; 361 public void onLocationUpdate(@NonNull CbGeoUtils.LatLng location, in handleGeoFencingTriggerMessage()
|
H A D | CellBroadcastHandler.java | 58 import android.telephony.CbGeoUtils.LatLng; 192 @NonNull final List<android.telephony.CbGeoUtils.Geometry> fences) { in createNew() 655 + ", geos=" + CbGeoUtils.encodeGeometriesToString(calculator.getFences()) in performGeoFencing()
|
/aosp12/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
H A D | GsmSmsCbMessage.java | 27 import android.telephony.CbGeoUtils.Circle; 28 import android.telephony.CbGeoUtils.Geometry; 29 import android.telephony.CbGeoUtils.LatLng; 30 import android.telephony.CbGeoUtils.Polygon; 37 import com.android.cellbroadcastservice.CbGeoUtils; 203 case CbGeoUtils.GEO_FENCING_MAXIMUM_WAIT_TIME: in parseWarningAreaCoordinates() 206 case CbGeoUtils.GEOMETRY_TYPE_POLYGON: in parseWarningAreaCoordinates() 218 case CbGeoUtils.GEOMETRY_TYPE_CIRCLE: in parseWarningAreaCoordinates()
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | SmsCbMessage.java | 28 import android.telephony.CbGeoUtils.Geometry; 293 mGeometries = geoStr != null ? CbGeoUtils.parseGeometriesFromString(geoStr) : null; in SmsCbMessage() 330 mGeometries != null ? CbGeoUtils.encodeGeometriesToString(mGeometries) : null); in writeToParcel() 555 ? CbGeoUtils.encodeGeometriesToString(mGeometries) : "null") in toString() 613 cv.put(CellBroadcasts.GEOMETRIES, CbGeoUtils.encodeGeometriesToString(mGeometries)); in getContentValues() 732 geoStr != null ? CbGeoUtils.parseGeometriesFromString(geoStr) : null; in createFromCursor()
|
H A D | CbGeoUtils.java | 43 public class CbGeoUtils { class 49 private CbGeoUtils() {} in CbGeoUtils() method in CbGeoUtils
|
/aosp12/packages/modules/CellBroadcastService/ |
H A D | Android.bp | 75 "src/com/android/cellbroadcastservice/CbGeoUtils.java",
|
/aosp12/frameworks/base/core/api/ |
H A D | system-current.txt | 11215 public class CbGeoUtils { 11218 public static class CbGeoUtils.Circle implements android.telephony.CbGeoUtils.Geometry { 11219 ctor public CbGeoUtils.Circle(@NonNull android.telephony.CbGeoUtils.LatLng, double); 11221 method @NonNull public android.telephony.CbGeoUtils.LatLng getCenter(); 11225 public static interface CbGeoUtils.Geometry { 11229 public static class CbGeoUtils.LatLng { 11230 ctor public CbGeoUtils.LatLng(double, double); 11231 method public double distance(@NonNull android.telephony.CbGeoUtils.LatLng); 11232 …method @NonNull public android.telephony.CbGeoUtils.LatLng subtract(@NonNull android.telephony.CbG… 11237 public static class CbGeoUtils.Polygon implements android.telephony.CbGeoUtils.Geometry { [all …]
|