Home
last modified time | relevance | path

Searched refs:CbSendMessageCalculator (Results 1 – 6 of 6) sorted by relevance

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCbSendMessageCalculatorTest.java29 import com.android.cellbroadcastservice.CbSendMessageCalculator;
87 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareOutside()
89 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_DONT_SEND, calculator.getAction()); in testSquareOutside()
101 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareInside()
103 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testSquareInside()
127 CbSendMessageCalculator calculator = createCalculator(tmoThreshold, poly); in testTMoThresholdsWithExistingTestGeofence()
132 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testTMoThresholdsWithExistingTestGeofence()
161 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareAmbiguous()
163 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testSquareAmbiguous()
168 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareInsideThreshold()
[all …]
DGsmCellBroadcastHandlerTest.java60 import com.android.cellbroadcastservice.CbSendMessageCalculator;
327 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingAmbiguousWithMockCalculator()
338 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingAmbiguousWithMockCalculator()
342 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingAmbiguousWithMockCalculator()
363 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingNoCoordinatesWithMockCalculator()
380 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingSendImmediatelyWithMockCalculator()
391 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingSendImmediatelyWithMockCalculator()
396 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, in testGeofencingSendImmediatelyWithMockCalculator()
400 doReturn(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT).when(mockCalculator).getAction(); in testGeofencingSendImmediatelyWithMockCalculator()
406 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT, in testGeofencingSendImmediatelyWithMockCalculator()
[all …]
DCellBroadcastHandlerTest.java48 import com.android.cellbroadcastservice.CbSendMessageCalculator;
318 public CbSendMessageCalculator createNew(@NonNull Context context, in createNew()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java22 import static com.android.cellbroadcastservice.CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOU…
23 import static com.android.cellbroadcastservice.CbSendMessageCalculator.SEND_MESSAGE_ACTION_DONT_SEN…
24 import static com.android.cellbroadcastservice.CbSendMessageCalculator.SEND_MESSAGE_ACTION_NO_COORD…
25 import static com.android.cellbroadcastservice.CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND;
26 import static com.android.cellbroadcastservice.CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT;
191 public CbSendMessageCalculator createNew(@NonNull final Context context, in createNew()
193 return new CbSendMessageCalculator(context, fences); in createNew()
362 CbSendMessageCalculator calculator = in handleBroadcastSms()
403 protected boolean isMessageInAmbiguousState(CbSendMessageCalculator calculator) { in isMessageInAmbiguousState()
426 protected void onLocationUnavailable(CbSendMessageCalculator calculator, SmsCbMessage message, in onLocationUnavailable()
[all …]
DCbSendMessageCalculator.java39 public class CbSendMessageCalculator { class
55 public CbSendMessageCalculator(@NonNull final Context context, in CbSendMessageCalculator() method in CbSendMessageCalculator
60 public CbSendMessageCalculator(@NonNull final Context context, in CbSendMessageCalculator() method in CbSendMessageCalculator
DGsmCellBroadcastHandler.java349 CbSendMessageCalculator[] calculators = new CbSendMessageCalculator[cbMessages.size()]; in handleGeoFencingTriggerMessage()
368 CbSendMessageCalculator calculator = calculators[i]; in handleGeoFencingTriggerMessage()