use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ParanoidAndroid.
the class TimeTest method testClear0.
@SmallTest
public void testClear0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.clear(Time.TIMEZONE_UTC);
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ParanoidAndroid.
the class TimeTest method testMillis0.
@SmallTest
public void testMillis0() throws Exception {
Time t = new Time(Time.TIMEZONE_UTC);
t.set(0, 0, 0, 1, 1, 2006);
long r = t.toMillis(true);
// System.out.println("r=" + r);
t.set(1, 0, 0, 1, 1, 2006);
r = t.toMillis(true);
// System.out.println("r=" + r);
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ParanoidAndroid.
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 ParanoidAndroid.
the class LinkifyTest method testNothing.
@SmallTest
public void testNothing() throws Exception {
TextView tv;
tv = new TextView(getContext());
tv.setText("Hey, foo@google.com, call 415-555-1212.");
assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod);
assertTrue(tv.getUrls().length == 0);
}
use of android.test.suitebuilder.annotation.SmallTest in project android_frameworks_base by ParanoidAndroid.
the class LinkifyTest method testUnclickable.
@SmallTest
public void testUnclickable() throws Exception {
TextView tv;
tv = new TextView(getContext());
tv.setAutoLinkMask(Linkify.ALL);
tv.setLinksClickable(false);
tv.setText("Hey, foo@google.com, call 415-555-1212.");
assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod);
assertTrue(tv.getUrls().length == 2);
}
Aggregations