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 | 47 import android.telephony.CbGeoUtils; 351 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingAmbiguousWithMockCalculator() 354 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingAmbiguousWithMockCalculator() 386 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingNoCoordinatesWithMockCalculator() 389 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingNoCoordinatesWithMockCalculator() 403 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testGeofencingSendImmediatelyWithMockCalculator() 406 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testGeofencingSendImmediatelyWithMockCalculator() 509 ArgumentCaptor<List<CbGeoUtils.Geometry>> geosCaptor = in testConsecutiveGeoFencingMessages() 512 List<CbGeoUtils.Geometry> geos = geosCaptor.getValue(); in testConsecutiveGeoFencingMessages() 661 CbGeoUtils.LatLng latLng = new CbGeoUtils.LatLng(mRandom.nextFloat() % 150 + 1, 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 | 50 import android.telephony.CbGeoUtils; 510 @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() 174 private void calculatePersistentAction(CbGeoUtils.LatLng coordinate, float accuracyMeters) { in calculatePersistentAction() 203 private int calculateActionFromFences(CbGeoUtils.LatLng coordinate, float accuracyMeters) { in calculateActionFromFences() 208 CbGeoUtils.Geometry fence = mFences.get(i); in calculateActionFromFences() 226 private int calculateSingleFence(CbGeoUtils.LatLng coordinate, float accuracyMeters, in calculateSingleFence() [all …]
|
D | CbGeoUtils.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; 43 public class CbGeoUtils { class 173 if (geo instanceof android.telephony.CbGeoUtils.Polygon) { in distance() 174 CbGeoUtils.DistancePolygon distancePolygon = in distance() 175 new CbGeoUtils.DistancePolygon((Polygon) geo); in distance() 177 } else if (geo instanceof android.telephony.CbGeoUtils.Circle) { in distance() 178 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; 255 case CbGeoUtils.GEO_FENCING_MAXIMUM_WAIT_TIME: in parseWarningAreaCoordinates() 258 case CbGeoUtils.GEOMETRY_TYPE_POLYGON: in parseWarningAreaCoordinates() 270 case CbGeoUtils.GEOMETRY_TYPE_CIRCLE: in parseWarningAreaCoordinates()
|
D | GsmCellBroadcastHandler.java | 43 import android.telephony.CbGeoUtils; 44 import android.telephony.CbGeoUtils.Geometry; 400 public void onLocationUpdate(@NonNull CbGeoUtils.LatLng location, in handleGeoFencingTriggerMessage()
|
D | CellBroadcastHandler.java | 63 import android.telephony.CbGeoUtils.LatLng; 208 @NonNull final List<android.telephony.CbGeoUtils.Geometry> fences) { in createNew() 664 + ", 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; 211 case CbGeoUtils.GEO_FENCING_MAXIMUM_WAIT_TIME: in parseWarningAreaCoordinates() 214 case CbGeoUtils.GEOMETRY_TYPE_POLYGON: in parseWarningAreaCoordinates() 226 case CbGeoUtils.GEOMETRY_TYPE_CIRCLE: in parseWarningAreaCoordinates()
|
/packages/modules/CellBroadcastService/ |
D | Android.bp | 94 "src/com/android/cellbroadcastservice/CbGeoUtils.java",
|