/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ParseUtilsTest.java | 87 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/ |
D | FeatureFlagUtils.java | 87 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/ |
D | PowerManagerShellCommand.java | 61 mInterface.setAdaptivePowerSaveEnabled(Boolean.parseBoolean(getNextArgRequired())); in runSetAdaptiveEnabled() 81 Boolean.parseBoolean(getNextArgRequired())); in runSetFixedPerformanceModeEnabled()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 257 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/ |
D | NetworkConfig.java | 71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
|
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/ |
D | NotInitializedRegex.java | 37 boolean requiresMatch = args.length > 1 ? Boolean.parseBoolean(args[1]) : false; in main()
|
/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/services/core/java/com/android/server/location/ |
D | LocationShellCommand.java | 45 boolean enabled = Boolean.parseBoolean(getNextArgRequired()); in onCommand()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintShellCommand.java | 79 mService.setBindInstantServiceAllowed(userId, Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerServiceShellCommand.java | 73 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 941 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/ |
D | AccessibilityShellCommand.java | 81 Boolean.parseBoolean(allowed)); in runSetBindInstantServiceAllowed()
|
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/ |
D | ContentSuggestionsManagerServiceShellCommand.java | 116 final boolean enabled = Boolean.parseBoolean(getNextArg()); in setDefaultServiceEnabled()
|
/frameworks/base/cmds/vr/src/com/android/commands/vr/ |
D | Vr.java | 121 boolean enabled = Boolean.parseBoolean(enableStr); in runSetPersistentVrModeEnabled()
|
/frameworks/av/media/libstagefright/xmlparser/ |
D | MediaCodecsXmlParser.cpp | 96 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/ |
D | FeatureFlagUtilsTest.java | 95 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/base/media/java/android/media/ |
D | MediaHTTPConnection.java | 121 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/ |
D | PersistentPreferredActivity.java | 58 mIsSetByDpm = Boolean.parseBoolean(parser.getAttributeValue(null, ATTR_SET_BY_DPM)); in PersistentPreferredActivity()
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 192 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/ |
D | VoiceInteractionManagerServiceShellCommand.java | 135 boolean disabled = Boolean.parseBoolean(getNextArgRequired()); in requestDisable()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | PhotoPagerAdapter.java | 123 return Boolean.parseBoolean(value); in shouldShowLoadingIndicator()
|
/frameworks/base/core/java/android/app/admin/ |
D | FactoryResetProtectionPolicy.java | 206 boolean factoryResetProtectionEnabled = Boolean.parseBoolean( in readFromXml()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | FakeDeviceConfigInterface.java | 127 return value != null ? Boolean.parseBoolean(value) : defaultValue; in getBoolean()
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | StatusBarShellCommand.java | 128 boolean disable = Boolean.parseBoolean(arg); in runDisableForSetup()
|