use of android.test.suitebuilder.annotation.SmallTest 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.test.suitebuilder.annotation.SmallTest 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);
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testSet1.
@SmallTest
public void testSet1() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.set(1, 2, 3, 4, 5, 6);
// System.out.println("t=" + t);
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ResurrectionRemix.
the class TimeTest method testNormalize0.
@SmallTest
public void testNormalize0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.parse("20060432T010203");
t.normalize(false);
// System.out.println("got: " + t.year + '-'
// + t.month + '-' + t.monthDay
// + ' ' + t.hour + ':' + t.minute
// + ':' + t.second
// + "( " + t.isDst + ',' + t.gmtoff
// + ',' + t.weekDay
// + ',' + t.yearDay + ')');
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ResurrectionRemix.
the class TextUtilsTest method testCharSequenceCreatorSpannable.
@SmallTest
public void testCharSequenceCreatorSpannable() {
Parcel p;
CharSequence text;
p = Parcel.obtain();
TextUtils.writeToParcel(new SpannableString("test"), p, 0);
p.setDataPosition(0);
text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(p);
assertEquals("conversion to/from parcel failed", "test", text.toString());
}
Aggregations