Android Open Source - android-forensics Call






From Project

Back to project page android-forensics.

License

The source code is released under:

MIT License

If you think the Android project android-forensics 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 pt.ist.androidforensics.data;
/*from w  w w.  j  a va2 s.c o m*/
import java.util.Date;

public class Call extends Model {
  
  private String phoneNumber;
  private String callType;
  private Date callDate;
  private String callDuration;
  
  public Call(String number, String type, Date date, String duration) {
    this.phoneNumber = number;
    this.callType = type;
    this.callDate = date;
    this.callDuration = duration;
  }
  
  @Override
  public String toString() {
    return "Call [phoneNumber=" + phoneNumber + ", callType=" + callType
        + ", callDate=" + callDate + ", callDuration=" + callDuration
        + "]";
  }

  public void setPhoneNumber(String number) {
    this.phoneNumber = number;
  }
  
  public String getPhoneNumber() {
    return phoneNumber;
  }
  
  public void setCallType(String type) {
    this.callType = type;
  }
  
  public String getCallType() {
    return callType;
  }
  
  public void setCallSate(Date date) {
    this.callDate = date;
  }
  
  public Date getCallDate() {
    return callDate;
  }
  
  public void setCallDuration(String duration) {
    this.callDuration = duration;
  }
  
  public String getCallDuration() {
    return callDuration;
  }
  
  @Override
  public String toCSV() {
    return this.getCallType()+"#"+this.getPhoneNumber()+"#"+this.getCallDate()+"#"+this.getCallDuration();
  }

  @Override
  public String toCSVHeader() {
    return "Type#PhoneNumber#Date#Duration";
  }

}




Java Source Code List

pt.ist.androidforensics.AndroidForensicsApp.java
pt.ist.androidforensics.ExportCallLog.java
pt.ist.androidforensics.ExportContacts.java
pt.ist.androidforensics.ExportMessages.java
pt.ist.androidforensics.MainActivity.java
pt.ist.androidforensics.data.Call.java
pt.ist.androidforensics.data.Contact.java
pt.ist.androidforensics.data.Model.java
pt.ist.androidforensics.data.Sms.java
pt.ist.androidforensics.utils.Utils.java