/packages/apps/Settings/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceController.java | 88 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 90 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in displayPreference() 99 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in isChecked() 107 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in setChecked() 118 if (KEY_LOCKSCREEN_WORK_PROFILE_REDACT.equals(getPreferenceKey()) in getAvailabilityStatus() 123 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in getAvailabilityStatus() 140 if (KEY_LOCKSCREEN_WORK_PROFILE_REDACT.equals(getPreferenceKey())) { in getAvailabilityStatus()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 103 mPreference.setKey(mController.getPreferenceKey()); in setUp() 105 mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 112 mWorkPreference.setKey(mWorkController.getPreferenceKey()); in setUp() 114 mWorkController.getPreferenceKey())).thenReturn(mWorkPreference); in setUp() 163 mScreen.findPreference(mController.getPreferenceKey()); in displayPreference_adminSaysNoRedaction() 167 mScreen.findPreference(mWorkController.getPreferenceKey()); in displayPreference_adminSaysNoRedaction() 178 mScreen.findPreference(mController.getPreferenceKey()); in displayPreference_adminSaysNoSecure() 182 mScreen.findPreference(mWorkController.getPreferenceKey()); in displayPreference_adminSaysNoSecure() 192 mScreen.findPreference(mController.getPreferenceKey()); in displayPreference() 196 mScreen.findPreference(mWorkController.getPreferenceKey()); in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/ |
D | AutoTimeFormatPreferenceControllerTest.java | 62 mPreference.setKey(mController.getPreferenceKey()); in updateState_24HourSet_shouldCheckPreference() 75 mPreference.setKey(mController.getPreferenceKey()); in updateState_12HourSet_shouldCheckPreference() 88 mPreference.setKey(mController.getPreferenceKey()); in updateState_autoSet_shouldNotCheckPreference() 100 mPreference.setKey(mController.getPreferenceKey()); in updatePreference_autoSet_shouldSendIntent_12HourLocale() 119 mPreference.setKey(mController.getPreferenceKey()); in updatePreference_autoSet_shouldSendIntent_24HourLocale() 139 mPreference.setKey(mController.getPreferenceKey()); in updatePreference_24HourSet_shouldSendIntent()
|
D | TimeFormatPreferenceControllerTest.java | 75 mPreference.setKey(mController.getPreferenceKey()); in updateState_24HourSet_shouldCheckPreference() 88 mPreference.setKey(mController.getPreferenceKey()); in updateState_12HourSet_shouldNotCheckPreference() 102 mPreference.setKey(mController.getPreferenceKey()); in updateState_autoSet_shouldNotEnablePreference() 113 mPreference.setKey(mController.getPreferenceKey()); in updatePreference_12HourSet_shouldSendIntent() 132 mPreference.setKey(mController.getPreferenceKey()); in updatePreference_24HourSet_shouldSendIntent()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | BasePreferenceController.java | 218 public String getPreferenceKey() { in getPreferenceKey() method in BasePreferenceController 231 .appendPath(getPreferenceKey()) in getSliceUri() 282 final Preference preference = screen.findPreference(getPreferenceKey()); in displayPreference() 306 final String key = getPreferenceKey(); in updateNonIndexableKeys() 338 if (!TextUtils.equals(preference.getKey(), getPreferenceKey())) { in handlePreferenceTreeClick()
|
D | PreferenceControllerListHelper.java | 113 final String key = controller.getPreferenceKey(); in filterControllers() 119 if (keys.contains(controller.getPreferenceKey())) { in filterControllers() 120 Log.w(TAG, controller.getPreferenceKey() + " already has a controller"); in filterControllers()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFragmentTest.java | 232 when(mockController1.getPreferenceKey()).thenReturn("key1"); in updateState_skipUnavailablePrefs() 233 when(mockController2.getPreferenceKey()).thenReturn("key2"); in updateState_skipUnavailablePrefs() 241 verify(mockController1).getPreferenceKey(); in updateState_skipUnavailablePrefs() 242 verify(mockController2, times(2)).getPreferenceKey(); in updateState_skipUnavailablePrefs() 258 verify(mockController1).getPreferenceKey(); in updateState_doesNotSkipControllersOfSameClass() 259 verify(mockController2).getPreferenceKey(); in updateState_doesNotSkipControllersOfSameClass() 354 public String getPreferenceKey() { in getPreferenceKey() method in DashboardFragmentTest.TestPreferenceController
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/ |
D | PreferenceControllerFragmentTest.java | 85 doReturn("TEST_KEY").when(mockController).getPreferenceKey(); in testUpdatePreferenceStates_shouldCallUpdateState() 103 doReturn("TEST_KEY").when(mockController).getPreferenceKey(); in testUpdatePreferenceStates_shouldNotCallUnavailable() 121 doReturn("TEST_KEY").when(mockController).getPreferenceKey(); in testUpdatePreferenceStates_shouldNotCallNoPref() 151 public String getPreferenceKey() { in testMultipleControllerClassInstances() method in PreferenceControllerFragmentTest.MultiplePreferenceController
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | EncryptionStatusPreferenceController.java | 45 if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE) && in getAvailabilityStatus() 58 if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE)) { in updateState() 63 if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE)) { in updateState()
|
D | ChangeScreenLockPreferenceController.java | 81 public String getPreferenceKey() { in getPreferenceKey() method in ChangeScreenLockPreferenceController 88 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 112 if (TextUtils.equals(p.getKey(), getPreferenceKey())) { in onGearClick() 124 if (!TextUtils.equals(preference.getKey(), getPreferenceKey())) { in handlePreferenceTreeClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | SimLockPreferenceControllerTest.java | 82 mPreference.setKey(mController.getPreferenceKey()); in setUp() 83 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp() 143 assertThat(mController.getPreferenceKey()).isEqualTo("sim_lock_settings"); in getPreferenceKey_byDefault_returnsDefaultValue() 150 assertThat(mController.getPreferenceKey()).isEqualTo("key"); in getPreferenceKey_whenGivenValue_returnsGivenValue()
|
D | ScreenPinningPreferenceControllerTest.java | 51 mPreference.setKey(mController.getPreferenceKey()); in setUp() 95 assertThat(mController.getPreferenceKey()).isEqualTo("screen_pinning_settings"); in getPreferenceKey_byDefault_returnsDefaultValue() 102 assertThat(mController.getPreferenceKey()).isEqualTo("key"); in getPreferenceKey_whenGivenValue_returnsGivenValue()
|
D | LockUnificationPreferenceControllerTest.java | 74 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in init() 106 assertThat(mController.getPreferenceKey()).isEqualTo("unification"); in getPreferenceKey_byDefault_returnsDefaultValue() 113 assertThat(mController.getPreferenceKey()).isEqualTo("key"); in getPreferenceKey_whenGivenValue_returnsGivenValue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | CaCertsPreferenceControllerTestBase.java | 81 assertThat(mController.getPreferenceKey()).isEqualTo(getPreferenceKey()); in testGetPreferenceKey() 86 abstract String getPreferenceKey(); in getPreferenceKey() method in CaCertsPreferenceControllerTestBase
|
D | AdminActionPreferenceControllerTestBase.java | 89 public abstract String getPreferenceKey(); in getPreferenceKey() method in AdminActionPreferenceControllerTestBase 93 assertThat(mController.getPreferenceKey()).isEqualTo(getPreferenceKey()); in testGetPreferenceKey()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/ |
D | HdrFormatPreferenceController.java | 52 public String getPreferenceKey() { in getPreferenceKey() method in HdrFormatPreferenceController 59 if (preference.getKey().equals(getPreferenceKey())) { in updateState() 67 if (preference.getKey().equals(getPreferenceKey())) { in handlePreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | NotificationAccessDetails.java | 179 use(BridgedAppsLinkPreferenceController.class).getPreferenceKey()); in onResume() 241 apc.updateState(screen.findPreference(apc.getPreferenceKey())); in disable() 247 tfpc.updateState(screen.findPreference(tfpc.getPreferenceKey())); in disable() 257 apc.updateState(screen.findPreference(apc.getPreferenceKey())); in enable() 263 tfpc.updateState(screen.findPreference(tfpc.getPreferenceKey())); in enable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | SoundPreferenceControllerTest.java | 164 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testDisplayPreference_savesPreference() 249 pref.setKey(mController.getPreferenceKey()); in testOnPreferenceTreeClick_correctPref() 267 pref.setKey(mController.getPreferenceKey()); in testOnPreferenceTreeClick_alarmSound() 288 pref.setKey(mController.getPreferenceKey()); in testOnPreferenceTreeClick_ringtoneSound() 309 pref.setKey(mController.getPreferenceKey()); in testOnPreferenceTreeClick_otherSound() 322 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testOnActivityResult()
|
D | ConversationPriorityPreferenceControllerTest.java | 216 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToImportant() 235 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToDefault() 255 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceDefaultToLow() 275 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToDefault_bubblesMaintained() 296 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportancePriorityToDefault()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeCustomPreferenceController.java | 72 if (TextUtils.equals(getPreferenceKey(), START_TIME_KEY)) { in getDialog() 79 if (TextUtils.equals(getPreferenceKey(), START_TIME_KEY)) { in getDialog() 98 if (TextUtils.equals(getPreferenceKey(), START_TIME_KEY)) { in refreshSummary()
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
D | AssistContextPreferenceController.java | 67 public String getPreferenceKey() { in getPreferenceKey() method in AssistContextPreferenceController 74 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 100 if (mScreen.findPreference(getPreferenceKey()) == null) { in updatePreference()
|
D | DefaultVoiceInputPreferenceController.java | 65 public String getPreferenceKey() { in getPreferenceKey() method in DefaultVoiceInputPreferenceController 72 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 122 if (mScreen.findPreference(getPreferenceKey()) == null) { in updatePreference()
|
D | AssistScreenshotPreferenceController.java | 68 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 73 public String getPreferenceKey() { in getPreferenceKey() method in AssistScreenshotPreferenceController 106 if (mScreen.findPreference(getPreferenceKey()) == null) { in updatePreference()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFragment.java | 138 keys.add(controller.getPreferenceKey()); in checkUiBlocker() 184 .map(controller -> (Preference) findPreference(controller.getPreferenceKey())) in onCreatePreferences() 370 final String key = controller.getPreferenceKey(); in updatePreferenceStates() 413 Log.w(TAG, task.getController().getPreferenceKey() + " " + e.getMessage()); in updatePreferenceStatesInParallel() 456 final String key = controller.getPreferenceKey(); in updatePreferenceVisibility() 529 mBlockerController.countDown(controller.getPreferenceKey()); in onBlockerWorkFinished()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | ManageTrustAgentsPreferenceControllerTest.java | 69 mPreference.setKey(mController.getPreferenceKey()); in setUp() 123 assertThat(mController.getPreferenceKey()).isEqualTo("manage_trust_agents"); in getPreferenceKey_byDefault_returnsDefaultValue() 130 assertThat(mController.getPreferenceKey()).isEqualTo("key"); in getPreferenceKey_whenGivenValue_returnsGivenValue()
|