Home
last modified time | relevance | path

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

123

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java35 import static com.android.providers.media.util.DatabaseUtils.parseBoolean;
392 assertTrue(parseBoolean("TRUE", false)); in testParseBoolean()
393 assertTrue(parseBoolean("true", false)); in testParseBoolean()
394 assertTrue(parseBoolean("1", false)); in testParseBoolean()
395 assertTrue(parseBoolean(1, false)); in testParseBoolean()
396 assertTrue(parseBoolean(true, false)); in testParseBoolean()
398 assertFalse(parseBoolean("FALSE", true)); in testParseBoolean()
399 assertFalse(parseBoolean("false", true)); in testParseBoolean()
400 assertFalse(parseBoolean("0", true)); in testParseBoolean()
401 assertFalse(parseBoolean(0, true)); in testParseBoolean()
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnsXmlProcessor.java173 private Boolean parseBoolean(String text, Boolean defaultValue, String logHint) { in parseBoolean() method in ApnsXmlProcessor
176 value = Boolean.parseBoolean(text); in parseBoolean()
254 parseBoolean(carrierEnabled, null, "apn carrierEnabled")); in processApn()
DBugleCarrierConfigValuesLoader.java192 values.putBoolean(key, Boolean.parseBoolean(value)); in update()
/packages/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/
DSafetyCenterConfigParser.java348 parseBoolean( in parseSafetySource()
356 parseBoolean( in parseSafetySource()
365 parseBoolean( in parseSafetySource()
481 private static boolean parseBoolean( in parseBoolean() method in SafetyCenterConfigParser
/packages/modules/Connectivity/framework/src/android/net/
DNetworkConfig.java71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagPersistent.java43 return Boolean.parseBoolean(value); in isEnabled()
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DCreateSatS2File.java66 return Boolean.parseBoolean(value); in getBooleanValue()
/packages/modules/IPsec/src/java/com/android/internal/net/utils/
DIkeDeviceConfigUtils.java79 return (value != null) ? Boolean.parseBoolean(value) : defaultValue; in getDeviceConfigPropertyBoolean()
/packages/services/Mtp/tests/src/com/android/mtp/
DTestResultInstrumentation.java39 Boolean.parseBoolean(arguments.getString("realDeviceTest", "false")); in onCreate()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java579 public static boolean parseBoolean(@Nullable Object value, boolean def) { in parseBoolean() method in DatabaseUtils
594 return parseBoolean(extras.get(key), def); in getAsBoolean()
599 return parseBoolean(values.get(key), def); in getAsBoolean()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/
DNearbyConfiguration.java95 return value != null ? Boolean.parseBoolean(value) : defaultValue; in getDeviceConfigBoolean()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationStateManager.java521 return Boolean.parseBoolean(inProgressTimeoutReached); in hasInProgressStateTimedOut()
534 return Boolean.parseBoolean(idleStateTimeoutReached); in hasIdleStateTimedOut()
811 if (!Boolean.parseBoolean(preferenceHelper.getPreference(HAVE_RESET_MIGRATION_STATE_KEY)) in resetMigrationStateIfNeeded()
/packages/apps/TV/common/src/com/android/tv/common/compat/
DTvInputInfoCompat.java63 mAudioOnly = Boolean.parseBoolean(getExtras().get(ATTRIBUTE_NAME_AUDIO_ONLY)); in isAudioOnly()
/packages/apps/Messaging/src/android/support/v7/mms/
DDefaultCarrierConfigValuesLoader.java108 values.putBoolean(key, Boolean.parseBoolean(value)); in loadFromResources()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiStringResourceWrapper.java139 return Boolean.parseBoolean(carrierOverrideString); in getBoolean()
/packages/apps/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java69 if (arguments.containsKey("debug") && Boolean.parseBoolean(arguments.getString("debug"))) { in onCreate()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DExportImportSettingsStorage.java151 Boolean.parseBoolean(prefHelper.getPreference(IMPORT_ONGOING_PREFERENCE_KEY)); in getImportStatus()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockPersistentStore.java146 return Boolean.parseBoolean( in getStateFromXml()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/
DAdoptableStorageUtils.java41 Boolean.parseBoolean( in isAdoptableStorageSupported()
/packages/modules/AdServices/sdksandbox/tests/perf/scenarios/src/android/sdksandbox/test/scenario/testsdk/
DClientAppUtils.java198 Boolean.parseBoolean(argsBundle.getString(argKey))); in extractExtraClientArguments()
/packages/modules/Permission/service/java/com/android/role/
DRoleShellCommand.java160 Boolean value = Boolean.parseBoolean(getNextArgRequired()); in runSetBypassingRoleQualification()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/fixture/
DTestableSystemProperties.java121 ? Boolean.parseBoolean(sKeyValueMap.get(key)) in getBooleanValue()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DCallingMethodActivity.java85 mParameterValues[i] = Boolean.parseBoolean(text); in executeCallMethod()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPhotoPickerCloudTestUtils.java51 return Boolean.parseBoolean( in isCloudMediaEnabled()
/packages/apps/ThemePicker/src/com/android/customization/model/grid/
DLauncherGridOptionsProvider.java97 boolean isSet = Boolean.parseBoolean(c.getString(c.getColumnIndex(COL_IS_DEFAULT))); in fetch()

123