1 package edu.jiangxin.apktoolbox.android.dumpsys.alarm; 2 3 public class SharedData { 4 private static SharedData instance = null; 5 6 private long mTimestamp; 7 private long mUptimeMs; 8 private String mDateTime; 9 10 private SharedData() { 11 } 12 13 public static SharedData getInstance() { 14 if (instance == null) { 15 instance = new SharedData(); 16 } 17 return instance; 18 } 19 20 public long getTimestamp() { 21 return mTimestamp; 22 } 23 24 public void setTimestamp(long timestamp) { 25 this.mTimestamp = timestamp; 26 } 27 28 public long getUptimeMs() { 29 return mUptimeMs; 30 } 31 32 public void setUptimeMs(long uptimeMs) { 33 this.mUptimeMs = uptimeMs; 34 } 35 36 public String getDateTime() { 37 return mDateTime; 38 } 39 40 public void setDateTime(String dateTime) { 41 this.mDateTime = dateTime; 42 } 43 }