use of android.text.format.Time in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testParse0.
@SmallTest
public void testParse0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.parse("12345678T901234");
// System.out.println("t=" + t);
}
use of android.text.format.Time in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testGetActualMaximum0.
@SmallTest
public void testGetActualMaximum0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
int r = t.getActualMaximum(Time.SECOND);
// System.out.println("r=" + r);
}
use of android.text.format.Time in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testMillis1.
@SmallTest
public void testMillis1() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.set(1, 0, 0, 1, 0, 1970);
long r = t.toMillis(true);
// System.out.println("r=" + r);
}
use of android.text.format.Time in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testToString0.
@SmallTest
public void testToString0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
String r = t.toString();
// System.out.println("r='" + r + "'");
}
use of android.text.format.Time in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testSet0.
@SmallTest
public void testSet0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.set(1000L);
// System.out.println("t.year=" + t.year);
// System.out.println("t=" + t);
t.set(2000L);
// System.out.println("t=" + t);
t.set(1000L * 60);
// System.out.println("t=" + t);
t.set((1000L * 60 * 60 * 24) + 1000L);
// System.out.println("t=" + t);
}
Aggregations