/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ParseUtilsTest.java | 86 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/ |
D | FeatureFlagUtils.java | 64 return Boolean.parseBoolean(value); in isEnabled() 71 return Boolean.parseBoolean(value); in isEnabled() 75 return Boolean.parseBoolean(value); in isEnabled()
|
D | KeyValueListParser.java | 146 return Boolean.parseBoolean(value); in getBoolean()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkHistory.java | 400 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/ |
D | NavParser.kt | 111 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/ |
D | NetworkConfig.java | 71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
|
/frameworks/av/media/libstagefright/xmlparser/ |
D | MediaCodecsXmlParser.cpp | 83 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/ |
D | ParseUtils.java | 89 public static boolean parseBoolean(@Nullable String value, boolean defValue) { in parseBoolean() method in ParseUtils
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestResultInstrumentation.java | 39 Boolean.parseBoolean(arguments.getString("realDeviceTest", "false")); in onCreate()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerServiceShellCommand.java | 72 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityShellCommand.java | 72 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintShellCommand.java | 79 mService.setBindInstantServiceAllowed(userId, Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/media/java/android/media/ |
D | Media2HTTPConnection.java | 86 private boolean parseBoolean(String val) { in parseBoolean() method in Media2HTTPConnection 98 mAllowCrossDomainRedirect = parseBoolean(val); in filterOutInternalHeaders()
|
D | MediaHTTPConnection.java | 90 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/ |
D | Vr.java | 121 boolean enabled = Boolean.parseBoolean(enableStr); in runSetPersistentVrModeEnabled()
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 184 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/ |
D | AppLaunch.java | 468 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/ |
D | FeatureFlagUtilsTest.java | 94 assertTrue(Boolean.parseBoolean(SystemProperties.get( in testSetEnabled_shouldSetOverrideFlag()
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | DexmakerShareClassLoaderRuleTest.java | 108 return Boolean.parseBoolean(System.getProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY)); in readProperty()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | PhotoPagerAdapter.java | 123 return Boolean.parseBoolean(value); in shouldShowLoadingIndicator()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 158 final boolean disabled = Boolean.parseBoolean(mNew); in runSetDisabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | AirplaneModeTile.java | 71 if (!airplaneModeEnabled && Boolean.parseBoolean( in handleClick()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/ |
D | SuggestionParser.java | 481 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/ |
D | VpnProfile.java | 137 profile.mppe = Boolean.parseBoolean(values[8]); in decode()
|
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 499 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()
|