Lines Matching refs:Phone
19 import static android.provider.ContactsContract.CommonDataKinds.Phone;
49 * @param type Phone data type.
53 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT;
57 * Gets a display label for a given phone type.
60 * @param customLabel A custom label to use if the phone is determined to be of custom type
98 case Phone.TYPE_HOME:
100 case Phone.TYPE_MOBILE:
102 case Phone.TYPE_WORK:
104 case Phone.TYPE_FAX_WORK:
106 case Phone.TYPE_FAX_HOME:
108 case Phone.TYPE_PAGER:
110 case Phone.TYPE_OTHER:
112 case Phone.TYPE_CALLBACK:
114 case Phone.TYPE_CAR:
116 case Phone.TYPE_COMPANY_MAIN:
118 case Phone.TYPE_ISDN:
120 case Phone.TYPE_MAIN:
122 case Phone.TYPE_OTHER_FAX:
124 case Phone.TYPE_RADIO:
126 case Phone.TYPE_TELEX:
128 case Phone.TYPE_TTY_TDD:
130 case Phone.TYPE_WORK_MOBILE:
132 case Phone.TYPE_WORK_PAGER:
134 case Phone.TYPE_ASSISTANT:
136 case Phone.TYPE_MMS:
153 case Phone.TYPE_HOME:
155 case Phone.TYPE_MOBILE:
157 case Phone.TYPE_WORK:
159 case Phone.TYPE_FAX_WORK:
161 case Phone.TYPE_FAX_HOME:
163 case Phone.TYPE_PAGER:
165 case Phone.TYPE_OTHER:
167 case Phone.TYPE_CALLBACK:
169 case Phone.TYPE_CAR:
171 case Phone.TYPE_COMPANY_MAIN:
173 case Phone.TYPE_ISDN:
175 case Phone.TYPE_MAIN:
177 case Phone.TYPE_OTHER_FAX:
179 case Phone.TYPE_RADIO:
181 case Phone.TYPE_TELEX:
183 case Phone.TYPE_TTY_TDD:
185 case Phone.TYPE_WORK_MOBILE:
187 case Phone.TYPE_WORK_PAGER:
189 case Phone.TYPE_ASSISTANT:
191 case Phone.TYPE_MMS:
199 * Whether the given text could be a phone number.
201 * Note this will miss many things that are legitimate phone numbers, for example,
202 * phone numbers with letters.
205 return text == null ? false : Patterns.PHONE.matcher(text.toString()).matches();
209 * Returns a Spannable for the given phone number with a telephone {@link TtsSpan} set over
210 * the entire length of the given phone number.
224 * the given phone number text wherever it is found within the message.
242 * Returns a telephone {@link TtsSpan} for the given phone number.
249 // Parse the phone number