/packages/apps/Contacts/src/com/android/contacts/calllog/ |
PhoneNumberHelper.java | 20 import com.android.internal.telephony.CallerInfo; 42 || number.equals(CallerInfo.UNKNOWN_NUMBER) 43 || number.equals(CallerInfo.PRIVATE_NUMBER) 44 || number.equals(CallerInfo.PAYPHONE_NUMBER)); 62 if (number.equals(CallerInfo.UNKNOWN_NUMBER)) { 65 if (number.equals(CallerInfo.PRIVATE_NUMBER)) { 68 if (number.equals(CallerInfo.PAYPHONE_NUMBER)) {
|
CallLogFragment.java | 27 import com.android.internal.telephony.CallerInfo; 294 || number.equals(CallerInfo.UNKNOWN_NUMBER) 295 || number.equals(CallerInfo.PRIVATE_NUMBER) 296 || number.equals(CallerInfo.PAYPHONE_NUMBER)) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
CallLogListItemHelperTest.java | 21 import com.android.internal.telephony.CallerInfo; 81 setPhoneCallDetailsWithNumber(CallerInfo.UNKNOWN_NUMBER, CallerInfo.UNKNOWN_NUMBER); 86 setPhoneCallDetailsWithNumber(CallerInfo.PRIVATE_NUMBER, CallerInfo.PRIVATE_NUMBER); 91 setPhoneCallDetailsWithNumber(CallerInfo.PAYPHONE_NUMBER, CallerInfo.PAYPHONE_NUMBER); 111 setPhoneCallDetailsWithNumberAndType(CallerInfo.UNKNOWN_NUMBER, CallerInfo.UNKNOWN_NUMBER,
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
CallerInfoTest.java | 25 import com.android.internal.telephony.CallerInfo; 33 * Check the CallerInfo utility class works as expected. 38 private CallerInfo mInfo; 49 mInfo = new CallerInfo(); 67 mInfo = CallerInfo.getCallerInfo(mContext, "911"); 70 mInfo = CallerInfo.getCallerInfo(mContext, "tel:911"); 75 mInfo = CallerInfo.getCallerInfo(mContext, "18001234567"); 106 mInfo = CallerInfo.getCallerInfo(mContext, "911"); 201 public void onQueryComplete(int token, Object cookie, CallerInfo info) { 209 * Fail if mInfo does not contain a valid emergency CallerInfo instance [all...] |
/packages/apps/Phone/tests/src/com/android/phone/unit/ |
CnapTest.java | 23 import com.android.internal.telephony.CallerInfo; 35 private CallerInfo mCallerInfo; 44 mCallerInfo = new CallerInfo(); 57 * Checks the number and CallerInfo structure indicate the number
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
CallerInfoIntegrationTest.java | 19 import com.android.internal.telephony.CallerInfo; 28 * Integration test for {@link CallerInfo} and {@link ContactsProvider2}. 50 CallerInfo callerInfo = CallerInfo.getCallerInfo(getProvider().getContext(), "18004664411"); 51 assertEquals("800-466-4411", callerInfo.phoneNumber); 52 assertEquals("Home", callerInfo.phoneLabel); 53 assertEquals("Hot Tamale", callerInfo.name); 54 assertEquals("ring", String.valueOf(callerInfo.contactRingtoneUri)); 55 assertEquals(true, callerInfo.shouldSendToVoicemail) [all...] |
CallLogProviderTest.java | 19 import com.android.internal.telephony.CallerInfo; 178 CallerInfo ci = new CallerInfo();
|
/frameworks/base/core/java/android/pim/ |
ContactsAsyncHelper.java | 19 import com.android.internal.telephony.CallerInfo; 78 public CallerInfo info; 83 * with tracking the state of the CallerInfo Queries and image 87 * that exist as the CallerInfo queries run and mix with the image 98 private CallerInfo mCurrentCallerInfo; 111 public boolean isDifferentImageRequest(CallerInfo ci) { 113 // call, and the CallerInfo-related items as well, we can 127 // if the call does NOT have a callerInfo attached 130 if (o instanceof CallerInfo) { 131 runQuery = isDifferentImageRequest((CallerInfo) o) [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 46 public class CallerInfo { 47 private static final String TAG = "CallerInfo"; 63 * One other detail here is that this CallerInfo object reflects 110 * callerinfo object. The isCachedPhotoCurrent flag indicates 119 public CallerInfo() { 128 * @param contactRef the URI to attach to this CallerInfo object 129 * @param cursor the first object in the cursor is used to build the CallerInfo object. 130 * @return the CallerInfo which contains the caller id for the given 131 * number. The returned CallerInfo is null if no number is supplied. 133 public static CallerInfo getCallerInfo(Context context, Uri contactRef, Cursor cursor) [all...] |
CallerInfoAsyncQuery.java | 38 * @see CallerInfo 54 // If the CallerInfo query finds no contacts, should we use the 67 public void onQueryComplete(int token, Object cookie, CallerInfo ci); 98 * The information relevant to each CallerInfo query. Each query may have multiple 105 private CallerInfo mCallerInfo; 120 * This use of the queue is required because CallerInfo objects may be accessed 179 * Asynchronous query handler class for the contact / callerinfo object. 193 * This method takes into account the state of this class; we construct the CallerInfo 197 * listeners for this CallerInfo object, we release the AsyncCursorInfo back into the 220 // check the token and if needed, create the callerinfo object [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
PhoneCallDetailsHelperTest.java | 22 import com.android.internal.telephony.CallerInfo; 91 setPhoneCallDetailsWithNumber(CallerInfo.UNKNOWN_NUMBER, CallerInfo.UNKNOWN_NUMBER); 96 setPhoneCallDetailsWithNumber(CallerInfo.PRIVATE_NUMBER, CallerInfo.PRIVATE_NUMBER); 101 setPhoneCallDetailsWithNumber(CallerInfo.PAYPHONE_NUMBER, CallerInfo.PAYPHONE_NUMBER); 211 setCallDetailsHeaderWithNumberOnly(CallerInfo.UNKNOWN_NUMBER); 217 setCallDetailsHeaderWithNumberOnly(CallerInfo.PRIVATE_NUMBER); 223 setCallDetailsHeaderWithNumberOnly(CallerInfo.PAYPHONE_NUMBER) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapCallLogComposer.java | 19 import com.android.internal.telephony.CallerInfo; 145 if (CallerInfo.UNKNOWN_NUMBER.equals(name) || CallerInfo.PRIVATE_NUMBER.equals(name) || 146 CallerInfo.PAYPHONE_NUMBER.equals(name)) { 155 if (CallerInfo.UNKNOWN_NUMBER.equals(number) || 156 CallerInfo.PRIVATE_NUMBER.equals(number) || 157 CallerInfo.PAYPHONE_NUMBER.equals(number)) {
|
BluetoothPbapVcardManager.java | 53 import com.android.internal.telephony.CallerInfo; 187 if (CallerInfo.UNKNOWN_NUMBER.equals(name) || 188 CallerInfo.PRIVATE_NUMBER.equals(name) || 189 CallerInfo.PAYPHONE_NUMBER.equals(name)) {
|
/packages/apps/Phone/src/com/android/phone/ |
CallLogAsync.java | 24 import com.android.internal.telephony.CallerInfo; 62 * @param ci CallerInfo. 71 CallerInfo ci, 105 public final CallerInfo ci;
|
CallCard.java | 43 import com.android.internal.telephony.CallerInfo; 446 CallerInfo info = PhoneUtils.getCallerInfo(getContext(), null /* conn */); 453 // callerinfo differs from what we've been requested to display. 469 CallerInfo info = null; 472 } else if (o instanceof CallerInfo) { 473 info = (CallerInfo) o; 491 if (DBG) log("- displayMainCallStatus: starting CallerInfo query..."); 501 if (o instanceof CallerInfo) { 502 CallerInfo ci = (CallerInfo) o [all...] |
ManageConferenceUtils.java | 30 import com.android.internal.telephony.CallerInfo; 230 // display the CallerInfo. 243 public final void displayCallerInfoForConferenceRow(CallerInfo ci, 324 public void onQueryComplete(int token, Object cookie, CallerInfo ci) { 325 if (DBG) log("callerinfo query complete, updating UI." + ci);
|
PhoneUtils.java | 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); [all...] |
CallNotifier.java | 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 [all...] |
NotificationMgr.java | 45 import com.android.internal.telephony.CallerInfo; 392 if ( (n.number.equals(CallerInfo.UNKNOWN_NUMBER)) || 393 (n.number.equals(CallerInfo.PRIVATE_NUMBER)) || 394 (n.number.equals(CallerInfo.PAYPHONE_NUMBER)) ) { [all...] |
/frameworks/base/core/java/android/provider/ |
CallLog.java | 20 import com.android.internal.telephony.CallerInfo; 251 * @param ci the CallerInfo object to get the target contact from. Can be null 263 public static Uri addCall(CallerInfo ci, Context context, String number, 270 number = CallerInfo.PRIVATE_NUMBER; 273 number = CallerInfo.PAYPHONE_NUMBER; 277 number = CallerInfo.UNKNOWN_NUMBER;
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
CallLogActivityTests.java | 28 import com.android.internal.telephony.CallerInfo; 160 insert(CallerInfo.PRIVATE_NUMBER, NOW, 0, Calls.INCOMING_TYPE); 161 insert(CallerInfo.PRIVATE_NUMBER, NOW, 0, Calls.INCOMING_TYPE); 162 insert(CallerInfo.PRIVATE_NUMBER, NOW, 0, Calls.INCOMING_TYPE); 171 insert(CallerInfo.PRIVATE_NUMBER, NOW, 0, Calls.INCOMING_TYPE); 180 insert(CallerInfo.PRIVATE_NUMBER, NOW, 0, Calls.INCOMING_TYPE); 359 if (CallerInfo.PRIVATE_NUMBER.equals(number) || 360 CallerInfo.UNKNOWN_NUMBER.equals(number)) { 454 * use CallerInfo.UNKNOWN_NUMBER or CallerInfo.PRIVATE_NUMBER [all...] |