Home
last modified time | relevance | path

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

12345678910>>...45

/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java19 import static android.text.TextUtils.formatSimple;
61 assertEquals("", TextUtils.concat()); in testBasic()
106 result = TextUtils.expandTemplate("^"); in testTemplateString()
109 result = TextUtils.expandTemplate("^^"); in testTemplateString()
112 result = TextUtils.expandTemplate("^^^"); in testTemplateString()
234 TextUtils.StringSplitter splitter = new TextUtils.SimpleStringSplitter(','); in stringSplitterTestHelper()
434 TextUtils.writeToParcel(null, p, 0); in testCharSequenceCreator()
457 TextUtils.writeToParcel(null, p, 0); in testCharSequenceCreatorNull()
777 TextUtils.trimToSize("", -1); in testTrimToSizeThrowsExceptionForNegativeSize()
782 TextUtils.trimToSize("abc", 0); in testTrimToSizeThrowsExceptionForZeroSize()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A 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()
/aosp14/frameworks/base/core/java/android/app/smartspace/uitemplatedata/
H A 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()
/aosp14/frameworks/base/media/java/android/media/
H A 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()
/aosp14/frameworks/base/core/java/android/service/quicksettings/
H A DTile.java25 import android.text.TextUtils;
269 TextUtils.writeToParcel(mLabel, dest, flags); in writeToParcel()
270 TextUtils.writeToParcel(mSubtitle, dest, flags); in writeToParcel()
271 TextUtils.writeToParcel(mContentDescription, dest, flags); in writeToParcel()
272 TextUtils.writeToParcel(mStateDescription, dest, flags); in writeToParcel()
287 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
288 mSubtitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
289 mContentDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
290 mStateDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in readFromParcel()
/aosp14/frameworks/base/packages/SettingsLib/FooterPreference/src/com/android/settingslib/widget/
H A DFooterPreference.java21 import android.text.TextUtils;
62 if (title != null && !TextUtils.isEmpty(mContentDescription)) { in onBindViewHolder()
70 if (TextUtils.isEmpty(mLearnMoreText)) { in onBindViewHolder()
116 if (!TextUtils.equals(mContentDescription, contentDescription)) { in setContentDescription()
136 if (!TextUtils.equals(mLearnMoreText, learnMoreText)) { in setLearnMoreText()
169 if (TextUtils.isEmpty(getKey())) { in init()
270 if (TextUtils.isEmpty(mTitle)) { in build()
274 if (!TextUtils.isEmpty(mKey)) { in build()
278 if (!TextUtils.isEmpty(mContentDescription)) { in build()
282 if (!TextUtils.isEmpty(mLearnMoreText)) { in build()
/aosp14/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A 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()
/aosp14/frameworks/base/media/java/android/media/tv/
H A 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()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A 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()
H A 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);
H A 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()
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DInfoMediaManager.java56 import android.text.TextUtils;
107 if (!TextUtils.isEmpty(packageName)) { in InfoMediaManager()
167 if (TextUtils.isEmpty(mPackageName)) { in addDeviceToPlayMedia()
233 if (TextUtils.isEmpty(mPackageName)) { in removeDeviceFromPlayMedia()
254 if (TextUtils.isEmpty(mPackageName)) { in releaseSession()
278 if (TextUtils.isEmpty(mPackageName)) { in getSelectableMediaDevice()
305 if (TextUtils.isEmpty(mPackageName)) { in getDeselectableMediaDevice()
332 if (TextUtils.isEmpty(mPackageName)) { in getSelectedMediaDevice()
367 if (TextUtils.isEmpty(mPackageName)) { in adjustSessionVolume()
390 if (TextUtils.isEmpty(mPackageName)) { in getSessionVolumeMax()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A 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()
/aosp14/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
H A 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()
/aosp14/frameworks/base/core/java/android/text/
H A DBoringLayout.java41 public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback {
85 boolean includePad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in make()
119 boolean includePad, @Nullable TextUtils.TruncateAt ellipsize, in make()
189 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) { in replaceOrMake()
234 boolean includePad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in replaceOrMake()
283 TextUtils.TruncateAt ellipsize, int ellipsizedWidth) { in BoringLayout()
325 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) { in BoringLayout()
420 final char[] buffer = TextUtils.obtain(MAX_BUF_LEN); in hasAnyInterestingChars()
427 TextUtils.getChars(text, start, end, buffer, 0); in hasAnyInterestingChars()
432 if (c == '\n' || c == '\t' || TextUtils.couldAffectRtl(c)) { in hasAnyInterestingChars()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/accessibility/util/
H A DShortcutUtils.java27 import android.text.TextUtils;
40 private static final TextUtils.SimpleStringSplitter sStringColonSplitter =
41 new TextUtils.SimpleStringSplitter(SERVICES_SEPARATOR);
62 if (!TextUtils.isEmpty(targetString)) { in optInValueToSettings()
85 if (TextUtils.isEmpty(targetsValue)) { in optOutValueFromSettings()
92 if (TextUtils.isEmpty(id) || componentId.equals(id)) { in optOutValueFromSettings()
115 if (TextUtils.isEmpty(targetString)) { in isComponentIdExistingInSettings()
/aosp14/frameworks/base/services/core/java/com/android/server/infra/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumePanelDialogReceiver.kt23 import android.text.TextUtils
39 if (TextUtils.equals(LAUNCH_ACTION, intent.action) ||
40 TextUtils.equals(Settings.Panel.ACTION_VOLUME, intent.action)) {
42 } else if (TextUtils.equals(DISMISS_ACTION, intent.action)) {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A 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()
/aosp14/frameworks/base/core/java/android/view/textservice/
H A 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()
/aosp14/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A 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()
/aosp14/frameworks/base/core/java/android/app/
H A DPropertyInvalidatedCache.java28 import android.text.TextUtils;
1079 Log.w(TAG, TextUtils.formatSimple(
1121 Log.d(TAG, TextUtils.formatSimple(
1148 Log.w(TAG, TextUtils.formatSimple(
1157 Log.d(TAG, TextUtils.formatSimple(
1196 Log.w(TAG, TextUtils.formatSimple(
1205 Log.d(TAG, TextUtils.formatSimple(
1511 pw.println(TextUtils.formatSimple(
1514 pw.println(TextUtils.formatSimple(
1518 pw.println(TextUtils.formatSimple(
[all …]
/aosp14/frameworks/base/core/java/android/os/storage/
H A DCrateInfo.java28 import android.text.TextUtils;
132 if (TextUtils.isEmpty(mLabel)) { in getLabel()
186 if (!TextUtils.isEmpty(mId) in equals()
187 && TextUtils.equals(mId, crateInfo.mId)) { in equals()
272 if (!UserHandle.isApp(uid) || TextUtils.isEmpty(packageName) || TextUtils.isEmpty(id)) { in copyFrom()

12345678910>>...45