Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 1290) sorted by relevance

12345678910>>...52

/cts/hostsidetests/systemui/src/android/host/systemui/
DTileServiceTest.java39 assertTrue(waitFor("onCreate")); in testAddTile()
40 assertTrue(waitFor("onTileAdded")); in testAddTile()
41 assertTrue(waitFor("onDestroy")); in testAddTile()
48 assertTrue(waitFor("onCreate")); in testRemoveTile()
49 assertTrue(waitFor("onTileAdded")); in testRemoveTile()
50 assertTrue(waitFor("onDestroy")); in testRemoveTile()
53 assertTrue(waitFor("onTileRemoved")); in testRemoveTile()
59 assertTrue(waitFor("onDestroy")); in testListeningNotifications()
63 assertTrue(waitFor("onStartListening")); in testListeningNotifications()
66 assertTrue(waitFor("onStopListening")); in testListeningNotifications()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DStatFsTest.java29 assertTrue(stat.getBlockSize() > 0); in testStatFs()
30 assertTrue(stat.getBlockCount() > 0); in testStatFs()
31 assertTrue(stat.getFreeBlocks() >= stat.getAvailableBlocks()); in testStatFs()
32 assertTrue(stat.getAvailableBlocks() > 0); in testStatFs()
34 assertTrue(stat.getBlockSizeLong() > 0); in testStatFs()
35 assertTrue(stat.getBlockCountLong() > 0); in testStatFs()
36 assertTrue(stat.getFreeBlocksLong() >= stat.getAvailableBlocksLong()); in testStatFs()
37 assertTrue(stat.getAvailableBlocksLong() > 0); in testStatFs()
39 assertTrue(stat.getFreeBytes() > 0); in testStatFs()
40 assertTrue(stat.getAvailableBytes() > 0); in testStatFs()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java71 assertTrue(cookie.equals("a=b")); in testDomain()
75 assertTrue(cookie == null); in testDomain()
80 assertTrue(cookie.contains("a=b;")); in testDomain()
81 assertTrue(cookie.contains("c=d")); in testDomain()
85 assertTrue(cookie.equals("c=d")); in testDomain()
91 assertTrue(cookie.contains("a=b")); in testDomain()
92 assertTrue(cookie.contains("c=d")); in testDomain()
93 assertTrue(cookie.contains("e=f")); in testDomain()
96 assertTrue(cookie.contains("c=d")); in testDomain()
97 assertTrue(cookie.contains("e=f")); in testDomain()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java21 import static org.junit.Assert.assertTrue;
62 assertTrue(mScroller.isFinished()); in testIsFinished()
75 assertTrue(mScroller.getDuration() > 0); in testGetDuration()
85 assertTrue(mScroller.getDuration() > 0); in testGetDuration()
91 assertTrue(mScroller.isFinished()); in testAccessFinalX()
95 assertTrue(mScroller.isFinished()); in testAccessFinalX()
106 assertTrue(mScroller.isFinished()); in testAccessFinalY()
110 assertTrue(mScroller.isFinished()); in testAccessFinalY()
125 assertTrue(mScroller.isFinished()); in testScrollMode()
138 assertTrue(mScroller.computeScrollOffset()); in testScrollMode()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DAbstractWindowedCursorTest.java55 assertTrue(mWindow.setNumColumns(TEST_COLUMN_COUNT)); in testIsNull()
57 assertTrue(mCursor.isNull(COLUMN_INDEX0)); in testIsNull()
58 assertTrue(mWindow.allocRow()); in testIsNull()
61 assertTrue(mWindow.putString(str, ROW_INDEX0, COLUMN_INDEX0)); in testIsNull()
67 assertTrue(mWindow.setNumColumns(TEST_COLUMN_COUNT)); in testIsBlob()
68 assertTrue(mWindow.allocRow()); in testIsBlob()
74 assertTrue(mWindow.putString(str, ROW_INDEX0, COLUMN_INDEX0)); in testIsBlob()
75 assertTrue(mWindow.putBlob(new byte[10], ROW_INDEX0, COLUMN_INDEX1)); in testIsBlob()
76 assertTrue(mCursor.isBlob(COLUMN_INDEX1)); in testIsBlob()
84 assertTrue(mCursor.hasWindow()); in testHasWindow()
[all …]
/cts/hostsidetests/incident/src/com/android/server/cts/
DPowerIncidentTest.java31 assertTrue( in testPowerServiceDump()
35 assertTrue( in testPowerServiceDump()
39 assertTrue( in testPowerServiceDump()
46 assertTrue(settingsAndConfiguration.getMinimumScreenOffTimeoutConfigMs() > 0); in testPowerServiceDump()
47 assertTrue(settingsAndConfiguration.getMaximumScreenDimDurationConfigMs() >= 0); in testPowerServiceDump()
48 assertTrue(settingsAndConfiguration.getMaximumScreenDimRatioConfig() > 0); in testPowerServiceDump()
49 assertTrue(settingsAndConfiguration.getScreenOffTimeoutSettingMs() > 0); in testPowerServiceDump()
50 assertTrue(settingsAndConfiguration.getMaximumScreenOffTimeoutFromDeviceAdminMs() > 0); in testPowerServiceDump()
53 assertTrue(brightnessLimits.getSettingMaximum() > 0); in testPowerServiceDump()
54 assertTrue(brightnessLimits.getSettingDefault() > 0); in testPowerServiceDump()
[all …]
DGraphicsStatsValidationTest.java57 assertTrue(summaryAfter.getTotalFrames() > summaryBefore.getTotalFrames()); in testBasicDrawFrame()
63 assertTrue(jankyDelta < 5); in testBasicDrawFrame()
66 assertTrue(veryJankyDelta <= 1); in testBasicDrawFrame()
75 assertTrue(summaryAfter.getTotalFrames() > summaryBefore.getTotalFrames());
82 assertTrue(jankyDelta >= 40);
83 assertTrue(jankyDelta < 45);
88 assertTrue(slowUiDelta >= 30);
91 assertTrue(missedVsyncDelta >= 10);
92 assertTrue(missedVsyncDelta <= 11);
96 assertTrue(veryJankyDelta <= 1);
[all …]
DBatteryIncidentTest.java40 assertTrue( in testBatteryServiceDump()
43 assertTrue(dump.getMaxChargingCurrent() > 0); in testBatteryServiceDump()
44 assertTrue(dump.getMaxChargingVoltage() > 0); in testBatteryServiceDump()
45 assertTrue(dump.getChargeCounter() > 0); in testBatteryServiceDump()
46 assertTrue( in testBatteryServiceDump()
48 assertTrue( in testBatteryServiceDump()
51 assertTrue(scale > 0); in testBatteryServiceDump()
53 assertTrue(level >= 0 && level <= scale); in testBatteryServiceDump()
54 assertTrue(dump.getVoltage() > 0); in testBatteryServiceDump()
55 assertTrue(dump.getTemperature() > 0); in testBatteryServiceDump()
/cts/tests/tests/media/src/android/media/cts/
DJetPlayerTest.java53 assertTrue(JetPlayer.getMaxTracks() > 0); in setUp()
70 assertTrue(mJetPlayer.clearQueue()); in testLoadJetFromPath()
73 assertTrue(mJetPlayer.loadJetFile(mJetFile)); in testLoadJetFromPath()
78 assertTrue(mJetPlayer.clearQueue()); in testLoadJetFromFd()
80assertTrue(mJetPlayer.loadJetFile(mContext.getResources().openRawResourceFd(R.raw.test_jet))); in testLoadJetFromFd()
85 assertTrue(mJetPlayer.clearQueue()); in testQueueJetSegmentMuteArray()
87assertTrue(mJetPlayer.loadJetFile(mContext.getResources().openRawResourceFd(R.raw.test_jet))); in testQueueJetSegmentMuteArray()
94 assertTrue(mJetPlayer.queueJetSegmentMuteArray(segmentNum, libNum, in testQueueJetSegmentMuteArray()
97 assertTrue(mJetPlayer.play()); in testQueueJetSegmentMuteArray()
104 assertTrue(mJetPlayer.queueJetSegmentMuteArray(segmentNum, libNum, in testQueueJetSegmentMuteArray()
[all …]
DMediaDrmMockTest.java68 assertTrue(MediaDrm.isCryptoSchemeSupported(mockScheme, mimeType)); in testIsMimeTypeSupported()
90 assertTrue(gotException); in testMediaDrmConstructorFails()
101 assertTrue(md.getPropertyString("test-string").equals("test-value")); in testStringProperties()
113 assertTrue(Arrays.equals(md.getPropertyByteArray("test-array"), testArray)); in testByteArrayProperties()
129 assertTrue(gotException); in testMissingPropertyString()
145 assertTrue(gotException); in testNullPropertyString()
161 assertTrue(gotException); in testMissingPropertyByteArray()
177 assertTrue(gotException); in testNullPropertyByteArray()
203 assertTrue(gotException); in testBadSession()
219 assertTrue(gotException); in testNullSession()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLoginFilter_UsernameFilterGenericTest.java20 import static org.junit.Assert.assertTrue;
43 assertTrue(usernameFilterGeneric.isAllowed('b')); in testIsAllowed()
44 assertTrue(usernameFilterGeneric.isAllowed('B')); in testIsAllowed()
45 assertTrue(usernameFilterGeneric.isAllowed('2')); in testIsAllowed()
50 assertTrue(usernameFilterGeneric.isAllowed('0')); in testIsAllowed()
51 assertTrue(usernameFilterGeneric.isAllowed('9')); in testIsAllowed()
53 assertTrue(usernameFilterGeneric.isAllowed('a')); in testIsAllowed()
54 assertTrue(usernameFilterGeneric.isAllowed('z')); in testIsAllowed()
56 assertTrue(usernameFilterGeneric.isAllowed('A')); in testIsAllowed()
57 assertTrue(usernameFilterGeneric.isAllowed('Z')); in testIsAllowed()
[all …]
DLoginFilter_UsernameFilterGMailTest.java20 import static org.junit.Assert.assertTrue;
43 assertTrue(usernameFilterGMail.isAllowed('c')); in testIsAllowed()
44 assertTrue(usernameFilterGMail.isAllowed('C')); in testIsAllowed()
45 assertTrue(usernameFilterGMail.isAllowed('3')); in testIsAllowed()
50 assertTrue(usernameFilterGMail.isAllowed('0')); in testIsAllowed()
51 assertTrue(usernameFilterGMail.isAllowed('9')); in testIsAllowed()
53 assertTrue(usernameFilterGMail.isAllowed('a')); in testIsAllowed()
54 assertTrue(usernameFilterGMail.isAllowed('z')); in testIsAllowed()
56 assertTrue(usernameFilterGMail.isAllowed('A')); in testIsAllowed()
57 assertTrue(usernameFilterGMail.isAllowed('Z')); in testIsAllowed()
[all …]
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DVerbosityTest.java23 assertTrue(v0.contains("Events injected")); in testVerbosity()
30 assertTrue(v1.contains("Events injected")); in testVerbosity()
31 assertTrue(v1.contains("Sending Touch")); in testVerbosity()
32 assertTrue(v1.contains("Sending Trackball")); in testVerbosity()
33 assertTrue(v1.contains("Switch")); in testVerbosity()
37 assertTrue(v2.contains("Events injected")); in testVerbosity()
38 assertTrue(v2.contains("Sending Touch")); in testVerbosity()
39 assertTrue(v2.contains("Sending Trackball")); in testVerbosity()
40 assertTrue(v2.contains("Switch")); in testVerbosity()
41 assertTrue(v2.contains("Sleeping")); in testVerbosity()
[all …]
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java693 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
703 assertTrue(config.getEapMethod() == Eap.NONE); in testSettersAndGetters()
705 assertTrue(config.getEapMethod() == Eap.PEAP); in testSettersAndGetters()
707 assertTrue(config.getEapMethod() == Eap.PWD); in testSettersAndGetters()
709 assertTrue(config.getEapMethod() == Eap.TLS); in testSettersAndGetters()
711 assertTrue(config.getEapMethod() == Eap.TTLS); in testSettersAndGetters()
712 assertTrue(config.getPhase2Method() == Phase2.NONE); in testSettersAndGetters()
714 assertTrue(config.getPhase2Method() == Phase2.PAP); in testSettersAndGetters()
716 assertTrue(config.getPhase2Method() == Phase2.MSCHAP); in testSettersAndGetters()
718 assertTrue(config.getPhase2Method() == Phase2.MSCHAPV2); in testSettersAndGetters()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DMailToTest.java45 assertTrue(MailTo.isMailTo(MAILTOURI_1)); in testParseMailToURI()
55 assertTrue(MailTo.isMailTo(MAILTOURI_2)); in testParseMailToURI()
64 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
65 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
66 assertTrue(stringUrl.contains("subject=current-issue&")); in testParseMailToURI()
68 assertTrue(MailTo.isMailTo(MAILTOURI_3)); in testParseMailToURI()
77 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
78 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
79 assertTrue(stringUrl.contains("body=send%20current-issue&")); in testParseMailToURI()
81 assertTrue(MailTo.isMailTo(MAILTOURI_4)); in testParseMailToURI()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DVideoProfileTest.java27 assertTrue(VideoProfile.isAudioOnly(VideoProfile.STATE_AUDIO_ONLY)); in testIsAudioOnly()
28 assertTrue(VideoProfile.isAudioOnly(VideoProfile.STATE_PAUSED)); in testIsAudioOnly()
42 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_BIDIRECTIONAL)); in testIsVideo()
43 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_RX_ENABLED)); in testIsVideo()
44 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_TX_ENABLED)); in testIsVideo()
45 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_BIDIRECTIONAL | in testIsVideo()
47 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_RX_ENABLED | VideoProfile.STATE_PAUSED)); in testIsVideo()
48 assertTrue(VideoProfile.isVideo(VideoProfile.STATE_TX_ENABLED | VideoProfile.STATE_PAUSED)); in testIsVideo()
55 assertTrue(VideoProfile.isBidirectional(VideoProfile.STATE_BIDIRECTIONAL)); in testIsBidirectional()
56 assertTrue(VideoProfile.isBidirectional(VideoProfile.STATE_BIDIRECTIONAL | in testIsBidirectional()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DOutlineTest.java21 import static org.junit.Assert.assertTrue;
40 assertTrue(outline.isEmpty()); in testDefaults()
43 assertTrue(outline.getRadius() < 0); in testDefaults()
101 assertTrue(outline.isEmpty());
104 assertTrue(outline.isEmpty());
107 assertTrue(outline.isEmpty());
111 assertTrue(outline.getRect(outRect));
113 assertTrue(outline.canClip());
117 assertTrue(outline.getRect(outRect));
119 assertTrue(outline.canClip());
[all …]
DRegionTest.java22 import static org.junit.Assert.assertTrue;
116 assertTrue(mRegion.contains(area[i][0], area[i][1])); in verifyPointsInsideRegion()
152 assertTrue(mRegion.set(oriRegion)); in testSet1()
162 assertTrue(mRegion.set(rect)); in testSet2()
171 assertTrue(mRegion.set(1, 2, 3, 4)); in testSet3()
182 assertTrue(mRegion.isRect()); in testIsRect()
199 assertTrue(mRegion.isComplex()); in testIsComplex()
209 assertTrue(mRegion.quickContains(rect)); in testQuickContains1()
221 assertTrue(mRegion.quickContains(1, 2, 3, 4)); in testQuickContains2()
238 assertTrue(mRegion.contains(6, 6)); in testUnion()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DGnssLocationValuesTest.java86 softAssert.assertTrue("All locations generated by the LocationManager " in checkLocationAccuracyFields()
89 softAssert.assertTrue("Location Accuracy should be greater than 0.", in checkLocationAccuracyFields()
100 softAssert.assertTrue("When speed is greater than 0, all GNSS locations generated by " in checkLocationAccuracyFields()
103 softAssert.assertTrue("Bearing Accuracy should be greater than 0.", in checkLocationAccuracyFields()
108 softAssert.assertTrue("All GNSS locations generated by the LocationManager " in checkLocationAccuracyFields()
111 softAssert.assertTrue("Speed Accuracy should be greater than 0.", in checkLocationAccuracyFields()
114 softAssert.assertTrue("All GNSS locations generated by the LocationManager " in checkLocationAccuracyFields()
117 softAssert.assertTrue("Vertical Accuracy should be greater than 0.", in checkLocationAccuracyFields()
148 softAssert.assertTrue("All GNSS locations generated by the LocationManager " in checkLocationRegularFields()
151 softAssert.assertTrue("Altitude should be greater than -500 (meters).", in checkLocationRegularFields()
[all …]
DTestMeasurementUtil.java148 softAssert.assertTrue("time_ns: clock value", in assertGnssClockFields()
159 softAssert.assertTrue("TimeNanos - FullBiasNanos = GpsTimeNanos: clock value", in assertGnssClockFields()
184 softAssert.assertTrue("state: Satellite code sync state", in assertAllGnssMeasurementMandatoryFields()
200 softAssert.assertTrue("time_offset_ns: Time offset", in assertAllGnssMeasurementMandatoryFields()
206 softAssert.assertTrue("c_n0_dbhz: Carrier-to-noise density", in assertAllGnssMeasurementMandatoryFields()
213 softAssert.assertTrue("pseudorange_rate_uncertainty_mps: " + in assertAllGnssMeasurementMandatoryFields()
223 softAssert.assertTrue("carrier_frequency_hz: Carrier frequency in hz", in assertAllGnssMeasurementMandatoryFields()
232 softAssert.assertTrue("carrier_phase: Carrier phase", in assertAllGnssMeasurementMandatoryFields()
241 softAssert.assertTrue("carrier_phase_uncertainty: 1-Sigma uncertainty of the " + in assertAllGnssMeasurementMandatoryFields()
250 softAssert.assertTrue("multipath_indicator: GNSS Measurement's multipath indicator", in assertAllGnssMeasurementMandatoryFields()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyCharacterMapTest.java22 import static org.junit.Assert.assertTrue;
59 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_0)); in testIsPrintingKey()
60 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_1)); in testIsPrintingKey()
61 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_2)); in testIsPrintingKey()
62 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_3)); in testIsPrintingKey()
63 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_4)); in testIsPrintingKey()
64 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_5)); in testIsPrintingKey()
65 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_6)); in testIsPrintingKey()
66 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_7)); in testIsPrintingKey()
67 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_8)); in testIsPrintingKey()
[all …]
/cts/tests/tests/jni/src/android/jni/cts/
DJniInstanceTest.java149 assertTrue(target.takeBoolean(false)); in test_takeBoolean()
157 assertTrue(target.takeByte((byte) -99)); in test_takeByte()
165 assertTrue(target.takeShort((short) 19991)); in test_takeShort()
173 assertTrue(target.takeChar((char) 999)); in test_takeChar()
181 assertTrue(target.takeInt(-999888777)); in test_takeInt()
189 assertTrue(target.takeLong(999888777666555444L)); in test_takeLong()
197 assertTrue(target.takeFloat(-9988.7766F)); in test_takeFloat()
205 assertTrue(target.takeDouble(999888777.666555)); in test_takeDouble()
213 assertTrue(target.takeNull(null)); in test_takeNull()
221 assertTrue(target.takeString("fuzzbot")); in test_takeString()
[all …]
DJniStaticTest.java184 assertTrue(StaticNonce.takeBoolean(true)); in test_takeBoolean()
192 assertTrue(StaticNonce.takeByte((byte) -99)); in test_takeByte()
200 assertTrue(StaticNonce.takeShort((short) 19991)); in test_takeShort()
208 assertTrue(StaticNonce.takeChar((char) 999)); in test_takeChar()
216 assertTrue(StaticNonce.takeInt(-999888777)); in test_takeInt()
224 assertTrue(StaticNonce.takeLong(999888777666555444L)); in test_takeLong()
232 assertTrue(StaticNonce.takeFloat(-9988.7766F)); in test_takeFloat()
240 assertTrue(StaticNonce.takeDouble(999888777.666555)); in test_takeDouble()
248 assertTrue(StaticNonce.takeNull(null)); in test_takeNull()
256 assertTrue(StaticNonce.takeString("fuzzbot")); in test_takeString()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DComputeTest.java58 assertTrue(b2.x == 1); in testJavaVectorTypes()
59 assertTrue(b2.y == 2); in testJavaVectorTypes()
65 assertTrue(b3.x == 1); in testJavaVectorTypes()
66 assertTrue(b3.y == 2); in testJavaVectorTypes()
67 assertTrue(b3.z == 3); in testJavaVectorTypes()
74 assertTrue(b4.x == 1); in testJavaVectorTypes()
75 assertTrue(b4.y == 2); in testJavaVectorTypes()
76 assertTrue(b4.z == 3); in testJavaVectorTypes()
77 assertTrue(b4.w == 4); in testJavaVectorTypes()
83 assertTrue(d2.x == 1.0); in testJavaVectorTypes()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java24 import static org.junit.Assert.assertTrue;
111 assertTrue(new ArrowKeyMovementMethod().canSelectArbitrarily()); in testCanSelectArbitrarily()
203 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
216 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
223 assertTrue(correspondingIn1stLine >= 0); in testOnKeyDownWithKeyCodeUp()
224 assertTrue(correspondingIn1stLine <= END_OF_1ST_LINE); in testOnKeyDownWithKeyCodeUp()
227 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
240 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
253 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
261 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
[all …]

12345678910>>...52