Searched refs:mMockedContext (Results 1 – 6 of 6) sorted by relevance
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastServiceTestBase.java | 61 protected Context mMockedContext; field in CellBroadcastServiceTestBase 119 doReturn(mMockedContentResolver).when(mMockedContext).getContentResolver(); in setUp() 120 doReturn(mMockedResources).when(mMockedContext).getResources(); in setUp() 123 PowerManager powerManager = new PowerManager(mMockedContext, mock(IPowerManager.class), in setUp() 126 doReturn(powerManager).when(mMockedContext).getSystemService(Context.POWER_SERVICE); in setUp() 127 doReturn(mMockedTelephonyManager).when(mMockedContext) in setUp() 129 doReturn(Context.TELEPHONY_SERVICE).when(mMockedContext) in setUp() 131 doReturn(mMockedSubscriptionManager).when(mMockedContext) in setUp() 133 doReturn(Context.TELEPHONY_SUBSCRIPTION_SERVICE).when(mMockedContext).getSystemServiceName( in setUp() 135 doReturn(mMockedLocationManager).when(mMockedContext) in setUp() [all …]
|
D | CdmaSmsMessageTest.java | 466 doTestNonEmergencyBroadcast(mMockedContext, ENCODING_7BIT_ASCII); in testNonEmergencyBroadcast7bitAscii() 471 doTestNonEmergencyBroadcast(mMockedContext, ENCODING_GSM_7BIT_ALPHABET); in testNonEmergencyBroadcast7bitGsm() 476 doTestNonEmergencyBroadcast(mMockedContext, ENCODING_UNICODE_16); in testNonEmergencyBroadcast16bitUnicode() 508 doTestCmasBroadcast(mMockedContext, in testCmasPresidentialAlert() 515 doTestCmasBroadcast(mMockedContext, CdmaSmsCbProgramData.CATEGORY_CMAS_EXTREME_THREAT, in testCmasExtremeAlert() 521 doTestCmasBroadcast(mMockedContext, CdmaSmsCbProgramData.CATEGORY_CMAS_SEVERE_THREAT, in testCmasSevereAlert() 527 doTestCmasBroadcast(mMockedContext, in testCmasAmberAlert() 534 doTestCmasBroadcast(mMockedContext, CdmaSmsCbProgramData.CATEGORY_CMAS_TEST_MESSAGE, in testCmasTestMessage() 547 DefaultCellBroadcastService.parseCdmaBroadcastSms(mMockedContext, in testCmasExtremeAlertType1Elements() 578 DefaultCellBroadcastService.parseCdmaBroadcastSms(mMockedContext, in testCmasUnsupportedCharSet() [all …]
|
D | GsmCellBroadcastHandlerTest.java | 178 ((MockContentResolver) mMockedContext.getContentResolver()).addProvider( in setUp() 181 ((MockContentResolver) mMockedContext.getContentResolver()).addProvider( in setUp() 193 mGsmCellBroadcastHandler = new GsmCellBroadcastHandler(mMockedContext, in setUp() 227 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testTriggerMessage() 243 verify(mMockedContext, times(2)).unregisterReceiver(any()); in testCleanup() 260 verify(mMockedContext, never()).sendOrderedBroadcast(any(), anyString(), anyString(), in testAirplaneModeReset() 279 verify(mMockedContext, never()).sendOrderedBroadcast(any(), anyString(), anyString(), in testGeofencingAlertOutOfPolygon() 310 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testSmsCbLocation() 353 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testGeofencingAmbiguousWithMockCalculator() 457 verify(mMockedContext).sendOrderedBroadcast(any(), any(), in verifyBroadcastSent() [all …]
|
D | CellBroadcastHandlerTest.java | 140 mMockedContext, mTestbleLooper.getLooper(), mSendMessageFactory, mHandlerHelper); in setUp() 149 ((MockContentResolver) mMockedContext.getContentResolver()).addProvider( in setUp() 218 CellBroadcastHandler.makeCellBroadcastHandler(mMockedContext); in testMakeCellBroadcastHandler() 244 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intent, phoneId); in testPutPhoneIdAndSubIdExtra() 257 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intentNoSubId, phoneId); in testPutPhoneIdAndSubIdExtra()
|
D | GsmSmsCbMessageTest.java | 78 String message = GsmSmsCbMessage.getEtwsPrimaryMessage(mMockedContext, in testGetEtwsPrimaryMessage() 83 message = GsmSmsCbMessage.getEtwsPrimaryMessage(mMockedContext, in testGetEtwsPrimaryMessage() 88 message = GsmSmsCbMessage.getEtwsPrimaryMessage(mMockedContext, in testGetEtwsPrimaryMessage() 93 message = GsmSmsCbMessage.getEtwsPrimaryMessage(mMockedContext, in testGetEtwsPrimaryMessage() 98 message = GsmSmsCbMessage.getEtwsPrimaryMessage(mMockedContext, in testGetEtwsPrimaryMessage() 126 SmsCbMessage msg = GsmSmsCbMessage.createSmsCbMessage(mMockedContext, header, null, pdus, in testCreateMessageFromBinary()
|
D | CbSendMessageCalculatorTest.java | 177 new CbSendMessageCalculator(mMockedContext, new ArrayList<>(), 10); in testNone() 280 CbSendMessageCalculator calculator = new CbSendMessageCalculator(mMockedContext, l); in testThreshold() 300 return new CbSendMessageCalculator(mMockedContext, list, threshold); in createCalculator()
|