/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/ |
D | DarkModeScheduleSelectorControllerTest.java | 58 private PreferenceScreen mScreen; field in DarkModeScheduleSelectorControllerTest 101 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp() 109 mController.displayPreference(mScreen); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly() 111 .onPreferenceChange(mScreen, mContext.getString(R.string.dark_ui_auto_mode_auto)); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly() 114 .onPreferenceChange(mScreen, mContext.getString(R.string.dark_ui_auto_mode_auto)); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly() 121 mController.displayPreference(mScreen); in nightMode_updateStateNone_dropDownValueChangedToNone() 122 mController.updateState(mScreen); in nightMode_updateStateNone_dropDownValueChangedToNone() 130 mController.displayPreference(mScreen); in nightMode_updateStateNone_dropDownValueChangedToAuto() 131 mController.updateState(mScreen); in nightMode_updateStateNone_dropDownValueChangedToAuto() 140 mController.displayPreference(mScreen); in nightMode_updateStateNone_dropDownValueChangedToCustom() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | SoundWorkSettingsControllerTest.java | 59 private PreferenceScreen mScreen; field in SoundWorkSettingsControllerTest 74 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp() 75 when(mScreen.findPreference(KEY_WORK_USE_PERSONAL_SOUNDS)) in setUp() 77 when(mScreen.findPreference(KEY_WORK_PHONE_RINGTONE)) in setUp() 79 when(mScreen.findPreference(KEY_WORK_NOTIFICATION_RINGTONE)) in setUp() 81 when(mScreen.findPreference(KEY_WORK_ALARM_RINGTONE)) in setUp() 138 mController.displayPreference(mScreen); in onResume_noVoiceCapability_shouldHidePhoneRingtone() 141 verify((Preference) mScreen.findPreference(KEY_WORK_PHONE_RINGTONE)).setVisible(false); in onResume_noVoiceCapability_shouldHidePhoneRingtone() 158 mController.displayPreference(mScreen); in onResume_availableButLocked_shouldRedactPreferences() 162 verify((Preference) mScreen.findPreference(KEY_WORK_PHONE_RINGTONE)) in onResume_availableButLocked_shouldRedactPreferences() [all …]
|
D | VolumeSeekBarPreferenceControllerTest.java | 46 private PreferenceScreen mScreen; field in VolumeSeekBarPreferenceControllerTest 61 when(mScreen.findPreference(nullable(String.class))).thenReturn(mPreference); in setUp() 70 mController.displayPreference(mScreen); in displayPreference_available_shouldUpdatePreference() 83 mController.displayPreference(mScreen); in displayPreference_notAvailable_shouldNotUpdatePreference() 93 mController.displayPreference(mScreen); in onResume_shouldResumePreference() 102 mController.displayPreference(mScreen); in onPause_shouldPausePreference() 125 mController.displayPreference(mScreen); in setSliderPosition_passesAlongValue() 134 mController.displayPreference(mScreen); in getMaxValue_passesAlongValue() 142 mController.displayPreference(mScreen); in getMinValue_passesAlongValue() 150 mController.displayPreference(mScreen); in getSliderPosition_passesAlongValue()
|
D | EmergencyTonePreferenceControllerTest.java | 51 private PreferenceScreen mScreen; field in EmergencyTonePreferenceControllerTest 76 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 77 doReturn(mScreen).when(mSetting).getPreferenceScreen(); in setUp() 96 mController.displayPreference(mScreen); in displayPreference_emergencyToneOff_shouldSelectFirstItem() 105 mController.displayPreference(mScreen); in displayPreference_emergencyToneAlert_shouldSelectSecondItem() 114 mController.displayPreference(mScreen); in displayPreference_emergencyToneVibrate_shouldSelectThirdItem() 121 mController.displayPreference(mScreen); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff() 130 mController.displayPreference(mScreen); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert() 139 mController.displayPreference(mScreen); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
|
D | RedactNotificationPreferenceControllerTest.java | 76 private PreferenceScreen mScreen; field in RedactNotificationPreferenceControllerTest 106 when(mScreen.findPreference( in setUp() 117 when(mScreen.findPreference( in setUp() 166 mController.displayPreference(mScreen); in displayPreference_adminSaysNoRedaction() 168 mScreen.findPreference(mController.getPreferenceKey()); in displayPreference_adminSaysNoRedaction() 170 mWorkController.displayPreference(mScreen); in displayPreference_adminSaysNoRedaction() 172 mScreen.findPreference(mWorkController.getPreferenceKey()); in displayPreference_adminSaysNoRedaction() 181 mController.displayPreference(mScreen); in displayPreference_adminSaysNoSecure() 183 mScreen.findPreference(mController.getPreferenceKey()); in displayPreference_adminSaysNoSecure() 185 mWorkController.displayPreference(mScreen); in displayPreference_adminSaysNoSecure() [all …]
|
D | RemoteVolumeGroupControllerTest.java | 80 private PreferenceScreen mScreen; field in RemoteVolumeGroupControllerTest 114 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn( in setUp() 129 mController.displayPreference(mScreen); in getAvailabilityStatus_withActiveSession_returnAvailableUnsearchable() 137 mController.displayPreference(mScreen); in getAvailabilityStatus_noActiveSession_returnConditionallyUnavailable() 145 mController.displayPreference(mScreen); in displayPreference_noActiveSession_checkPreferenceCount() 152 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkPreferenceCount() 159 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarTitle() 168 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarMaxVolume() 176 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarCurrentVolume() 190 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSwitcherPreferenceTitle() [all …]
|
D | ChargingSoundPreferenceControllerTest.java | 49 private PreferenceScreen mScreen; field in ChargingSoundPreferenceControllerTest 69 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 70 doReturn(mScreen).when(mSetting).getPreferenceScreen(); in setUp() 88 mController.displayPreference(mScreen); in displayPreference_chargingSoundEnabled_shouldCheckedPreference() 97 mController.displayPreference(mScreen); in displayPreference_chargingSoundDisabled_shouldUncheckedPreference() 104 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceChecked_shouldEnabledChargingSound() 113 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceUnchecked_shouldDisabledChargingSound()
|
D | ScreenLockSoundPreferenceControllerTest.java | 49 private PreferenceScreen mScreen; field in ScreenLockSoundPreferenceControllerTest 69 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 70 doReturn(mScreen).when(mSetting).getPreferenceScreen(); in setUp() 88 mController.displayPreference(mScreen); in displayPreference_lockScreenSoundEnabled_shouldCheckedPreference() 97 mController.displayPreference(mScreen); in displayPreference_lockScreenSoundDisabled_shouldUncheckedPreference() 104 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceChecked_shouldEnabledLockScreenSound() 114 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceUnchecked_shouldDisabledLockScreenSound()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsPowerRoleControllerTest.java | 69 private PreferenceScreen mScreen; field in UsbDetailsPowerRoleControllerTest 87 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 93 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp() 99 mScreen.addPreference(mPreference); in setUp() 107 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_sink_shouldUncheck() 120 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_source_shouldCheck() 132 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_disconnected_shouldDisable() 139 assertThat((Preference) mScreen.findPreference( in displayRefresh_disconnected_shouldDisable() 145 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_notSupported_shouldRemove() 151 assertThat((Preference) mScreen.findPreference( in displayRefresh_notSupported_shouldRemove() [all …]
|
/packages/apps/Settings/src/com/android/settings/wallpaper/ |
D | WallpaperTypePreferenceController.java | 39 private PreferenceScreen mScreen; field in WallpaperTypePreferenceController 48 mScreen = screen; in displayPreference() 78 mScreen.setOrderingAsAdded(false); in populateWallpaperTypes() 82 Preference pref = mScreen.findPreference(packageName); in populateWallpaperTypes() 84 pref = new Preference(mScreen.getContext()); in populateWallpaperTypes() 97 mScreen.addPreference(pref); in populateWallpaperTypes() 102 final int count = mScreen.getPreferenceCount(); in removeUselessExistingPreference() 107 final Preference pref = mScreen.getPreference(i); in removeUselessExistingPreference() 112 mScreen.removePreference(pref); in removeUselessExistingPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusUsbFirmwareControllerTest.java | 57 private PreferenceScreen mScreen; field in StylusUsbFirmwareControllerTest 79 mScreen = preferenceManager.createPreferenceScreen(mContext); in setUp() 90 mController.displayPreference(mScreen); in displayPreference_featurePresentUsbStylusAttached_preferenceAdded() 92 assertNotNull(mScreen.findPreference("stylus_usb_firmware")); in displayPreference_featurePresentUsbStylusAttached_preferenceAdded() 101 mController.displayPreference(mScreen); in displayPreference_featureAbsentUsbStylusAttached_preferenceNotAdded() 103 assertNull(mScreen.findPreference(mController.getPreferenceKey())); in displayPreference_featureAbsentUsbStylusAttached_preferenceNotAdded() 108 mController.displayPreference(mScreen); in onUsbStylusConnectionChanged_featurePresentUsbStylusAttached_preferenceAdded() 115 assertNotNull(mScreen.findPreference(mController.getPreferenceKey())); in onUsbStylusConnectionChanged_featurePresentUsbStylusAttached_preferenceAdded() 120 mController.displayPreference(mScreen); in onUsbStylusConnectionChanged_featureAbsentUsbStylusAttached_preferenceRemoved() 126 assertNull(mScreen.findPreference(mController.getPreferenceKey())); in onUsbStylusConnectionChanged_featureAbsentUsbStylusAttached_preferenceRemoved()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | CaptioningTogglePreferenceControllerTest.java | 55 private PreferenceScreen mScreen; field in CaptioningTogglePreferenceControllerTest 66 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mSwitchPreference); in setUp() 88 mController.displayPreference(mScreen); in displayPreference_captionEnabled_shouldSetChecked() 98 mController.displayPreference(mScreen); in displayPreference_captionDisabled_shouldSetUnchecked() 107 mController.displayPreference(mScreen); in performClick_captionEnabled_shouldSetCaptionDisabled() 119 mController.displayPreference(mScreen); in performClick_captionDisabled_shouldSetCaptionEnabled() 129 mController.displayPreference(mScreen); in setChecked_switchChecked_shouldSetCaptionEnabled() 138 mController.displayPreference(mScreen); in setChecked_switchUnchecked_shouldSetCaptionDisabled() 147 mController.displayPreference(mScreen); in onSwitchChanged_switchChecked_shouldSetCaptionEnabled() 156 mController.displayPreference(mScreen); in onSwitchChanged_switchUnchecked_shouldSetCaptionDisabled()
|
D | CaptioningForegroundColorControllerTest.java | 56 private PreferenceScreen mScreen; field in CaptioningForegroundColorControllerTest 68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 81 mController.displayPreference(mScreen); in getSummary_defaultValue_shouldReturnWhite() 91 mController.displayPreference(mScreen); in getSummary_redValue_shouldReturnRed() 98 mController.displayPreference(mScreen); in setRedValue_shouldReturnRed() 109 mController.displayPreference(mScreen); in setNoneColorValue_shouldNotHaveColor() 120 mController.displayPreference(mScreen); in setRedValueFromNoneValue_halfOpacityRedColor_shouldReturnExpectedColor() 132 mController.displayPreference(mScreen); in onValueChanged_shouldSetCaptionEnabled()
|
D | CaptioningBackgroundColorControllerTest.java | 56 private PreferenceScreen mScreen; field in CaptioningBackgroundColorControllerTest 68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 81 mController.displayPreference(mScreen); in getSummary_defaultValue_shouldReturnBlack() 91 mController.displayPreference(mScreen); in getSummary_redValue_shouldReturnRed() 98 mController.displayPreference(mScreen); in setRedValue_shouldReturnRed() 109 mController.displayPreference(mScreen); in setNoneColorValue_shouldNotHaveColor() 120 mController.displayPreference(mScreen); in setRedValueFromNoneValue_halfOpacityRedColor_shouldReturnExpectedColor() 132 mController.displayPreference(mScreen); in onValueChanged_shouldSetCaptionEnabled()
|
D | CaptioningWindowColorControllerTest.java | 57 private PreferenceScreen mScreen; field in CaptioningWindowColorControllerTest 68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 81 mController.displayPreference(mScreen); in getSummary_defaultValue_shouldReturnNone() 92 mController.displayPreference(mScreen); in getSummary_redValue_shouldReturnRed() 99 mController.displayPreference(mScreen); in setRedValue_shouldReturnRed() 110 mController.displayPreference(mScreen); in setNoneColorValue_shouldNotHaveColor() 121 mController.displayPreference(mScreen); in setRedValueFromNoneValue_halfOpacityRedColor_shouldReturnExpectedColor() 133 mController.displayPreference(mScreen); in onValueChanged_shouldSetCaptionEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 105 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_nested_shouldRemove() local 106 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_nested_shouldRemove() 113 mScreen.addPreference(nestedCategory); in removePreference_nested_shouldRemove() 116 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_nested_shouldRemove() 123 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_flat_shouldRemove() local 124 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_flat_shouldRemove() 129 mScreen.addPreference(preference); in removePreference_flat_shouldRemove() 131 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_flat_shouldRemove() 132 assertThat(mScreen.getPreferenceCount()).isEqualTo(0); in removePreference_flat_shouldRemove() 138 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_doNotExist_shouldNotRemove() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | GesturePreferenceControllerTest.java | 51 private PreferenceScreen mScreen; field in GesturePreferenceControllerTest 65 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp() 71 when(mScreen.findPreference(anyString())).thenReturn(mock(VideoPreference.class)); in display_configIsTrue_shouldDisplay() 73 mController.displayPreference(mScreen); in display_configIsTrue_shouldDisplay() 82 mController.displayPreference(mScreen); in display_configIsFalse_shouldNotDisplay() 90 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onStart_shouldStartVideoPreference() 92 mController.displayPreference(mScreen); in onStart_shouldStartVideoPreference() 102 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onStop_shouldStopVideoPreference() 105 mController.displayPreference(mScreen); in onStop_shouldStopVideoPreference()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | WifiSwitchPreferenceControllerTest.java | 59 private PreferenceScreen mScreen; field in WifiSwitchPreferenceControllerTest 75 mScreen = preferenceManager.createPreferenceScreen(mContext); in setUp() 78 mScreen.addPreference(mPreference); in setUp() 90 mController.displayPreference(mScreen); in displayPreference_wifiNotEnabled_preferenceNotChecked() 99 mController.displayPreference(mScreen); in displayPreference_wifiIsEnabled_preferenceIsChecked() 108 mController.displayPreference(mScreen); in displayPreference_disallowChangeWifiState_preferenceNotEnabled() 117 mController.displayPreference(mScreen); in displayPreference_allowChangeWifiState_preferenceIsEnabled() 125 mController.displayPreference(mScreen); in onStart_disallowChangeWifiState_wifiEnablerNotCreated() 136 mController.displayPreference(mScreen); in onStart_allowChangeWifiState_createWifiEnabler()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/security/ |
D | SecuritySettingsTest.java | 85 private PreferenceScreen mScreen; field in SecuritySettingsTest 110 mScreen = preferenceManager.createPreferenceScreen(mContext); in setup() 125 mScreen.addPreference(mPreference); in setup() 126 mScreen.addPreference(mPreferenceFace); in setup() 127 mScreen.addPreference(mPreferenceFingerprint); in setup() 128 mScreen.addPreference(mPreferenceCombined); in setup() 215 mFaceStatusPreferenceController.setPreferenceScreen(mScreen); in preferenceLifecycle_faceShowsThenCombined() 216 mFingerprintStatusPreferenceController.setPreferenceScreen(mScreen); in preferenceLifecycle_faceShowsThenCombined() 217 mCombinedStatusPreferenceController.setPreferenceScreen(mScreen); in preferenceLifecycle_faceShowsThenCombined() 251 mFaceStatusPreferenceController.setPreferenceScreen(mScreen); in preferenceLifecycle_fingerprintShowsThenCombined() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | OwnerInfoPreferenceControllerTest.java | 64 private PreferenceScreen mScreen; field in OwnerInfoPreferenceControllerTest 85 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp() 93 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 121 mController.displayPreference(mScreen); in updateSummary_deviceOwnerInfoEnabled_shouldSetDeviceOwnerInfoSummary() 134 mController.displayPreference(mScreen); in updateSummary_ownerInfoEnabled_shouldSetOwnerInfoSummary() 145 mController.displayPreference(mScreen); in updateSummary_ownerInfoDisabled_shouldSetDefaultSummary() 157 mController.displayPreference(mScreen); in updateEnableState_deviceOwnerInfoEnabled_shouldSetDisabledByAdmin() 168 mController.displayPreference(mScreen); in updateEnableState_lockScreenDisabled_shouldDisablePreference() 179 mController.displayPreference(mScreen); in updateEnableState_lockScreenEnabled_shouldEnablePreference() 190 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(preference); in handlePreferenceTreeClick_shouldLaunchOwnerInfoSettings() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherSSIDPreferenceControllerTest.java | 61 private PreferenceScreen mScreen; field in WifiTetherSSIDPreferenceControllerTest 79 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp() 88 mController.displayPreference(mScreen); in displayPreference_noWifiConfig_shouldDisplayDefaultSSID() 99 mController.displayPreference(mScreen); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID() 105 mController.displayPreference(mScreen); in changePreference_shouldUpdateValue() 117 mController.displayPreference(mScreen); in changePreference_shouldLogActionWhenChanged() 125 mController.displayPreference(mScreen); in changePreference_shouldNotLogActionWhenNotChanged() 135 mController.displayPreference(mScreen); in updateDisplay_shouldUpdateValue() 158 mController.displayPreference(mScreen); in displayPreference_wifiApDisabled_shouldHideQrCodeIcon() 170 mController.displayPreference(mScreen); in displayPreference_wifiApEnabled_shouldShowQrCodeIcon()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryListPreferenceController.java | 50 private PreferenceScreen mScreen; field in UserDictionaryListPreferenceController 71 mScreen = screen; in displayPreference() 144 final int prefCount = mScreen.getPreferenceCount(); in createUserDictSettings() 161 prefKey = mScreen.getPreference(i).getKey(); in createUserDictSettings() 169 mScreen.removePreference(mScreen.findPreference(prefKey)); in createUserDictSettings() 174 mScreen.addPreference(createUserDictionaryPreference(null)); in createUserDictSettings() 178 if (mScreen.findPreference(pref.getKey()) == null) { in createUserDictSettings() 179 mScreen.addPreference(pref); in createUserDictSettings() 193 final Preference newPref = new Preference(mScreen.getContext()); in createUserDictionaryPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoPreferenceControllerTest.java | 70 private PreferenceScreen mScreen; field in ImeiInfoPreferenceControllerTest 98 when(mScreen.getContext()).thenReturn(mContext); in setUp() 100 when(mScreen.findPreference(categoryKey)).thenReturn(mCategory); in setUp() 115 when(mScreen.findPreference(key)).thenReturn(preference); in createPreferenceController() 146 mDefaultController.displayPreference(mScreen); in displayPreference_multiSimGsm_shouldAddSecondPreference() 158 mController.displayPreference(mScreen); in displayPreference_singleSimCdmaPhone_shouldSetSingleSimCdmaTitleAndMeid() 172 mController.displayPreference(mScreen); in displayPreference_multiSimCdmaPhone_shouldSetMultiSimCdmaTitleAndMeid() 174 mSecondController.displayPreference(mScreen); in displayPreference_multiSimCdmaPhone_shouldSetMultiSimCdmaTitleAndMeid() 191 mController.displayPreference(mScreen); in displayPreference_singleSimGsmPhone_shouldSetSingleSimGsmTitleAndImei() 205 mController.displayPreference(mScreen); in displayPreference_multiSimGsmPhone_shouldSetMultiSimGsmTitleAndImei() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | PhoneNumberPreferenceControllerTest.java | 64 private PreferenceScreen mScreen; field in PhoneNumberPreferenceControllerTest 81 mScreen = preferenceManager.createPreferenceScreen(mContext); in setup() 85 mScreen.addPreference(mPreference); in setup() 89 mScreen.addPreference(mCategory); in setup() 100 mController.displayPreference(mScreen); in displayPreference_multiSim_shouldAddSecondPreference() 111 mController.displayPreference(mScreen); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber() 125 mController.displayPreference(mScreen); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences() 140 mController.displayPreference(mScreen); in getSummary_cannotGetActiveSubscriptionInfo_shouldShowUnknown() 153 mController.displayPreference(mScreen); in getSummary_getEmptySubscriptionInfo_shouldShowUnknown()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | DisabledSubscriptionControllerTest.java | 50 private PreferenceScreen mScreen; field in DisabledSubscriptionControllerTest 65 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 68 mScreen.addPreference(mCategory); in setUp() 77 mController.displayPreference(mScreen); in displayPreference_subscriptionEnabled_categoryIsVisible() 84 mController.displayPreference(mScreen); in displayPreference_subscriptionDisabled_categoryIsNotVisible() 91 mController.displayPreference(mScreen); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 100 mController.displayPreference(mScreen); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
|