Home
last modified time | relevance | path

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

12345678910>>...56

/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java19 import static android.text.TextUtils.formatSimple;
61 assertEquals("", TextUtils.concat()); in testBasic()
62 assertEquals("foo", TextUtils.concat("foo")); in testBasic()
63 assertEquals("foobar", TextUtils.concat("foo", "bar")); in testBasic()
64 assertEquals("foobarbaz", TextUtils.concat("foo", "bar", "baz")); in testBasic()
75 assertEquals("foo", TextUtils.concat(foo).toString()); in testBasic()
76 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); in testBasic()
77 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); in testBasic()
79 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
81 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); 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/base/core/java/android/app/smartspace/uitemplatedata/
DText.java24 import android.text.TextUtils;
40 private final TextUtils.TruncateAt mTruncateAtType;
45 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in Text()
46 mTruncateAtType = TextUtils.TruncateAt.valueOf(in.readString()); in Text()
50 private Text(@NonNull CharSequence text, TextUtils.TruncateAt truncateAtType, int maxLines) { in Text()
64 public TextUtils.TruncateAt getTruncateAtType() { in getTruncateAtType()
107 TextUtils.writeToParcel(mText, out, flags); in writeToParcel()
129 private TextUtils.TruncateAt mTruncateAtType;
138 mTruncateAtType = TextUtils.TruncateAt.END; in Builder()
147 public Builder setTruncateAtType(@NonNull TextUtils.TruncateAt truncateAtType) { in setTruncateAtType()
/frameworks/base/media/java/android/media/
DMediaRouter2Utils.java21 import android.text.TextUtils;
36 Preconditions.checkArgument(!TextUtils.isEmpty(providerId) in toUniqueId()
37 && !TextUtils.isEmpty(id)); in toUniqueId()
48 if (TextUtils.isEmpty(uniqueId)) { in getProviderId()
59 if (TextUtils.isEmpty(providerId)) { in getProviderId()
72 if (TextUtils.isEmpty(uniqueId)) { in getOriginalId()
83 if (TextUtils.isEmpty(providerId)) { in getOriginalId()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java25 import android.text.TextUtils;
285 TextUtils.writeToParcel(mLabel, dest, flags); in writeToParcel()
286 TextUtils.writeToParcel(mDefaultLabel, dest, flags); in writeToParcel()
287 TextUtils.writeToParcel(mSubtitle, dest, flags); in writeToParcel()
288 TextUtils.writeToParcel(mContentDescription, dest, flags); in writeToParcel()
289 TextUtils.writeToParcel(mStateDescription, dest, flags); in writeToParcel()
304 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
305 mDefaultLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
306 mSubtitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
307 mContentDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
[all …]
/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 …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java20 import android.text.TextUtils;
78 if (!TextUtils.isEmpty(model)) { in isSupportedSamsungModel()
92 if (TextUtils.isEmpty(usb_mfg)) { in getSamsungModelName()
97 if (TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
102 if (!TextUtils.isEmpty(usb_mfg) && !TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
106 if (TextUtils.isEmpty(modelName)) { in getSamsungModelName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java26 import android.text.TextUtils;
43 if (!TextUtils.isEmpty(channel.getConversationId())) { in createConversationChannelIfNeeded()
49 if (TextUtils.isEmpty(conversationId) || TextUtils.isEmpty(pkg) in createConversationChannelIfNeeded()
76 if (TextUtils.isEmpty(nameString)) { in getName()
79 if (TextUtils.isEmpty(nameString)) { in getName()
DNotificationContentDescription.kt23 import android.text.TextUtils
36 val titleOrText = if (TextUtils.equals(title, appName)) text else title in contentDescForNotification()
38 if (!TextUtils.isEmpty(titleOrText)) titleOrText in contentDescForNotification()
39 else if (!TextUtils.isEmpty(ticker)) ticker else "" in contentDescForNotification()
/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()
DSurroundingText.java24 import android.text.TextUtils;
129 TextUtils.writeToParcel(mText, out, flags); in writeToParcel()
146 TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
175 TextUtils.writeToParcel(source, parcel, /* parcelableFlags= */ 0); in copyWithParcelableSpans()
177 return TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); in copyWithParcelableSpans()
192 && TextUtils.equals(mText, that.mText); in isEqualTo()
/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/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/base/core/java/com/android/internal/app/
DBlockedAppStreamingActivity.java22 import android.text.TextUtils;
53 if (TextUtils.isEmpty(appLabel)) { in onCreate()
60 if (!TextUtils.isEmpty(streamedDeviceName)) { in onCreate()
61 if (TextUtils.equals(activityInfo.packageName, in onCreate()
67 } else if (TextUtils.equals(activityInfo.packageName, BLOCKED_COMPONENT_PLAYSTORE)) { in onCreate()
72 } else if (TextUtils.equals(activityInfo.packageName, BLOCKED_COMPONENT_SETTINGS)) { in onCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdnr/
DCarrierDisplayNameResolver.java39 import android.text.TextUtils;
168 if (!TextUtils.isEmpty(eriText) && (mPhone.isPhoneTypeCdma() || mPhone.isPhoneTypeCdmaLte()) in updateEfForEri()
184 if (TextUtils.isEmpty(operatorName)) { in updateEfForBrandOverride()
267 if (!TextUtils.isEmpty(mEf.valueAt(i).getServiceProviderName())) { in getEfSpn()
333 if (TextUtils.isEmpty(plmn)) { in getCarrierDisplayNameFromEf()
334 plmn = TextUtils.isEmpty(registeredPlmnName) ? registeredPlmnNumeric in getCarrierDisplayNameFromEf()
339 boolean showPlmn = TextUtils.isEmpty(spn) || displayRule.shouldShowPlmn(plmn); in getCarrierDisplayNameFromEf()
372 TextUtils.isEmpty(plmn) ? rawCarrierDisplayNameData.getPlmn() : plmn); in getCarrierDisplayNameFromWifiCallingOverride()
375 if (!TextUtils.isEmpty(wfcSpn) && !TextUtils.isEmpty(wfcDataSpn)) { in getCarrierDisplayNameFromWifiCallingOverride()
381 } else if (!TextUtils.isEmpty(wfcPlmn)) { in getCarrierDisplayNameFromWifiCallingOverride()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodSettings.java26 import android.text.TextUtils;
185 final TextUtils.SimpleStringSplitter inputMethodSplitter = in getEnabledInputMethodsAndSubtypeList()
186 new TextUtils.SimpleStringSplitter(INPUT_METHOD_SEPARATOR); in getEnabledInputMethodsAndSubtypeList()
187 final TextUtils.SimpleStringSplitter subtypeSplitter = in getEnabledInputMethodsAndSubtypeList()
188 new TextUtils.SimpleStringSplitter(INPUT_METHOD_SUBTYPE_SEPARATOR); in getEnabledInputMethodsAndSubtypeList()
190 if (TextUtils.isEmpty(enabledInputMethodsStr)) { in getEnabledInputMethodsAndSubtypeList()
262 if (TextUtils.isEmpty(str)) { in putEnabledInputMethodsStr()
280 if (!TextUtils.isEmpty(newImeId) && !TextUtils.isEmpty(newSubtypeHashCodeStr)) { in saveSubtypeHistory()
289 if (TextUtils.isEmpty(subtypeHashCodeStr)) { in saveSubtypeHistory()
327 if (TextUtils.isEmpty(str)) { in putSubtypeHistoryStr()
[all …]
/frameworks/base/services/core/java/com/android/server/infra/
DSecureSettingsServiceNameResolver.java22 import android.text.TextUtils;
42 private final TextUtils.SimpleStringSplitter mStringColonSplitter =
43 new TextUtils.SimpleStringSplitter(COMPONENT_NAME_SEPARATOR);
113 if (!TextUtils.isEmpty(serviceNames)) { in parseColonDelimitedServiceNames()
114 final TextUtils.SimpleStringSplitter splitter = mStringColonSplitter; in parseColonDelimitedServiceNames()
118 if (TextUtils.isEmpty(str)) { in parseColonDelimitedServiceNames()
/frameworks/base/packages/SettingsLib/UsageProgressBarPreference/src/com/android/settingslib/widget/
DUsageProgressBarPreference.java22 import android.text.TextUtils;
93 if (TextUtils.equals(mUsageSummary, usageSummary)) { in setUsageSummary()
102 if (TextUtils.equals(mTotalSummary, totalSummary)) { in setTotalSummary()
111 if (TextUtils.equals(mBottomSummary, bottomSummary)) { in setBottomSummary()
120 if (!TextUtils.equals(mBottomSummaryContentDescription, contentDescription)) { in setBottomSummaryContentDescription()
182 if (TextUtils.isEmpty(mBottomSummary)) { in onBindViewHolder()
188 if (!TextUtils.isEmpty(mBottomSummaryContentDescription)) { in onBindViewHolder()
213 if (TextUtils.isEmpty(summary)) { in enlargeFontOfNumber()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java30 import android.text.TextUtils;
98 if (TextUtils.isEmpty(label)) { in getLabel()
101 if (TextUtils.isEmpty(label)) { in getLabel()
233 if (TextUtils.isEmpty(ch) in isTrimmable()
263 if (TextUtils.isEmpty(sequence)) { in trimStart()
302 if (TextUtils.isEmpty(sequence)) { in trimEnd()
342 if (TextUtils.isEmpty(sequence)) { in trim()
347 if (TextUtils.isEmpty(result)) { in trim()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishUtils.java26 import android.text.TextUtils;
109 if (TextUtils.isEmpty(domain) || impus == null) { in getContactUriFromIsim()
110 Log.d(LOG_TAG, "getContactUriFromIsim: domain is null=" + TextUtils.isEmpty(domain)); in getContactUriFromIsim()
117 if (TextUtils.isEmpty(impu)) continue; in getContactUriFromIsim()
121 if (SCHEME_SIP.equals(scheme) && !TextUtils.isEmpty(schemeSpecificPart) && in getContactUriFromIsim()
132 if (TextUtils.isEmpty(phoneNumber)) { in getContactUriFromLine1Number()
138 if (!TextUtils.isEmpty(domain)) { in getContactUriFromLine1Number()
146 if (TextUtils.isEmpty(phoneNumber)) { in formatPhoneNumber()
182 if (!TextUtils.isEmpty(simCountryIso)) { in getConvertedTelUri()
/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/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java22 import android.text.TextUtils;
91 if (!TextUtils.isEmpty(rruleStr) || !TextUtils.isEmpty(rdateStr)) { in init()
100 if (TextUtils.isEmpty(ruleStr)) { in parseMultiLineRecurrenceRules()
114 if (TextUtils.isEmpty(dateStr)) { in parseMultiLineRecurrenceDates()
213 if ((TextUtils.isEmpty(dtstart))|| in populateContentValues()
214 (TextUtils.isEmpty(duration))|| in populateContentValues()
215 ((TextUtils.isEmpty(rrule))&& in populateContentValues()
216 (TextUtils.isEmpty(rdate)))) { in populateContentValues()
279 (TextUtils.isEmpty(duration))|| in populateComponent()
280 ((TextUtils.isEmpty(rruleStr))&& in populateComponent()
[all …]
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodSettingsTest.java21 import android.text.TextUtils;
39 final TextUtils.SimpleStringSplitter imeSubtypeSplitter = in createSubtypeHashCodeArrayFromStr()
40 new TextUtils.SimpleStringSplitter(';'); in createSubtypeHashCodeArrayFromStr()
41 if (TextUtils.isEmpty(subtypeHashCodesStr)) { in createSubtypeHashCodeArrayFromStr()

12345678910>>...56