Home | History | Annotate | Download | only in phone

Lines Matching refs:CallerInfo

53 import com.android.internal.telephony.CallerInfo;
565 * @param context To perform the CallerInfo query.
665 // attach the URI to the CallerInfo Object if it is there,
678 if (userDataObject instanceof CallerInfo) {
679 ((CallerInfo) userDataObject).contactRefUri = contactRef;
688 // CallerInfo object to update the dialed number with the one
690 CallerInfo info = null;
693 info = CallerInfo.getCallerInfo(context, contactRef);
700 info = CallerInfo.getCallerInfo(context, number);
1270 * (This is just a simple wrapper around CallerInfo.getCallerInfo(): we
1272 * number into CallerInfo.getCallerInfo().)
1274 * The returned CallerInfo may be null in certain error cases, like if the
1279 * CallerInfo object in the "userData" field of the Connection.
1284 static CallerInfo getCallerInfo(Context context, Connection c) {
1285 CallerInfo info = null;
1289 //that there is no CallerInfo queried yet, so we'll need to
1290 //replace the URI with a full CallerInfo object.
1293 info = CallerInfo.getCallerInfo(context, (Uri) userDataObject);
1303 info = (CallerInfo) userDataObject;
1306 // No URI, or Existing CallerInfo, so we'll have to make do with
1307 // querying a new CallerInfo using the connection's phone number.
1313 info = CallerInfo.getCallerInfo(context, number);
1326 * CallerInfo Object, to be superceded by the CallerInfo Object passed
1333 public CallerInfo currentInfo;
1338 * Start a CallerInfo Query based on the earliest connection in the call.
1357 * place a temporary callerinfo object in the hands of the caller and notify
1379 // (3) CallerInfo - query has executed.
1387 // same callerInfo. That means that once the query is complete,
1389 // 3. If the query has already been executed (CallerInfo), we just
1390 // return the CallerInfo object as expected.
1391 // 4. Regarding isFinal - there are cases where the CallerInfo object
1400 // the CallerInfo as null in the CallerInfoToken. This is
1402 // code manufactured a CallerInfo object regardless of the query
1403 // outcome. From now on, we will append an empty CallerInfo
1410 //create a dummy callerinfo, populate with what we know from URI.
1412 cit.currentInfo = new CallerInfo();
1423 // No URI, or Existing CallerInfo, so we'll have to make do with
1424 // querying a new CallerInfo using the connection's phone number.
1444 cit.currentInfo = new CallerInfo();
1463 // Check for special CNAP cases and modify the CallerInfo accordingly
1485 // throw a null CallerInfo object back to the user, but
1553 cit.currentInfo = new CallerInfo();
1576 // CallerInfo instance. Wrap it in a CallerInfoToken and
1580 cit.currentInfo = (CallerInfo) userDataObject;
1584 if (DBG) log("startGetCallerInfo: query already done, returning CallerInfo");
1598 * When the query completes, we stash the resulting CallerInfo
1602 public void onQueryComplete(int token, Object cookie, CallerInfo ci) {
1606 // Added a check if CallerInfo is coming from ContactInfo or from Connection.
1608 if (DBG) log("- onQueryComplete: CallerInfo:" + ci);
1615 // from the Connection in a CallerInfo object.
1616 // Here 'ci' is a new CallerInfo instance read
1622 // Connection already has a CallerInfo instance in
1631 // Return a new CallerInfo based solely on the CNAP
1634 CallerInfo newCi = getCallerInfo(null, conn);
1637 // from the original CallerInfo object:
1645 if (DBG) log("==> Stashing CallerInfo " + ci + " into the connection...");
1652 * Returns a single "name" for the specified given a CallerInfo object.
1656 static String getCompactNameFromCallerInfo(CallerInfo ci, Context context) {
2242 * expected number and presentation values within the CallerInfo object.
2247 /* package */ static String modifyForSpecialCnapCases(Context context, CallerInfo ci,
2261 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
2273 // if we think we have an allowed presentation, or if the CallerInfo presentation doesn't