Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 25 of 183) sorted by relevance

12345678

/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java98 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
99 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
102 double minutes = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
103 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
106 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
107 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java176 String[] pairs = channelRange.substring(colonIndex + 1).trim().split(","); in CellBroadcastChannelRange()
178 pair = pair.trim(); in CellBroadcastChannelRange()
181 String key = tokens[0].trim(); in CellBroadcastChannelRange()
182 String value = tokens[1].trim(); in CellBroadcastChannelRange()
270 channelRange = channelRange.substring(0, colonIndex).trim(); in CellBroadcastChannelRange()
283 mStartId = Integer.decode(channelRange.substring(0, dashIndex).trim()); in CellBroadcastChannelRange()
284 mEndId = Integer.decode(channelRange.substring(dashIndex + 1).trim()); in CellBroadcastChannelRange()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java255 line = line.trim(); in parseVcard()
574 if (arg[1].trim().equals("READ")) { in parse()
576 } else if (arg[1].trim().equals("UNREAD")) { in parse()
588 String value = arg[1].trim(); in parse()
596 String value = arg[1].trim(); in parse()
628 folder = arg[1].trim(); in parse()
717 mPartId = Long.parseLong(arg[1].trim()); in parseBody()
727 mEncoding = arg[1].trim(); in parseBody()
735 mCharset = arg[1].trim(); in parseBody()
743 mLanguage = arg[1].trim(); in parseBody()
[all …]
DBluetoothMapbMessageMime.java569 if (header.trim().isEmpty()) { in parseMimeHeaders()
584 String headerValue = headerParts[1].trim(); in parseMimeHeaders()
625 mBoundary = contentTypeParts[j].split("boundary[\\s]*=", 2)[1].trim(); in parseMimeHeaders()
635 mCharset = contentTypeParts[j].split("charset[\\s]*=", 2)[1].trim(); in parseMimeHeaders()
665 if ((header.length() == 0) || (header.trim().isEmpty()) || header.trim() in parseMimePart()
681 String headerValue = headerParts[1].trim(); in parseMimePart()
689 newPart.mCharsetName = value.split("charset[\\s]*=", 2)[1].trim(); in parseMimePart()
DBluetoothMapConvoListingElement.java188 if (value.trim().equalsIgnoreCase("yes")) { in setRead()
308 String attributeName = parser.getAttributeName(i).trim(); in createFromXml()
337 String name = parser.getName().trim(); in createFromXml()
/packages/apps/Settings/src/com/android/settings/
DProxySelector.java95 String hostname = mHostnameField.getText().toString().trim(); in onCreateDialog()
96 String portStr = mPortField.getText().toString().trim(); in onCreateDialog()
97 String exclList = mExclusionListField.getText().toString().trim(); in onCreateDialog()
215 String hostname = mHostnameField.getText().toString().trim(); in saveToDb()
216 String portStr = mPortField.getText().toString().trim(); in saveToDb()
217 String exclList = mExclusionListField.getText().toString().trim(); in saveToDb()
/packages/services/Telephony/src/com/android/services/telephony/rcs/validator/
DOutgoingTransportStateValidator.java83 mAllowedTags = allowedFeatureTags.stream().map(String::trim).map(String::toLowerCase) in open()
85 mDeniedTags = deniedFeatureTags.stream().map(String::trim).map(String::toLowerCase) in open()
98 mRestrictedFeatureTags = restrictedFeatureTags.stream().map(String::trim) in restrictFeatureTags()
169 .anyMatch(req -> req.equals(segments[0].trim().toLowerCase())); in verifyOpenMessage()
187 featureTags = featureTags.stream().map(String::toLowerCase).map(String::trim) in validateMessageFeatureTag()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPublicVolumeSetupHelper.java78 final String publicVolume = executeShellCommand("sm list-volumes public").trim(); in isPublicVolumeMounted()
87 final String listDisks = executeShellCommand("sm list-disks").trim(); in partitionDisk()
119 .trim().split("\n"); in getCurrentPublicVolumeString()
126 final String[] publicVolumeDetails = volDetails.trim().split(" "); in getCurrentPublicVolumeString()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DProcNetTest.java104 String mode = mDevice.executeAdbCommand("shell", "stat", "-c", "%a", path).trim(); in readIntFromPath()
105 String user = mDevice.executeAdbCommand("shell", "stat", "-c", "%u", path).trim(); in readIntFromPath()
106 String group = mDevice.executeAdbCommand("shell", "stat", "-c", "%g", path).trim(); in readIntFromPath()
110 return Integer.parseInt(mDevice.executeAdbCommand("shell", "cat", path).trim()); in readIntFromPath()
DNetworkPolicyTestsPreparer.java63 return "enabled".equals(executeCmd("cmd connectivity airplane-mode").trim()); in getAirplaneModeEnabled()
75 return executeCmd("settings get global app_standby_enabled").trim(); in getAppStandbyEnabled()
88 final String output = mDevice.executeShellCommand(cmd).trim(); in executeCmd()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DConfigParser.java364 type = attributes[0].trim(); in parseContentType()
367 String attribute = attributes[i].trim(); in parseContentType()
403 if (line.length() == 0 || line.trim().length() == 0) { in readHeaders()
415 value.append(' ').append(line.trim()); in readHeaders()
433 name = line.substring(0, nameEnd).trim(); in readHeaders()
435 value.append(line.substring(nameEnd+1).trim()); in readHeaders()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java62 String opcode = line.substring(6, 10).trim(); in convertLine()
63 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine()
210 String true_label = line.substring(jt_offset + 2, jf_offset).trim(); in convertLine()
211 String false_label = line.substring(jf_offset + 2).trim(); in convertLine()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java616 profile.server = mServer.getText().toString().trim(); in getProfile()
623 profile.searchDomains = mSearchDomains.getText().toString().trim(); in getProfile()
624 profile.dnsServers = mDnsServers.getText().toString().trim(); in getProfile()
625 profile.routes = mRoutes.getText().toString().trim(); in getProfile()
631 String proxyHost = mProxyHost.getText().toString().trim(); in getProfile()
632 String proxyPort = mProxyPort.getText().toString().trim(); in getProfile()
685 final String host = mProxyHost.getText().toString().trim(); in validateProxy()
686 final String port = mProxyPort.getText().toString().trim(); in validateProxy()
/packages/apps/Contacts/src/com/android/contacts/util/
DNameConverter.java144 sb.append(family.trim()).append(' '); in buildPhoneticName()
147 sb.append(middle.trim()).append(' '); in buildPhoneticName()
150 sb.append(given.trim()).append(' '); in buildPhoneticName()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatusTests.java40 status.trim(); in testTrim()
46 status.trim(); in testTrim()
52 status.trim(); in testTrim()
58 status.trim(); in testTrim()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java692 SpannableStringBuilder trim = new SpannableStringBuilder(); in updateText() local
693 trim.append(mBuilder); in updateText()
695 trim.delete(end + 1, last + 1); in updateText()
698 trim.delete(0, start); in updateText()
700 mSubtitleView.setPrefixSpaces(getPrefixSpaces(trim)); in updateText()
701 mSubtitleView.setText(trim); in updateText()
/packages/services/Mms/src/com/android/mms/service/
DApnSettings.java97 apnName = apnName != null ? apnName.trim() : null; in load()
180 return value != null ? value.trim() : null; in trimWithNullCheck()
212 type = type.trim(); in isValidApnType()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAlphabeticIndexCompat.java50 String s = Utilities.trim(cs); in computeSectionName()
52 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipMessageUtils.java71 headerValue += PARAM_SEPARATOR + paramKey.trim() + PARAM_KEY_VALUE_SEPARATOR in addParamToHeader()
72 + paramValue.trim(); in addParamToHeader()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformation.java64 transformations = transformations.trim().toLowerCase(); in BipTransformation()
179 return transformations.trim(); in toString()
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/
DLoginViewModel.java89 return !username.trim().isEmpty(); in isUserNameValid()
95 return password != null && password.trim().length() > 5; in isPasswordValid()
/packages/services/Telephony/tests/src/com/android/phone/ecc/
DEccDataTest.java55 assertThat(countryInfo.isoCode).isEqualTo(countryInfo.isoCode.toUpperCase().trim()); in testEccDataContent()
62 assertThat(eccInfo.phoneNumber).isEqualTo(eccInfo.phoneNumber.trim()); in testEccDataContent()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java328 line = line.trim(); in readAdapterConfig()
340 adapterConfig.get(section).put(keyValue[0].trim(), in readAdapterConfig()
341 keyValue.length == 1 ? "" : keyValue[1].trim()); in readAdapterConfig()
/packages/apps/Car/Radio/src/com/android/car/radio/
DDisplayController.java256 songTitle = songTitle.trim(); in setDetails()
257 songArtist = songArtist.trim(); in setDetails()
282 mStationName.setText(isEmpty ? null : name.trim()); in setStationName()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java197 String taskLabel = td == null ? null : Utilities.trim(td.getLabel()); in getBadgedContentDescription()
199 taskLabel = Utilities.trim(info.loadLabel(pm)); in getBadgedContentDescription()
202 String applicationLabel = Utilities.trim(info.applicationInfo.loadLabel(pm)); in getBadgedContentDescription()

12345678