Home
last modified time | relevance | path

Searched refs:getBoolean (Results 1 – 25 of 219) sorted by relevance

123456789

/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java380 mController.getUi().setUseQuickControls(sharedPreferences.getBoolean(key, false)); in onSharedPreferenceChanged()
445 return mPrefs.getBoolean(PREF_DEBUG_MENU, false); in isDebugEnabled()
624 return mPrefs.getBoolean(PREF_FORCE_USERSCALABLE, false); in forceEnableUserScalable()
656 return mPrefs.getBoolean(PREF_ALLOW_APP_TABS, false); in allowAppTabs()
660 return mPrefs.getBoolean(PREF_OPEN_IN_BACKGROUND, false); in openInBackground()
664 return mPrefs.getBoolean(PREF_ENABLE_JAVASCRIPT, true); in enableJavascript()
680 return mPrefs.getBoolean(PREF_LOAD_PAGE, true); in loadPageInOverviewMode()
684 return mPrefs.getBoolean(PREF_AUTOFIT_PAGES, true); in autofitPages()
688 return mPrefs.getBoolean(PREF_BLOCK_POPUP_WINDOWS, true); in blockPopupWindows()
692 return mPrefs.getBoolean(PREF_LOAD_IMAGES, true); in loadImages()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSettingsValues.java113 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues()
115 mSoundOn = prefs.getBoolean(Settings.PREF_SOUND_ON, in SettingsValues()
116 res.getBoolean(R.bool.config_default_sound_enabled)); in SettingsValues()
126 mIncludesOtherImesInLanguageSwitchList = prefs.getBoolean( in SettingsValues()
132 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues()
190 return hasVibrator && prefs.getBoolean(Settings.PREF_VIBRATE_ON, in isVibrateOn()
191 res.getBoolean(R.bool.config_default_vibration_enabled)); in isVibrateOn()
227 final boolean showPopupOption = resources.getBoolean( in isKeyPreviewPopupEnabled()
229 if (!showPopupOption) return resources.getBoolean(R.bool.config_default_popup_preview); in isKeyPreviewPopupEnabled()
230 return sp.getBoolean(Settings.PREF_POPUP_ON, in isKeyPreviewPopupEnabled()
[all …]
DSettings.java146 final boolean showVoiceKeyOption = res.getBoolean( in onCreate()
164 final boolean showPopupOption = res.getBoolean( in onCreate()
170 final boolean showBigramSuggestionsOption = res.getBoolean( in onCreate()
211 res.getBoolean(R.bool.config_enable_usability_study_mode_option) in onCreate()
222 checkbox.setChecked(prefs.getBoolean(PREF_USABILITY_STUDY_MODE, true)); in onCreate()
285 popupDismissDelay.setEnabled(prefs.getBoolean(PREF_POPUP_ON, true)); in onSharedPreferenceChanged()
339 final boolean vibrateOn = hasVibrator && sp.getBoolean(Settings.PREF_VIBRATE_ON, in refreshEnablingsOfKeypressSoundAndVibrationSettings()
340 res.getBoolean(R.bool.config_default_vibration_enabled)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
345 final boolean soundOn = sp.getBoolean(Settings.PREF_SOUND_ON, in refreshEnablingsOfKeypressSoundAndVibrationSettings()
346 res.getBoolean(R.bool.config_default_sound_enabled)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
/packages/apps/Email/src/com/android/email/
DPreferences.java122 return mSharedPreferences.getBoolean(ENABLE_DEBUG_LOGGING, false); in getEnableDebugLogging()
130 return mSharedPreferences.getBoolean(ENABLE_EXCHANGE_LOGGING, false); in getEnableExchangeLogging()
138 return mSharedPreferences.getBoolean(ENABLE_EXCHANGE_FILE_LOGGING, false); in getEnableExchangeFileLogging()
146 return mSharedPreferences.getBoolean(INHIBIT_GRAPHICS_ACCELERATION, false); in getInhibitGraphicsAcceleration()
154 return mSharedPreferences.getBoolean(FORCE_ONE_MINUTE_REFRESH, false); in getForceOneMinuteRefresh()
162 return mSharedPreferences.getBoolean(ENABLE_STRICT_MODE, false); in getEnableStrictMode()
204 return mSharedPreferences.getBoolean(BACKGROUND_ATTACHMENTS, false); in getBackgroundAttachments()
296 return getBoolean(context, account.getEmailAddress(), REQUIRE_MANUAL_SYNC_DIALOG_SHOWN, in getHasShownRequireManualSync()
341 private boolean getBoolean(Context context, String account, String key, boolean def) { in getBoolean() method in Preferences
342 return mSharedPreferences.getBoolean(makeKey(account, key), def); in getBoolean()
/packages/providers/MediaProvider/src/com/android/providers/media/
DUsbReceiver.java36 boolean connected = extras.getBoolean(UsbManager.USB_CONFIGURED); in onReceive()
37 boolean mtpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_MTP); in onReceive()
38 boolean ptpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_PTP); in onReceive()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java50 return mContext.getResources().getBoolean(R.bool.config_sort_order_user_changeable); in isSortOrderUserChangeable()
54 if (mContext.getResources().getBoolean(R.bool.config_default_sort_order_primary)) { in getDefaultSortOrder()
84 return mContext.getResources().getBoolean(R.bool.config_display_order_user_changeable); in isDisplayOrderUserChangeable()
88 if (mContext.getResources().getBoolean(R.bool.config_default_display_order_primary)) { in getDefaultDisplayOrder()
DContactsPreferenceActivity.java61 return !context.getResources().getBoolean(R.bool.config_sort_order_user_changeable) in isEmpty()
62 && !context.getResources().getBoolean(R.bool.config_display_order_user_changeable); in isEmpty()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSettings.java70 mKeySound = mSharedPref.getBoolean(ANDPY_CONFS_KEYSOUND_KEY, true); in initConfs()
71 mVibrate = mSharedPref.getBoolean(ANDPY_CONFS_VIBRATE_KEY, false); in initConfs()
72 mPrediction = mSharedPref.getBoolean(ANDPY_CONFS_PREDICTION_KEY, true); in initConfs()
DXmlKeyboardLoader.java313 repeat = getBoolean(mXrp, XMLATTR_KEY_REPEAT, defAttr.repeat); in getAttributes()
314 balloon = getBoolean(mXrp, XMLATTR_KEY_BALLOON, defAttr.balloon); in getAttributes()
476 boolean cacheFlag = getBoolean(xrp, in loadKeyboard()
478 boolean stickyFlag = getBoolean(xrp, in loadKeyboard()
481 boolean isQwerty = getBoolean(xrp, XMLATTR_QWERTY, in loadKeyboard()
483 boolean isQwertyUpperCase = getBoolean(xrp, in loadKeyboard()
728 boolean repeat = getBoolean(xrp, XMLATTR_KEY_REPEAT, attrKey.repeat); in getToggleStates()
729 boolean balloon = getBoolean(xrp, XMLATTR_KEY_BALLOON, attrKey.balloon); in getToggleStates()
817 private boolean getBoolean(XmlResourceParser xrp, String name, in getBoolean() method in XmlKeyboardLoader
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java130 .getBoolean(CellBroadcastSettings.KEY_ENABLE_ETWS_TEST_ALERTS, false); in isMessageEnabledByUser()
136 return PreferenceManager.getDefaultSharedPreferences(this).getBoolean( in isMessageEnabledByUser()
140 return PreferenceManager.getDefaultSharedPreferences(this).getBoolean( in isMessageEnabledByUser()
145 .getBoolean(CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in isMessageEnabledByUser()
150 .getBoolean(CellBroadcastSettings.KEY_ENABLE_CMAS_TEST_ALERTS, false); in isMessageEnabledByUser()
197 if (prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_SPEECH, true)) { in openEmergencyAlertNotification()
DCellBroadcastSettings.java117 boolean showEtwsSettings = res.getBoolean(R.bool.show_etws_settings); in onCreate()
152 if (!res.getBoolean(R.bool.show_cmas_settings)) { in onCreate()
160 if (!res.getBoolean(R.bool.show_brazil_settings)) { in onCreate()
DCellBroadcastConfigService.java121 boolean enableEmergencyAlerts = prefs.getBoolean( in onHandleIntent()
124 boolean enableChannel50Alerts = res.getBoolean(R.bool.show_brazil_settings) && in onHandleIntent()
125 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_CHANNEL_50_ALERTS, true); in onHandleIntent()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DConfig.java317 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions); in showSuggestionsForZeroQuery()
322 return mContext.getResources().getBoolean(R.bool.show_zero_query_shortcuts); in showShortcutsForZeroQuery()
326 return mContext.getResources().getBoolean(R.bool.show_scrolling_suggestions); in showScrollingSuggestions()
330 return mContext.getResources().getBoolean(R.bool.show_scrolling_results); in showScrollingResults()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportExportDialogFragment.java79 final boolean contactsAreAvailable = getArguments().getBoolean(ARG_CONTACTS_ARE_AVAILABLE); in onCreateDialog()
96 && res.getBoolean(R.bool.config_allow_sim_import)) { in onCreateDialog()
99 if (res.getBoolean(R.bool.config_allow_import_from_sdcard)) { in onCreateDialog()
102 if (res.getBoolean(R.bool.config_allow_export_to_sdcard)) { in onCreateDialog()
107 if (res.getBoolean(R.bool.config_allow_share_visible_contacts)) { in onCreateDialog()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoActivity.java57 isDialog = icicle.getBoolean(EventInfoFragment.BUNDLE_KEY_IS_DIALOG); in onCreate()
76 if (!res.getBoolean(R.bool.agenda_show_event_info_full_screen) in onCreate()
77 && !res.getBoolean(R.bool.show_event_info_full_screen)) { in onCreate()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactEntryListFragment.java269 mSectionHeaderDisplayEnabled = savedState.getBoolean(KEY_SECTION_HEADER_DISPLAY_ENABLED); in restoreSavedState()
270 mPhotoLoaderEnabled = savedState.getBoolean(KEY_PHOTO_LOADER_ENABLED); in restoreSavedState()
271 mQuickContactEnabled = savedState.getBoolean(KEY_QUICK_CONTACT_ENABLED); in restoreSavedState()
272 mIncludeProfile = savedState.getBoolean(KEY_INCLUDE_PROFILE); in restoreSavedState()
273 mSearchMode = savedState.getBoolean(KEY_SEARCH_MODE); in restoreSavedState()
274 mVisibleScrollbarEnabled = savedState.getBoolean(KEY_VISIBLE_SCROLLBAR_ENABLED); in restoreSavedState()
277 mSelectionVisible = savedState.getBoolean(KEY_SELECTION_VISIBLE); in restoreSavedState()
278 mLegacyCompatibility = savedState.getBoolean(KEY_LEGACY_COMPATIBILITY); in restoreSavedState()
281 mDarkTheme = savedState.getBoolean(KEY_DARK_THEME); in restoreSavedState()
DContactPickerFragment.java98 mEditMode = savedState.getBoolean(KEY_EDIT_MODE); in restoreSavedState()
99 mCreateContactEnabled = savedState.getBoolean(KEY_CREATE_CONTACT_ENABLED); in restoreSavedState()
100 mShortcutRequested = savedState.getBoolean(KEY_SHORTCUT_REQUESTED); in restoreSavedState()
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneCapabilityTester.java90 return context.getResources().getBoolean(R.bool.config_use_two_panes); in isUsingTwoPanes()
97 return context.getResources().getBoolean(R.bool.config_use_two_panes_in_favorites); in isUsingTwoPanesInFavorites()
DAccountPromptUtils.java74 return getSharedPreferences(context).getBoolean(KEY_SHOW_ACCOUNT_PROMPT, true); in shouldShowAccountPrompt()
115 if (result.getBoolean(KEY_USER_SKIPPED_ACCOUNT_SETUP)) { in getAccountManagerCallback()
/packages/apps/Email/src/com/android/email/service/
DEasAuthenticatorService.java75 options.getBoolean(OPTIONS_CONTACTS_SYNC_ENABLED)) { in addAccount()
85 options.getBoolean(OPTIONS_CALENDAR_SYNC_ENABLED)) { in addAccount()
95 options.getBoolean(OPTIONS_EMAIL_SYNC_ENABLED)) { in addAccount()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java162 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
168 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences()
176 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences()
291 final boolean isEQEnabled = prefs.getBoolean(Key.eq_enabled.toString(), in initEffectsPreferences()
296 final boolean isEnabledPR = prefs.getBoolean(Key.pr_enabled.toString(), in initEffectsPreferences()
350 virtualizerEffect.setEnabled(prefs.getBoolean( in setParameterBoolean()
359 bassBoostEffect.setEnabled(prefs.getBoolean(Key.bb_enabled.toString(), in setParameterBoolean()
368 equalizerEffect.setEnabled(prefs.getBoolean(Key.eq_enabled.toString(), in setParameterBoolean()
427 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in setParameterBoolean()
511 value = prefs.getBoolean(key.toString(), value); in getParameterBoolean()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DComboPreferences.java116 public boolean getBoolean(String key, boolean defValue) { in getBoolean() method in ComboPreferences
118 return mPrefGlobal.getBoolean(key, defValue); in getBoolean()
120 return mPrefLocal.getBoolean(key, defValue); in getBoolean()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java109 if (data.getBoolean(KEY_DREAM)) { in onCreate()
189 boolean random = data.getBoolean(KEY_RANDOM_ORDER, false); in initializeData()
197 boolean repeat = data.getBoolean(KEY_REPEAT); in initializeData()
205 boolean repeat = data.getBoolean(KEY_REPEAT); in initializeData()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnJAJP.java1489 mEnableLearning = pref.getBoolean("opt_enable_learning_ja", true); in processHardwareKeyboardSpaceKey()
1490 mEnablePrediction = pref.getBoolean("opt_prediction_ja", true); in processHardwareKeyboardSpaceKey()
1496 mEnableLearning = pref.getBoolean("opt_enable_learning_en", true); in processHardwareKeyboardSpaceKey()
1497 mEnablePrediction = pref.getBoolean("opt_prediction_en", false); in processHardwareKeyboardSpaceKey()
1499 mEnableSpellCorrection = pref.getBoolean("opt_spell_correction_en", false); in processHardwareKeyboardSpaceKey()
1501 mEnableSpellCorrection = pref.getBoolean("opt_spell_correction_en", true); in processHardwareKeyboardSpaceKey()
2115 mEnableLearning = pref.getBoolean("opt_enable_learning_en", true); in changeEngineMode()
2116 mEnablePrediction = pref.getBoolean("opt_prediction_en", false); in changeEngineMode()
2118 mEnableSpellCorrection = pref.getBoolean("opt_spell_correction_en", false); in changeEngineMode()
2120 mEnableSpellCorrection = pref.getBoolean("opt_spell_correction_en", true); in changeEngineMode()
[all …]
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java122 public boolean getBoolean(String key, boolean defValue) { in getBoolean() method in ComboPreferences
124 return mPrefGlobal.getBoolean(key, defValue); in getBoolean()
126 return mPrefLocal.getBoolean(key, defValue); in getBoolean()

123456789