Searched refs:mMockTypedArray (Results 1 – 4 of 4) sorted by relevance
95 private final TypedArray mMockTypedArray = mock(TypedArray.class); field in MobileIconCarrierIdOverridesTest.NetworkOverrideTypedArrayMock105 }).when(mMockTypedArray).getString(/* index */ anyInt()); in NetworkOverrideTypedArrayMock()109 }).when(mMockTypedArray).getResourceId(/* index */ anyInt(), /* default */ anyInt()); in NetworkOverrideTypedArrayMock()111 when(mMockTypedArray.length()).thenAnswer(invocation -> { in NetworkOverrideTypedArrayMock()117 return mMockTypedArray; in getMock()
65 @Mock TypedArray mMockTypedArray; field in RoundedCornersTest240 when(mMockTypedArray.length()).thenReturn(0); in testGetRoundedCornerRadius_withRoundDevice_usesDisplayRadiusAsDefault()241 when(mMockResources.obtainTypedArray(anyInt())).thenReturn(mMockTypedArray); in testGetRoundedCornerRadius_withRoundDevice_usesDisplayRadiusAsDefault()261 when(mMockTypedArray.length()).thenReturn(0); in testGetRoundedCornerRadius_withRoundDevice_usesOverlayIfProvided()262 when(mMockResources.obtainTypedArray(anyInt())).thenReturn(mMockTypedArray); in testGetRoundedCornerRadius_withRoundDevice_usesOverlayIfProvided()280 when(mMockTypedArray.length()).thenReturn(0); in testGetRoundedCornerRadius_withNonRoundDevice_noDisplayDefault()281 when(mMockResources.obtainTypedArray(anyInt())).thenReturn(mMockTypedArray); in testGetRoundedCornerRadius_withNonRoundDevice_noDisplayDefault()
152 private TypedArray mMockTypedArray; field in ScreenDecorationsTest207 when(mMockTypedArray.length()).thenReturn(0); in setup()1510 mMockTypedArray); in setupResources()1513 mMockTypedArray); in setupResources()1516 mMockTypedArray); in setupResources()1519 mMockTypedArray); in setupResources()1522 mMockTypedArray); in setupResources()1525 mMockTypedArray); in setupResources()
156 @Mock private TypedArray mMockTypedArray; field in ScrimControllerTest240 .thenReturn(mMockTypedArray); in setup()242 when(mMockTypedArray.getColorStateList(anyInt())) in setup()