Home
last modified time | relevance | path

Searched refs:parseBoolean (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java86 assertEquals(false, ParseUtils.parseBoolean(null, false)); in testParseBoolean()
87 assertEquals(true, ParseUtils.parseBoolean(null, true)); in testParseBoolean()
89 assertEquals(false, ParseUtils.parseBoolean("", false)); in testParseBoolean()
90 assertEquals(true, ParseUtils.parseBoolean("", true)); in testParseBoolean()
92 assertEquals(true, ParseUtils.parseBoolean("true", false)); in testParseBoolean()
93 assertEquals(true, ParseUtils.parseBoolean("true", true)); in testParseBoolean()
95 assertEquals(false, ParseUtils.parseBoolean("false", false)); in testParseBoolean()
96 assertEquals(false, ParseUtils.parseBoolean("false", true)); in testParseBoolean()
98 assertEquals(true, ParseUtils.parseBoolean("1", false)); in testParseBoolean()
99 assertEquals(true, ParseUtils.parseBoolean("1", true)); in testParseBoolean()
[all …]
/frameworks/base/core/java/android/util/
DFeatureFlagUtils.java64 return Boolean.parseBoolean(value); in isEnabled()
71 return Boolean.parseBoolean(value); in isEnabled()
75 return Boolean.parseBoolean(value); in isEnabled()
DKeyValueListParser.java146 return Boolean.parseBoolean(value); in getBoolean()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkHistory.java400 config.selfAdded = Boolean.parseBoolean(value); in readNetworkHistory()
403 config.didSelfAdd = Boolean.parseBoolean(value); in readNetworkHistory()
409 config.validatedInternetAccess = Boolean.parseBoolean(value); in readNetworkHistory()
412 config.noInternetAccessExpected = Boolean.parseBoolean(value); in readNetworkHistory()
421 config.ephemeral = Boolean.parseBoolean(value); in readNetworkHistory()
424 config.meteredHint = Boolean.parseBoolean(value); in readNetworkHistory()
430 config.useExternalScores = Boolean.parseBoolean(value); in readNetworkHistory()
531 config.shared = Boolean.parseBoolean(value); in readNetworkHistory()
534 networkStatus.setHasEverConnected(Boolean.parseBoolean(value)); in readNetworkHistory()
/frameworks/support/navigation/safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/
DNavParser.kt111 NavType.BOOLEAN -> parseBoolean(defaultValue) in <lambda>()
177 val boolValue = parseBoolean(defaultValue) in inferArgument()
212 private fun parseBoolean(value: String): BooleanValue? { in parseBoolean() method
/frameworks/base/core/java/android/net/
DNetworkConfig.java71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp83 bool parseBoolean(const char* s) { in parseBoolean() function
483 value = parseBoolean(value) ? "1" : "0"; in addSettingFromAttributes()
486 mUpdate = (update != nullptr) && parseBoolean(update); in addSettingFromAttributes()
542 mUpdate = (update != nullptr) && parseBoolean(update); in addMediaCodecFromAttributes()
900 optional = parseBoolean(attrs[i]) ? 1 : 0; in addFeature()
906 required = parseBoolean(attrs[i]) ? 1 : 0; in addFeature()
/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java89 public static boolean parseBoolean(@Nullable String value, boolean defValue) { in parseBoolean() method in ParseUtils
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestResultInstrumentation.java39 Boolean.parseBoolean(arguments.getString("realDeviceTest", "false")); in onCreate()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerServiceShellCommand.java72 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityShellCommand.java72 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/services/print/java/com/android/server/print/
DPrintShellCommand.java79 mService.setBindInstantServiceAllowed(userId, Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/media/java/android/media/
DMedia2HTTPConnection.java86 private boolean parseBoolean(String val) { in parseBoolean() method in Media2HTTPConnection
98 mAllowCrossDomainRedirect = parseBoolean(val); in filterOutInternalHeaders()
DMediaHTTPConnection.java90 private boolean parseBoolean(String val) { in parseBoolean() method in MediaHTTPConnection
102 mAllowCrossDomainRedirect = parseBoolean(val); in filterOutInternalHeaders()
/frameworks/base/cmds/vr/src/com/android/commands/vr/
DVr.java121 boolean enabled = Boolean.parseBoolean(enableStr); in runSetPersistentVrModeEnabled()
/frameworks/base/cmds/sm/src/com/android/commands/sm/
DSm.java184 final boolean emulateFbe = Boolean.parseBoolean(nextArg()); in runSetEmulateFbe()
276 final boolean virtualDisk = Boolean.parseBoolean(nextArg()); in runSetVirtualDisk()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java468 mForceStopApp = Boolean.parseBoolean(forceStopApp); in parseArgs()
515 mDropCache = Boolean.parseBoolean(args.getString(KEY_DROP_CACHE)); in parseArgs()
518 mSimplePerfAppOnly = Boolean.parseBoolean(args.getString(KEY_SIMPLEPERF_APP)); in parseArgs()
519 mCycleCleanUp = Boolean.parseBoolean(args.getString(KEY_CYCLE_CLEAN)); in parseArgs()
520 mTrialLaunch = mTrialLaunch || Boolean.parseBoolean(args.getString(KEY_TRIAL_LAUNCH)); in parseArgs()
/frameworks/base/core/tests/featureflagtests/src/android/util/
DFeatureFlagUtilsTest.java94 assertTrue(Boolean.parseBoolean(SystemProperties.get( in testSetEnabled_shouldSetOverrideFlag()
/frameworks/base/tests/testables/tests/src/android/testing/
DDexmakerShareClassLoaderRuleTest.java108 return Boolean.parseBoolean(System.getProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY)); in readProperty()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java123 return Boolean.parseBoolean(value); in shouldShowLoadingIndicator()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsShellCommand.java158 final boolean disabled = Boolean.parseBoolean(mNew); in runSetDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAirplaneModeTile.java71 if (!airplaneModeEnabled && Boolean.parseBoolean( in handleClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionParser.java481 category.multiple = !TextUtils.isEmpty(multiple) && Boolean.parseBoolean(multiple); in onCreateItem()
484 !TextUtils.isEmpty(exclusive) && Boolean.parseBoolean(exclusive); in onCreateItem()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java137 profile.mppe = Boolean.parseBoolean(values[8]); in decode()
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java499 mDropCache = Boolean.parseBoolean(args.getString(KEY_DROP_CACHE)); in parseArgs()
502 mSimplePerfAppOnly = Boolean.parseBoolean(args.getString(KEY_SIMPLEPERF_APP)); in parseArgs()
503 mTrialLaunch = mTrialLaunch || Boolean.parseBoolean(args.getString(KEY_TRIAL_LAUNCH)); in parseArgs()

123