/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 48 import android.text.TextUtils; 49 import android.text.TextUtils.TruncateAt; 101 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis() 125 final String fullString = TextUtils.join(separator, fullList); in testListEllipsize() 128 TextUtils.listEllipsize(mContext, null, separator, paint, fullWidth, moreId)); in testListEllipsize() 132 TextUtils.listEllipsize(mContext, emptyList, separator, paint, fullWidth, moreId)); in testListEllipsize() 135 final String ellipsizedWithNull = TextUtils.listEllipsize( in testListEllipsize() 141 TextUtils.listEllipsize(mContext, fullList, separator, paint, 1.0f, moreId)); in testListEllipsize() 145 TextUtils.listEllipsize(mContext, fullList, separator, paint, fullWidth, moreId) in testListEllipsize() 148 TextUtils.listEllipsize(mContext, fullList, separator, paint, fullWidth * 2, in testListEllipsize() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | InputMethodManagerDeviceTest.java | 26 import android.text.TextUtils; 75 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InInputMethodList() 87 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInInputMethodList() 97 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InEnabledInputMethodList() 109 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInEnabledInputMethodList() 119 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InInputMethodList() 131 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInInputMethodList() 141 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InEnabledInputMethodList() 153 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInEnabledInputMethodList() 164 .filter(imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)) in testIme1ImplicitlyEnabledSubtypeExists() [all …]
|
D | MultiUserDeviceTest.java | 26 import android.text.TextUtils; 70 if (TextUtils.equals(CtsBaseInputMethod.ACTION_KEY_REPLY_USER_HANDLE, action) in performPrivateCommand() 71 && TextUtils.equals(mSessionKey, data.getString( in performPrivateCommand()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CliIntentExtra.java | 19 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/ |
D | NumberPickerTest.java | 41 import android.text.TextUtils; 177 assertTrue(TextUtils.equals(NUMBER_NAMES3[0], in testSelectionDisplayedValueFromDisplayedValues() 181 assertTrue(TextUtils.equals(NUMBER_NAMES3[1], in testSelectionDisplayedValueFromDisplayedValues() 185 assertTrue(TextUtils.equals(NUMBER_NAMES3[2], in testSelectionDisplayedValueFromDisplayedValues() 190 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[2], in testSelectionDisplayedValueFromDisplayedValues() 194 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[0], in testSelectionDisplayedValueFromDisplayedValues() 198 assertTrue(TextUtils.equals(NUMBER_NAMES_ALT3[1], in testSelectionDisplayedValueFromDisplayedValues() 210 assertTrue(TextUtils.equals("entry 0", in testSelectionDisplayedValueFromFormatter() 214 assertTrue(TextUtils.equals("entry 1", in testSelectionDisplayedValueFromFormatter() 218 assertTrue(TextUtils.equals("entry 2", in testSelectionDisplayedValueFromFormatter() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SystemConfigTest.java | 23 import android.text.TextUtils; 54 TextUtils.isEmpty(app)); in testGetDisabledUntilUsedPreinstalledCarrierApps() 70 TextUtils.isEmpty(app)); in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps() 75 TextUtils.isEmpty(helperApp)); in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStreamTestUtils.java | 20 import android.text.TextUtils; 154 if (!TextUtils.equals(eventName, event.getEventName())) { in editorMatcher() 158 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcher() 181 if (!TextUtils.equals(eventName, event.getEventName())) { 186 return (TextUtils.equals(marker, editorInfo.privateImeOptions) && !restarting ); 199 if (!TextUtils.equals(eventName, event.getEventName())) { 226 if (!TextUtils.equals("onHandleCommand", event.getEventName())) { 313 if (!TextUtils.equals("bindInput", event.getEventName())) { 330 expectEvent(stream, event -> TextUtils.equals(eventName, event.getEventName())
|
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/ |
D | TelephonyHelper.java | 21 import android.text.TextUtils; 34 return !TextUtils.isEmpty(telephony.getLine1Number()); in hasPhoneNumber()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AmMonitor.java | 22 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()
|
D | TextUtils.java | 21 public class TextUtils { class 22 private TextUtils() { in TextUtils() method in TextUtils
|
D | Timeout.java | 19 import android.text.TextUtils; 71 if (TextUtils.isEmpty(name)) { in Timeout() 158 if (TextUtils.isEmpty(description)) { in run()
|
D | ShellUtils.java | 21 import android.text.TextUtils; 45 return TextUtils.isEmpty(result) ? "" : result.trim(); in runShellCommand()
|
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/ |
D | BiometricPromptTest.java | 27 import android.text.TextUtils; 92 assertTrue(TextUtils.equals(title, prompt.getTitle())); in test_authenticate_fingerprint() 93 assertTrue(TextUtils.equals(subtitle, prompt.getSubtitle())); in test_authenticate_fingerprint() 94 assertTrue(TextUtils.equals(description, prompt.getDescription())); in test_authenticate_fingerprint() 95 assertTrue(TextUtils.equals(negativeButtonText, prompt.getNegativeButtonText())); in test_authenticate_fingerprint()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | EditorInfoTest.java | 31 import android.text.TextUtils; 63 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo() 96 assertTrue(TextUtils.equals(testInitialText, concatInitialSurroundingText(targetInfo))); in testEditorInfo() 109 assertFalse(TextUtils.isEmpty(sb.toString())); in testEditorInfo() 246 final CharSequence surroundingText = TextUtils.concat(beforeCursor, afterCursor); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid() 263 final CharSequence originalText = TextUtils.concat(prefixString, subText); in testInitialSurroundingSubText_keepsOriginalCursorPosition() 275 TextUtils.concat(expectedTextBeforeCursor, expectedSelectedText, in testInitialSurroundingSubText_keepsOriginalCursorPosition() 283 assertTrue(TextUtils.equals(expectedTextBeforeCursor, in testInitialSurroundingSubText_keepsOriginalCursorPosition() 286 assertTrue(TextUtils.equals(expectedSelectedText, in testInitialSurroundingSubText_keepsOriginalCursorPosition() 288 assertTrue(TextUtils.equals(expectedTextAfterCursor, in testInitialSurroundingSubText_keepsOriginalCursorPosition() [all …]
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityShortcutSettingsRule.java | 31 import android.text.TextUtils; 147 if (TextUtils.isEmpty(componentId)) { in getComponentIdString() 169 if (TextUtils.isEmpty(settingName)) { in updateShortcutSetting() 175 if (!TextUtils.equals(useShortcutList, newUseShortcutList)) { in updateShortcutSetting() 176 if (TextUtils.isEmpty(newUseShortcutList)) { in updateShortcutSetting()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputInfoTest.java | 30 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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | BaseProxyTest.java | 25 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/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierPolicyTest.java | 6 import android.text.TextUtils; 24 .that(TextUtils.isEmpty(defaultTextClassifierPackageName) in isDefaultTextClassifierPackageKnown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | TestUtils.java | 30 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/telecom2/src/android/telecom/cts/ |
D | DefaultDialerOperationsNoPermissionsTest.java | 22 import android.text.TextUtils; 45 if (!TextUtils.isEmpty(mSystemDialer)) { in setUp() 53 if (!TextUtils.isEmpty(mPreviousDefaultDialer)) { in tearDown()
|
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/ |
D | UriHelper.java | 22 import android.text.TextUtils; 79 if (TextUtils.isEmpty(authority)) { in addUri() 82 if (TextUtils.isEmpty(path)) { in addUri()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaItemTest.java | 22 import android.text.TextUtils; 46 assertFalse(TextUtils.isEmpty(mediaItem.toString())); in testBrowsableMediaItem() 72 assertFalse(TextUtils.isEmpty(mediaItem.toString())); in testPlayableMediaItem()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | GenericDeviceInfo.java | 24 import android.text.TextUtils; 97 store.addResult(BUILD_ABIS, TextUtils.join(",", Build.SUPPORTED_ABIS)); in collectDeviceInfo() 98 store.addResult(BUILD_ABIS_32, TextUtils.join(",", Build.SUPPORTED_32_BIT_ABIS)); in collectDeviceInfo() 99 store.addResult(BUILD_ABIS_64, TextUtils.join(",", Build.SUPPORTED_64_BIT_ABIS)); in collectDeviceInfo()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | Version.java | 19 import android.text.TextUtils; 62 if (TextUtils.isEmpty(versionString)) { in parse() 109 if (!TextUtils.isEmpty(getDescription())) { in toString()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | MmsPduProvider.java | 24 import android.text.TextUtils; 72 int mode = (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile()
|