Android Open Source - gaosp_packages_apps_Phone Contact






From Project

Back to project page gaosp_packages_apps_Phone.

License

The source code is released under:

Apache License

If you think the Android project gaosp_packages_apps_Phone listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.dnaq.dialer2;
/*from   w  w  w .j a  v  a 2s .  c o  m*/
public class Contact {
  
  public final String lookupKey;
  public final String displayName;
  public final String status;
  public final int timesContacted;
  public final long lastTimeContacted;
  public final boolean starred;
  
  public Contact(String lookupKey, String displayName, String status, int timesContacted, long lastTimeContacted, boolean starred) {
    this.lookupKey = lookupKey;
    this.displayName = displayName != null ? displayName : "";
    this.status = status != null ? status : "";
    this.timesContacted = timesContacted;
    this.lastTimeContacted = lastTimeContacted;
    this.starred = starred;
  }
  
//  public static Contact fromCursor(Cursor c) {
//    String lookupKey = c.getString(c.getColumnIndex(Contacts.LOOKUP_KEY));
//    String displayName = c.getString(c.getColumnIndex(Contacts.DISPLAY_NAME));
//    String status = c.getString(c.getColumnIndex(Contacts.CONTACT_STATUS));
//    int timesContacted = c.getInt(c.getColumnIndex(Contacts.TIMES_CONTACTED));
//    long lastTimeContacted = c.getLong(c.getColumnIndex(Contacts.LAST_TIME_CONTACTED));
//    boolean starred = c.getInt(c.getColumnIndex(Contacts.STARRED)) == 1 ? true : false;
//    return new Contact(lookupKey, displayName != null ? displayName : "", status, timesContacted, lastTimeContacted, starred);
//  }
}




Java Source Code List

org.dnaq.dialer2.AsyncContactImageLoader.java
org.dnaq.dialer2.CallLogAdapter.java
org.dnaq.dialer2.CallLogEntry.java
org.dnaq.dialer2.ContactViewDialog.java
org.dnaq.dialer2.Contact.java
org.dnaq.dialer2.ContactsAdapter.java
org.dnaq.dialer2.DialerActivity.java
org.dnaq.dialer2.DialerPreferenceActivity.java
org.dnaq.dialer2.SelectNumberDialog.java
org.dnaq.dialer2.SelectSpeedDialSlotDialog.java
org.dnaq.libs.GroupingCursorAdapter.java