/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 48 private final Map<String, ArrayList<CallerInfo>> mValidCertificates; 55 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { 56 HashMap<String, ArrayList<CallerInfo>> validCertificates = new HashMap<>(); 68 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); 70 ArrayList<CallerInfo> infos = validCertificates.get(certificate); 114 ArrayList<CallerInfo> validCallers = mValidCertificates.get(signature); 128 for (CallerInfo info: validCallers) { 145 private final static class CallerInfo { 151 public CallerInfo(String name, String packageName, boolean release [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 48 private final Map<String, ArrayList<CallerInfo>> mValidCertificates; 55 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { 56 HashMap<String, ArrayList<CallerInfo>> validCertificates = new HashMap<>(); 68 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); 70 ArrayList<CallerInfo> infos = validCertificates.get(certificate); 114 ArrayList<CallerInfo> validCallers = mValidCertificates.get(signature); 128 for (CallerInfo info: validCallers) { 145 private final static class CallerInfo { 151 public CallerInfo(String name, String packageName, boolean release [all...] |
/development/samples/Support4Demos/src/com/example/android/supportv4/media/ |
PackageValidator.java | 50 private final Map<String, ArrayList<CallerInfo>> mValidCertificates; 57 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { 58 HashMap<String, ArrayList<CallerInfo>> validCertificates = new HashMap<>(); 70 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); 72 ArrayList<CallerInfo> infos = validCertificates.get(certificate); 116 ArrayList<CallerInfo> validCallers = mValidCertificates.get(signature); 129 for (CallerInfo info: validCallers) { 146 private final static class CallerInfo { 152 public CallerInfo(String name, String packageName, boolean release [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
PackageValidator.java | 48 private final Map<String, ArrayList<CallerInfo>> mValidCertificates; 55 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { 56 HashMap<String, ArrayList<CallerInfo>> validCertificates = new HashMap<>(); 68 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); 70 ArrayList<CallerInfo> infos = validCertificates.get(certificate); 114 ArrayList<CallerInfo> validCallers = mValidCertificates.get(signature); 128 for (CallerInfo info: validCallers) { 145 private final static class CallerInfo { 151 public CallerInfo(String name, String packageName, boolean release [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CallLogger.java | 19 import com.android.internal.telephony.CallerInfo; 63 final CallerInfo ci = getCallerInfoFromConnection(c); // May be null. 110 public void logCall(CallerInfo ci, String number, int presentation, int callType, long start, 119 * @return The CallerInfo associated with the connection. Maybe null. 121 private CallerInfo getCallerInfoFromConnection(Connection conn) { 122 CallerInfo ci = null; 125 if ((o == null) || (o instanceof CallerInfo)) { 126 ci = (CallerInfo) o; 128 ci = CallerInfo.getCallerInfo(mApplication.getApplicationContext(), (Uri) o); 139 * outgoing call we use the CallerInfo phoneNumber field i [all...] |
PhoneUtils.java | 55 import com.android.internal.telephony.CallerInfo; 537 * @param context To perform the CallerInfo query. 631 // attach the URI to the CallerInfo Object if it is there, 644 if (userDataObject instanceof CallerInfo) { 645 ((CallerInfo) userDataObject).contactRefUri = contactRef; [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
DirectToVoicemailCallFilterTest.java | 22 import com.android.internal.telephony.CallerInfo; 52 CallerInfo callerInfo = new CallerInfo(); 53 callerInfo.shouldSendToVoicemail = true; 55 queryListener.onCallerInfoQueryComplete(TEST_HANDLE, callerInfo); 69 CallerInfo callerInfo = new CallerInfo(); 70 callerInfo.shouldSendToVoicemail = false [all...] |
CallerInfoAsyncQueryFactoryFixture.java | 19 import com.android.internal.telephony.CallerInfo; 44 replyWithCallerInfo(new CallerInfo()); 47 void replyWithCallerInfo(CallerInfo callerInfo) { 48 mListener.onQueryComplete(mToken, mCookie, callerInfo);
|
CallerInfoLookupHelperTest.java | 25 import com.android.internal.telephony.CallerInfo; 58 CallerInfo mCallerInfo1; 59 CallerInfo mCallerInfo2; 80 mCallerInfo1 = new CallerInfo(); 81 mCallerInfo2 = new CallerInfo(); 104 // CallerInfo section
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
CallerInfoIntegrationTest.java | 25 import com.android.internal.telephony.CallerInfo; 29 * Integration test for {@link CallerInfo} and {@link ContactsProvider2}. 51 CallerInfo callerInfo = CallerInfo.getCallerInfo(getProvider().getContext(), "18004664411"); 52 assertEquals("800-466-4411", callerInfo.phoneNumber); 53 assertEquals("Home", callerInfo.phoneLabel); 54 assertEquals("Hot Tamale", callerInfo.name); 55 assertEquals("ring", String.valueOf(callerInfo.contactRingtoneUri)); 56 assertEquals(true, callerInfo.shouldSendToVoicemail) [all...] |
CallLogProviderTest.java | 19 import com.android.internal.telephony.CallerInfo; 178 CallerInfo ci = new CallerInfo();
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
DirectToVoicemailCallFilter.java | 21 import com.android.internal.telephony.CallerInfo; 40 public void onCallerInfoQueryComplete(Uri handle, CallerInfo info) { 61 Log.w(this, "CallerInfo lookup returned with a different handle than " + 67 public void onContactPhotoQueryComplete(Uri handle, CallerInfo info) {
|
/packages/services/Telephony/tests/src/com/android/phone/ |
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
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 52 public class CallerInfo { 53 private static final String TAG = "CallerInfo"; 68 * One other detail here is that this CallerInfo object reflects 126 * callerinfo object. 158 public CallerInfo() { 168 * @param contactRef the URI to attach to this CallerInfo object 169 * @param cursor the first object in the cursor is used to build the CallerInfo object. 170 * @return the CallerInfo which contains the caller id for the given 171 * number. The returned CallerInfo is null if no number is supplied. 173 public static CallerInfo getCallerInfo(Context context, Uri contactRef, Cursor cursor) [all...] |
CallerInfoAsyncQuery.java | 40 * @see CallerInfo 56 // If the CallerInfo query finds no contacts, should we use the 69 public void onQueryComplete(int token, Object cookie, CallerInfo ci); 128 * The information relevant to each CallerInfo query. Each query may have multiple 144 private CallerInfo mCallerInfo; 159 * This use of the queue is required because CallerInfo objects may be accessed 218 * Asynchronous query handler class for the contact / callerinfo object. 233 * This method takes into account the state of this class; we construct the CallerInfo 237 * listeners for this CallerInfo object, we release the AsyncCursorInfo back into the 266 // check the token and if needed, create the callerinfo object [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
CallerInfoAsyncQuery.java | 54 * @see CallerInfo 69 // If the CallerInfo query finds no contacts, should we use the 82 public void onQueryComplete(int token, Object cookie, CallerInfo ci); 126 * The information relevant to each CallerInfo query. Each query may have multiple 133 private CallerInfo mCallerInfo; 148 * This use of the queue is required because CallerInfo objects may be accessed 207 * Asynchronous query handler class for the contact / callerinfo object. 221 * This method takes into account the state of this class; we construct the CallerInfo 225 * listeners for this CallerInfo object, we release the AsyncCursorInfo back into the 249 // check the token and if needed, create the callerinfo object [all...] |
CallerInfoUtils.java | 38 * This is called to get caller info for a call. This will return a CallerInfo 43 public static CallerInfo getCallerInfoForCall(Context context, Call call, 45 CallerInfo info = buildCallerInfo(context, call); 57 public static CallerInfo buildCallerInfo(Context context, Call call) { 58 CallerInfo info = new CallerInfo(); 96 * Creates a new {@link CachedContactInfo} from a {@link CallerInfo} 100 * @param {@link CallerInfo} object 101 * @return a CachedContactInfo object created from this CallerInfo 105 CallerInfo ci) [all...] |
CallerInfo.java | 48 public class CallerInfo { 49 private static final String TAG = "CallerInfo"; 100 * One other detail here is that this CallerInfo object reflects 159 * callerinfo object. 197 public CallerInfo() { 207 * @param contactRef the URI to attach to this CallerInfo object 208 * @param cursor the first object in the cursor is used to build the CallerInfo object. 209 * @return the CallerInfo which contains the caller id for the given 210 * number. The returned CallerInfo is null if no number is supplied. 212 public static CallerInfo getCallerInfo(Context context, Uri contactRef, Cursor cursor) [all...] |
ContactInfoCache.java | 108 final CallerInfo info = CallerInfoUtils.buildCallerInfo(context, call); 115 final CallerInfo info) { 159 public void onQueryComplete(int token, Object cookie, CallerInfo callerInfo) { 160 findInfoQueryComplete((Call) cookie, callerInfo, mIsIncoming, true); 208 final CallerInfo callerInfo = CallerInfoUtils.getCallerInfoForCall( 211 findInfoQueryComplete(call, callerInfo, isIncoming, false); 214 private void findInfoQueryComplete(Call call, CallerInfo callerInfo, boolean isIncoming [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
RingtoneFactory.java | 33 import com.android.internal.telephony.CallerInfo; 122 CallerInfo contactCallerInfo = incomingCall.getCallerInfo(); 124 (contactCallerInfo.userType == CallerInfo.USER_TYPE_WORK);
|
CallerInfoLookupHelper.java | 28 import com.android.internal.telephony.CallerInfo; 44 void onCallerInfoQueryComplete(Uri handle, CallerInfo info); 45 void onContactPhotoQueryComplete(Uri handle, CallerInfo info); 49 public CallerInfo callerInfo; 88 if (info.callerInfo != null) { 91 listener.onCallerInfoQueryComplete(handle, info.callerInfo); 92 if (!info.imageQueryPending && (info.callerInfo.cachedPhoto != null || 93 info.callerInfo.cachedPhotoIcon != null)) { 94 listener.onContactPhotoQueryComplete(handle, info.callerInfo); [all...] |
CallLogManager.java | 40 import com.android.internal.telephony.CallerInfo; 61 * @param callerInfo Caller details. 73 public AddCallArgs(Context context, CallerInfo callerInfo, String number, 79 this.callerInfo = callerInfo; 96 public final CallerInfo callerInfo; 222 * @param callerInfo Caller details. 236 CallerInfo callerInfo [all...] |
Call.java | 45 import com.android.internal.telephony.CallerInfo; 189 public void onCallerInfoQueryComplete(Uri handle, CallerInfo callerInfo) { 191 Call.this.setCallerInfo(handle, callerInfo); 196 public void onContactPhotoQueryComplete(Uri handle, CallerInfo callerInfo) { 198 Call.this.setCallerInfo(handle, callerInfo); 306 private CallerInfo mCallerInfo; [all...] |
/frameworks/base/core/java/android/provider/ |
CallLog.java | 43 import com.android.internal.telephony.CallerInfo; 477 * @param ci the CallerInfo object to get the target contact from. Can be null 495 public static Uri addCall(CallerInfo ci, Context context, String number, 508 * @param ci the CallerInfo object to get the target contact from. Can be null 533 public static Uri addCall(CallerInfo ci, Context context, String number, 545 * @param ci the CallerInfo object to get the target contact from. Can be null 576 public static Uri addCall(CallerInfo ci, Context context, String number, [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
MissedCallNotifierImpl.java | 70 import com.android.internal.telephony.CallerInfo; 318 CallerInfo ci = call.getCallerInfo(); 319 if (ci != null && ci.userType == CallerInfo.USER_TYPE_WORK) {
|