Search in sources :

Example 16 with SmallTest

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);
}
Also used : Time(android.text.format.Time) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 17 with SmallTest

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);
}
Also used : Time(android.text.format.Time) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 18 with SmallTest

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 + ')');
}
Also used : Time(android.text.format.Time) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 19 with SmallTest

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);
}
Also used : LinkMovementMethod(android.text.method.LinkMovementMethod) TextView(android.widget.TextView) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 20 with SmallTest

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);
}
Also used : LinkMovementMethod(android.text.method.LinkMovementMethod) TextView(android.widget.TextView) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

SmallTest (android.test.suitebuilder.annotation.SmallTest)1764 Parcel (android.os.Parcel)143 Time (android.text.format.Time)97 Rect (android.graphics.Rect)94 ByteBuffer (java.nio.ByteBuffer)71 Bundle (android.os.Bundle)68 LinkProperties (android.net.LinkProperties)66 ArrayList (java.util.ArrayList)63 SpannableString (android.text.SpannableString)60 DhcpPacket (android.net.dhcp.DhcpPacket)52 Rational (android.util.Rational)50 File (java.io.File)47 RouteInfo (android.net.RouteInfo)45 NetworkRequest (android.net.NetworkRequest)44 ParcelUuid (android.os.ParcelUuid)43 MenuItem (android.view.MenuItem)42 BitwiseInputStream (com.android.internal.util.BitwiseInputStream)42 BitwiseOutputStream (com.android.internal.util.BitwiseOutputStream)42 CaptureRequest (android.hardware.camera2.CaptureRequest)40 IpPrefix (android.net.IpPrefix)40