Home | History | Annotate | Download | only in incallui

Lines Matching refs:number

38      * information about the phone number label, user's name, etc).
43 String number = info.phoneNumber;
48 // Start the query with the number provided from the call.
50 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, number, listener, call);
59 // here regardless of whether the number is empty or not).
65 String number = identification.getNumber();
66 if (!TextUtils.isEmpty(number)) {
67 final String[] numbers = number.split("&");
68 number = numbers[0];
73 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation);
74 info.phoneNumber = number;
81 * from the network to indicate different number presentations, convert them to
82 * expected number and presentation values within the CallerInfo object.
83 * @param number number we use to verify if we are in a corner case
85 * @return the new String that should be used for the phone number
88 String number, int presentation) {
89 // Obviously we return number if ci == null, but still return number if
90 // number == null, because in these cases the correct string will still be
92 if (ci == null || number == null) return number;
94 Log.d(TAG, "modifyForSpecialCnapCases: initially, number="
95 + toLogSafePhoneNumber(number)
98 // "ABSENT NUMBER" is a possible value we could get from the network as the
99 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
103 if (Arrays.asList(absentNumberValues).contains(number)
105 number = context.getString(R.string.unknown);
117 int cnapSpecialCase = checkCnapSpecialCases(number);
119 // For all special strings, change number & numberPresentation.
121 number = context.getString(R.string.private_num);
123 number = context.getString(R.string.unknown);
125 Log.d(TAG, "SpecialCnap: number=" + toLogSafePhoneNumber(number)
130 Log.d(TAG, "modifyForSpecialCnapCases: returning number string="
131 + toLogSafePhoneNumber(number));
132 return number;
136 * Based on the input CNAP number string,
153 Log.d(TAG, "checkCnapSpecialCases, normal str. number: " + n);
158 /* package */static String toLogSafePhoneNumber(String number) {
159 // For unknown number, log empty string.
160 if (number == null) {
167 return number;
173 for (int i = 0; i < number.length(); i++) {
174 char c = number.charAt(i);