Home
last modified time | relevance | path

Searched refs:screen (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountTypePreferenceLoaderTest.java155 PreferenceScreen screen = spy(new PreferenceScreen(mContext, null)); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList() local
156 when(screen.getPreferenceManager()).thenReturn(mManager); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList()
157 screen.addPreference(pref); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList()
159 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(screen); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList()
168 PreferenceScreen screen = spy(new PreferenceScreen(mContext, null)); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList() local
169 when(screen.getPreferenceManager()).thenReturn(mManager); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList()
170 screen.addPreference(pref); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList()
172 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(screen); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList()
202 PreferenceScreen screen = spy(new PreferenceScreen(mContext, null)); in filterBlockedFragments_simplePrefGroupNoFragment_noop() local
203 when(screen.getPreferenceManager()).thenReturn(mManager); in filterBlockedFragments_simplePrefGroupNoFragment_noop()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DRadioButtonPickerFragment.java140 protected void addStaticPreferences(PreferenceScreen screen) { in addStaticPreferences() argument
179 final PreferenceScreen screen = getPreferenceScreen(); in updateCandidates() local
180 screen.removeAll(); in updateCandidates()
182 addIllustration(screen); in updateCandidates()
185 addStaticPreferences(screen); in updateCandidates()
199 screen.addPreference(nonePref); in updateCandidates()
209 screen.addPreference(pref); in updateCandidates()
214 addStaticPreferences(screen); in updateCandidates()
232 final PreferenceScreen screen = getPreferenceScreen(); in updateCheckedState() local
233 if (screen != null) { in updateCheckedState()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DSensorFragment.java98 PreferenceScreen screen = getPreferenceManager().createPreferenceScreen(themedContext); in onCreatePreferences() local
100 screen.setTitle(mToggle.screenTitle); in onCreatePreferences()
102 addPhysicalPrivacyEnabledInfo(screen, themedContext); in onCreatePreferences()
103 addSensorToggleWithInfo(screen, themedContext); in onCreatePreferences()
104 addHardwareToggle(screen, themedContext); in onCreatePreferences()
105 addRecentAppsGroup(screen, themedContext); in onCreatePreferences()
106 addPermissionControllerPreference(screen, themedContext); in onCreatePreferences()
109 setPreferenceScreen(screen); in onCreatePreferences()
125 protected void addHardwareToggle(PreferenceScreen screen, Context themedContext) { in addHardwareToggle() argument
133 private void addPhysicalPrivacyEnabledInfo(PreferenceScreen screen, Context themedContext) { in addPhysicalPrivacyEnabledInfo() argument
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DAbstractMobileNetworkSettings.java57 Preference searchForPreference(PreferenceScreen screen, in searchForPreference() argument
63 return screen.findPreference(key); in searchForPreference()
75 final PreferenceScreen screen = getPreferenceScreen(); in onExpandButtonClick() local
80 final Preference preference = screen.findPreference(key); in onExpandButtonClick()
105 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceStates() local
107 updateVisiblePreferenceControllers(screen, controller)); in updatePreferenceStates()
115 private void updateVisiblePreferenceControllers(PreferenceScreen screen, in updateVisiblePreferenceControllers() argument
117 final Preference preference = searchForPreference(screen, controller); in updateVisiblePreferenceControllers()
147 final PreferenceScreen screen = getPreferenceScreen(); in redrawPreferenceControllers() local
149 controller.displayPreference(screen); in redrawPreferenceControllers()
[all …]
DNetworkProviderWifiCallingPreferenceController.java69 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
70 super.displayPreference(screen); in displayPreference()
71 mPreferenceScreen = screen; in displayPreference()
72 mPreferenceCategory = screen.findPreference(PREFERENCE_CATEGORY_KEY); in displayPreference()
74 mNetworkProviderWifiCallingGroup.displayPreference(screen); in displayPreference()
/packages/apps/Launcher3/tools/
Dprint_db.py145 def render_screen_info(out, screen): argument
147 out.write("<td>%s</td>" % (screen["_id"]))
148 out.write("<td>%s</td>" % (screen["screenRank"]))
228 for screen in screenData:
229 render_screen_info(out, screen)
239 screen = row["screen"]
240 hotseat[screen] = row
250 screen = []
255 screen.append(m)
256 screens.append(screen)
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFragment.java368 final PreferenceScreen screen = getPreferenceScreen(); in displayResourceTiles() local
369 screen.setOnExpandButtonClickListener(this); in displayResourceTiles()
370 displayResourceTilesToScreen(screen); in displayResourceTiles()
377 protected void displayResourceTilesToScreen(PreferenceScreen screen) { in displayResourceTilesToScreen() argument
379 controller -> controller.displayPreference(screen)); in displayResourceTilesToScreen()
393 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceStates() local
409 final Preference preference = screen.findPreference(key); in updatePreferenceStates()
425 final PreferenceScreen screen = getPreferenceScreen(); in refreshAllPreferences() local
427 if (screen != null) { in refreshAllPreferences()
429 screen.removeAll(); in refreshAllPreferences()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DManagePermissionsFragment.java96 PreferenceScreen screen = getPreferenceScreen(); in updatePermissionsUi() local
97 if (screen == null) { in updatePermissionsUi()
98 screen = getPreferenceManager().createPreferenceScreen(context); in updatePermissionsUi()
99 setPreferenceScreen(screen); in updatePermissionsUi()
103 for (int i = screen.getPreferenceCount() - 1; i >= 0; i--) { in updatePermissionsUi()
104 Preference group = screen.getPreference(i); in updatePermissionsUi()
111 screen.removePreference(pref); in updatePermissionsUi()
132 screen.addPreference(preference); in updatePermissionsUi()
149 KotlinUtils.INSTANCE.sortPreferenceGroup(screen, (Preference lhs, Preference rhs) -> in updatePermissionsUi()
154 return screen; in updatePermissionsUi()
DManageStandardPermissionsFragment.java112 PreferenceScreen screen = super.updatePermissionsUi(); in updatePermissionsUi() local
113 if (screen == null) { in updatePermissionsUi()
123 Preference additionalPermissionsPreference = screen.findPreference(EXTRA_PREFS_KEY); in updatePermissionsUi()
126 screen.removePreference(additionalPermissionsPreference); in updatePermissionsUi()
144 screen.addPreference(additionalPermissionsPreference); in updatePermissionsUi()
153 Preference autoRevokePreference = screen.findPreference(AUTO_REVOKE_KEY); in updatePermissionsUi()
162 screen.addPreference(autoRevokePreference); in updatePermissionsUi()
165 screen.removePreference(autoRevokePreference); in updatePermissionsUi()
168 return screen; in updatePermissionsUi()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryPreferenceFragment.java66 PreferenceScreen screen = in onCreatePreferences() local
68 updateList(screen, activity.getBluetoothDevices(), activity.getCurrentTargetAddress(), in onCreatePreferences()
72 public void updateList(PreferenceScreen screen, List<BluetoothDevice> devices, in updateList() argument
76 screen.removeAll(); in updateList()
95 screen.addPreference(preference); in updateList()
97 setPreferenceScreen(screen); in updateList()
101 PreferenceScreen screen = getPreferenceScreen(); in clearList() local
102 if (screen != null) { in clearList()
103 screen.removeAll(); in clearList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DInactiveApps.java56 final PreferenceScreen screen = getPreferenceManager() in onCreatePreferences() local
58 screen.setTitle(R.string.inactive_apps_title); in onCreatePreferences()
59 setPreferenceScreen(screen); in onCreatePreferences()
64 final PreferenceScreen screen = getPreferenceScreen(); in init() local
65 screen.removeAll(); in init()
66 screen.setOrderingAsAdded(false); in init()
81 screen.addPreference(p); in init()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSubScreenFragment.java40 final PreferenceScreen screen) { in setPreferenceEnabled() argument
41 final Preference preference = screen.findPreference(prefKey); in setPreferenceEnabled()
47 static void removePreference(final String prefKey, final PreferenceScreen screen) { in removePreference() argument
48 final Preference preference = screen.findPreference(prefKey); in removePreference()
50 screen.removePreference(preference); in removePreference()
55 final PreferenceScreen screen) { in updateListPreferenceSummaryToCurrentValue() argument
58 final ListPreference listPreference = (ListPreference)screen.findPreference(prefKey); in updateListPreferenceSummaryToCurrentValue()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DReviewPermissionsWearFragment.java129 PreferenceScreen screen = getPreferenceScreen(); in loadPreferences() local
130 if (screen == null) { in loadPreferences()
131 screen = getPreferenceManager().createPreferenceScreen(getActivity()); in loadPreferences()
132 setPreferenceScreen(screen); in loadPreferences()
134 screen.removeAll(); in loadPreferences()
189 screen.addPreference(preference); in loadPreferences()
195 screen.addPreference(mNewPermissionsCategory); in loadPreferences()
204 screen.addPreference(mCurrentPermissionsCategory); in loadPreferences()
209 addTitlePreferenceToScreen(screen); in loadPreferences()
210 addActionPreferencesToScreen(screen); in loadPreferences()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DHighlightablePreferenceGroupAdapterTest.java143 final PreferenceScreen screen = mock(PreferenceScreen.class); in adjustInitialExpandedChildCount_invalidInput_shouldNotAdjust() local
145 when(mFragment.getPreferenceScreen()).thenReturn(screen); in adjustInitialExpandedChildCount_invalidInput_shouldNotAdjust()
147 verifyNoInteractions(screen); in adjustInitialExpandedChildCount_invalidInput_shouldNotAdjust()
155 final PreferenceScreen screen = mock(PreferenceScreen.class); in adjustInitialExpandedChildCount_hasHighlightKey_shouldExpandAllChildren() local
156 when(mFragment.getPreferenceScreen()).thenReturn(screen); in adjustInitialExpandedChildCount_hasHighlightKey_shouldExpandAllChildren()
159 verify(screen).setInitialExpandedChildrenCount(Integer.MAX_VALUE); in adjustInitialExpandedChildCount_hasHighlightKey_shouldExpandAllChildren()
167 final PreferenceScreen screen = mock(PreferenceScreen.class); in adjustInitialExpandedChildCount_noKeyOrChildCountOverride_shouldDoNothing() local
168 when(mFragment.getPreferenceScreen()).thenReturn(screen); in adjustInitialExpandedChildCount_noKeyOrChildCountOverride_shouldDoNothing()
172 verifyNoInteractions(screen); in adjustInitialExpandedChildCount_noKeyOrChildCountOverride_shouldDoNothing()
178 final PreferenceScreen screen = mock(PreferenceScreen.class); in adjustInitialExpandedChildCount_hasCountOverride_shouldDoNothing() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/logging/
Dinteraction_event.proto21 // The user blocked a number from the Call Log screen
24 // The user blocked a number from the Call details screen
27 // The user blocked a number from the Management screen
30 // The user unblocked a number from the Call Log screen
33 // The user unblocked a number from the Call details screen
36 // The user unblocked a number from the Management screen
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DPaymentSettingsTest.java125 final PreferenceScreen screen = preferenceManager.createPreferenceScreen(mContext); in isShowEmptyImage_hasVisiblePreference_returnFalse() local
127 screen.addPreference(preference1); in isShowEmptyImage_hasVisiblePreference_returnFalse()
129 screen.addPreference(preference2); in isShowEmptyImage_hasVisiblePreference_returnFalse()
131 assertThat(paymentSettings.isShowEmptyImage(screen)).isFalse(); in isShowEmptyImage_hasVisiblePreference_returnFalse()
138 final PreferenceScreen screen = preferenceManager.createPreferenceScreen(mContext); in isShowEmptyImage_hasNoVisiblePreference_returnTrue() local
141 screen.addPreference(preference1); in isShowEmptyImage_hasNoVisiblePreference_returnTrue()
143 screen.addPreference(preference2); in isShowEmptyImage_hasNoVisiblePreference_returnTrue()
146 assertThat(paymentSettings.isShowEmptyImage(screen)).isTrue(); in isShowEmptyImage_hasNoVisiblePreference_returnTrue()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModel.kt110 fun setSmallPreviewSelectedTab(screen: Screen) { in <lambda>()
111 _smallPreviewSelectedTab.value = screen in <lambda>()
235 config.screen, in <lambda>()
248 getWorkspacePreviewConfig(it.screen, it.deviceDisplayType) in <lambda>()
303 fun onSetWallpaperDialogScreenSelected(screen: Screen) { in <lambda>()
306 if (previousSelection.contains(screen) && previousSelection.size > 1) { in <lambda>()
307 previousSelection.minus(screen) in <lambda>()
309 previousSelection.plus(screen) in <lambda>()
379 screen: Screen, in <lambda>()
383 when (screen) { in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/section/
DScreenPreviewSectionController.kt57 private val screen: Screen, in <lambda>() constant in com.android.wallpaper.picker.customization.ui.section.ScreenPreviewSectionController
68 protected val isOnLockScreen: Boolean = screen == Screen.LOCK_SCREEN in <lambda>()
184 screen = screen, in <lambda>()
199 screen = screen, in <lambda>()
205 screen: Screen, in <lambda>()
210 if (screen == Screen.LOCK_SCREEN) { in <lambda>()
218 if (screen == Screen.LOCK_SCREEN) { in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DLegalFragment.java47 final PreferenceScreen screen = getPreferenceScreen(); in onCreatePreferences() local
50 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
52 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
54 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
56 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
64 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DScreenManager.java84 public void setOverrideActivity(ManagedProvisioningScreens screen, in setOverrideActivity() argument
86 mScreenToActivityMap.put(screen, newClass); in setOverrideActivity()
95 public Class<? extends Activity> getActivityClassForScreen(ManagedProvisioningScreens screen) { in getActivityClassForScreen() argument
96 return mScreenToActivityMap.get(screen); in getActivityClassForScreen()
127 for (ManagedProvisioningScreens screen : ManagedProvisioningScreens.values()) { in validateEachScreenHasMapping()
128 if (!mScreenToActivityMap.containsKey(screen)) { in validateEachScreenHasMapping()
129 throw new IllegalStateException("Screen " + screen + " has no mapping."); in validateEachScreenHasMapping()
/packages/apps/Settings/src/com/android/settings/applications/
DAppsPreferenceController.java97 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
98 super.displayPreference(screen); in displayPreference()
99 initPreferences(screen); in displayPreference()
163 private void initPreferences(PreferenceScreen screen) { in initPreferences() argument
164 mRecentAppsCategory = screen.findPreference(KEY_RECENT_APPS_CATEGORY); in initPreferences()
165 mGeneralCategory = screen.findPreference(KEY_GENERAL_CATEGORY); in initPreferences()
166 mAllAppsInfoPref = screen.findPreference(KEY_ALL_APP_INFO); in initPreferences()
167 mSeeAllPref = screen.findPreference(KEY_SEE_ALL); in initPreferences()
/packages/apps/Settings/src/com/android/settings/development/
DAdbDeviceDetailsHeaderController.java69 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
70 super.displayPreference(screen); in displayPreference()
72 setupEntityHeader(screen); in displayPreference()
75 private void setupEntityHeader(PreferenceScreen screen) { in setupEntityHeader() argument
76 LayoutPreference headerPref = (LayoutPreference) screen.findPreference(KEY_HEADER); in setupEntityHeader()
/packages/apps/Settings/src/com/android/settings/accounts/
DEnterpriseDisclosurePreferenceController.java43 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
44 super.displayPreference(screen); in displayPreference()
49 updateFooterPreference(screen, disclosure); in displayPreference()
65 void updateFooterPreference(PreferenceScreen screen, CharSequence disclosure) { in updateFooterPreference() argument
66 final FooterPreference footerPreference = screen.findPreference(getPreferenceKey()); in updateFooterPreference()
/packages/apps/Settings/src/com/android/settings/regionalpreferences/
DNumberingSystemItemController.java74 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
75 super.displayPreference(screen); in displayPreference()
76 mPreferenceScreen = screen; in displayPreference()
78 initLanguageOptionsUi(screen); in displayPreference()
80 initNumberingSystemOptionsUi(screen, Locale.forLanguageTag(mSelectedLanguage)); in displayPreference()
119 private void initLanguageOptionsUi(PreferenceScreen screen) { in initLanguageOptionsUi() argument
132 screen.addPreference(pref); in initLanguageOptionsUi()
136 private void initNumberingSystemOptionsUi(PreferenceScreen screen, Locale targetLocale) { in initNumberingSystemOptionsUi() argument
148 screen.addPreference(pref); in initNumberingSystemOptionsUi()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceNamePreferenceController.java63 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
64 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference()
65 super.displayPreference(screen); in displayPreference()
110 public Preference createBluetoothDeviceNamePreference(PreferenceScreen screen, int order) { in createBluetoothDeviceNamePreference() argument
111 mPreference = new Preference(screen.getContext()); in createBluetoothDeviceNamePreference()
114 screen.addPreference(mPreference); in createBluetoothDeviceNamePreference()

12345678910>>...31