Home
last modified time | relevance | path

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

12345678910

/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java50 import android.text.TextUtils;
51 import android.text.TextUtils.TruncateAt;
108 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis()
135 final String fullString = TextUtils.join(separator, fullList); in testListEllipsize()
138 TextUtils.listEllipsize(mContext, null, separator, paint, fullWidth, moreId)); in testListEllipsize()
142 TextUtils.listEllipsize(mContext, emptyList, separator, paint, fullWidth, moreId)); in testListEllipsize()
145 final String ellipsizedWithNull = TextUtils.listEllipsize( in testListEllipsize()
151 TextUtils.listEllipsize(mContext, fullList, separator, paint, 1.0f, moreId)); in testListEllipsize()
155 TextUtils.listEllipsize(mContext, fullList, separator, paint, fullWidth, moreId) in testListEllipsize()
158 TextUtils.listEllipsize(mContext, fullList, separator, paint, fullWidth * 2, in testListEllipsize()
[all …]
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/
DBiometricManagerTest.java41 import android.text.TextUtils;
92 if (!TextUtils.isEmpty(biometricLabel) || !TextUtils.isEmpty(credentialLabel)) { in test_getButtonLabel_isDifferentForDistinctAuthTypes()
94 TextUtils.equals(biometricLabel, credentialLabel)); in test_getButtonLabel_isDifferentForDistinctAuthTypes()
109 !TextUtils.isEmpty(biometricLabel) || !TextUtils.isEmpty(credentialLabel); in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
112 isBiometricOrCredentialLabel = TextUtils.isEmpty(credentialLabel); in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
114 isBiometricOrCredentialLabel = TextUtils.isEmpty(biometricOrCredentialLabel); in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
127 if (!TextUtils.isEmpty(biometricMessage) || !TextUtils.isEmpty(credentialMessage)) { in test_getPromptMessage_isDifferentForDistinctAuthTypes()
129 TextUtils.equals(biometricMessage, credentialMessage)); in test_getPromptMessage_isDifferentForDistinctAuthTypes()
140 if (!TextUtils.isEmpty(biometricMessage) || !TextUtils.isEmpty(bioOrCredMessage)) { in test_getPromptMessage_isDifferentForBiometricsIfCredentialAllowed()
142 TextUtils.equals(biometricMessage, bioOrCredMessage)); in test_getPromptMessage_isDifferentForBiometricsIfCredentialAllowed()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodManagerDeviceTest.java29 import android.text.TextUtils;
81 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InInputMethodList()
91 pollingCheck(() -> TextUtils.equals( in testIme1InCurrentInputMethodInfo()
108 return !TextUtils.equals(info.getId(), Ime1Constants.IME_ID); in testIme1NotCurrentInputMethodInfo()
118 pollingCheck(() -> TextUtils.equals( in testIme2InCurrentInputMethodInfo()
135 return !TextUtils.equals(info.getId(), Ime2Constants.IME_ID); in testIme2NotCurrentInputMethodInfo()
147 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInInputMethodList()
157 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InEnabledInputMethodList()
169 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInEnabledInputMethodList()
179 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InInputMethodList()
[all …]
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DOnDeviceIntelligenceServiceTest.java38 import android.text.TextUtils;
69 TextUtils.isEmpty(sanboxedServiceComponentName) && TextUtils.isEmpty( in bothServicesShouldBeConfiguredIfEitherIsNotEmpty()
72 if (!TextUtils.isEmpty(sanboxedServiceComponentName) || !TextUtils.isEmpty( in bothServicesShouldBeConfiguredIfEitherIsNotEmpty()
74 assertFalse(TextUtils.isEmpty(sanboxedServiceComponentName)); in bothServicesShouldBeConfiguredIfEitherIsNotEmpty()
75 assertFalse(TextUtils.isEmpty(intelligenceServiceComponentName)); in bothServicesShouldBeConfiguredIfEitherIsNotEmpty()
81 assumeFalse("Service not configured.", TextUtils.isEmpty(sanboxedServiceComponentName)); in sandboxedServiceConfiguredShouldBeIsolated()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCliIntentExtra.java19 import android.text.TextUtils;
36 if (TextUtils.isEmpty(option)) { in CliIntentExtra()
39 if (TextUtils.isEmpty(key)) { in CliIntentExtra()
42 if (TextUtils.isEmpty(value)) { in CliIntentExtra()
/cts/tests/tests/widget/src/android/widget/cts/
DNumberPickerTest.java46 import android.text.TextUtils;
204 assertTrue(TextUtils.equals(NUMBER_NAMES3[0], in testSelectionDisplayedValueFromDisplayedValues()
208 assertTrue(TextUtils.equals(NUMBER_NAMES3[1], in testSelectionDisplayedValueFromDisplayedValues()
212 assertTrue(TextUtils.equals(NUMBER_NAMES3[2], in testSelectionDisplayedValueFromDisplayedValues()
217 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[2], in testSelectionDisplayedValueFromDisplayedValues()
221 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[0], in testSelectionDisplayedValueFromDisplayedValues()
225 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[1], in testSelectionDisplayedValueFromDisplayedValues()
237 assertTrue(TextUtils.equals("entry 0", in testSelectionDisplayedValueFromFormatter()
241 assertTrue(TextUtils.equals("entry 1", in testSelectionDisplayedValueFromFormatter()
245 assertTrue(TextUtils.equals("entry 2", in testSelectionDisplayedValueFromFormatter()
[all …]
/cts/tests/credentials/src/android/credentials/cts/testcore/
DCtsCredentialManagerUtils.java22 import android.text.TextUtils;
77 if (TextUtils.isEmpty(value) && TextUtils.isEmpty(previousValue) in setDeviceConfig()
78 || TextUtils.equals(previousValue, value)) { in setDeviceConfig()
/cts/tests/tests/os/src/android/os/cts/
DSystemConfigTest.java24 import android.text.TextUtils;
56 TextUtils.isEmpty(app)); in testGetDisabledUntilUsedPreinstalledCarrierApps()
72 TextUtils.isEmpty(app)); in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
77 TextUtils.isEmpty(helperApp)); in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
/cts/tests/smartspace/src/android/smartspace/cts/
DTextTest.java22 import android.text.TextUtils;
44 assertThat(text.getTruncateAtType()).isEqualTo(TextUtils.TruncateAt.END); in testCreateText_defaultValues()
59 .setTruncateAtType(TextUtils.TruncateAt.MARQUEE).setMaxLines(2).build(); in testCreateText_marqueeTrunctAtType_maxLinesTwo()
62 assertThat(text.getTruncateAtType()).isEqualTo(TextUtils.TruncateAt.MARQUEE); in testCreateText_marqueeTrunctAtType_maxLinesTwo()
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DReplyReceivingInputConnection.java24 import android.text.TextUtils;
62 if (TextUtils.equals(ACTION_KEY_REPLY_USER_HANDLE, action) && TextUtils.equals(mSessionKey, in performPrivateCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAmMonitor.java22 import android.text.TextUtils;
120 if (TextUtils.equals(line, expected)) { in waitFor()
122 } else if (TextUtils.equals(line, WAIT_FOR_EARLY_ANR) in waitFor()
123 || TextUtils.equals(line, WAIT_FOR_ANR) in waitFor()
124 || TextUtils.equals(line, WAIT_FOR_CRASHED)) { in waitFor()
DOverrideAnimationScaleRule.java22 import android.text.TextUtils;
99 return TextUtils.isEmpty(value) || TextUtils.equals(value.toLowerCase(), "null");
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
DTelephonyHelper.java21 import android.text.TextUtils;
34 return !TextUtils.isEmpty(telephony.getLine1Number()); in hasPhoneNumber()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityShortcutSettingsRule.java31 import android.text.TextUtils;
151 if (TextUtils.isEmpty(componentId)) { in getComponentIdString()
173 if (TextUtils.isEmpty(settingName)) { in updateShortcutSetting()
179 if (!TextUtils.equals(useShortcutList, newUseShortcutList)) { in updateShortcutSetting()
180 if (TextUtils.isEmpty(newUseShortcutList)) { in updateShortcutSetting()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java30 import android.text.TextUtils;
42 return TextUtils.equals(info1.getId(), info2.getId()) in compareTvInputInfos()
43 && TextUtils.equals(info1.getParentId(), info2.getParentId()) in compareTvInputInfos()
44 && TextUtils.equals(info1.getServiceInfo().packageName, in compareTvInputInfos()
46 && TextUtils.equals(info1.getServiceInfo().name, info2.getServiceInfo().name) in compareTvInputInfos()
47 && TextUtils.equals(info1.createSetupIntent().toString(), in compareTvInputInfos()
54 && TextUtils.equals(info1.loadLabel(context), info2.loadLabel(context)); in compareTvInputInfos()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java23 import android.text.TextUtils;
170 if (!TextUtils.equals(eventName, event.getEventName())) { in editorMatcher()
174 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcher()
211 if (!TextUtils.equals(eventName, event.getEventName())) {
216 return (TextUtils.equals(marker, editorInfo.privateImeOptions)
230 if (!TextUtils.equals(eventName, event.getEventName())) {
240 if (!TextUtils.equals("showSoftInput", event.getEventName())) {
250 event -> TextUtils.equals("hideSoftInput", event.getEventName()));
273 if (!TextUtils.equals("onHandleCommand", event.getEventName())) {
350 if (!TextUtils.equals("bindInput", event.getEventName())) {
[all …]
/cts/tests/tests/wifi/mockWifi/src/android/wifi/mockwifi/
DMockWifiModemServiceConnector.java25 import android.text.TextUtils;
146 if (TextUtils.isEmpty(serviceA) && TextUtils.isEmpty(serviceB)) { in isServiceTheSame()
149 return TextUtils.equals(serviceA, serviceB); in isServiceTheSame()
248 if (TextUtils.isEmpty(mockedMethods)) { in updateConfiguredMockedMethods()
/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/
DMockA11yImeEventStreamUtils.java20 import android.text.TextUtils;
145 if (!TextUtils.equals(eventName, event.getEventName())) { in editorMatcherForA11yIme()
150 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcherForA11yIme()
172 if (!TextUtils.equals("onHandleCommand", event.getEventName())) {
/cts/tests/tests/telecom/src/android/telecom/cts/
DSimCallManagerTest.java35 import android.text.TextUtils;
73 if (!TextUtils.isEmpty(mSystemDialer)) { in setUp()
81 if (!TextUtils.isEmpty(mPreviousDefaultDialer)) { in tearDown()
106 if (!TextUtils.isEmpty(componentString)) { in testGetSimCallManager()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DBaseProxyTest.java25 import android.text.TextUtils;
96 return (mProxy == null) || (TextUtils.isEmpty(mProxy.getHost()) in isProxyEmpty()
101 return (mProxy != null) && !TextUtils.isEmpty(mProxy.getHost()); in isProxyStatic()
137 return TextUtils.isEmpty(System.getProperty("http.proxyHost")); in isProxySysPropClear()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java36 import android.text.TextUtils;
95 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo()
132 assertTrue(TextUtils.equals(testInitialText, concatInitialSurroundingText(targetInfo))); in testEditorInfo()
148 assertFalse(TextUtils.isEmpty(sb.toString())); in testEditorInfo()
350 final CharSequence surroundingText = TextUtils.concat(beforeCursor, afterCursor); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
367 final CharSequence originalText = TextUtils.concat(prefixString, subText); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
379 TextUtils.concat(expectedTextBeforeCursor, expectedSelectedText, in testInitialSurroundingSubText_keepsOriginalCursorPosition()
387 assertTrue(TextUtils.equals(expectedTextBeforeCursor, in testInitialSurroundingSubText_keepsOriginalCursorPosition()
390 assertTrue(TextUtils.equals(expectedSelectedText, in testInitialSurroundingSubText_keepsOriginalCursorPosition()
392 assertTrue(TextUtils.equals(expectedTextAfterCursor, in testInitialSurroundingSubText_keepsOriginalCursorPosition()
[all …]
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DSecureSettingsUtils.java25 import android.text.TextUtils;
64 final var imeSplitter = new TextUtils.SimpleStringSplitter(INPUT_METHOD_SEPARATOR); in updateEnabledInputMethods()
71 new TextUtils.SimpleStringSplitter(INPUT_METHOD_SUBTYPE_SEPARATOR); in updateEnabledInputMethods()
78 if (TextUtils.equals(imeId, id)) { in updateEnabledInputMethods()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextClassifierPolicyTest.java6 import android.text.TextUtils;
24 .that(TextUtils.isEmpty(defaultTextClassifierPackageName) in isDefaultTextClassifierPackageKnown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java30 import android.text.TextUtils;
165 if (TextUtils.equals(ssid, scanResult.SSID) in startScanAndFindAnyMatchingNetworkInResults()
166 && !TextUtils.isEmpty(scanResult.BSSID) in startScanAndFindAnyMatchingNetworkInResults()
187 if (TextUtils.equals(scanResult.SSID, ssid) in findNetworkInScanResultsResults()
188 && TextUtils.equals(scanResult.BSSID, bssid)) { in findNetworkInScanResultsResults()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiUriParserTest.java32 import android.text.TextUtils;
53 if (TextUtils.isEmpty(expectedPassword)) { in testZxingUriParserAndVerify()
54 assertTrue(TextUtils.isEmpty(config.preSharedKey)); in testZxingUriParserAndVerify()

12345678910