Home
last modified time | relevance | path

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

12345678910>>...36

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DFakeHdmiCecConfig.java49 doReturn(true).when(resources).getBoolean( in buildResources()
51 doReturn(true).when(resources).getBoolean( in buildResources()
53 doReturn(true).when(resources).getBoolean( in buildResources()
55 doReturn(true).when(resources).getBoolean( in buildResources()
60 doReturn(true).when(resources).getBoolean( in buildResources()
62 doReturn(true).when(resources).getBoolean( in buildResources()
64 doReturn(true).when(resources).getBoolean( in buildResources()
66 doReturn(true).when(resources).getBoolean( in buildResources()
71 doReturn(true).when(resources).getBoolean( in buildResources()
73 doReturn(true).when(resources).getBoolean( in buildResources()
[all …]
/aosp14/frameworks/base/core/java/android/view/autofill/
H A DAutofillFeatureFlags.java298 return DeviceConfig.getBoolean( in isFillDialogEnabled()
329 return DeviceConfig.getBoolean( in isFillAndSaveDialogDisabledForCredentialManager()
342 return DeviceConfig.getBoolean( in isTriggerFillRequestOnUnimportantViewEnabled()
354 return DeviceConfig.getBoolean( in isTriggerFillRequestOnFilteredImportantViewsEnabled()
366 return DeviceConfig.getBoolean( in shouldEnableAutofillOnAllViewTypes()
418 return DeviceConfig.getBoolean( in shouldIncludeAllViewsAutofillTypeNotNoneInAssistStructrue()
430 return DeviceConfig.getBoolean( in shouldIncludeAllChildrenViewInAssistStructure()
442 return DeviceConfig.getBoolean( in shouldEnableMultilineFilter()
458 return DeviceConfig.getBoolean( in isAutofillPccClassificationEnabled()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
H A DCompatUIConfiguration.java105 mIsRestartDialogEnabled = context.getResources().getBoolean( in CompatUIConfiguration()
107 mIsReachabilityEducationEnabled = context.getResources().getBoolean( in CompatUIConfiguration()
109 mIsLetterboxRestartDialogAllowed = DeviceConfig.getBoolean( in CompatUIConfiguration()
112 mIsLetterboxReachabilityEducationAllowed = DeviceConfig.getBoolean( in CompatUIConfiguration()
152 return !mCompatUISharedPreferences.getBoolean(dontShowAgainRestartKey(taskInfo.userId, in shouldShowRestartDialogAgain()
167 return mCompatUISharedPreferences.getBoolean( in hasSeenHorizontalReachabilityEducation()
172 return mCompatUISharedPreferences.getBoolean( in hasSeenVerticalReachabilityEducation()
184 .getBoolean(dontShowLetterboxEduKey(userId), /* default= */ false); in getHasSeenLetterboxEducation()
208 mIsLetterboxRestartDialogAllowed = DeviceConfig.getBoolean( in onPropertiesChanged()
214 mIsLetterboxReachabilityEducationAllowed = DeviceConfig.getBoolean( in onPropertiesChanged()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/
H A DPackageStateImpl.java244 return getBoolean(Booleans.ODM); in isOdm()
249 return getBoolean(Booleans.OEM); in isOem()
254 return getBoolean(Booleans.PRIVILEGED); in isPrivileged()
259 return getBoolean(Booleans.PRODUCT); in isProduct()
269 return getBoolean(Booleans.SYSTEM); in isSystem()
274 return getBoolean(Booleans.SYSTEM_EXT); in isSystemExt()
294 return getBoolean(Booleans.VENDOR); in isVendor()
410 return getBoolean(Booleans.HIDDEN); in isHidden()
415 return getBoolean(Booleans.INSTALLED); in isInstalled()
430 return getBoolean(Booleans.STOPPED); in isStopped()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DDesktopModeStatus.java36 private static final boolean IS_SUPPORTED = SystemProperties.getBoolean(
42 private static final boolean IS_PROTO2_ENABLED = SystemProperties.getBoolean(
48 private static final boolean IS_VEILED_RESIZE_ENABLED = SystemProperties.getBoolean(
54 public static final boolean IS_DISPLAY_CHANGE_ENABLED = SystemProperties.getBoolean(
63 private static final boolean IS_STASHING_ENABLED = SystemProperties.getBoolean(
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DRoSystemProperties.java35 SystemProperties.getBoolean("ro.support_one_handed_mode", /* def= */ false);
47 SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false);
49 SystemProperties.getBoolean("ro.config.low_ram", false);
51 SystemProperties.getBoolean("ro.config.small_battery", false);
63 SystemProperties.getBoolean("ro.fw.mu.headless_system_user", false);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DCarrierConfigTracker.java108 mCallStrengthConfigs.put(subId, config.getBoolean( in updateFromNewCarrierConfig()
112 mNoCallingConfigs.put(subId, config.getBoolean( in updateFromNewCarrierConfig()
116 mCarrierProvisionsWifiMergedNetworks.put(subId, config.getBoolean( in updateFromNewCarrierConfig()
120 mShowOperatorNameConfigs.put(subId, config.getBoolean( in updateFromNewCarrierConfig()
155 CarrierConfigManager.getDefaultConfig().getBoolean( in getCallStrengthConfig()
173 CarrierConfigManager.getDefaultConfig().getBoolean( in getNoCallingConfig()
191 CarrierConfigManager.getDefaultConfig().getBoolean( in getCarrierProvisionsWifiMergedNetworksBool()
203 mDefaultShowOperatorNameConfig = CarrierConfigManager.getDefaultConfig().getBoolean( in getShowOperatorNameInStatusBarConfigDefault()
218 .getDefaultConfig().getBoolean(CarrierConfigManager in getAlwaysShowPrimarySignalBarInOpportunisticNetworkDefault()
/aosp14/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassificationConstants.java120 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isLocalTextClassifierEnabled()
125 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isSystemTextClassifierEnabled()
131 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isModelDarkLaunchEnabled()
136 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isSmartSelectionEnabled()
141 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isSmartTextShareEnabled()
146 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, SMART_LINKIFY_ENABLED, in isSmartLinkifyEnabled()
151 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in isSmartSelectionAnimationEnabled()
/aosp14/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
H A DLocalTransportParameters.java69 mFakeEncryptionFlag = parser.getBoolean(KEY_FAKE_ENCRYPTION_FLAG, false); in update()
70 mIsNonIncrementalOnly = parser.getBoolean(KEY_NON_INCREMENTAL_ONLY, false); in update()
71 mIsDeviceTransfer = parser.getBoolean(KEY_IS_DEVICE_TRANSFER, false); in update()
72 mIsEncrypted = parser.getBoolean(KEY_IS_ENCRYPTED, false); in update()
73 mLogAgentResults = parser.getBoolean(KEY_LOG_AGENT_RESULTS, /* def */ false); in update()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java75 SystemProperties.getBoolean("debug.force_no_blanking", false);
77 SystemProperties.getBoolean("debug.force_blanking", false);
184 return mResources.getBoolean(R.bool.doze_suspend_display_state_supported); in getDozeSuspendDisplayStateSupported()
213 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); in getVibrateOnSigMotion()
217 return SystemProperties.getBoolean("doze.vibrate.pickup", false); in getVibrateOnPickup()
230 return getBoolean("doze.prox.selectively_register", in getSelectivelyRegisterSensorsUsingProx()
284 return FORCE_BLANKING || !FORCE_NO_BLANKING && mResources.getBoolean( in getDisplayNeedsBlanking()
358 private boolean getBoolean(String propName, int resId) { in getBoolean() method in DozeParameters
359 return SystemProperties.getBoolean(propName, mResources.getBoolean(resId)); in getBoolean()
390 return mResources.getBoolean(R.bool.doze_single_tap_uses_prox); in singleTapUsesProx()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
H A DBubbleEducationControllerTest.kt59 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(true)
61 Mockito.verify(sharedPrefs).getBoolean(PREF_STACK_EDUCATION, false)
72 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(true)
74 Mockito.verify(sharedPrefs).getBoolean(PREF_MANAGED_EDUCATION, false)
93 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(true)
97 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(false)
111 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(true)
115 Mockito.`when`(sharedPrefs.getBoolean(anyString(), anyBoolean())).thenReturn(false)
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DLetterboxConfiguration.java340 mIsVerticalReachabilityEnabled = mContext.getResources().getBoolean( in LetterboxConfiguration()
348 mIsEducationEnabled = mContext.getResources().getBoolean( in LetterboxConfiguration()
355 .getBoolean(R.bool in LetterboxConfiguration()
369 mContext.getResources().getBoolean( in LetterboxConfiguration()
373 mContext.getResources().getBoolean(R.bool in LetterboxConfiguration()
382 mContext.getResources().getBoolean( in LetterboxConfiguration()
386 mContext.getResources().getBoolean( in LetterboxConfiguration()
392 mContext.getResources().getBoolean( in LetterboxConfiguration()
807 mIsVerticalReachabilityEnabled = mContext.getResources().getBoolean( in resetIsVerticalReachabilityEnabled()
1121 mIsEducationEnabled = mContext.getResources().getBoolean( in resetIsEducationEnabled()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DBatterySaverPolicy.java833 properties.getBoolean(KEY_DEFER_FULL_BACKUP + configSuffix, in fromSettings()
839 properties.getBoolean(KEY_DISABLE_ANIMATION + configSuffix, in fromSettings()
841 final boolean disableAod = parser.getBoolean(KEY_DISABLE_AOD, in fromSettings()
842 properties.getBoolean(KEY_DISABLE_AOD + configSuffix, in fromSettings()
851 properties.getBoolean(KEY_DISABLE_VIBRATION + configSuffix, in fromSettings()
853 final boolean enableBrightnessAdjustment = parser.getBoolean( in fromSettings()
858 properties.getBoolean(KEY_ENABLE_DATASAVER + configSuffix, in fromSettings()
860 final boolean enableFirewall = parser.getBoolean(KEY_ENABLE_FIREWALL, in fromSettings()
861 properties.getBoolean(KEY_ENABLE_FIREWALL + configSuffix, in fromSettings()
864 properties.getBoolean(KEY_ENABLE_NIGHT_MODE + configSuffix, in fromSettings()
[all …]
/aosp14/frameworks/base/tests/ShowWhenLockedApp/src/com/android/showwhenlocked/
H A DShowWhenLockedActivity.java135 boolean showWhenLocked = extras.getBoolean(EXTRA_SHOW_WHEN_LOCKED, true); in handleExtras()
141 boolean turnScreenOn = extras.getBoolean(EXTRA_TURN_SCREEN_ON, true); in handleExtras()
147 showWhenLockedAtStop = extras.getBoolean(EXTRA_SHOW_WHEN_LOCKED_STOP, true); in handleExtras()
152 turnScreenOnAtStop = extras.getBoolean(EXTRA_TURN_SCREEN_ON_STOP, true); in handleExtras()
157 if (extras.getBoolean(EXTRA_DISMISS_KEYGUARD, false)) { in handleExtras()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
H A DPrivacyConfig.kt67 micCameraAvailable = properties.getBoolean(MIC_CAMERA, DEFAULT_MIC_CAMERA)
72 locationAvailable = properties.getBoolean(LOCATION, DEFAULT_LOCATION)
78 properties.getBoolean(MEDIA_PROJECTION, DEFAULT_MEDIA_PROJECTION)
95 return deviceConfigProxy.getBoolean(DeviceConfig.NAMESPACE_PRIVACY,
100 return deviceConfigProxy.getBoolean(DeviceConfig.NAMESPACE_PRIVACY,
105 return deviceConfigProxy.getBoolean(DeviceConfig.NAMESPACE_PRIVACY,
/aosp14/frameworks/base/services/core/java/com/android/server/content/
H A DSyncOperation.java284 if (!jobExtras.getBoolean("SyncManagerJob", false)) { in maybeCreateFromJobExtras()
296 allowParallelSyncs = jobExtras.getBoolean("allowParallelSyncs", false); in maybeCreateFromJobExtras()
297 isPeriodic = jobExtras.getBoolean("isPeriodic", false); in maybeCreateFromJobExtras()
329 op.scheduleEjAsRegularJob = jobExtras.getBoolean("ejDowngradedToRegular"); in maybeCreateFromJobExtras()
417 if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) { in dump()
502 return mImmutableExtras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false); in isInitialization()
506 return mImmutableExtras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false); in isExpedited()
510 return mImmutableExtras.getBoolean(ContentResolver.SYNC_EXTRAS_UPLOAD, false); in isUpload()
536 return mImmutableExtras.getBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, false); in hasDoNotRetry()
544 return mImmutableExtras.getBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, false); in isManual()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/
H A DMobileMappings.java228 config.showAtLeast3G = res.getBoolean(R.bool.config_showMin3G); in readConfig()
230 res.getBoolean(com.android.internal.R.bool.config_alwaysUseCdmaRssi); in readConfig()
232 res.getBoolean(R.bool.config_hspa_data_distinguishable); in readConfig()
241 config.alwaysShowDataRatIcon = b.getBoolean( in readConfig()
243 config.show4gForLte = b.getBoolean( in readConfig()
245 config.show4glteForLte = b.getBoolean( in readConfig()
247 config.show4gFor3g = b.getBoolean( in readConfig()
249 config.hideLtePlus = b.getBoolean( in readConfig()
/aosp14/frameworks/base/core/java/com/android/internal/config/sysui/
H A DSystemUiSystemPropertiesFlags.java187 return getBoolean(flag.mSysPropKey, flag.mDefaultValue); in isEnabled()
189 return getBoolean(flag.mSysPropKey, isEnabled(flag.mDebugDefault)); in isEnabled()
194 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean() method in SystemUiSystemPropertiesFlags.DebugResolver
195 return SystemProperties.getBoolean(key, defaultValue); in getBoolean()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
H A DPackageImpl.java1603 return getBoolean(Booleans.ENABLED); in isEnabled()
1628 return getBoolean(Booleans.GAME); in isGame()
1633 return getBoolean(Booleans.HAS_CODE); in isDeclaredHavingCode()
1678 return getBoolean(Booleans.OVERLAY); in isResourceOverlay()
1784 return getBoolean(Booleans.TEST_ONLY); in isTestOnly()
3434 return getBoolean(Booleans.CORE_APP);
3439 return getBoolean(Booleans.SYSTEM);
3464 return getBoolean(Booleans.OEM);
3469 return getBoolean(Booleans.VENDOR);
3474 return getBoolean(Booleans.PRODUCT);
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DRemoteInputNotificationRebuilderTest.java99 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
101 .getBoolean(Notification.EXTRA_HIDE_SMART_REPLIES, false)); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
114 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
116 .getBoolean(Notification.EXTRA_HIDE_SMART_REPLIES, false)); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
170 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildNotificationForCanceledSmartReplies()
172 .getBoolean(Notification.EXTRA_HIDE_SMART_REPLIES, false)); in testRebuildNotificationForCanceledSmartReplies()
/aosp14/frameworks/base/core/java/android/hardware/display/
H A DAmbientDisplayConfiguration.java68 mAlwaysOnByDefault = mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnEnabled); in AmbientDisplayConfiguration()
70 mContext.getResources().getBoolean(R.bool.config_dozePickupGestureEnabled); in AmbientDisplayConfiguration()
95 return mContext.getResources().getBoolean(R.bool.config_pulseOnNotificationsAvailable) in pulseOnNotificationAvailable()
108 return mContext.getResources().getBoolean(R.bool.config_dozePulsePickup); in dozePickupSensorAvailable()
155 .getBoolean(R.bool.config_dozeWakeLockScreenSensorAvailable); in wakeScreenGestureAvailable()
272 return mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnDisplayAvailable); in alwaysOnDisplayAvailable()
276 return SystemProperties.getBoolean("debug.doze.aod", false) && Build.IS_DEBUGGABLE; in alwaysOnDisplayDebuggingEnabled()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
H A DLocationSettingsTest.java91 doReturn(true).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testLoadDefaults()
94 doReturn(false).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testLoadDefaults()
100 doReturn(false).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testUpdate()
112 doReturn(false).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testSerialization()
124 doReturn(false).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testListeners()
159 doReturn(true).when(mResources).getBoolean(R.bool.config_defaultAdasGnssLocationEnabled); in testNonAutomotive()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerPropertyTests.java48 assertTrue(p.getBoolean()); in testBooleanProperty()
61 assertTrue(b.getBoolean("booleanProperty")); in testBooleanPropertyToBundle()
73 assertFalse(p.getBoolean()); in testFloatProperty()
98 assertFalse(p.getBoolean()); in testIntegerProperty()
123 assertFalse(p.getBoolean()); in testResourceProperty()
148 assertFalse(p.getBoolean()); in testStringProperty()
/aosp14/frameworks/base/telephony/java/android/telephony/ims/
H A DSipDelegateImsConfiguration.java470 public @BooleanConfigKey boolean getBoolean(@NonNull String key, boolean defaultValue) { in getBoolean() method in SipDelegateImsConfiguration
474 return mBundle.getBoolean(key); in getBoolean()
545 getBoolean(KEY_SIP_CONFIG_IS_COMPACT_FORM_ENABLED_BOOL, false)); in toNewConfig()
547 getBoolean(KEY_SIP_CONFIG_IS_KEEPALIVE_ENABLED_BOOL, false)); in toNewConfig()
564 if (getBoolean(KEY_SIP_CONFIG_IS_GRUU_ENABLED_BOOL, false)) { in toNewConfig()
572 if (getBoolean(KEY_SIP_CONFIG_IS_IPSEC_ENABLED_BOOL, false)) { in toNewConfig()
583 if (getBoolean(KEY_SIP_CONFIG_IS_NAT_ENABLED_BOOL, false)) { in toNewConfig()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DWifiRestrictionsCacheTest.java76 when(mUserRestrictionsOwner.getBoolean(anyString())).thenReturn(false); in setUp()
81 when(mUserRestrictionsGuest.getBoolean(anyString())).thenReturn(true); in setUp()
125 verify(userRestrictions).getBoolean(DISALLOW_CONFIG_WIFI); in getRestriction_firstTime_getFromSystem()
139 verify(userRestrictions, never()).getBoolean(DISALLOW_CONFIG_WIFI); in getRestriction_secondTime_notGetFromSystem()
154 verify(userRestrictions).getBoolean(DISALLOW_CONFIG_WIFI); in clearRestrictions_shouldGetRestrictionFromSystemAgain()

12345678910>>...36