Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java87 assertEquals(false, ParseUtils.parseBoolean(null, false)); in testParseBoolean()
88 assertEquals(true, ParseUtils.parseBoolean(null, true)); in testParseBoolean()
90 assertEquals(false, ParseUtils.parseBoolean("", false)); in testParseBoolean()
91 assertEquals(true, ParseUtils.parseBoolean("", true)); in testParseBoolean()
93 assertEquals(true, ParseUtils.parseBoolean("true", false)); in testParseBoolean()
94 assertEquals(true, ParseUtils.parseBoolean("true", true)); in testParseBoolean()
96 assertEquals(false, ParseUtils.parseBoolean("false", false)); in testParseBoolean()
97 assertEquals(false, ParseUtils.parseBoolean("false", true)); in testParseBoolean()
99 assertEquals(true, ParseUtils.parseBoolean("1", false)); in testParseBoolean()
100 assertEquals(true, ParseUtils.parseBoolean("1", true)); in testParseBoolean()
[all …]
/frameworks/base/core/java/android/util/
DFeatureFlagUtils.java87 return Boolean.parseBoolean(value); in isEnabled()
94 return Boolean.parseBoolean(value); in isEnabled()
98 return Boolean.parseBoolean(value); in isEnabled()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java61 mInterface.setAdaptivePowerSaveEnabled(Boolean.parseBoolean(getNextArgRequired())); in runSetAdaptiveEnabled()
81 Boolean.parseBoolean(getNextArgRequired())); in runSetFixedPerformanceModeEnabled()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java257 isRestrictedToTestNetworks = Boolean.parseBoolean(values[24]); in decode()
274 profile.mppe = Boolean.parseBoolean(values[8]); in decode()
297 profile.isBypassable = Boolean.parseBoolean(values[20]); in decode()
298 profile.isMetered = Boolean.parseBoolean(values[21]); in decode()
300 profile.areAuthParamsInline = Boolean.parseBoolean(values[23]); in decode()
/frameworks/base/core/java/android/net/
DNetworkConfig.java71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DNotInitializedRegex.java37 boolean requiresMatch = args.length > 1 ? Boolean.parseBoolean(args[1]) : false; in main()
/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/services/core/java/com/android/server/location/
DLocationShellCommand.java45 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in onCommand()
/frameworks/base/services/print/java/com/android/server/print/
DPrintShellCommand.java79 mService.setBindInstantServiceAllowed(userId, Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerServiceShellCommand.java73 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java941 mForceStopApp = Boolean.parseBoolean(forceStopApp); in parseArgs()
947 mEnableRecording = Boolean.parseBoolean(enableRecording); in parseArgs()
1001 mDropCache = Boolean.parseBoolean(args.getString(KEY_DROP_CACHE)); in parseArgs()
1004 mSimplePerfAppOnly = Boolean.parseBoolean(args.getString(KEY_SIMPLEPERF_APP)); in parseArgs()
1005 mCycleCleanUp = Boolean.parseBoolean(args.getString(KEY_CYCLE_CLEAN)); in parseArgs()
1006 mTraceAll = Boolean.parseBoolean(args.getString(KEY_TRACE_ALL)); in parseArgs()
1007 mTrialLaunch = mTrialLaunch || Boolean.parseBoolean(args.getString(KEY_TRIAL_LAUNCH)); in parseArgs()
1009 Boolean.parseBoolean(args.getString(KEY_IORAP_TRIAL_LAUNCH)); in parseArgs()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityShellCommand.java81 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerServiceShellCommand.java116 final boolean enabled = Boolean.parseBoolean(getNextArg()); in setDefaultServiceEnabled()
/frameworks/base/cmds/vr/src/com/android/commands/vr/
DVr.java121 boolean enabled = Boolean.parseBoolean(enableStr); in runSetPersistentVrModeEnabled()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp96 bool parseBoolean(const char* s) { in parseBoolean() function
884 a_value = parseBoolean(a_value) ? "1" : "0"; in addSetting()
887 bool update = (a_update != nullptr) && parseBoolean(a_update); in addSetting()
957 bool update = (a_update != nullptr) && parseBoolean(a_update); in enterMediaCodec()
1041 if (parseBoolean(enabled)) { in updateMediaCodec()
1114 bool update = (a_update != nullptr) && parseBoolean(a_update); in enterType()
1354 optional = parseBoolean(attrs[++i]) ? 1 : 0; in addFeature()
1356 required = parseBoolean(attrs[++i]) ? 1 : 0; in addFeature()
/frameworks/base/core/tests/featureflagtests/src/android/util/
DFeatureFlagUtilsTest.java95 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/base/media/java/android/media/
DMediaHTTPConnection.java121 private static boolean parseBoolean(String val) { in parseBoolean() method in MediaHTTPConnection
133 mAllowCrossDomainRedirect = parseBoolean(val); in filterOutInternalHeaders()
/frameworks/base/services/core/java/com/android/server/pm/
DPersistentPreferredActivity.java58 mIsSetByDpm = Boolean.parseBoolean(parser.getAttributeValue(null, ATTR_SET_BY_DPM)); in PersistentPreferredActivity()
/frameworks/base/cmds/sm/src/com/android/commands/sm/
DSm.java192 final boolean emulateFbe = Boolean.parseBoolean(nextArg()); in runSetEmulateFbe()
284 final boolean virtualDisk = Boolean.parseBoolean(nextArg()); in runSetVirtualDisk()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceShellCommand.java135 boolean disabled = Boolean.parseBoolean(getNextArgRequired()); in requestDisable()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java123 return Boolean.parseBoolean(value); in shouldShowLoadingIndicator()
/frameworks/base/core/java/android/app/admin/
DFactoryResetProtectionPolicy.java206 boolean factoryResetProtectionEnabled = Boolean.parseBoolean( in readFromXml()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DFakeDeviceConfigInterface.java127 return value != null ? Boolean.parseBoolean(value) : defaultValue; in getBoolean()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarShellCommand.java128 boolean disable = Boolean.parseBoolean(arg); in runDisableForSetup()

1234