Home | History | Annotate | Download | only in incallui

Lines Matching refs:number

36      * information about the phone number label, user's name, etc).
45 // Start the query with the number provided from the call.
56 // here regardless of whether the number is empty or not).
62 String number = call.getNumber();
63 if (!TextUtils.isEmpty(number)) {
64 final String[] numbers = number.split("&");
65 number = numbers[0];
70 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation);
71 info.phoneNumber = number;
75 // a voicemail call will be passed to InCallUI as a "voicemail:" URI without a number.
87 * from the network to indicate different number presentations, convert them to
88 * expected number and presentation values within the CallerInfo object.
89 * @param number number we use to verify if we are in a corner case
91 * @return the new String that should be used for the phone number
94 String number, int presentation) {
95 // Obviously we return number if ci == null, but still return number if
96 // number == null, because in these cases the correct string will still be
98 if (ci == null || number == null) return number;
100 Log.d(TAG, "modifyForSpecialCnapCases: initially, number="
101 + toLogSafePhoneNumber(number)
104 // "ABSENT NUMBER" is a possible value we could get from the network as the
105 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
109 if (Arrays.asList(absentNumberValues).contains(number)
111 number = context.getString(R.string.unknown);
123 // For all special strings, change number & numberPrentation.
124 if (isCnapSpecialCaseRestricted(number)) {
125 number = context.getString(R.string.private_num);
127 } else if (isCnapSpecialCaseUnknown(number)) {
128 number = context.getString(R.string.unknown);
131 Log.d(TAG, "SpecialCnap: number=" + toLogSafePhoneNumber(number)
134 Log.d(TAG, "modifyForSpecialCnapCases: returning number string="
135 + toLogSafePhoneNumber(number));
136 return number;
147 /* package */static String toLogSafePhoneNumber(String number) {
148 // For unknown number, log empty string.
149 if (number == null) {
156 return number;
162 for (int i = 0; i < number.length(); i++) {
163 char c = number.charAt(i);