Loading src/com/android/settings/bluetooth/BluetoothDetailsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -72,8 +72,8 @@ public abstract class BluetoothDetailsController extends AbstractPreferenceContr @Override public final void displayPreference(PreferenceScreen screen) { super.displayPreference(screen); init(screen); super.displayPreference(screen); } /** Loading tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsControllerEventsTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ import org.junit.runner.RunWith; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows=SettingsShadowBluetoothDevice.class) public class BluetoothDetailsControllerEventsTest extends BluetoothDetailsControllerTestBase { Loading tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsControllerTestBase.java +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ import org.mockito.MockitoAnnotations; import org.robolectric.RuntimeEnvironment; public class BluetoothDetailsControllerTestBase { protected Context mContext = RuntimeEnvironment.application; protected Context mContext; protected Lifecycle mLifecycle; protected DeviceConfig mDeviceConfig; protected BluetoothDevice mDevice; Loading @@ -58,6 +58,7 @@ public class BluetoothDetailsControllerTestBase { @Before public void setUp() { MockitoAnnotations.initMocks(this); mContext = RuntimeEnvironment.application; mPreferenceManager = new PreferenceManager(mContext); mScreen = mPreferenceManager.createPreferenceScreen(mContext); mDeviceConfig = makeDefaultDeviceConfig(); Loading tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ import org.mockito.Mock; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows={SettingsShadowBluetoothDevice.class, ShadowEntityHeaderController.class, SettingsShadowResources.class}) public class BluetoothDetailsHeaderControllerTest extends BluetoothDetailsControllerTestBase { Loading tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsMacAddressControllerTest.java +4 −3 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ package com.android.settings.bluetooth; import static com.google.common.truth.Truth.assertThat; import com.android.settings.testutils.SettingsRobolectricTestRunner; import com.android.settings.TestConfig; import com.android.settings.testutils.SettingsRobolectricTestRunner; import com.android.settings.testutils.shadow.SettingsShadowBluetoothDevice; import com.android.settingslib.widget.FooterPreference; Loading @@ -27,9 +27,10 @@ import org.junit.runner.RunWith; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows = SettingsShadowBluetoothDevice.class) public class BluetoothDetailsMacAddressControllerTest extends BluetoothDetailsControllerTestBase { private BluetoothDetailsMacAddressController mController; @Override Loading Loading
src/com/android/settings/bluetooth/BluetoothDetailsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -72,8 +72,8 @@ public abstract class BluetoothDetailsController extends AbstractPreferenceContr @Override public final void displayPreference(PreferenceScreen screen) { super.displayPreference(screen); init(screen); super.displayPreference(screen); } /** Loading
tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsControllerEventsTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ import org.junit.runner.RunWith; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows=SettingsShadowBluetoothDevice.class) public class BluetoothDetailsControllerEventsTest extends BluetoothDetailsControllerTestBase { Loading
tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsControllerTestBase.java +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ import org.mockito.MockitoAnnotations; import org.robolectric.RuntimeEnvironment; public class BluetoothDetailsControllerTestBase { protected Context mContext = RuntimeEnvironment.application; protected Context mContext; protected Lifecycle mLifecycle; protected DeviceConfig mDeviceConfig; protected BluetoothDevice mDevice; Loading @@ -58,6 +58,7 @@ public class BluetoothDetailsControllerTestBase { @Before public void setUp() { MockitoAnnotations.initMocks(this); mContext = RuntimeEnvironment.application; mPreferenceManager = new PreferenceManager(mContext); mScreen = mPreferenceManager.createPreferenceScreen(mContext); mDeviceConfig = makeDefaultDeviceConfig(); Loading
tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ import org.mockito.Mock; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows={SettingsShadowBluetoothDevice.class, ShadowEntityHeaderController.class, SettingsShadowResources.class}) public class BluetoothDetailsHeaderControllerTest extends BluetoothDetailsControllerTestBase { Loading
tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsMacAddressControllerTest.java +4 −3 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ package com.android.settings.bluetooth; import static com.google.common.truth.Truth.assertThat; import com.android.settings.testutils.SettingsRobolectricTestRunner; import com.android.settings.TestConfig; import com.android.settings.testutils.SettingsRobolectricTestRunner; import com.android.settings.testutils.shadow.SettingsShadowBluetoothDevice; import com.android.settingslib.widget.FooterPreference; Loading @@ -27,9 +27,10 @@ import org.junit.runner.RunWith; import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, @Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows = SettingsShadowBluetoothDevice.class) public class BluetoothDetailsMacAddressControllerTest extends BluetoothDetailsControllerTestBase { private BluetoothDetailsMacAddressController mController; @Override Loading