Home
last modified time | relevance | path

Searched refs:TextUtils (Results 1 – 25 of 917) sorted by relevance

12345678910>>...37

/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java58 assertEquals("", TextUtils.concat()); in testBasic()
59 assertEquals("foo", TextUtils.concat("foo")); in testBasic()
60 assertEquals("foobar", TextUtils.concat("foo", "bar")); in testBasic()
61 assertEquals("foobarbaz", TextUtils.concat("foo", "bar", "baz")); in testBasic()
72 assertEquals("foo", TextUtils.concat(foo).toString()); in testBasic()
73 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); in testBasic()
74 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); in testBasic()
76 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
78 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
79 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegate.java20 import android.text.TextUtils;
41 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityEvent()
45 if (!TextUtils.isEmpty(text)) { in onInitializeAccessibilityEvent()
52 if (TextUtils.isEmpty(mFancyColon)) { in onPopulateAccessibilityEvent()
56 if (!TextUtils.isEmpty(text)) { in onPopulateAccessibilityEvent()
65 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityNodeInfo()
68 if (!TextUtils.isEmpty(info.getText())) { in onInitializeAccessibilityNodeInfo()
71 if (!TextUtils.isEmpty(info.getContentDescription())) { in onInitializeAccessibilityNodeInfo()
77 if (TextUtils.isEmpty(mFancyColon)) { in replaceFancyColon()
84 return !TextUtils.isEmpty(context.getString(R.string.keyguard_fancy_colon)); in isNeeded()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntry.java43 import android.text.TextUtils;
162 return TextUtils.isEmpty(mFamily) && TextUtils.isEmpty(mGiven) in emptyStructuredName()
163 && TextUtils.isEmpty(mMiddle) && TextUtils.isEmpty(mPrefix) in emptyStructuredName()
164 && TextUtils.isEmpty(mSuffix); in emptyStructuredName()
168 return TextUtils.isEmpty(mPhoneticFamily) && TextUtils.isEmpty(mPhoneticGiven) in emptyPhoneticStructuredName()
169 && TextUtils.isEmpty(mPhoneticMiddle); in emptyPhoneticStructuredName()
180 if (!TextUtils.isEmpty(mGiven)) { in constructInsertOperation()
183 if (!TextUtils.isEmpty(mFamily)) { in constructInsertOperation()
186 if (!TextUtils.isEmpty(mMiddle)) { in constructInsertOperation()
189 if (!TextUtils.isEmpty(mPrefix)) { in constructInsertOperation()
[all …]
DVCardBuilder.java33 import android.text.TextUtils;
165 if (TextUtils.isEmpty(charset)) { in VCardBuilder()
175 if (TextUtils.isEmpty(charset)) { in VCardBuilder()
218 return !(TextUtils.isEmpty(familyName) && TextUtils.isEmpty(middleName) && in containsNonEmptyName()
219 TextUtils.isEmpty(givenName) && TextUtils.isEmpty(prefix) && in containsNonEmptyName()
220 TextUtils.isEmpty(suffix) && TextUtils.isEmpty(phoneticFamilyName) && in containsNonEmptyName()
221 TextUtils.isEmpty(phoneticMiddleName) && TextUtils.isEmpty(phoneticGivenName) && in containsNonEmptyName()
222 TextUtils.isEmpty(displayName)); in containsNonEmptyName()
298 if (TextUtils.isEmpty(familyName) in appendNamePropertiesV40()
299 && TextUtils.isEmpty(givenName) in appendNamePropertiesV40()
[all …]
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java22 import android.text.TextUtils;
264 && TextUtils.equals(mUpdateMethod, that.mUpdateMethod) in equals()
265 && TextUtils.equals(mRestriction, that.mRestriction) in equals()
266 && TextUtils.equals(mServerUri, that.mServerUri) in equals()
267 && TextUtils.equals(mUsername, that.mUsername) in equals()
268 && TextUtils.equals(mBase64EncodedPassword, that.mBase64EncodedPassword) in equals()
269 && TextUtils.equals(mTrustRootCertUrl, that.mTrustRootCertUrl) in equals()
310 if (!TextUtils.equals(mUpdateMethod, UPDATE_METHOD_OMADM) in validate()
311 && !TextUtils.equals(mUpdateMethod, UPDATE_METHOD_SSP)) { in validate()
316 if (!TextUtils.equals(mRestriction, UPDATE_RESTRICTION_HOMESP) in validate()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DLegacyPasspointConfig.java19 import android.text.TextUtils;
50 return TextUtils.equals(mFqdn, that.mFqdn) in equals()
51 && TextUtils.equals(mFriendlyName, that.mFriendlyName) in equals()
53 && TextUtils.equals(mRealm, that.mRealm) in equals()
54 && TextUtils.equals(mImsi, that.mImsi); in equals()
DDomainMatcher.java19 import android.text.TextUtils;
128 if (!TextUtils.isEmpty(domain)) { in DomainMatcher()
136 if (!TextUtils.isEmpty(primaryDomain)) { in DomainMatcher()
159 if (TextUtils.isEmpty(domainName)) { in isSubDomain()
188 if (TextUtils.isEmpty(domain1) || TextUtils.isEmpty(domain2)) { in arg2SubdomainOfArg1()
204 if (!TextUtils.equals(l1.next(), l2.next())) { in arg2SubdomainOfArg1()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java24 import android.text.TextUtils;
215 TextUtils.writeToParcel(mLabel, dest, flags); in writeToParcel()
216 TextUtils.writeToParcel(mSubtitle, dest, flags); in writeToParcel()
217 TextUtils.writeToParcel(mContentDescription, dest, flags); in writeToParcel()
227 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
228 mSubtitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
229 mContentDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java20 import android.text.TextUtils;
83 if (!TextUtils.isEmpty(model)) { in isSupportedSamsungModel()
97 if (TextUtils.isEmpty(usb_mfg)) { in getSamsungModelName()
102 if (TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
107 if (!TextUtils.isEmpty(usb_mfg) && !TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
111 if (TextUtils.isEmpty(modelName)) { in getSamsungModelName()
/frameworks/base/media/java/android/media/tv/
DTvContentRating.java20 import android.text.TextUtils;
922 if (TextUtils.isEmpty(domain)) { in createRating()
925 if (TextUtils.isEmpty(ratingSystem)) { in createRating()
928 if (TextUtils.isEmpty(rating)) { in createRating()
944 if (TextUtils.isEmpty(ratingString)) { in unflattenFromString()
1080 if (!TextUtils.equals(mDomain, other.mDomain)) { in equals()
1083 if (!TextUtils.equals(mRatingSystem, other.mRatingSystem)) { in equals()
1086 if (!TextUtils.equals(mRating, other.mRating)) { in equals()
/frameworks/base/core/java/android/view/textclassifier/intent/
DTemplateIntentFactory.java23 import android.text.TextUtils;
78 if (TextUtils.isEmpty(remoteActionTemplate.titleWithEntity) in isValidTemplate()
79 && TextUtils.isEmpty(remoteActionTemplate.titleWithoutEntity)) { in isValidTemplate()
83 if (TextUtils.isEmpty(remoteActionTemplate.description)) { in isValidTemplate()
87 if (!TextUtils.isEmpty(remoteActionTemplate.packageName)) { in isValidTemplate()
91 if (TextUtils.isEmpty(remoteActionTemplate.action)) { in isValidTemplate()
100 final Uri uri = TextUtils.isEmpty(remoteActionTemplate.data) in createIntent()
102 final String type = TextUtils.isEmpty(remoteActionTemplate.type) in createIntent()
/frameworks/base/core/java/android/view/inputmethod/
DCorrectionInfo.java21 import android.text.TextUtils;
45 mOldText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CorrectionInfo()
46 mNewText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CorrectionInfo()
84 TextUtils.writeToParcel(mOldText, dest, flags); in writeToParcel()
85 TextUtils.writeToParcel(mNewText, dest, flags); in writeToParcel()
DExtractedText.java21 import android.text.TextUtils;
105 TextUtils.writeToParcel(text, dest, flags); in writeToParcel()
112 TextUtils.writeToParcel(hint, dest, flags); in writeToParcel()
122 res.text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
129 res.hint = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
DCompletionInfo.java21 import android.text.TextUtils;
97 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CompletionInfo()
98 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CompletionInfo()
149 TextUtils.writeToParcel(mText, dest, flags); in writeToParcel()
150 TextUtils.writeToParcel(mLabel, dest, flags); in writeToParcel()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DHPRecommendationPlugin.java21 import android.text.TextUtils;
56 if (!TextUtils.isEmpty(printerModel)) { in isPrintSupported()
71 if (!TextUtils.isEmpty(printerModel)) { in isSupportedDesignjet()
88 if (!TextUtils.equals(vendor, mVendorInfo.mVendorID)) return false; in matchesCriteria()
91 …boolean hasMobileSupport = TextUtils.equals(ATTRIBUTE_VALUE__TRUE, MDnsUtils.getString(nsdServiceI… in matchesCriteria()
94 &&!TextUtils.isEmpty(pdls)) in matchesCriteria()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java22 import android.text.TextUtils;
93 if (!TextUtils.isEmpty(rruleStr) || !TextUtils.isEmpty(rdateStr)) { in init()
102 if (TextUtils.isEmpty(ruleStr)) { in parseMultiLineRecurrenceRules()
116 if (TextUtils.isEmpty(dateStr)) { in parseMultiLineRecurrenceDates()
214 if ((TextUtils.isEmpty(dtstart))|| in populateContentValues()
215 (TextUtils.isEmpty(duration))|| in populateContentValues()
216 ((TextUtils.isEmpty(rrule))&& in populateContentValues()
217 (TextUtils.isEmpty(rdate)))) { in populateContentValues()
280 (TextUtils.isEmpty(duration))|| in populateComponent()
281 ((TextUtils.isEmpty(rruleStr))&& in populateComponent()
[all …]
/frameworks/base/core/java/android/text/
DBoringLayout.java38 public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback {
82 boolean includePad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in make()
139 boolean includePad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in replaceOrMake()
142 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) { in replaceOrMake()
150 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidth, ellipsize, true, this), in replaceOrMake()
204 TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in BoringLayout()
214 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) { in BoringLayout()
220 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidth, ellipsize, true, this), in BoringLayout()
307 final char[] buffer = TextUtils.obtain(MAX_BUF_LEN); in hasAnyInterestingChars()
314 TextUtils.getChars(text, start, end, buffer, 0); in hasAnyInterestingChars()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java23 import android.text.TextUtils;
61 assertFalse(TextUtils.isEmpty(ev.getContentDescription())); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc()
81 assertFalse(TextUtils.isEmpty(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
84 assertFalse(TextUtils.isEmpty(info.getContentDescription())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
97 boolean hasFancyColon = !TextUtils.isEmpty(mContext.getString( in isNeeded_returnsWhetherFancyColonExists()
112 return texts.stream().allMatch(TextUtils::isEmpty); in isEmpty()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDebugService.java19 import android.text.TextUtils;
47 if (TextUtils.equals(args[0], "--metrics") in dump()
48 || TextUtils.equals(args[0], "--metricsproto") in dump()
49 || TextUtils.equals(args[0], "--metricsprototext")) in dump()
/frameworks/base/core/java/android/content/
DSyncAdapterType.java24 import android.text.TextUtils;
48 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
51 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
72 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
75 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
91 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
94 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
/frameworks/libs/net/common/framework/android/net/util/
DLinkPropertiesUtils.java24 import android.text.TextUtils;
64 return "removed=[" + TextUtils.join(",", removed) in toString()
65 + "] added=[" + TextUtils.join(",", added) in toString()
121 return "removed=[" + TextUtils.join(",", removed) in toString()
122 + "] added=[" + TextUtils.join(",", added) in toString()
123 + "] updated=[" + TextUtils.join(",", updated) in toString()
208 return TextUtils.equals(left.getInterfaceName(), right.getInterfaceName()); in isIdenticalInterfaceName()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdnr/
DCarrierDisplayNameResolver.java36 import android.text.TextUtils;
164 if (!TextUtils.isEmpty(eriText) && (mPhone.isPhoneTypeCdma() || mPhone.isPhoneTypeCdmaLte()) in updateEfForEri()
180 if (TextUtils.isEmpty(operatorName)) { in updateEfForBrandOverride()
261 if (!TextUtils.isEmpty(mEf.valueAt(i).getServiceProviderName())) { in getEfSpn()
323 if (TextUtils.isEmpty(plmn)) { in getCarrierDisplayNameFromEf()
324 plmn = TextUtils.isEmpty(registeredPlmnName) ? registeredPlmnNumeric in getCarrierDisplayNameFromEf()
329 boolean showPlmn = TextUtils.isEmpty(spn) || displayRule.shouldShowPlmn(isRoaming, plmn); in getCarrierDisplayNameFromEf()
355 TextUtils.isEmpty(plmn) ? rawCarrierDisplayNameData.getPlmn() : plmn); in getCarrierDisplayNameFromWifiCallingOverride()
358 if (!TextUtils.isEmpty(wfcSpn) && !TextUtils.isEmpty(wfcDataSpn)) { in getCarrierDisplayNameFromWifiCallingOverride()
364 } else if (!TextUtils.isEmpty(wfcPlmn)) { in getCarrierDisplayNameFromWifiCallingOverride()
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbUtil.java25 import android.text.TextUtils;
62 if (TextUtils.equals(l.getManufacturerName(), r.getManufacturerName()) && in isTheSameDevice()
63 TextUtils.equals(l.getProductName(), r.getProductName()) && in isTheSameDevice()
64 TextUtils.equals(l.getSerialNumber(), r.getSerialNumber())) { in isTheSameDevice()
72 TextUtils.equals(l.getSerialNumber(), r.getSerialNumber())) { in isDevicesMatching()
/frameworks/base/core/java/android/view/textservice/
DTextInfo.java23 import android.text.TextUtils;
56 return TextUtils.isEmpty(text) ? 0 : text.length(); in getStringLengthOrZero()
69 if (TextUtils.isEmpty(charSequence)) { in TextInfo()
88 mCharSequence = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in TextInfo()
101 TextUtils.writeToParcel(mCharSequence, dest, flags); in writeToParcel()
/frameworks/base/media/java/android/media/
DMediaDescription.java26 import android.text.TextUtils;
142 mTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in MediaDescription()
143 mSubtitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in MediaDescription()
144 mDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in MediaDescription()
230 TextUtils.writeToParcel(mTitle, dest, 0); in writeToParcel()
231 TextUtils.writeToParcel(mSubtitle, dest, 0); in writeToParcel()
232 TextUtils.writeToParcel(mDescription, dest, 0); in writeToParcel()

12345678910>>...37