Home
last modified time | relevance | path

Searched refs:mMockedResources (Results 1 – 7 of 7) sorted by relevance

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastServiceTestBase.java64 protected Resources mMockedResources; field in CellBroadcastServiceTestBase
120 doReturn(mMockedResources).when(mMockedContext).getResources(); in setUp()
171 doReturn(value).when(mMockedResources).getStringArray(eq(id)); in putResources()
173 doReturn(value).when(mMockedResources).getBoolean(eq(id)); in putResources()
175 doReturn(value).when(mMockedResources).getInteger(eq(id)); in putResources()
177 doReturn(value).when(mMockedResources).getIntArray(eq(id)); in putResources()
179 doReturn(value).when(mMockedResources).getIntArray(eq(id)); in putResources()
181 doReturn(value).when(mMockedResources).getString(eq(id)); in putResources()
DCbSendMessageCalculatorTest.java59 doReturn(true).when(mMockedResources) in setUp()
252 doReturn(false).when(mMockedResources) in testMultipleAddsAndDoNewWayFalseWithAmbiguousToDontSend()
275 doReturn(1000).when(mMockedResources) in testThreshold()
DGsmCellBroadcastHandlerTest.java184 doReturn(mMockedResources).when(mMockedResourcesCache).get(anyInt()); in setUp()
194 mTestableLooper.getLooper(), mSendMessageFactory, mHandlerHelper, mMockedResources, in setUp()
DCellBroadcastHandlerTest.java153 doReturn(mMockedResources).when(mMockedResourcesCache).get(anyInt()); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java75 private Resources mMockedResources; field in CarUserNoticeServiceTest
125 when(mMockContext.getResources()).thenReturn(mMockedResources); in setUpMocks()
129 when(mMockedResources.getString(anyInt())).thenReturn("com.foo/.Blah"); in setUpMocks()
148 when(mMockedResources.getString(R.string.config_userNoticeUiService)).thenReturn(""); in featureDisabledTest()
149 when(mOtherMockContext.getResources()).thenReturn(mMockedResources); in featureDisabledTest()
DCarUserServiceTest.java174 @Mock private Resources mMockedResources; field in CarUserServiceTest
248 doReturn(mMockedResources).when(mMockContext).getResources(); in setUpMocks()
249 doReturn(mMockedDrawable).when(mMockedResources) in setUpMocks()
2408 when(mMockedResources in newCarUserService()
2562 when(mMockedResources.getString(anyInt())).thenReturn(packageName + "/" + className); in mockCallerUid()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java448 private final Resources mMockedResources; field in MockedCarTestBase.MockedCarTestContext
452 mMockedResources = new MockResources(base.getResources()); in MockedCarTestContext()
457 return mMockedResources; in getResources()