Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java103 assertEquals(false, ParseUtils.parseBoolean(null, false)); in testParseBoolean()
104 assertEquals(true, ParseUtils.parseBoolean(null, true)); in testParseBoolean()
106 assertEquals(false, ParseUtils.parseBoolean("", false)); in testParseBoolean()
107 assertEquals(true, ParseUtils.parseBoolean("", true)); in testParseBoolean()
109 assertEquals(true, ParseUtils.parseBoolean("true", false)); in testParseBoolean()
110 assertEquals(true, ParseUtils.parseBoolean("true", true)); in testParseBoolean()
112 assertEquals(false, ParseUtils.parseBoolean("false", false)); in testParseBoolean()
113 assertEquals(false, ParseUtils.parseBoolean("false", true)); in testParseBoolean()
115 assertEquals(true, ParseUtils.parseBoolean("1", false)); in testParseBoolean()
116 assertEquals(true, ParseUtils.parseBoolean("1", true)); in testParseBoolean()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java78 mService.setAdaptivePowerSaveEnabled(Boolean.parseBoolean(getNextArgRequired())); in runSetAdaptiveEnabled()
98 Boolean.parseBoolean(getNextArgRequired())); in runSetFixedPerformanceModeEnabled()
112 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in runSuppressAmbientDisplay()
188 mService.setUseFaceDownDetector(Boolean.parseBoolean(getNextArgRequired())); in runSetFaceDownDetector()
/frameworks/base/core/java/android/util/
DFeatureFlagUtils.java268 return Boolean.parseBoolean(value); in isEnabled()
276 return Boolean.parseBoolean(value); in isEnabled()
280 return Boolean.parseBoolean(value); in isEnabled()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java309 isRestrictedToTestNetworks = Boolean.parseBoolean(values[24]); in decode()
316 excludeLocalRoutes = Boolean.parseBoolean(values[25]); in decode()
323 requiresInternetValidation = Boolean.parseBoolean(values[26]); in decode()
345 automaticNattKeepaliveTimerEnabled = Boolean.parseBoolean(values[28]); in decode()
346 automaticIpVersionSelectionEnabled = Boolean.parseBoolean(values[29]); in decode()
366 profile.mppe = Boolean.parseBoolean(values[8]); in decode()
395 profile.isBypassable = Boolean.parseBoolean(values[20]); in decode()
396 profile.isMetered = Boolean.parseBoolean(values[21]); in decode()
398 profile.areAuthParamsInline = Boolean.parseBoolean(values[23]); in decode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DValueParser.kt152 private val parseBoolean: ValueParser<Boolean> = ValueParser { value -> in value() constant
169 val Boolean = parseBoolean
/frameworks/base/services/core/java/com/android/server/location/
DLocationShellCommand.java135 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in handleSetLocationEnabled()
181 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in handleSetAdasGnssLocationEnabled()
205 boolean suspended = Boolean.parseBoolean(getNextArgRequired()); in handleSetAutomotiveGnssSuspended()
308 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in handleSetTestProviderEnabled()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceShellCommand.java147 boolean disabled = Boolean.parseBoolean(getNextArgRequired()); in requestDisable()
168 boolean logging = Boolean.parseBoolean(getNextArgRequired()); in setDebugHotwordLogging()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfRunPreconditionBase.java100 final boolean skip = Boolean.parseBoolean(arguments.getString(ARGUMENT_LOG_ONLY, "false")); in testRunStarted()
124 if (Boolean.parseBoolean(arguments.getString(ARGUMENT_KILL_BACKGROUND))) { in testRunStarted()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DSystemProperties_host.java137 return parseBoolean(native_get(key, ""), def); in native_get_boolean()
190 private static boolean parseBoolean(String val, boolean def) { in parseBoolean() method in SystemProperties_host
/frameworks/base/core/java/com/android/internal/os/
DZygoteConfig.java110 return Boolean.parseBoolean(propString); in getBool()
/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.java90 public static boolean parseBoolean(@Nullable String value, boolean defValue) { in parseBoolean() method in ParseUtils
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/capabilities/
DAudio.java84 mSupported = Boolean.parseBoolean(isSupported); in parse()
DVideo.java84 mSupported = Boolean.parseBoolean(isSupported); in parse()
/frameworks/base/services/print/java/com/android/server/print/
DPrintShellCommand.java79 mService.setBindInstantServiceAllowed(userId, Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DValueParserTest.kt32 fun parseBoolean() { in parseBoolean() method in com.android.systemui.statusbar.commandline.ValueParserTest
/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/core/java/com/android/server/apphibernation/
DAppHibernationShellCommand.java81 boolean newState = Boolean.parseBoolean(newStateRaw); in runSetState()
/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/base/core/java/android/flags/
DFeatureFlags.java317 nsOverrides.put(name, parseBoolean(override)); in addBooleanOverride()
342 static boolean parseBoolean(String value) { in parseBoolean() method in FeatureFlags
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCommonUtils.java70 return Boolean.parseBoolean(tokens[1]); in getIgnoreOrientationRequest()
/frameworks/base/tests/testables/tests/src/android/testing/
DDexmakerShareClassLoaderRuleTest.java108 return Boolean.parseBoolean(System.getProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY)); in readProperty()
/frameworks/base/core/tests/featureflagtests/src/android/util/
DFeatureFlagUtilsTest.java95 assertTrue(Boolean.parseBoolean(SystemProperties.get( in testSetEnabled_shouldSetOverrideFlag()

12345