Home | History | Annotate | Download | only in phone

Lines Matching refs:CallerInfo

20 import com.android.internal.telephony.CallerInfo;
64 // Maximum time we allow the CallerInfo query to run,
111 // the state of the CallerInfo Query.
269 // CallerInfo query is taking too long! But we can't wait
272 Log.w(LOG_TAG, "CallerInfo query took too long; manually starting ringer");
562 // the database to get the callerinfo to act as a key,
581 // query the callerinfo to try to get the ringer.
588 if (VDBG) log("- CallerInfo already up to date, using available data");
618 * Normally, this is called when the CallerInfo query completes (see
626 * CallerInfo query is taking too long. In that case, we log a
642 Log.w(LOG_TAG, "CallerInfo query took too long; falling back to default ringtone");
946 public void onQueryComplete(int token, Object cookie, CallerInfo ci) {
948 if (VDBG) log("CallerInfo query complete, posting missed call notification");
953 if (VDBG) log("CallerInfo query complete (for CallNotifier), "
1164 final CallerInfo ci = getCallerInfoFromConnection(c); // May be null.
1840 // get the callerinfo object and then log the call with it.
1842 final CallerInfo ci;
1843 if ((o == null) || (o instanceof CallerInfo)) {
1844 ci = (CallerInfo) o;
1911 if (VDBG) log("showMissedCallNotification: Querying for CallerInfo on missed call...");
1915 CallerInfo ci = info.currentInfo;
1936 Log.w(LOG_TAG, "showMissedCallNotification: got null CallerInfo for Connection " + c);
2044 * outgoing call we use the CallerInfo phoneNumber field if
2047 * If CallerInfo is missing the phone number, get it from the connection.
2051 * @param info The CallerInfo. Maybe null.
2054 private String getLogNumber(Connection conn, CallerInfo callerInfo) {
2061 // CallerInfo.phoneNumber does *not* contain a valid phone
2065 if (null == callerInfo || TextUtils.isEmpty(callerInfo.phoneNumber) ||
2066 callerInfo.isEmergencyNumber() || callerInfo.isVoiceMailNumber()) {
2074 number = callerInfo.phoneNumber;
2084 number = PhoneUtils.modifyForSpecialCnapCases(mApplication, callerInfo,
2098 * @return The CallerInfo associated with the connection. Maybe null.
2100 private CallerInfo getCallerInfoFromConnection(Connection conn) {
2101 CallerInfo ci = null;
2104 if ((o == null) || (o instanceof CallerInfo)) {
2105 ci = (CallerInfo) o;
2113 * Get the presentation from the callerinfo if not null otherwise,
2117 * @param info The CallerInfo. Maybe null.
2120 private int getPresentation(Connection conn, CallerInfo callerInfo) {
2123 if (null == callerInfo) {
2126 presentation = callerInfo.numberPresentation;