OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:contactInfo
(Results
1 - 15
of
15
) sorted by null
/development/samples/BusinessCard/src/com/example/android/businesscard/
BusinessCardActivity.java
99
AsyncTask<Uri, Void,
ContactInfo
> task = new AsyncTask<Uri, Void,
ContactInfo
>() {
102
protected
ContactInfo
doInBackground(Uri... uris) {
107
protected void onPostExecute(
ContactInfo
result) {
118
protected void bindView(
ContactInfo
contactInfo
) {
120
displayNameView.setText(
contactInfo
.getDisplayName());
123
phoneNumberView.setText(
contactInfo
.getPhoneNumber());
ContactAccessorSdk3_4.java
55
public
ContactInfo
loadContact(ContentResolver contentResolver, Uri contactUri) {
56
ContactInfo
contactInfo
= new
ContactInfo
();
61
contactInfo
.setDisplayName(cursor.getString(0));
73
contactInfo
.setPhoneNumber(cursor.getString(0));
79
return
contactInfo
;
ContactAccessorSdk5.java
58
public
ContactInfo
loadContact(ContentResolver contentResolver, Uri contactUri) {
59
ContactInfo
contactInfo
= new
ContactInfo
();
68
contactInfo
.setDisplayName(cursor.getString(1));
80
contactInfo
.setPhoneNumber(cursor.getString(0));
86
return
contactInfo
;
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
CallLogNotificationsHelperTest.java
50
ContactInfo
contactInfo
= getContactInfo(
52
assertEquals(TEST_VALID_NUMBER,
contactInfo
.number);
53
assertEquals(mContext.getResources().getString(R.string.unknown),
contactInfo
.name);
54
assertEquals(TEST_E164_NUMBER,
contactInfo
.normalizedNumber);
58
ContactInfo
contactInfo
= getContactInfo(TEST_VALID_NUMBER, -1, TEST_COUNTRY_ISO);
59
assertEquals(TEST_VALID_NUMBER,
contactInfo
.number);
60
assertEquals(TEST_FORMATTED_NUMBER,
contactInfo
.name);
61
assertEquals(TEST_E164_NUMBER,
contactInfo
.normalizedNumber)
[
all
...]
ContactInfoHelperTest.java
45
private
ContactInfo
mContactInfo;
55
mContactInfo = new
ContactInfo
();
69
Assert.assertEquals(
ContactInfo
.EMPTY, mContactInfoHelper.lookupContactFromUri(
81
ContactInfo
contactInfo
= mContactInfoHelper.lookupContactFromUri(
83
Assert.assertEquals(TEST_DISPLAY_NAME,
contactInfo
.name);
84
Assert.assertNull(
contactInfo
.nameAlternative);
95
ContactInfo
contactInfo
= mContactInfoHelper.lookupContactFromUri(
97
Assert.assertEquals(TEST_DISPLAY_NAME,
contactInfo
.name)
[
all
...]
CallLogAdapterTest.java
38
import com.android.dialer.
contactinfo
.ContactInfoCache;
103
public
ContactInfo
lookupNumber(String number, String countryIso) {
104
ContactInfo
info = new
ContactInfo
();
449
ContactInfo
info = createContactInfo();
694
ContactInfo
contactInfo
=
696
mAdapter.injectContactInfoForTest(number, TEST_COUNTRY_ISO,
contactInfo
);
763
private
ContactInfo
createContactInfo() {
769
private
ContactInfo
createContactInfo(String namePrimary, String nameAlternative)
[
all
...]
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
CallCardPresenterTest.java
85
ContactCacheEntry
contactInfo
= new ContactCacheEntry();
86
contactInfo
.number = NUMBER;
92
assertEquals(NUMBER, presenter.getNameForCall(
contactInfo
));
112
ContactCacheEntry
contactInfo
= new ContactCacheEntry();
113
contactInfo
.location = LOCATION;
119
assertEquals(LOCATION, presenter.getNumberForCall(
contactInfo
));
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
ContactsTest.java
92
private class
ContactInfo
{ // Not static to access outer world.
100
public
ContactInfo
(String contactId, String displayName, String photoUri,
164
ContactInfo
contactInfo
= getContactInfoFromPhoneLookupUri(false /*isEnterprise*/,
166
assertNotNull(
contactInfo
);
167
assertEquals(PRIMARY_CONTACT_DISPLAY_NAME,
contactInfo
.displayName);
168
contactInfo
.assertNoPhotoUri();
169
assertFalse(
contactInfo
.hasPhotoId());
170
assertFalse(isEnterpriseContactId(
contactInfo
.contactId));
172
contactInfo
= getContactInfoFromEmailLookupUri(false /*isEnterprise*/
[
all
...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
CallLogNotificationsHelper.java
113
* {@link
ContactInfo
}. If the name is empty but we have a special presentation, display that.
117
public
ContactInfo
getContactInfo(@Nullable String number, int numberPresentation,
124
ContactInfo
contactInfo
= new
ContactInfo
();
125
contactInfo
.number = number;
126
contactInfo
.formattedNumber = PhoneNumberUtils.formatNumber(number, countryIso);
127
//
contactInfo
.normalizedNumber is not PhoneNumberUtils.normalizeNumber. Read
ContactInfo
.
128
contactInfo
.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso)
[
all
...]
ContactInfoHelper.java
78
public
ContactInfo
lookupNumber(String number, String countryIso) {
83
ContactInfo
info;
88
if (info == null || info ==
ContactInfo
.EMPTY) {
100
final
ContactInfo
updatedInfo;
106
if (info ==
ContactInfo
.EMPTY) {
108
updatedInfo = new
ContactInfo
();
152
* It returns null if an error occurs, {@link
ContactInfo
#EMPTY} if no matching contact is
153
* found, or the {@link
ContactInfo
} for the given contact.
155
* The {@link
ContactInfo
#formattedNumber} field is always set to {@code null} in the returned
158
ContactInfo
lookupContactFromUri(Uri uri, boolean isSip)
[
all
...]
MissedCallNotifier.java
35
import com.android.dialer.
contactinfo
.ContactPhotoLoader;
106
ContactInfo
contactInfo
= CallLogNotificationsHelper.getInstance(mContext)
112
titleResId =
contactInfo
.userType == ContactsUtils.USER_TYPE_WORK
116
expandedText =
contactInfo
.name;
117
ContactPhotoLoader loader = new ContactPhotoLoader(mContext,
contactInfo
);
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ContactResolver.java
30
import com.android.mail.
ContactInfo
;
186
final ImmutableMap<String,
ContactInfo
> contactInfos = loadContactPhotos(emails);
200
final
ContactInfo
contactInfo
= contactInfos.get(email);
201
if (
contactInfo
== null) {
209
final byte[] photo =
contactInfo
.photoBytes;
244
protected ImmutableMap<String,
ContactInfo
> loadContactPhotos(Set<String> emails) {
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
StatusBarNotifier.java
232
private void buildAndSendNotification(Call originalCall, ContactCacheEntry
contactInfo
) {
245
Bitmap largeIcon = getLargeIconToDisplay(
contactInfo
, call);
247
getContentString(call,
contactInfo
.userType);
248
final String contentTitle = getContentTitle(
contactInfo
, call);
261
notificationType,
contactInfo
.contactRingtoneUri)) {
315
addPersonReference(builder,
contactInfo
, call);
322
if (mDialerRingtoneManager.shouldPlayRingtone(callState,
contactInfo
.contactRingtoneUri)) {
324
notification.sound =
contactInfo
.contactRingtoneUri;
428
String getContentTitle(ContactCacheEntry
contactInfo
, Call call) {
433
String preferredName = ContactDisplayUtils.getPreferredDisplayName(
contactInfo
.namePrimary
[
all
...]
ContactInfoCache.java
44
import com.android.dialer.calllog.
ContactInfo
;
125
ContactInfo
contactInfo
= new
ContactInfo
();
127
contactInfo
);
129
contactInfo
.name = info.cnapName;
130
contactInfo
.number = call.getNumber();
131
contactInfo
.type = ContactsContract.CommonDataKinds.Phone.TYPE_MAIN;
135
.put(Phone.NUMBER,
contactInfo
.number)
138
.put(Contacts.DISPLAY_NAME,
contactInfo
.name
[
all
...]
/prebuilts/tools/common/m2/repository/com/cenqua/clover/clover/3.1.12/
clover-3.1.12.jar
Completed in 1764 milliseconds