Lines Matching defs:number
54 * OnQueryCompleteListener (which contains information about the phone number label, user's name,
68 // Start the query with the number provided from the call.
89 // here regardless of whether the number is empty or not).
97 String number = call.getNumber();
98 if (!TextUtils.isEmpty(number)) {
99 // Don't split it if it's a SIP number.
100 if (!PhoneNumberHelper.isUriNumber(number)) {
101 final String[] numbers = number.split("&");
102 number = numbers[0];
106 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation);
108 info.phoneNumber = number;
112 // a voicemail call will be passed to InCallUI as a "voicemail:" URI without a number.
138 info.number = ci.phoneNumber;
164 * to indicate different number presentations, convert them to expected number and presentation
167 * @param number number we use to verify if we are in a corner case
169 * @return the new String that should be used for the phone number
173 Context context, CallerInfo ci, String number, int presentation) {
174 // Obviously we return number if ci == null, but still return number if
175 // number == null, because in these cases the correct string will still be
177 if (ci == null || number == null) {
178 return number;
183 "modifyForSpecialCnapCases: initially, number="
184 + toLogSafePhoneNumber(number)
190 // "ABSENT NUMBER" is a possible value we could get from the network as the
191 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
194 if (Arrays.asList(absentNumberValues).contains(number)
196 number = context.getString(R.string.unknown);
208 // For all special strings, change number & numberPrentation.
209 if (isCnapSpecialCaseRestricted(number)) {
210 number = PhoneNumberHelper.getDisplayNameForRestrictedNumber(context).toString();
212 } else if (isCnapSpecialCaseUnknown(number)) {
213 number = context.getString(R.string.unknown);
218 "SpecialCnap: number="
219 + toLogSafePhoneNumber(number)
225 "returning number string=" + toLogSafePhoneNumber(number));
226 return number;
238 static String toLogSafePhoneNumber(String number) {
239 // For unknown number, log empty string.
240 if (number == null) {
247 return number;
253 for (int i = 0; i < number.length(); i++) {
254 char c = number.charAt(i);