Home
last modified time | relevance | path

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

12345678

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java285 PreferenceScreen screen = mock(PreferenceScreen.class); in testMeasurementCompletedUpdatesPreferences() local
286 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
288 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
290 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
292 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
294 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
296 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
298 when(screen.findPreference( in testMeasurementCompletedUpdatesPreferences()
300 mController.displayPreference(screen); in testMeasurementCompletedUpdatesPreferences()
343 PreferenceScreen screen = mock(PreferenceScreen.class); in settingUserIdAppliesNewIcons() local
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DProgressiveDisclosureMixin.java84 final PreferenceScreen screen = mFragment.getPreferenceScreen(); in onPreferenceClick() local
85 if (screen != null) { in onPreferenceClick()
86 screen.removePreference(preference); in onPreferenceClick()
88 screen.addPreference(pref); in onPreferenceClick()
122 public boolean shouldCollapse(PreferenceScreen screen) { in shouldCollapse() argument
123 return !mUserExpanded && screen.getPreferenceCount() > mTileLimit; in shouldCollapse()
129 public void collapse(PreferenceScreen screen) { in collapse() argument
130 final int itemCount = screen.getPreferenceCount(); in collapse()
131 if (!shouldCollapse(screen)) { in collapse()
139 final Preference preference = screen.getPreference(i); in collapse()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DSecurityFeatureProviderImplTest.java142 PreferenceScreen screen = getPreferenceScreen(); in updateTilesData_shouldUpdateMatchingPreference() local
147 mImpl.updatePreferencesToRunOnWorkerThread(mContext, screen, dashboardCategory); in updateTilesData_shouldUpdateMatchingPreference()
149 verify(screen.findPreference(MOCK_KEY)).setIcon(mMockDrawable); in updateTilesData_shouldUpdateMatchingPreference()
150 verify(screen.findPreference(MOCK_KEY)).setSummary(MOCK_SUMMARY); in updateTilesData_shouldUpdateMatchingPreference()
162 PreferenceScreen screen = getPreferenceScreen(); in updateTilesData_shouldNotUpdateAlreadyUpdatedPreference() local
163 when(screen.findPreference(MOCK_KEY).getSummary()).thenReturn(MOCK_SUMMARY); in updateTilesData_shouldNotUpdateAlreadyUpdatedPreference()
164 when(screen.findPreference(MOCK_KEY).getIcon()).thenReturn(mMockDrawable); in updateTilesData_shouldNotUpdateAlreadyUpdatedPreference()
170 mImpl.updatePreferencesToRunOnWorkerThread(mContext, screen, dashboardCategory); in updateTilesData_shouldNotUpdateAlreadyUpdatedPreference()
172 verify(screen.findPreference(MOCK_KEY), never()).setSummary(anyString()); in updateTilesData_shouldNotUpdateAlreadyUpdatedPreference()
177 PreferenceScreen screen = getPreferenceScreen(); in initPreferences_shouldLoadDefaults() local
[all …]
/packages/apps/Launcher3/
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/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DReviewPermissionsWearFragment.java128 PreferenceScreen screen = getPreferenceScreen(); in loadPreferences() local
129 if (screen == null) { in loadPreferences()
130 screen = getPreferenceManager().createPreferenceScreen(getActivity()); in loadPreferences()
131 setPreferenceScreen(screen); in loadPreferences()
133 screen.removeAll(); in loadPreferences()
177 screen.addPreference(preference); in loadPreferences()
183 screen.addPreference(mNewPermissionsCategory); in loadPreferences()
192 screen.addPreference(currentPermissionsCategory); in loadPreferences()
198 addTitlePreferenceToScreen(screen); in loadPreferences()
199 addActionPreferencesToScreen(screen); in loadPreferences()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DManualPrintersFragment.java82 PreferenceScreen screen = getPreferenceManager().createPreferenceScreen(getActivity()); in onServiceConnected() local
83 setPreferenceScreen(screen); in onServiceConnected()
86 screen.addPreference(addPrinterPreference); in onServiceConnected()
106 PreferenceScreen screen = getPreferenceScreen(); in onPrinterFound() local
109 for (int i = 0; i < screen.getPreferenceCount(); i++) { in onPrinterFound()
110 if (screen.getPreference(i) instanceof ManualPrinterPreference) { in onPrinterFound()
111 ManualPrinterPreference preference = (ManualPrinterPreference) screen in onPrinterFound()
119 screen.addPreference(new ManualPrinterPreference(getContext(), printer)); in onPrinterFound()
125 PreferenceScreen screen = getPreferenceScreen(); in onPrinterLost() local
126 for (int i = 0; i < screen.getPreferenceCount(); i++) { in onPrinterLost()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DRadioButtonPickerFragment.java132 final PreferenceScreen screen = getPreferenceScreen(); in updateCandidates() local
133 screen.removeAll(); in updateCandidates()
140 screen.addPreference(nonePref); in updateCandidates()
147 screen.addPreference(pref); in updateCandidates()
169 final PreferenceScreen screen = getPreferenceScreen(); in updateCheckedState() local
170 if (screen != null) { in updateCheckedState()
171 final int count = screen.getPreferenceCount(); in updateCheckedState()
173 final Preference pref = screen.getPreference(i); in updateCheckedState()
187 final PreferenceScreen screen = getPreferenceScreen(); in mayCheckOnlyRadioButton() local
189 if (screen != null && screen.getPreferenceCount() == 1) { in mayCheckOnlyRadioButton()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java244 public void displayPreference(PreferenceScreen screen) { in displayPreference() argument
245 super.displayPreference(screen); in displayPreference()
247 setupEntityHeader(screen); in displayPreference()
249 mButtonsPref = (LayoutPreference) screen.findPreference(KEY_BUTTONS_PREF); in displayPreference()
254 (WifiDetailPreference) screen.findPreference(KEY_SIGNAL_STRENGTH_PREF); in displayPreference()
255 mLinkSpeedPref = (WifiDetailPreference) screen.findPreference(KEY_LINK_SPEED); in displayPreference()
256 mFrequencyPref = (WifiDetailPreference) screen.findPreference(KEY_FREQUENCY_PREF); in displayPreference()
257 mSecurityPref = (WifiDetailPreference) screen.findPreference(KEY_SECURITY_PREF); in displayPreference()
259 mMacAddressPref = (WifiDetailPreference) screen.findPreference(KEY_MAC_ADDRESS_PREF); in displayPreference()
260 mIpAddressPref = (WifiDetailPreference) screen.findPreference(KEY_IP_ADDRESS_PREF); in displayPreference()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java270 int screen, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
273 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
276 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
293 modelShortcut.screen == shortcut.screen && in checkItemInfoLocked()
423 final int screen, final int cellX, final int cellY) { in moveItemInDatabase() argument
425 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY + in moveItemInDatabase()
426 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")"; in moveItemInDatabase()
435 if (context instanceof Launcher && screen < 0 && in moveItemInDatabase()
437 item.screen = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase()
439 item.screen = screen; in moveItemInDatabase()
[all …]
DWorkspace.java493 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) { in addInScreen() argument
494 addInScreen(child, container, screen, x, y, spanX, spanY, false); in addInScreen()
509 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY, in addInScreen() argument
512 if (screen < 0 || screen >= getChildCount()) { in addInScreen()
514 + " (was " + screen + "); skipping child"); in addInScreen()
529 if (screen < 0) { in addInScreen()
530 screen = mLauncher.getHotseat().getOrderInHotseat(x, y); in addInScreen()
534 x = mLauncher.getHotseat().getCellXFromOrder(screen); in addInScreen()
535 y = mLauncher.getHotseat().getCellYFromOrder(screen); in addInScreen()
543 layout = (CellLayout) getChildAt(screen); in addInScreen()
[all …]
DInstallShortcutReceiver.java255 final int screen = Launcher.DEFAULT_SCREEN; in processInstallShortcut() local
257 int si = screen + (int) ((i / 2f) + 0.5f) * ((i % 2 == 1) ? 1 : -1); in processInstallShortcut()
279 String name, final Intent intent, final int screen, boolean shortcutExists, in installShortcut() argument
282 if (findEmptyCell(context, items, tmpCoordinates, screen)) { in installShortcut()
303 NEW_APPS_PAGE_KEY, screen); in installShortcut()
305 if (newAppsScreen == -1 || newAppsScreen == screen) { in installShortcut()
309 editor.putInt(NEW_APPS_PAGE_KEY, screen); in installShortcut()
318 LauncherSettings.Favorites.CONTAINER_DESKTOP, screen, in installShortcut()
337 int screen) { in findEmptyCell() argument
347 if (item.screen == screen) { in findEmptyCell()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionAppsFragment.java190 PreferenceScreen screen = getPreferenceScreen(); in onPermissionsLoaded() local
191 if (screen == null) { in onPermissionsLoaded()
192 screen = getPreferenceManager().createPreferenceScreen(getActivity()); in onPermissionsLoaded()
193 setPreferenceScreen(screen); in onPermissionsLoaded()
196 screen.setOrderingAsAdded(false); in onPermissionsLoaded()
199 for (int i = 0, n = screen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
200 preferencesToRemove.add(screen.getPreference(i).getKey()); in onPermissionsLoaded()
222 Preference existingPref = screen.findPreference(key); in onPermissionsLoaded()
237 screen.removePreference(existingPref); in onPermissionsLoaded()
290 screen.addPreference(pref); in onPermissionsLoaded()
[all …]
DManagePermissionsFragment.java114 PreferenceScreen screen = getPreferenceScreen(); in updatePermissionsUi() local
115 if (screen == null) { in updatePermissionsUi()
116 screen = getPreferenceManager().createPreferenceScreen(getActivity()); in updatePermissionsUi()
117 setPreferenceScreen(screen); in updatePermissionsUi()
119 screen.removeAll(); in updatePermissionsUi()
142 screen.addPreference(preference); in updatePermissionsUi()
148 if (screen.getPreferenceCount() != 0) { in updatePermissionsUi()
152 return screen; in updatePermissionsUi()
/packages/apps/Launcher2/
Dprint_db.py176 screen = row["screen"]
177 hotseat[screen] = row
187 screen = []
192 screen.append(m)
193 screens.append(screen)
196 screen = screens[row["screen"]]
206 screen[j][k] = occupied
207 screen[cellY][cellX] = row
209 for screen in screens:
212 for m in screen:
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DKeyboardFragment.java74 final PreferenceScreen screen = in onCreatePreferences() local
76 screen.setTitle(R.string.system_keyboard); in onCreatePreferences()
77 setPreferenceScreen(screen); in onCreatePreferences()
90 screen.addPreference(currentKeyboard); in onCreatePreferences()
96 screen.addPreference(manageKeyboards); in onCreatePreferences()
142 final PreferenceScreen screen = getPreferenceScreen(); in updatePrefs() local
156 screen.addPreference(preference); in updatePrefs()
164 for (int i = 0; i < screen.getPreferenceCount();) { in updatePrefs()
165 final Preference preference = screen.getPreference(i); in updatePrefs()
170 screen.removePreference(preference); in updatePrefs()
/packages/apps/Settings/src/com/android/settings/
DPrivacySettings.java91 final PreferenceScreen screen = getPreferenceScreen(); in onCreate() local
95 setPreferenceReferences(screen); in onCreate()
99 final int screenPreferenceCount = screen.getPreferenceCount(); in onCreate()
101 Preference preference = screen.getPreference(i); in onCreate()
103 screen.removePreference(preference); in onCreate()
121 void setPreferenceReferences(PreferenceScreen screen) { in setPreferenceReferences() argument
122 mBackup = screen.findPreference(BACKUP_DATA); in setPreferenceReferences()
124 mAutoRestore = (SwitchPreference) screen.findPreference(AUTO_RESTORE); in setPreferenceReferences()
127 mConfigure = screen.findPreference(CONFIGURE_ACCOUNT); in setPreferenceReferences()
128 mManageData = screen.findPreference(DATA_MANAGEMENT); in setPreferenceReferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DProgressiveDisclosureTest.java202 final PreferenceScreen screen = mPreferenceFragment.getPreferenceScreen(); in collapse_shouldDoNothingIfNotCollapsible() local
203 when(screen.getPreferenceCount()).thenReturn(5); in collapse_shouldDoNothingIfNotCollapsible()
206 mMixin.collapse(screen); in collapse_shouldDoNothingIfNotCollapsible()
209 verify(screen, never()).addPreference(any(Preference.class)); in collapse_shouldDoNothingIfNotCollapsible()
210 verify(screen, never()).removePreference(any(Preference.class)); in collapse_shouldDoNothingIfNotCollapsible()
215 final PreferenceScreen screen = mPreferenceFragment.getPreferenceScreen(); in collapse_shouldRemovePrefAndAddExpandButton() local
216 when(screen.getPreferenceCount()).thenReturn(5); in collapse_shouldRemovePrefAndAddExpandButton()
217 when(screen.getPreference(anyInt())).thenReturn(mPreference); in collapse_shouldRemovePrefAndAddExpandButton()
220 mMixin.collapse(screen); in collapse_shouldRemovePrefAndAddExpandButton()
224 verify(screen).addPreference(any(ExpandPreference.class)); in collapse_shouldRemovePrefAndAddExpandButton()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DInactiveApps.java55 final PreferenceScreen screen = getPreferenceManager() in onCreatePreferences() local
57 screen.setTitle(R.string.inactive_apps_title); in onCreatePreferences()
58 setPreferenceScreen(screen); in onCreatePreferences()
63 final PreferenceScreen screen = getPreferenceScreen(); in init() local
64 screen.removeAll(); in init()
65 screen.setOrderingAsAdded(false); in init()
80 screen.addPreference(p); in init()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java191 long screen = c.getLong(screenIndex); in importWorkspaceItems() local
200 Long newScreenId = screenIdMap.get(screen); in importWorkspaceItems()
202 …eLog.d(TAG, String.format("Skipping item %d, type %d not on a valid screen %d", id, type, screen)); in importWorkspaceItems()
206 screen = newScreenId; in importWorkspaceItems()
207 if (createEmptyRowOnFirstScreen && screen == Workspace.FIRST_SCREEN_ID) { in importWorkspaceItems()
217 mHotseatSize = Math.max(mHotseatSize, (int) screen + 1); in importWorkspaceItems()
278 values.put(Favorites.SCREEN, screen); in importWorkspaceItems()
449 long screen = 0; in insertAndCheck() local
450 while (mExistingItems.get(screen) != null) { in insertAndCheck()
451 screen++; in insertAndCheck()
[all …]
/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/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipEditor.java200 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in onCreate() local
201 for (int i = 0, n = screen.getPreferenceCount(); i < n; i++) { in onCreate()
202 setupPreference(screen.getPreference(i)); in onCreate()
206 screen.setTitle(R.string.sip_edit_new_title); in onCreate()
577 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in loadAdvancedPreferences() local
580 PreferenceGroup group = (PreferenceGroup) screen.findPreference( in loadAdvancedPreferences()
582 screen.removePreference(group); in loadAdvancedPreferences()
585 int order = screen.getPreferenceCount(); in loadAdvancedPreferences()
597 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in show() local
599 screen.addPreference(pref); in show()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataPlanUsageSummary.java136 PreferenceScreen screen = getPreferenceScreen(); in addDataPlanSection() local
137 screen.setTitle(context.getString(R.string.data_usage_summary_title)); in addDataPlanSection()
141 screen.addPreference(preferenceCategory); in addDataPlanSection()
160 setPreferenceScreen(screen); in addDataPlanSection()
216 PreferenceScreen screen = getPreferenceScreen(); in inflatePreferences() local
217 pref.setOrder(screen.getPreferenceCount()); in inflatePreferences()
218 screen.addPreference(pref); in inflatePreferences()
273 PreferenceScreen screen = getPreferenceScreen(); in updateState() local
274 for (int i = 1, preferenceCount = screen.getPreferenceCount(); i < preferenceCount; i++) { in updateState()
275 ((TemplatePreferenceCategory) screen.getPreference(i)).pushTemplates(services); in updateState()
/packages/apps/Settings/src/com/android/settings/network/
DNetworkScorerPicker.java73 final PreferenceScreen screen = getPreferenceScreen(); in updateCandidates() local
74 screen.removeAll(); in updateCandidates()
88 screen.addPreference(nonePref); in updateCandidates()
99 screen.addPreference(pref); in updateCandidates()
124 final PreferenceScreen screen = getPreferenceScreen(); in updateCheckedState() local
125 final int count = screen.getPreferenceCount(); in updateCheckedState()
127 final Preference pref = screen.getPreference(i); in updateCheckedState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DLegalFragment.java40 final PreferenceScreen screen = getPreferenceScreen(); in onCreatePreferences() local
43 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
45 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
47 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
49 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
51 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTimeZoneFragment.java59 final PreferenceScreen screen = getPreferenceManager().createPreferenceScreen( in onCreatePreferences() local
61 screen.setTitle(R.string.system_set_time_zone); in onCreatePreferences()
62 setPreferenceScreen(screen); in onCreatePreferences()
71 screen.addPreference(zonePref); in onCreatePreferences()
107 final PreferenceScreen screen = getPreferenceScreen(); in updateZones() local
108 final int count = screen.getPreferenceCount(); in updateZones()
110 final Preference pref = screen.getPreference(i); in updateZones()

12345678