Home
last modified time | relevance | path

Searched refs:mMockResources (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DFastPairProviderTest.java61 Resources mMockResources; field in FastPairProviderTest
69 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
70 when(mMockResources.getInteger(R.integer.fastPairModelId)).thenReturn(0); in setUp()
81 when(mMockResources.getInteger(R.integer.fastPairModelId)).thenReturn(modelId); in enabledViaModelIdTest()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBluetoothServiceTest.java61 @Mock private Resources mMockResources; field in CarBluetoothServiceTest
87 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
139 when(mMockResources.getBoolean( in testResourceFlagTrue_doCreateDefaultPolicy()
159 when(mMockResources.getBoolean( in testResourceFlagFalse_doNotCreateDefaultPolicy()
DBluetoothDeviceConnectionPolicyTest.java57 @Mock private Resources mMockResources; field in BluetoothDeviceConnectionPolicyTest
84 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
119 mMockResources = null; in tearDown()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java50 @Mock private Resources mMockResources; field in A2dpCodecConfigTest
148 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
149 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_sbc)) in setUp()
151 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aac)) in setUp()
153 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aptx)) in setUp()
155 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd)) in setUp()
157 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_ldac)) in setUp()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTestTelephonyConnection.java61 Resources mMockResources; field in TestTelephonyConnection
103 when(mMockContext.getResources()).thenReturn(mMockResources); in TestTelephonyConnection()
104 when(mMockResources.getBoolean(anyInt())).thenReturn(false); in TestTelephonyConnection()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java55 @Mock private Resources mMockResources; field in A2dpSinkStreamHandlerTest
74 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
75 when(mMockResources.getInteger(anyInt())).thenReturn(DUCK_PERCENT); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java80 private @Mock Resources mMockResources; field in AdapterServiceTest
139 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp()
151 when(mMockResources.getBoolean(R.bool.profile_supported_gatt)).thenReturn(true); in setUp()
152 when(mMockResources.getBoolean(R.bool.profile_supported_pbap)).thenReturn(true); in setUp()
153 when(mMockResources.getBoolean(R.bool.profile_supported_pan)).thenReturn(true); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java94 private Resources mMockResources; field in AvrcpControllerStateMachineTest
118 when(mMockResources.getBoolean(R.bool.a2dp_sink_automatically_request_audio_focus)) in setUp()
120 doReturn(mMockResources).when(mAvrcpControllerService).getResources(); in setUp()
746 when(mMockResources.getBoolean(R.bool.a2dp_sink_automatically_request_audio_focus)) in testPlaybackWhileMusicPlaying()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java113 @Mock Resources mMockResources; field in InCallControllerTests
156 doReturn(mMockResources).when(mMockContext).getResources(); in setUp()
157 doReturn(SYS_PKG).when(mMockResources).getString( in setUp()
159 doReturn(SYS_CLASS).when(mMockResources).getString(R.string.incall_default_class); in setUp()
160 doReturn(true).when(mMockResources).getBoolean(R.bool.grant_location_permission_enabled); in setUp()