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.java66 import com.android.cellbroadcastservice.CbSendMessageCalculator;
348 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingAmbiguousWithMockCalculator()
359 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingAmbiguousWithMockCalculator()
363 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingAmbiguousWithMockCalculator()
384 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingNoCoordinatesWithMockCalculator()
401 CbSendMessageCalculator mockCalculator = createMockCalculatorAndSendCellBroadcast(); in testGeofencingSendImmediatelyWithMockCalculator()
412 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_AMBIGUOUS, in testGeofencingSendImmediatelyWithMockCalculator()
417 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, in testGeofencingSendImmediatelyWithMockCalculator()
421 doReturn(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT).when(mockCalculator).getAction(); in testGeofencingSendImmediatelyWithMockCalculator()
427 setMockCalculation(mockCalculator, CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT, in testGeofencingSendImmediatelyWithMockCalculator()
[all …]
DCellBroadcastHandlerTest.java67 import com.android.cellbroadcastservice.CbSendMessageCalculator;
509 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;
207 public CbSendMessageCalculator createNew(@NonNull final Context context, in createNew()
209 return new CbSendMessageCalculator(context, fences); in createNew()
377 CbSendMessageCalculator calculator = in handleBroadcastSms()
420 protected boolean isMessageInAmbiguousState(CbSendMessageCalculator calculator) { in isMessageInAmbiguousState()
436 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.java388 CbSendMessageCalculator[] calculators = new CbSendMessageCalculator[cbMessages.size()]; in handleGeoFencingTriggerMessage()
407 CbSendMessageCalculator calculator = calculators[i]; in handleGeoFencingTriggerMessage()