Android Open Source - gaosp_packages_apps_Phone Call Log Entry






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;
/*  w  w  w  .ja v  a  2 s. c  o  m*/
public class CallLogEntry {
    public final String number;
    public final String cachedName;
    public final long date;
    public final long duration;
    public final boolean isNew;
    public final int type;
    
    public CallLogEntry(String number, String cachedName, long date, long duration, boolean isNew, int type) {
        this.number = number;
        this.cachedName = cachedName;
        this.date = date;
        this.duration = duration;
        this.isNew = isNew;
        this.type = type;
    }
    
//    public static CallLogEntry fromCursor(Cursor c) {
//        String number = c.getString(c.getColumnIndex(Calls.NUMBER));
//        number = "-1".equals(number) ? null : number;
//        String cachedName = c.getString(c.getColumnIndex(Calls.CACHED_NAME));
//        long date = c.getLong(c.getColumnIndex(Calls.DATE));
//        long duration = c.getLong(c.getColumnIndex(Calls.DURATION));
//        boolean isNew = c.getInt(c.getColumnIndex(Calls.NEW)) == 1 ? true : false;
//        int type = c.getInt(c.getColumnIndex(Calls.TYPE));
//        return new CallLogEntry(number, cachedName, date, duration, isNew, type);
//    }
    
}




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