Search in sources :

Example 71 with SmallTest

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

Example 72 with SmallTest

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

Example 73 with SmallTest

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

Example 74 with SmallTest

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

Example 75 with SmallTest

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

Aggregations

SmallTest (android.test.suitebuilder.annotation.SmallTest)2108 Test (org.junit.Test)235 Parcel (android.os.Parcel)153 ArrayList (java.util.ArrayList)104 Time (android.text.format.Time)97 Rect (android.graphics.Rect)94 TelephonyTest (com.android.internal.telephony.TelephonyTest)84 Bundle (android.os.Bundle)77 ByteBuffer (java.nio.ByteBuffer)71 Intent (android.content.Intent)69 LinkProperties (android.net.LinkProperties)68 SpannableString (android.text.SpannableString)61 FlakyTest (android.support.test.filters.FlakyTest)58 DhcpPacket (android.net.dhcp.DhcpPacket)52 Rational (android.util.Rational)50 NetworkRequest (android.net.NetworkRequest)48 File (java.io.File)47 RouteInfo (android.net.RouteInfo)45 BitwiseOutputStream (com.android.internal.util.BitwiseOutputStream)45 ParcelUuid (android.os.ParcelUuid)43