Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java69 return "fallback: " + mContext.getResources().getBoolean( in dumpPickupSubtypePerformsProxCheck()
77 return getBoolean("doze.display.supported", R.bool.doze_display_state_supported); in getDisplayStateSupported()
99 return getBoolean("doze.pulse.sigmotion", R.bool.doze_pulse_on_significant_motion); in getPulseOnSigMotion()
103 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); in getVibrateOnSigMotion()
107 return SystemProperties.getBoolean("doze.vibrate.pickup", false); in getVibrateOnPickup()
111 return getBoolean("doze.pulse.proxcheck", R.bool.doze_proximity_check_before_pulse); in getProxCheckBeforePulse()
122 private boolean getBoolean(String propName, int resId) { in getBoolean() method in DozeParameters
123 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean()
141 return mContext.getResources().getBoolean(R.bool.doze_pickup_performs_proximity_check); in getPickupSubtypePerformsProxCheck()
DAutoTileManager.java47 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) { in AutoTileManager()
50 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) { in AutoTileManager()
53 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) { in AutoTileManager()
67 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) { in AutoTileManager()
71 if (!Prefs.getBoolean(context, Key.QS_NIGHTDISPLAY_ADDED, false) in AutoTileManager()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java197 mVibrationDisabled = mParser.getBoolean(KEY_VIBRATION_DISABLED, true); in updateConstants()
198 mAnimationDisabled = mParser.getBoolean(KEY_ANIMATION_DISABLED, true); in updateConstants()
199 mSoundTriggerDisabled = mParser.getBoolean(KEY_SOUNDTRIGGER_DISABLED, true); in updateConstants()
200 mFullBackupDeferred = mParser.getBoolean(KEY_FULLBACKUP_DEFERRED, true); in updateConstants()
201 mKeyValueBackupDeferred = mParser.getBoolean(KEY_KEYVALUE_DEFERRED, true); in updateConstants()
202 mFireWallDisabled = mParser.getBoolean(KEY_FIREWALL_DISABLED, false); in updateConstants()
203 mAdjustBrightnessDisabled = mParser.getBoolean(KEY_ADJUST_BRIGHTNESS_DISABLED, false); in updateConstants()
205 mDataSaverDisabled = mParser.getBoolean(KEY_DATASAVER_DISABLED, true); in updateConstants()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java213 if (restrictions.getBoolean(key)) { in writeRestrictions()
255 return in != null && in.getBoolean(restriction); in contains()
276 if (in.getBoolean(key, false)) { in merge()
347 if (!in.getBoolean(key)) { in sortToGlobalAndLocal()
382 if (a.getBoolean(key) != b.getBoolean(key)) { in areEqual()
387 if (a.getBoolean(key) != b.getBoolean(key)) { in areEqual()
403 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
404 final boolean prevValue = prevRestrictions.getBoolean(key); in applyUserRestrictions()
548 if (restrictions.getBoolean(key, false)) { in dumpRestrictions()
598 if (oldRestrictions.getBoolean(restriction, false) != in restrictionsChanged()
[all …]
/frameworks/base/core/java/android/provider/
DBlockedNumberContract.java247 return res != null && res.getBoolean(RES_NUMBER_IS_BLOCKED, false); in isBlocked()
283 return res != null && res.getBoolean(RES_CAN_BLOCK_NUMBERS, false); in canCurrentUserBlockNumbers()
352 return res != null && res.getBoolean(RES_NUMBER_IS_BLOCKED, false); in shouldSystemBlockNumber()
361 return new BlockSuppressionStatus(res.getBoolean(RES_IS_BLOCKING_SUPPRESSED, false), in getBlockSuppressionStatus()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java87 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in tagSocketFd()
109 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in unTagSocketFd()
123 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in setKernelCounterSet()
133 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in resetKernelUidStats()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/
DSettings.java80 public boolean getBoolean(String key) { in getBoolean() method in Settings
103 mPreferStaticShadows = customizations.getBoolean( in generateShadowSetting()
123 public boolean getBoolean(String resourceName, boolean defaultValue) { in getBoolean() method in Settings.Customizations
125 return resId > 0 ? mResources.getBoolean(resId) : defaultValue; in getBoolean()
/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java249 if (!jobExtras.getBoolean("SyncManagerJob", false)) { in maybeCreateFromJobExtras()
261 allowParallelSyncs = jobExtras.getBoolean("allowParallelSyncs", false); in maybeCreateFromJobExtras()
262 isPeriodic = jobExtras.getBoolean("isPeriodic", false); in maybeCreateFromJobExtras()
366 if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) { in dump()
414 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false); in isInitialization()
418 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false); in isExpedited()
422 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, false); in ignoreBackoff()
426 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_DISALLOW_METERED, false); in isNotAllowedOnMetered()
430 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, false); in isManual()
434 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, false); in isIgnoreSettings()
/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/
DConfig.java57 mCompatEnabled = mSharedPref.getBoolean(KEY_ENABLED, false); in init()
58 mReplaceAll = mSharedPref.getBoolean(KEY_REPLACE_ALL, false); in init()
59 mDownloadable = mSharedPref.getBoolean(KEY_DOWNLOADABLE, false); in init()
60 mIndicator = mSharedPref.getBoolean(KEY_INDICATOR, false); in init()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSimpleInflater.java139 itemCheckable = a.getBoolean(R.styleable.MenuItem_android_checkable, false) ? 1 : 0; in readItem()
141 boolean itemChecked = a.getBoolean(R.styleable.MenuItem_android_checked, false); in readItem()
142 boolean itemVisible = a.getBoolean(R.styleable.MenuItem_android_visible, false); in readItem()
143 boolean itemEnabled = a.getBoolean(R.styleable.MenuItem_android_enabled, false); in readItem()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMockableSystemProperties.java31 public boolean getBoolean(String key, boolean def) { in getBoolean() method in MockableSystemProperties
32 return SystemProperties.getBoolean(key, def); in getBoolean()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSystemPropertyService.java32 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean() method in SystemPropertyService
33 return android.os.SystemProperties.getBoolean(key, defaultValue); in getBoolean()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTetherUtil.java27 return configManager.getConfig().getBoolean(CarrierConfigManager in isEntitlementCheckRequired()
36 if (SystemProperties.getBoolean("net.tethering.noprovisioning", false) in isProvisioningNeeded()
/frameworks/base/telephony/java/android/telephony/
DSmsManager.java1656 config.getBoolean(MMS_CONFIG_APPEND_TRANSACTION_ID)); in getMmsConfig()
1657 filtered.putBoolean(MMS_CONFIG_MMS_ENABLED, config.getBoolean(MMS_CONFIG_MMS_ENABLED)); in getMmsConfig()
1659 config.getBoolean(MMS_CONFIG_GROUP_MMS_ENABLED)); in getMmsConfig()
1661 config.getBoolean(MMS_CONFIG_NOTIFY_WAP_MMSC_ENABLED)); in getMmsConfig()
1662 filtered.putBoolean(MMS_CONFIG_ALIAS_ENABLED, config.getBoolean(MMS_CONFIG_ALIAS_ENABLED)); in getMmsConfig()
1664 config.getBoolean(MMS_CONFIG_ALLOW_ATTACH_AUDIO)); in getMmsConfig()
1666 config.getBoolean(MMS_CONFIG_MULTIPART_SMS_ENABLED)); in getMmsConfig()
1668 config.getBoolean(MMS_CONFIG_SMS_DELIVERY_REPORT_ENABLED)); in getMmsConfig()
1670 config.getBoolean(MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION)); in getMmsConfig()
1672 config.getBoolean(MMS_CONFIG_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES)); in getMmsConfig()
[all …]
/frameworks/base/core/java/android/security/keymaster/
DKeyCharacteristics.java143 public boolean getBoolean(int tag) { in getBoolean() method in KeyCharacteristics
145 return hwEnforced.getBoolean(tag); in getBoolean()
147 return swEnforced.getBoolean(tag); in getBoolean()
/frameworks/base/core/java/com/android/internal/os/
DRoSystemProperties.java35 SystemProperties.getBoolean("ro.config.low_ram", false);
39 SystemProperties.getBoolean("ro.fw.system_user_split", false);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java84 .getBoolean(com.android.internal.R.bool.config_dreamsEnabledByDefault); in DreamBackend()
86 .getBoolean(com.android.internal.R.bool.config_dreamsActivatedOnSleepByDefault); in DreamBackend()
88 .getBoolean(com.android.internal.R.bool.config_dreamsActivatedOnDockByDefault); in DreamBackend()
142 return getBoolean(Settings.Secure.SCREENSAVER_ENABLED, mDreamsEnabledByDefault); in isEnabled()
151 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, in isActivatedOnDock()
161 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, in isActivatedOnSleep()
170 private boolean getBoolean(String key, boolean def) { in getBoolean() method in DreamBackend
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java645 boolean getBoolean(int criterion) { in getBoolean() method in UiSelector
668 if (node.isChecked() != getBoolean(criterion)) { in isMatchFor()
685 if (node.isClickable() != getBoolean(criterion)) { in isMatchFor()
690 if (node.isCheckable() != getBoolean(criterion)) { in isMatchFor()
695 if (node.isLongClickable() != getBoolean(criterion)) { in isMatchFor()
752 if (node.isEnabled() != getBoolean(criterion)) { in isMatchFor()
757 if (node.isFocusable() != getBoolean(criterion)) { in isMatchFor()
762 if (node.isFocused() != getBoolean(criterion)) { in isMatchFor()
781 if (node.isScrollable() != getBoolean(criterion)) { in isMatchFor()
786 if (node.isSelected() != getBoolean(criterion)) { in isMatchFor()
/frameworks/base/core/java/android/content/
DSyncAdaptersCache.java70 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_userVisible, true); in parseServiceAttributes()
72 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_supportsUploading, in parseServiceAttributes()
75 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_isAlwaysSyncable, in parseServiceAttributes()
78 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_allowParallelSyncs, in parseServiceAttributes()
/frameworks/base/services/java/com/android/server/
DSystemServer.java534 if (!SystemProperties.getBoolean("config.disable_noncore", false)) { in startBootstrapServices()
590 boolean disableOtaDexopt = SystemProperties.getBoolean("config.disable_otadexopt", in startBootstrapServices()
691 boolean disableStorage = SystemProperties.getBoolean("config.disable_storage", false); in startOtherServices()
692 boolean disableBluetooth = SystemProperties.getBoolean("config.disable_bluetooth", false); in startOtherServices()
693 boolean disableLocation = SystemProperties.getBoolean("config.disable_location", false); in startOtherServices()
694 boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false); in startOtherServices()
695 … boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false); in startOtherServices()
696 boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false); in startOtherServices()
697 … boolean disableNetworkTime = SystemProperties.getBoolean("config.disable_networktime", false); in startOtherServices()
698 boolean disableRtt = SystemProperties.getBoolean("config.disable_rtt", false); in startOtherServices()
[all …]
/frameworks/support/core-utils/java/android/support/v4/app/
DAppLaunchChecker.java51 .getBoolean(KEY_STARTED_FROM_LAUNCHER, false); in hasStartedFromLauncher()
67 if (sp.getBoolean(KEY_STARTED_FROM_LAUNCHER, false)) { in onActivityCreate()
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DPreferenceDataStoreTest.java167 when(mDataStore.getBoolean(anyString(), anyBoolean())).thenReturn(true); in testInitialValueIsFromDataStoreOnPreference()
185 when(mDataStore.getBoolean(anyString(), anyBoolean())).thenReturn(true); in testInitialValueIsFromDataStoreOnPreferenceManager()
483 verify(mDataStore, atLeast(0)).getBoolean(eq(KEY), anyBoolean()); in putBooleanTestCommon()
488 assertEquals(false, mSharedPref.getBoolean(KEY, false)); in putBooleanTestCommon()
497 mPreference.getBoolean(true); in testGetBooleanWithDataStoreOnPref()
499 verify(mDataStore, atLeastOnce()).getBoolean(eq(KEY), eq(true)); in testGetBooleanWithDataStoreOnPref()
508 mPreference.getBoolean(true); in testGetBooleanWithDataStoreOnMgr()
510 verify(mDataStore, atLeastOnce()).getBoolean(eq(KEY), eq(true)); in testGetBooleanWithDataStoreOnMgr()
DPreferencePersistTest.java355 boolean result = mPreference.getBoolean(expected); in boolean_retrieveWhenEmpty_returnsDefault()
368 assertEquals(expected, mSharedPref.getBoolean(KEY, !expected)); in boolean_persist_getsStoredToSharedPrefs()
379 assertEquals(false, mSharedPref.getBoolean(KEY, false)); in boolean_persistWhileDisabled_notPersisted()
388 boolean result = mPreference.getBoolean(!expected); in boolean_persistAndRetrieve_returnsPersistedValue()
400 boolean result = mPreference.getBoolean(!expected); in boolean_persistTwiceAndRetrieve_returnsSecondValue()
/frameworks/support/compat/java/android/support/v4/content/res/
DTypedArrayUtils.java88 return a.getBoolean(resId, defaultValue); in getNamedBoolean()
193 public static boolean getBoolean(TypedArray a, @StyleableRes int index, in getBoolean() method in TypedArrayUtils
195 boolean val = a.getBoolean(fallbackIndex, defaultValue); in getBoolean()
196 return a.getBoolean(index, val); in getBoolean()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DHelpUtilsTest.java93 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentTrue()
111 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentFalse()
125 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentTrue()
139 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentFalse()

12345678910>>...21