Searched refs:CbGeoUtils (Results 1 – 12 of 12) sorted by relevance
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CbGeoUtilsTest.java | 22 import android.telephony.CbGeoUtils.Circle; 23 import android.telephony.CbGeoUtils.Geometry; 24 import android.telephony.CbGeoUtils.LatLng; 28 import com.android.cellbroadcastservice.CbGeoUtils; 69 String geoString = CbGeoUtils.encodeGeometriesToString(geometries); in testEncodeAndParseString() 72 List<Geometry> parsedGeometries = CbGeoUtils.parseGeometriesFromString(geoString); in testEncodeAndParseString() 106 CbGeoUtils.Point ptCenter = convert(origin, circle.getCenter()); in testExistingLatLngConversionToPoint() 107 CbGeoUtils.Point pt622 = convert(origin, ll622); in testExistingLatLngConversionToPoint() 129 CbGeoUtils.LineSegment seg = in testDistanceFromSegmentToPerpendicularPoint() 130 new CbGeoUtils.LineSegment( in testDistanceFromSegmentToPerpendicularPoint() [all …]
|
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 …]
|
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;
|
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()
|
D | CellBroadcastHandlerTest.java | 34 import android.telephony.CbGeoUtils; 319 @NonNull List<CbGeoUtils.Geometry> fences) { in createNew()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
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() 176 private void calculatePersistentAction(CbGeoUtils.LatLng coordinate, float accuracyMeters) { in calculatePersistentAction() 205 private int calculateActionFromFences(CbGeoUtils.LatLng coordinate, float accuracyMeters) { in calculateActionFromFences() 210 CbGeoUtils.Geometry fence = mFences.get(i); in calculateActionFromFences() 228 private int calculateSingleFence(CbGeoUtils.LatLng coordinate, float accuracyMeters, in calculateSingleFence() [all …]
|
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() 176 } else if (geo instanceof android.telephony.CbGeoUtils.Circle) { in distance() 177 CbGeoUtils.DistanceCircle distanceCircle = in distance() [all …]
|
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()
|
D | GsmCellBroadcastHandler.java | 40 import android.telephony.CbGeoUtils; 41 import android.telephony.CbGeoUtils.Geometry; 361 public void onLocationUpdate(@NonNull CbGeoUtils.LatLng location, in handleGeoFencingTriggerMessage()
|
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()
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
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()
|
/packages/modules/CellBroadcastService/ |
D | Android.bp | 75 "src/com/android/cellbroadcastservice/CbGeoUtils.java",
|