Home
last modified time | relevance | path

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

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java35 import static com.android.providers.media.util.DatabaseUtils.parseBoolean;
382 assertTrue(parseBoolean("TRUE", false)); in testParseBoolean()
383 assertTrue(parseBoolean("true", false)); in testParseBoolean()
384 assertTrue(parseBoolean("1", false)); in testParseBoolean()
385 assertTrue(parseBoolean(1, false)); in testParseBoolean()
386 assertTrue(parseBoolean(true, false)); in testParseBoolean()
388 assertFalse(parseBoolean("FALSE", true)); in testParseBoolean()
389 assertFalse(parseBoolean("false", true)); in testParseBoolean()
390 assertFalse(parseBoolean("0", true)); in testParseBoolean()
391 assertFalse(parseBoolean(0, true)); in testParseBoolean()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParser.java180 builder.setLeaveAllSystemAppsEnabled(Boolean.parseBoolean(s)); in parse()
184 builder.setSkipEncryption(Boolean.parseBoolean(s)); in parse()
188 builder.setUseMobileData(Boolean.parseBoolean(s)); in parse()
192 builder.setDeviceOwnerPermissionGrantOptOut(Boolean.parseBoolean(s)); in parse()
250 builder.setHidden(Boolean.parseBoolean(s)); in parseWifiInfoFromProperties()
/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/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java197 return Boolean.parseBoolean(value); in isHearingAidSettingsEnabled()
204 return Boolean.parseBoolean(value); in isHearingAidSettingsEnabled()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java538 public static boolean parseBoolean(@Nullable Object value, boolean def) { in parseBoolean() method in DatabaseUtils
553 return parseBoolean(extras.get(key), def); in getAsBoolean()
558 return parseBoolean(values.get(key), def); in getAsBoolean()
DFileUtils.java42 import static com.android.providers.media.util.DatabaseUtils.parseBoolean;
1236 if (parseBoolean(pending, false)) {
1245 if (parseBoolean(trashed, false)) {
/packages/modules/Connectivity/framework/src/android/net/
DNetworkConfig.java71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
DNetwork.java85 Boolean.parseBoolean(System.getProperty("http.keepAlive", "true"));
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagPersistent.java43 return Boolean.parseBoolean(value); in isEnabled()
/packages/services/Mtp/tests/src/com/android/mtp/
DTestResultInstrumentation.java39 Boolean.parseBoolean(arguments.getString("realDeviceTest", "false")); in onCreate()
/packages/apps/Messaging/src/android/support/v7/mms/
DDefaultCarrierConfigValuesLoader.java108 values.putBoolean(key, Boolean.parseBoolean(value)); in loadFromResources()
/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/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java69 if (arguments.containsKey("debug") && Boolean.parseBoolean(arguments.getString("debug"))) { in onCreate()
/packages/apps/ThemePicker/src/com/android/customization/model/grid/
DLauncherGridOptionsProvider.java90 boolean isSet = Boolean.parseBoolean(c.getString(c.getColumnIndex(COL_IS_DEFAULT))); in fetch()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DCallingMethodActivity.java85 mParameterValues[i] = Boolean.parseBoolean(text); in executeCallMethod()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java971 Boolean.parseBoolean(getPpsNodeValue(child))); in parseCredential()
1008 userCred.setMachineManaged(Boolean.parseBoolean(getPpsNodeValue(child))); in parseUserCredential()
1014 userCred.setAbleToShare(Boolean.parseBoolean(getPpsNodeValue(child))); in parseUserCredential()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeyValueListParser.java149 return Boolean.parseBoolean(value); in getBoolean()
DXmlUtilHelper.java1351 array[i] = Boolean.parseBoolean(parser.getAttributeValue(null, "value")); in readThisBooleanArrayXml()
1666 return Boolean.parseBoolean(value); in readBooleanAttribute()
1675 return Boolean.parseBoolean(value); in readBooleanAttribute()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionService.java109 if (!Boolean.parseBoolean( in canTranscribeVoicemail()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java279 boolean isSelectable = Boolean.parseBoolean(res.getString(0)); in isUserSelectable()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
DCarUiUtils.java170 return Boolean.parseBoolean(value); in getBooleanSystemProperty()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyTestFragment.java145 Boolean boolVal = Boolean.parseBoolean(valueString); in onCreateView()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java319 return Boolean.parseBoolean(operationInProgressString); in isOperationInProgress()
/packages/apps/TV/common/src/com/android/tv/common/
DCommonPreferences.java307 bundle.putBoolean(key, Boolean.parseBoolean(value)); in doInBackground()

12