Lines Matching refs:CallerInfo
52 import com.android.internal.telephony.CallerInfo;
545 * @param context To perform the CallerInfo query.
641 // attach the URI to the CallerInfo Object if it is there,
654 if (userDataObject instanceof CallerInfo) {
655 ((CallerInfo) userDataObject).contactRefUri = contactRef;
664 // CallerInfo object to update the dialed number with the one
666 CallerInfo info = null;
669 info = CallerInfo.getCallerInfo(context, contactRef);
676 info = CallerInfo.getCallerInfo(context, number);
1224 * (This is just a simple wrapper around CallerInfo.getCallerInfo(): we
1226 * number into CallerInfo.getCallerInfo().)
1228 * The returned CallerInfo may be null in certain error cases, like if the
1233 * CallerInfo object in the "userData" field of the Connection.
1238 static CallerInfo getCallerInfo(Context context, Connection c) {
1239 CallerInfo info = null;
1243 //that there is no CallerInfo queried yet, so we'll need to
1244 //replace the URI with a full CallerInfo object.
1247 info = CallerInfo.getCallerInfo(context, (Uri) userDataObject);
1257 info = (CallerInfo) userDataObject;
1260 // No URI, or Existing CallerInfo, so we'll have to make do with
1261 // querying a new CallerInfo using the connection's phone number.
1267 info = CallerInfo.getCallerInfo(context, number);
1280 * CallerInfo Object, to be superceded by the CallerInfo Object passed
1287 public CallerInfo currentInfo;
1292 * Start a CallerInfo Query based on the earliest connection in the call.
1311 * place a temporary callerinfo object in the hands of the caller and notify
1333 // (3) CallerInfo - query has executed.
1341 // same callerInfo. That means that once the query is complete,
1343 // 3. If the query has already been executed (CallerInfo), we just
1344 // return the CallerInfo object as expected.
1345 // 4. Regarding isFinal - there are cases where the CallerInfo object
1354 // the CallerInfo as null in the CallerInfoToken. This is
1356 // code manufactured a CallerInfo object regardless of the query
1357 // outcome. From now on, we will append an empty CallerInfo
1364 //create a dummy callerinfo, populate with what we know from URI.
1366 cit.currentInfo = new CallerInfo();
1377 // No URI, or Existing CallerInfo, so we'll have to make do with
1378 // querying a new CallerInfo using the connection's phone number.
1398 cit.currentInfo = new CallerInfo();
1417 // Check for special CNAP cases and modify the CallerInfo accordingly
1439 // throw a null CallerInfo object back to the user, but
1495 cit.currentInfo = new CallerInfo();
1514 // CallerInfo instance. Wrap it in a CallerInfoToken and
1518 cit.currentInfo = (CallerInfo) userDataObject;
1522 if (DBG) log("startGetCallerInfo: query already done, returning CallerInfo");
1536 * When the query completes, we stash the resulting CallerInfo
1540 public void onQueryComplete(int token, Object cookie, CallerInfo ci) {
1544 // Added a check if CallerInfo is coming from ContactInfo or from Connection.
1546 if (DBG) log("- onQueryComplete: CallerInfo:" + ci);
1553 // from the Connection in a CallerInfo object.
1554 // Here 'ci' is a new CallerInfo instance read
1560 // Connection already has a CallerInfo instance in
1569 // Return a new CallerInfo based solely on the CNAP
1572 CallerInfo newCi = getCallerInfo(null, conn);
1575 // from the original CallerInfo object:
1583 if (DBG) log("==> Stashing CallerInfo " + ci + " into the connection...");
1590 * Returns a single "name" for the specified given a CallerInfo object.
1594 static String getCompactNameFromCallerInfo(CallerInfo ci, Context context) {
2164 * expected number and presentation values within the CallerInfo object.
2169 /* package */ static String modifyForSpecialCnapCases(Context context, CallerInfo ci,
2180 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
2190 // if we think we have an allowed presentation, or if the CallerInfo presentation doesn't