Home
last modified time | relevance | path

Searched refs:chronometer (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DChronometerTest.java80 final Chronometer chronometer = new Chronometer(context, null, R.attr.chronometerStyle); in testConstructorFromAttr() local
81 assertTrue(chronometer.isCountDown()); in testConstructorFromAttr()
82 assertEquals(mActivity.getString(R.string.chronometer_format), chronometer.getFormat()); in testConstructorFromAttr()
87 final Chronometer chronometer = new Chronometer(mActivity, null, 0, in testConstructorFromStyle() local
89 assertTrue(chronometer.isCountDown()); in testConstructorFromStyle()
90 assertEquals(mActivity.getString(R.string.chronometer_format), chronometer.getFormat()); in testConstructorFromStyle()
96 Chronometer chronometer = mActivity.getChronometer(); in testAccessBase() local
97 CharSequence oldText = chronometer.getText(); in testAccessBase()
99 chronometer.setBase(100000); in testAccessBase()
100 assertEquals(100000, chronometer.getBase()); in testAccessBase()
[all …]
DChronometerCtsActivity.java27 private Chronometer chronometer; field in ChronometerCtsActivity
33 chronometer = (Chronometer) findViewById(R.id.test_chronometer); in onCreate()
37 return chronometer; in getChronometer()
DRemoteViewsTest.java311 Chronometer chronometer = (Chronometer) mResult.findViewById(R.id.remoteView_chronometer); in testSetChronometer() local
316 assertEquals(base1, chronometer.getBase()); in testSetChronometer()
317 assertEquals("HH:MM:SS", chronometer.getFormat()); in testSetChronometer()
322 assertEquals(base2, chronometer.getBase()); in testSetChronometer()
323 assertEquals("HH:MM:SS", chronometer.getFormat()); in testSetChronometer()
328 assertEquals(base1, chronometer.getBase()); in testSetChronometer()
329 assertEquals("invalid", chronometer.getFormat()); in testSetChronometer()
338 Chronometer chronometer = (Chronometer) mResult.findViewById(R.id.remoteView_chronometer); in testSetChronometerCountDown() local
342 assertTrue(chronometer.isCountDown()); in testSetChronometerCountDown()
346 assertFalse(chronometer.isCountDown()); in testSetChronometerCountDown()
[all …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DTestConfiguration.java177 new LayoutInfo(R.layout.chronometer, "chronometer"),