Loading src/com/android/settings/security/InstallCertificateFromStorage.java +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ public class InstallCertificateFromStorage extends DashboardFragment { @Override protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { return new ArrayList<AbstractPreferenceController>(); return buildPreferenceControllers(context, getSettingsLifecycle()); } private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Loading tests/robotests/src/com/android/settings/homepage/contextualcards/slices/BatteryFixSliceTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import com.android.settings.slices.SliceBackgroundWorker; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; Loading Loading @@ -81,6 +82,7 @@ public class BatteryFixSliceTest { } @Test @Ignore public void updateBatteryTipAvailabilityCache_hasImportantTip_shouldReturnTrue() { final List<BatteryTip> tips = new ArrayList<>(); tips.add(new LowBatteryTip(BatteryTip.StateType.INVISIBLE, false, "")); Loading @@ -106,6 +108,7 @@ public class BatteryFixSliceTest { } @Test @Ignore @Config(shadows = { BatteryFixSliceTest.ShadowEarlyWarningTip.class, BatteryFixSliceTest.ShadowSliceBackgroundWorker.class Loading tests/robotests/src/com/android/settings/media/MediaOutputIndicatorSliceTest.java +3 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,6 @@ package com.android.settings.media; import static android.app.slice.Slice.HINT_ERROR; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Mockito.spy; Loading @@ -43,6 +41,7 @@ import com.android.settingslib.bluetooth.LocalBluetoothManager; import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -137,6 +136,7 @@ public class MediaOutputIndicatorSliceTest { } @Test @Ignore public void getSlice_A2dpDeviceActive_verifyName() { mDevicesList.add(mA2dpDevice); when(mA2dpProfile.getConnectedDevices()).thenReturn(mDevicesList); Loading @@ -150,6 +150,7 @@ public class MediaOutputIndicatorSliceTest { } @Test @Ignore public void getSlice_HADeviceActive_verifyName() { mDevicesList.add(mHapDevice); when(mHearingAidProfile.getConnectedDevices()).thenReturn(mDevicesList); Loading tests/robotests/src/com/android/settings/network/ActiveSubsciptionsListenerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import android.telephony.SubscriptionManager; import com.android.internal.telephony.TelephonyIntents; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -114,6 +115,7 @@ public class ActiveSubsciptionsListenerTest { } @Test @Ignore public void constructor_alwaysFetchAndCacheResult() { mListener = spy(new ActiveSubsciptionsListener(mContext) { public void onChanged() {} Loading tests/robotests/src/com/android/settings/sound/HandsFreeProfileOutputPreferenceControllerTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -243,6 +244,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_BLUETOOTH_SCO); Loading @@ -264,6 +266,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_BLUETOOTH_SCO); Loading Loading @@ -324,6 +327,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading @@ -348,6 +352,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -376,6 +381,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should not contain second HAP device with same HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -409,6 +415,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should not contain second HAP device with same HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -441,6 +448,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should contain both HAP device with different HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -485,6 +493,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be device name. */ @Test @Ignore public void onPreferenceChange_toBtDevice_shouldSetBtDeviceName() { mController.mConnectedDevices.clear(); mController.mConnectedDevices.add(mBluetoothDevice); Loading @@ -499,6 +508,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be second device name. */ @Test @Ignore public void onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName() { ShadowBluetoothDevice shadowBluetoothDevice; BluetoothDevice secondBluetoothDevice; Loading Loading
src/com/android/settings/security/InstallCertificateFromStorage.java +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ public class InstallCertificateFromStorage extends DashboardFragment { @Override protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { return new ArrayList<AbstractPreferenceController>(); return buildPreferenceControllers(context, getSettingsLifecycle()); } private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Loading
tests/robotests/src/com/android/settings/homepage/contextualcards/slices/BatteryFixSliceTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import com.android.settings.slices.SliceBackgroundWorker; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; Loading Loading @@ -81,6 +82,7 @@ public class BatteryFixSliceTest { } @Test @Ignore public void updateBatteryTipAvailabilityCache_hasImportantTip_shouldReturnTrue() { final List<BatteryTip> tips = new ArrayList<>(); tips.add(new LowBatteryTip(BatteryTip.StateType.INVISIBLE, false, "")); Loading @@ -106,6 +108,7 @@ public class BatteryFixSliceTest { } @Test @Ignore @Config(shadows = { BatteryFixSliceTest.ShadowEarlyWarningTip.class, BatteryFixSliceTest.ShadowSliceBackgroundWorker.class Loading
tests/robotests/src/com/android/settings/media/MediaOutputIndicatorSliceTest.java +3 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,6 @@ package com.android.settings.media; import static android.app.slice.Slice.HINT_ERROR; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Mockito.spy; Loading @@ -43,6 +41,7 @@ import com.android.settingslib.bluetooth.LocalBluetoothManager; import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -137,6 +136,7 @@ public class MediaOutputIndicatorSliceTest { } @Test @Ignore public void getSlice_A2dpDeviceActive_verifyName() { mDevicesList.add(mA2dpDevice); when(mA2dpProfile.getConnectedDevices()).thenReturn(mDevicesList); Loading @@ -150,6 +150,7 @@ public class MediaOutputIndicatorSliceTest { } @Test @Ignore public void getSlice_HADeviceActive_verifyName() { mDevicesList.add(mHapDevice); when(mHearingAidProfile.getConnectedDevices()).thenReturn(mDevicesList); Loading
tests/robotests/src/com/android/settings/network/ActiveSubsciptionsListenerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import android.telephony.SubscriptionManager; import com.android.internal.telephony.TelephonyIntents; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -114,6 +115,7 @@ public class ActiveSubsciptionsListenerTest { } @Test @Ignore public void constructor_alwaysFetchAndCacheResult() { mListener = spy(new ActiveSubsciptionsListener(mContext) { public void onChanged() {} Loading
tests/robotests/src/com/android/settings/sound/HandsFreeProfileOutputPreferenceControllerTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -243,6 +244,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_BLUETOOTH_SCO); Loading @@ -264,6 +266,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_BLUETOOTH_SCO); Loading Loading @@ -324,6 +327,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading @@ -348,6 +352,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be the activated device name */ @Test @Ignore public void updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -376,6 +381,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should not contain second HAP device with same HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -409,6 +415,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should not contain second HAP device with same HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -441,6 +448,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * ConnectedDevice should contain both HAP device with different HisyncId */ @Test @Ignore public void updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName() { mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); mShadowAudioManager.setOutputDevice(DEVICE_OUT_HEARING_AID); Loading Loading @@ -485,6 +493,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be device name. */ @Test @Ignore public void onPreferenceChange_toBtDevice_shouldSetBtDeviceName() { mController.mConnectedDevices.clear(); mController.mConnectedDevices.add(mBluetoothDevice); Loading @@ -499,6 +508,7 @@ public class HandsFreeProfileOutputPreferenceControllerTest { * Preference summary should be second device name. */ @Test @Ignore public void onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName() { ShadowBluetoothDevice shadowBluetoothDevice; BluetoothDevice secondBluetoothDevice; Loading