Home
last modified time | relevance | path

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

12345678910>>...19

/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()
118 private boolean getBoolean(String propName, int resId) { in getBoolean() method in DozeParameters
119 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean()
137 return mContext.getResources().getBoolean(R.bool.doze_pickup_performs_proximity_check); in getPickupSubtypePerformsProxCheck()
DAutoTileManager.java41 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) { in AutoTileManager()
44 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) { in AutoTileManager()
47 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) { in AutoTileManager()
66 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) { in AutoTileManager()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java179 if (restrictions.getBoolean(key)) { in writeRestrictions()
227 if (in.getBoolean(key, false)) { in merge()
260 if (!in.getBoolean(key)) { in sortToGlobalAndLocal()
286 if (a.getBoolean(key) != b.getBoolean(key)) { in areEqual()
291 if (a.getBoolean(key) != b.getBoolean(key)) { in areEqual()
307 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
308 final boolean prevValue = prevRestrictions.getBoolean(key); in applyUserRestrictions()
458 if (restrictions.getBoolean(key, false)) { in dumpRestrictions()
/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.java79 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in tagSocketFd()
101 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in unTagSocketFd()
115 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in setKernelCounterSet()
125 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/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/opt/telephony/src/java/android/telephony/
DSmsManager.java1608 config.getBoolean(MMS_CONFIG_APPEND_TRANSACTION_ID)); in getMmsConfig()
1609 filtered.putBoolean(MMS_CONFIG_MMS_ENABLED, config.getBoolean(MMS_CONFIG_MMS_ENABLED)); in getMmsConfig()
1611 config.getBoolean(MMS_CONFIG_GROUP_MMS_ENABLED)); in getMmsConfig()
1613 config.getBoolean(MMS_CONFIG_NOTIFY_WAP_MMSC_ENABLED)); in getMmsConfig()
1614 filtered.putBoolean(MMS_CONFIG_ALIAS_ENABLED, config.getBoolean(MMS_CONFIG_ALIAS_ENABLED)); in getMmsConfig()
1616 config.getBoolean(MMS_CONFIG_ALLOW_ATTACH_AUDIO)); in getMmsConfig()
1618 config.getBoolean(MMS_CONFIG_MULTIPART_SMS_ENABLED)); in getMmsConfig()
1620 config.getBoolean(MMS_CONFIG_SMS_DELIVERY_REPORT_ENABLED)); in getMmsConfig()
1622 config.getBoolean(MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION)); in getMmsConfig()
1624 config.getBoolean(MMS_CONFIG_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES)); in getMmsConfig()
[all …]
/frameworks/base/services/java/com/android/server/
DSystemServer.java474 boolean disableOtaDexopt = SystemProperties.getBoolean("config.disable_otadexopt", in startBootstrapServices()
543 boolean disableStorage = SystemProperties.getBoolean("config.disable_storage", false); in startOtherServices()
544 boolean disableBluetooth = SystemProperties.getBoolean("config.disable_bluetooth", false); in startOtherServices()
545 boolean disableLocation = SystemProperties.getBoolean("config.disable_location", false); in startOtherServices()
546 boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false); in startOtherServices()
547 … boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false); in startOtherServices()
548 boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false); in startOtherServices()
549 … boolean disableNetworkTime = SystemProperties.getBoolean("config.disable_networktime", false); in startOtherServices()
550 boolean disableRtt = SystemProperties.getBoolean("config.disable_rtt", false); in startOtherServices()
551 boolean disableMediaProjection = SystemProperties.getBoolean("config.disable_mediaproj", in startOtherServices()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DHelpUtilsTest.java73 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentTrue()
91 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentFalse()
105 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentTrue()
119 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentFalse()
/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/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/support/core-utils/java/android/support/v4/content/res/
DTypedArrayUtils.java35 public static boolean getBoolean(TypedArray a, @StyleableRes int index, in getBoolean() method in TypedArrayUtils
37 boolean val = a.getBoolean(fallbackIndex, defaultValue); in getBoolean()
38 return a.getBoolean(index, val); in getBoolean()
/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/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/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/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/support/core-utils/java/android/support/v4/app/
DAppLaunchChecker.java52 .getBoolean(KEY_STARTED_FROM_LAUNCHER, false); in hasStartedFromLauncher()
68 if (sp.getBoolean(KEY_STARTED_FROM_LAUNCHER, false)) { in onActivityCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsConfiguration.java72 fakeShadows = res.getBoolean(R.bool.config_recents_fake_shadows); in RecentsConfiguration()
74 isGridEnabled = SystemProperties.getBoolean("ro.recents.grid", false); in RecentsConfiguration()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java1813 if (sa.getBoolean( in parseBaseApkCommon()
1821 if (sa.getBoolean( in parseBaseApkCommon()
2230 if (sa.getBoolean( in parseUsesFeature()
2697 a.info.handleProfiling = sa.getBoolean( in parseInstrumentation()
2701 a.info.functionalTest = sa.getBoolean( in parseInstrumentation()
2765 boolean allowBackup = sa.getBoolean( in parseBaseApplication()
2783 if (sa.getBoolean( in parseBaseApplication()
2788 if (sa.getBoolean( in parseBaseApplication()
2793 if (sa.getBoolean( in parseBaseApplication()
2798 if (sa.getBoolean( in parseBaseApplication()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/view/
DSupportMenuInflater.java360 groupVisible = a.getBoolean(R.styleable.MenuGroup_android_visible, defaultItemVisible); in readGroup()
361 groupEnabled = a.getBoolean(R.styleable.MenuGroup_android_enabled, defaultItemEnabled); in readGroup()
387 itemCheckable = a.getBoolean(R.styleable.MenuItem_android_checkable, false) ? 1 : 0; in readItem()
393 itemChecked = a.getBoolean(R.styleable.MenuItem_android_checked, defaultItemChecked); in readItem()
394 itemVisible = a.getBoolean(R.styleable.MenuItem_android_visible, groupVisible); in readItem()
395 itemEnabled = a.getBoolean(R.styleable.MenuItem_android_enabled, groupEnabled); in readItem()
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
DSampleTrustAgent.java188 return sharedPreferences.getBoolean(PREFERENCE_REPORT_UNLOCK_ATTEMPTS, false); in getReportUnlockAttempts()
200 return sharedPreferences.getBoolean(PREFERENCE_REPORT_DEVICE_LOCKED, false); in getReportDeviceLocked()
212 return sharedPreferences.getBoolean(PREFERENCE_MANAGING_TRUST, false); in getIsManagingTrust()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionServiceInfo.java120 mSupportsAssist = array.getBoolean( in VoiceInteractionServiceInfo()
123 mSupportsLaunchFromKeyguard = array.getBoolean(com.android.internal. in VoiceInteractionServiceInfo()
126 mSupportsLocalInteraction = array.getBoolean(com.android.internal. in VoiceInteractionServiceInfo()
/frameworks/base/core/java/android/view/
DMenuInflater.java372 …groupVisible = a.getBoolean(com.android.internal.R.styleable.MenuGroup_visible, defaultItemVisible… in readGroup()
373 …groupEnabled = a.getBoolean(com.android.internal.R.styleable.MenuGroup_enabled, defaultItemEnabled… in readGroup()
399 … itemCheckable = a.getBoolean(com.android.internal.R.styleable.MenuItem_checkable, false) ? 1 : 0; in readItem()
405 … itemChecked = a.getBoolean(com.android.internal.R.styleable.MenuItem_checked, defaultItemChecked); in readItem()
406 … itemVisible = a.getBoolean(com.android.internal.R.styleable.MenuItem_visible, groupVisible); in readItem()
407 … itemEnabled = a.getBoolean(com.android.internal.R.styleable.MenuItem_enabled, groupEnabled); in readItem()

12345678910>>...19