Home
last modified time | relevance | path

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

1234567891011

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowSystemPropertiesTest.java25 public void getBoolean() { in getBoolean() method in ShadowSystemPropertiesTest
38 assertThat(SystemProperties.getBoolean("false_1", true)).isFalse(); in getBoolean()
39 assertThat(SystemProperties.getBoolean("false_2", true)).isFalse(); in getBoolean()
40 assertThat(SystemProperties.getBoolean("false_3", true)).isFalse(); in getBoolean()
41 assertThat(SystemProperties.getBoolean("false_4", true)).isFalse(); in getBoolean()
42 assertThat(SystemProperties.getBoolean("false_5", true)).isFalse(); in getBoolean()
43 assertThat(SystemProperties.getBoolean("true_1", false)).isTrue(); in getBoolean()
44 assertThat(SystemProperties.getBoolean("true_2", false)).isTrue(); in getBoolean()
45 assertThat(SystemProperties.getBoolean("true_3", false)).isTrue(); in getBoolean()
46 assertThat(SystemProperties.getBoolean("true_4", false)).isTrue(); in getBoolean()
[all …]
DShadowSharedPreferencesTest.java62 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); in commit_shouldStoreValues()
105 assertThat(anotherSharedPreferences.getBoolean("boolean", false)).isTrue(); in commit_shouldRemoveValuesThenSetValues()
125 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); in commit_shouldClearThenSetValues()
169 assertFalse(anotherSharedPreferences.getBoolean("boolean", false)); in shouldReturnDefaultValues()
223 assertTrue(sharedPreferences.getBoolean("foo", false)); in commit_multipleTimes()
224 assertTrue(sharedPreferences.getBoolean("bar", false)); in commit_multipleTimes()
241 assertTrue(sharedPreferences.getBoolean("bar", true)); in commit_inParallel_doesNotDeadlock()
DShadowBundleTest.java57 public void getBoolean() { in getBoolean() method in ShadowBundleTest
59 assertThat(bundle.getBoolean("foo")).isTrue(); in getBoolean()
60 assertThat(bundle.getBoolean("bar")).isFalse(); in getBoolean()
61 assertThat(bundle.getBoolean("bar", true)).isTrue(); in getBoolean()
81 assertThat(bundle.getBoolean("foo")).isFalse(); in getWrongType()
DShadowCarrierConfigManagerTest.java61 assertThat(verifyBundle.getBoolean(BOOLEAN_KEY)).isEqualTo(BOOLEAN_VALUE); in testGetConfigForSubId()
106 assertThat(carrierConfigManager.getConfigForSubId(TEST_ID).getBoolean(BOOLEAN_KEY)).isFalse(); in overrideConfig_setBundleWithValues_overridesExistingConfig()
118 assertThat(verifyBundle.getBoolean(BOOLEAN_KEY)).isEqualTo(BOOLEAN_VALUE); in overrideConfig_setBundleWithValues_overridesExistingConfig()
/external/nullaway/nullaway/src/main/java/com/uber/nullaway/
DErrorProneCLIFlagsConfig.java162 isExhaustiveOverride = flags.getBoolean(FL_EXHAUSTIVE_OVERRIDE).orElse(false); in ErrorProneCLIFlagsConfig()
163 isSuggestSuppressions = flags.getBoolean(FL_SUGGEST_SUPPRESSIONS).orElse(false); in ErrorProneCLIFlagsConfig()
164 isAcknowledgeRestrictive = flags.getBoolean(FL_ACKNOWLEDGE_RESTRICTIVE).orElse(false); in ErrorProneCLIFlagsConfig()
165 checkOptionalEmptiness = flags.getBoolean(FL_CHECK_OPTIONAL_EMPTINESS).orElse(false); in ErrorProneCLIFlagsConfig()
166 checkContracts = flags.getBoolean(FL_CHECK_CONTRACTS).orElse(false); in ErrorProneCLIFlagsConfig()
168 flags.getBoolean(FL_HANDLE_TEST_ASSERTION_LIBRARIES).orElse(false); in ErrorProneCLIFlagsConfig()
169 treatGeneratedAsUnannotated = flags.getBoolean(FL_GENERATED_UNANNOTATED).orElse(false); in ErrorProneCLIFlagsConfig()
170 acknowledgeAndroidRecent = flags.getBoolean(FL_ACKNOWLEDGE_ANDROID_RECENT).orElse(false); in ErrorProneCLIFlagsConfig()
171 assertsEnabled = flags.getBoolean(FL_ASSERTS_ENABLED).orElse(false); in ErrorProneCLIFlagsConfig()
187 jarInferEnabled = flags.getBoolean(FL_JI_ENABLED).orElse(false); in ErrorProneCLIFlagsConfig()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSystemPropertiesTest.java113 assertThat(SystemProperties.getBoolean("newkey", false)).isFalse(); in getBoolean_returnsTrue_forAllSupportedValues()
116 assertThat(SystemProperties.getBoolean("newkey", false)).isTrue(); in getBoolean_returnsTrue_forAllSupportedValues()
119 assertThat(SystemProperties.getBoolean("newkey", false)).isTrue(); in getBoolean_returnsTrue_forAllSupportedValues()
122 assertThat(SystemProperties.getBoolean("newkey", false)).isTrue(); in getBoolean_returnsTrue_forAllSupportedValues()
125 assertThat(SystemProperties.getBoolean("newkey", false)).isTrue(); in getBoolean_returnsTrue_forAllSupportedValues()
128 assertThat(SystemProperties.getBoolean("newkey", false)).isTrue(); in getBoolean_returnsTrue_forAllSupportedValues()
DShadowSharedPreferencesTest.java58 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); in commit_shouldStoreValues()
99 assertThat(anotherSharedPreferences.getBoolean("boolean", false)).isTrue(); in commit_shouldRemoveValuesThenSetValues()
119 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); in commit_shouldClearThenSetValues()
162 assertFalse(anotherSharedPreferences.getBoolean("boolean", false)); in shouldReturnDefaultValues()
222 assertTrue(sharedPreferences.getBoolean("foo", false)); in commit_multipleTimes()
223 assertTrue(sharedPreferences.getBoolean("bar", false)); in commit_multipleTimes()
DShadowBundleTest.java57 public void getBoolean() { in getBoolean() method in ShadowBundleTest
59 assertThat(bundle.getBoolean("foo")).isTrue(); in getBoolean()
60 assertThat(bundle.getBoolean("bar")).isFalse(); in getBoolean()
61 assertThat(bundle.getBoolean("bar", true)).isTrue(); in getBoolean()
81 assertThat(bundle.getBoolean("foo")).isFalse(); in getWrongType()
/external/swiftshader/tests/SystemUnitTests/
DConfiguratorTests.cpp68 EXPECT_EQ(configurator.getBoolean("SectionA", "OptionA", false), true); in TEST()
69 EXPECT_EQ(configurator.getBoolean("SectionA", "OptionB", true), false); in TEST()
70 EXPECT_EQ(configurator.getBoolean("SectionA", "OptionC", false), true); in TEST()
71 EXPECT_EQ(configurator.getBoolean("SectionA", "OptionD", true), false); in TEST()
111 EXPECT_EQ(configurator.getBoolean("SectionA", "NonExistentOption", true), true); in TEST()
/external/libtextclassifier/java/src/com/android/textclassifier/common/
DTextClassifierSettings.java285 default boolean getBoolean( in getBoolean() method
323 public boolean getBoolean(
325 return DeviceConfig.getBoolean(namespace, name, defaultValue);
393 return deviceConfig.getBoolean( in isUserLanguageProfileEnabled()
398 return deviceConfig.getBoolean( in isTemplateIntentFactoryEnabled()
403 return deviceConfig.getBoolean( in isTranslateInClassificationEnabled()
410 return deviceConfig.getBoolean( in isDetectLanguagesFromTextEnabled()
419 return deviceConfig.getBoolean( in isConfigUpdaterModelEnabled()
424 return deviceConfig.getBoolean( in isModelDownloadManagerEnabled()
454 return deviceConfig.getBoolean( in getManifestDownloadRequiresDeviceIdle()
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DTerminalManager.java91 wantKeyVibration = mPreferences.getBoolean(PreferenceConstants.BUMPY_ARROWS, true); in TerminalManager()
92 wantBellVibration = mPreferences.getBoolean(PreferenceConstants.BELL_VIBRATE, true); in TerminalManager()
93 wantAudible = mPreferences.getBoolean(PreferenceConstants.BELL, true); in TerminalManager()
269 wantAudible = sharedPreferences.getBoolean(PreferenceConstants.BELL, true); in onSharedPreferenceChanged()
283 wantBellVibration = sharedPreferences.getBoolean(PreferenceConstants.BELL_VIBRATE, true); in onSharedPreferenceChanged()
285 wantKeyVibration = sharedPreferences.getBoolean(PreferenceConstants.BUMPY_ARROWS, true); in onSharedPreferenceChanged()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DBooleanArrayListTest.java132 assertThat(TERTIARY_LIST.getBoolean(0)).isEqualTo(true); in testGetBoolean()
133 assertThat(TERTIARY_LIST.getBoolean(1)).isEqualTo(false); in testGetBoolean()
134 assertThat(TERTIARY_LIST.getBoolean(2)).isEqualTo(true); in testGetBoolean()
252 assertThat(list.getBoolean(0)).isEqualTo(true); in testSet()
255 assertThat(list.getBoolean(1)).isEqualTo(false); in testSet()
278 assertThat(list.getBoolean(0)).isEqualTo(false); in testSetBoolean()
281 assertThat(list.getBoolean(1)).isEqualTo(false); in testSetBoolean()
350 assertThat(list.getBoolean(0)).isEqualTo(true); in testAddAll()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DBooleanArrayListTest.java132 assertThat(TERTIARY_LIST.getBoolean(0)).isEqualTo(true); in testGetBoolean()
133 assertThat(TERTIARY_LIST.getBoolean(1)).isEqualTo(false); in testGetBoolean()
134 assertThat(TERTIARY_LIST.getBoolean(2)).isEqualTo(true); in testGetBoolean()
252 assertThat(list.getBoolean(0)).isEqualTo(true); in testSet()
255 assertThat(list.getBoolean(1)).isEqualTo(false); in testSet()
278 assertThat(list.getBoolean(0)).isEqualTo(false); in testSetBoolean()
281 assertThat(list.getBoolean(1)).isEqualTo(false); in testSetBoolean()
350 assertThat(list.getBoolean(0)).isEqualTo(true); in testAddAll()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothLeAdvertisingSetFacade.java148 builder.setIncludeDeviceName(params.getBoolean(key)); in buildAdvData()
150 builder.setIncludeTxPowerLevel(params.getBoolean(key)); in buildAdvData()
170 builder.setConnectable(params.getBoolean(key)); in buildParameters()
172 builder.setScannable(params.getBoolean(key)); in buildParameters()
174 builder.setLegacyMode(params.getBoolean(key)); in buildParameters()
176 builder.setAnonymous(params.getBoolean(key)); in buildParameters()
178 builder.setIncludeTxPower(params.getBoolean(key)); in buildParameters()
207 builder.setIncludeTxPower(params.getBoolean(key)); in buildPeriodicParameters()
/external/jarjar/src/main/com/tonicsystems/jarjar/
DMain.java91 boolean verbose = Boolean.getBoolean("verbose"); in process()
92 boolean skipManifest = Boolean.getBoolean("skipManifest"); in process()
94 boolean removeAndroidCompatAnnotations = Boolean.getBoolean("removeAndroidCompatAnnotations"); in process()
/external/cronet/components/prefs/android/java/src/org/chromium/components/prefs/
DPrefService.java50 public boolean getBoolean(@NonNull String preference) { in getBoolean() method in PrefService
51 return PrefServiceJni.get().getBoolean(mNativePrefServiceAndroid, preference); in getBoolean()
116 boolean getBoolean(long nativePrefServiceAndroid, String preference); in getBoolean() method
/external/nist-sip/java/gov/nist/core/
DHost.java89 = Boolean.getBoolean("gov.nist.core.STRIP_ADDR_SCOPES"); in Host()
99 = Boolean.getBoolean("gov.nist.core.STRIP_ADDR_SCOPES"); in Host()
110 = Boolean.getBoolean("gov.nist.core.STRIP_ADDR_SCOPES"); in Host()
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DPartnerConfigHelper.java358 public boolean getBoolean( in getBoolean() method in PartnerConfigHelper
375 result = resource.getBoolean(resId); in getBoolean()
726 && suwDayNightEnabledBundle.getBoolean(IS_SUW_DAY_NIGHT_ENABLED_METHOD, false)); in isSetupWizardDayNightEnabled()
751 && applyExtendedPartnerConfigBundle.getBoolean( in shouldApplyExtendedPartnerConfig()
785 && applyMaterialYouConfigBundle.getBoolean(IS_MATERIAL_YOU_STYLE_ENABLED_METHOD, false)); in shouldApplyMaterialYouStyle()
836 && applyDynamicColorBundle.getBoolean(IS_DYNAMIC_COLOR_ENABLED_METHOD, false)); in isSetupWizardDynamicColorEnabled()
861 && applyEmbeddedActivityOnePaneBundle.getBoolean( in isEmbeddedActivityOnePaneEnabled()
885 && applyNeutralButtonStyleBundle.getBoolean(IS_NEUTRAL_BUTTON_STYLE_ENABLED_METHOD, false)); in isNeutralButtonStyleEnabled()
908 && applyFontWeightBundle.getBoolean(IS_FONT_WEIGHT_ENABLED_METHOD, true)); in isFontWeightEnabled()
936 return applyTransitionBundle.getBoolean( in isGlifThemeControlledTransitionApplied()
/external/nist-sip/java/gov/nist/javax/sip/address/
DNetObject.java123 if (f.getBoolean(this) != g.getBoolean(that)) in equals()
213 if (f.getBoolean(this) != g.getBoolean(that)) in match()
324 boolean booleanField = f.getBoolean(this); in debugDump()
/external/nist-sip/java/gov/nist/javax/sip/header/
DSIPObject.java125 if (f.getBoolean(this) != g.getBoolean(that)) in equals()
215 if (f.getBoolean(this) != g.getBoolean(that)) in match()
331 boolean booleanField = f.getBoolean(this); in debugDump()
/external/replicaisland/src/com/replica/replicaisland/
DAndouKun.java103 … final boolean debugLogs = prefs.getBoolean(PreferenceConstants.PREFERENCE_ENABLE_DEBUG, false); in onCreate()
167 mExtrasUnlocked = prefs.getBoolean(PreferenceConstants.PREFERENCE_EXTRAS_UNLOCKED, false); in onCreate()
237 … final boolean statsEnabled = prefs.getBoolean(PreferenceConstants.PREFERENCE_STATS_ENABLED, true); in onCreate()
290 … final boolean debugLogs = prefs.getBoolean(PreferenceConstants.PREFERENCE_ENABLE_DEBUG, false); in onResume()
303 … final boolean soundEnabled = prefs.getBoolean(PreferenceConstants.PREFERENCE_SOUND_ENABLED, true); in onResume()
304 final boolean safeMode = prefs.getBoolean(PreferenceConstants.PREFERENCE_SAFE_MODE, false); in onResume()
305 … final boolean clickAttack = prefs.getBoolean(PreferenceConstants.PREFERENCE_CLICK_ATTACK, true); in onResume()
306 …final boolean tiltControls = prefs.getBoolean(PreferenceConstants.PREFERENCE_TILT_CONTROLS, false); in onResume()
309 …final boolean onScreenControls = prefs.getBoolean(PreferenceConstants.PREFERENCE_SCREEN_CONTROLS, … in onResume()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiJsonParser.java87 if (j.has("is80211McRTTResponder") && j.getBoolean("is80211McRTTResponder")) { in getScanResult()
90 if (j.has("passpointNetwork") && j.getBoolean("passpointNetwork")) { in getScanResult()
100 scanResult.untrusted = j.getBoolean("untrusted"); in getScanResult()
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/
DVelocimacroFactory.java245 if (!rsvc.getBoolean( RuntimeConstants.VM_PERM_ALLOW_INLINE, true)) in initVelocimacro()
264 if (rsvc.getBoolean( in initVelocimacro()
287 setTemplateLocalInline(rsvc.getBoolean( in initVelocimacro()
306 setAutoload(rsvc.getBoolean(RuntimeConstants.VM_LIBRARY_AUTORELOAD, false)); in initVelocimacro()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/
DTransformerActivity.java206 bundle.getBoolean(ConfigurationActivity.SHOULD_FLATTEN_FOR_SLOW_MOTION)); in createTransformer()
231 bundle.getBoolean(ConfigurationActivity.ENABLE_REQUEST_SDR_TONE_MAPPING)); in createTransformer()
233 bundle.getBoolean(ConfigurationActivity.ENABLE_HDR_EDITING)); in createTransformer()
236 .setRemoveAudio(bundle.getBoolean(ConfigurationActivity.SHOULD_REMOVE_AUDIO)) in createTransformer()
237 .setRemoveVideo(bundle.getBoolean(ConfigurationActivity.SHOULD_REMOVE_VIDEO)) in createTransformer()
241 /* enableFallback= */ bundle.getBoolean(ConfigurationActivity.ENABLE_FALLBACK))); in createTransformer()
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/
DASTReference.java160 strictEscape = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT_ESCAPE, false); in init()
161 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init()
162 lookupAlternateLiteral = rsvc.getBoolean(RuntimeConstants.VM_ENABLE_BC_MODE, false); in init()
216 rsvc.getBoolean(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true); in init()
222 rsvc.getBoolean(RuntimeConstants.CHECK_EMPTY_OBJECTS, true); in init()
227 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_QUIET, false); in init()
229 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_NULL, false); in init()
231 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_TESTED, false); in init()

1234567891011