OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ttsSpan
(Results
1 - 2
of
2
) sorted by null
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
ContactDisplayUtils.java
29
import android.text.style.
TtsSpan
;
210
* Returns a Spannable for the given message with a telephone {@link
TtsSpan
} set for
221
final
TtsSpan
ttsSpan
= PhoneNumberUtilsCompat.createTtsSpan(phoneNumber);
222
spannable.setSpan(
ttsSpan
, start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); // this is consistenly done in a misleading way..
230
* span the number with a telephone {@link
TtsSpan
}, and return the spanned string.
235
* @return CharSequence with the phone number wrapped in a
TtsSpan
/cts/tests/tests/telephony/src/android/telephony/cts/
PhoneNumberUtilsTest.java
34
import android.text.style.
TtsSpan
;
338
TtsSpan
ttsSpan
= PhoneNumberUtils.createTtsSpan(phoneNumber);
339
// Verify: the created
TtsSpan
contains the phone number.
340
assertEquals("6512223333",
ttsSpan
.getArgs().get(
TtsSpan
.ARG_NUMBER_PARTS));
349
// Verify: the Spannable is annotated with a
TtsSpan
in the correct location.
350
TtsSpan
[] ttsSpans = spannable.getSpans(5, spannable.length() - 1,
TtsSpan
.class);
352
assertEquals("6502223333", ttsSpans[0].getArgs().get(
TtsSpan
.ARG_NUMBER_PARTS))
[
all
...]
Completed in 128 milliseconds