Home
last modified time | relevance | path

Searched refs:Assert (Results 1 – 25 of 3008) sorted by relevance

12345678910>>...121

/aosp12/art/test/082-inline-execute/src/
H A DMain.java121 Assert.fail(); in test_String_length()
136 Assert.fail(); in test_String_isEmpty()
166 Assert.fail(); in test_String_charAtExc()
171 Assert.fail(); in test_String_charAtExc()
181 Assert.fail(); in test_String_charAtExc()
186 Assert.fail(); in test_String_charAtExc()
191 Assert.fail(); in test_String_charAtExc()
202 Assert.fail(); in test_String_charAtExc()
209 Assert.fail(); in test_String_charAtExc()
216 Assert.fail(); in test_String_charAtExc()
[all …]
/aosp12/art/test/021-string2/src/
H A DMain.java17 import junit.framework.Assert;
400 Assert.fail(); in testCompareToAndEquals()
405 Assert.fail(); in testCompareToAndEquals()
412 Assert.fail(); in testCompareToAndEquals()
597 Assert.assertFalse( in testEqualsConstString()
630 Assert.assertTrue( in testEqualsConstString()
632 Assert.assertFalse( in testEqualsConstString()
634 Assert.assertFalse( in testEqualsConstString()
640 Assert.assertTrue( in testEqualsConstString()
729 Assert.assertTrue( in testConstStringEquals()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsServTest.java24 import junit.framework.Assert;
123 Assert.assertTrue(serv.getRunning()); in testParceling()
127 Assert.assertTrue(serv.getLaunched()); in testParceling()
194 Assert.assertTrue(serv.getRunning()); in testStartLaunchedLockedWhileLaunched()
198 Assert.assertTrue(serv.getLaunched()); in testStartLaunchedLockedWhileLaunched()
226 Assert.assertTrue(serv.getRunning()); in testStartLaunchedLockedWhileNotLaunched()
260 Assert.assertTrue(serv.getRunning()); in testStopLaunchedLockedWhileNotLaunched()
294 Assert.assertTrue(serv.getRunning()); in testStopLaunchedLockedWhileLaunchedNormal()
323 Assert.assertTrue(serv.getRunning()); in testStopLaunchedLockedWhileLaunchedTooQuick()
506 Assert.assertEquals(startTimeToNow, in testGetStartTimeRunning()
[all …]
H A DBatteryStatsTimeBaseTest.java25 import junit.framework.Assert;
58 Assert.assertEquals(uptime, mUptimeUs); in verify()
60 Assert.assertEquals(running, mRunning); in verify()
93 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()
94 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()
107 Assert.assertTrue(tb.isRunning()); in testRunning()
119 Assert.assertEquals(100, tb.getUptime(250)); in testRunning()
134 Assert.assertEquals(400, tb.getUptime(550)); in testRunning()
141 Assert.assertFalse(tb.isRunning()); in testRunning()
283 Assert.assertEquals(100+300+666-400, in testComputeUptime()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
H A DBipTransformationTest.java21 import org.junit.Assert;
34 Assert.assertFalse(trans.supportsAny()); in testCreateEmpty()
35 Assert.assertEquals(null, trans.toString()); in testCreateEmpty()
45 Assert.assertEquals("crop", trans.toString()); in testAddTransformation()
61 Assert.assertEquals("crop", trans.toString()); in testAddExistingTransformation()
67 Assert.assertEquals("crop", trans.toString()); in testAddExistingTransformation()
90 Assert.assertEquals("crop", trans.toString()); in testRemoveOnlyTransformation()
96 Assert.assertFalse(trans.supportsAny()); in testRemoveOnlyTransformation()
97 Assert.assertEquals(null, trans.toString()); in testRemoveOnlyTransformation()
156 Assert.assertEquals("crop", trans.toString()); in testParse_Crop()
[all …]
H A DBipImageFormatTest.java21 import org.junit.Assert;
38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
39 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly()
52 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_withSize()
64 Assert.assertEquals(-1, format.getSize()); in testParseVariant_requiredOnly()
77 Assert.assertEquals(-1, format.getSize()); in testParseVariant_withMaxSize()
122 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
131 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
140 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
154 Assert.assertEquals(-1, format.getSize()); in testCreateNative_requiredOnly()
[all …]
H A DBipImagePropertiesTest.java21 import org.junit.Assert;
129 Assert.assertTrue(properties.isValid()); in testParsePropertiesSimple()
160 Assert.assertTrue(properties.isValid()); in testParsePropertiesRich()
185 Assert.assertFalse(properties.isValid()); in testParseNoHandle()
211 Assert.assertFalse(properties.isValid()); in testParseNoVersion()
236 Assert.assertTrue(properties.isValid()); in testParseNoFriendlyName()
258 Assert.assertTrue(properties.isValid()); in testParseFixedVariantThumbnailFormat()
280 Assert.assertTrue(properties.isValid()); in testParseRangeVariantThumbnailFormat()
302 Assert.assertTrue(properties.isValid()); in testParseFixedRangeVariantThumbnailFormat()
327 Assert.assertFalse(properties.isValid()); in testParseNoThumbnailFormats()
[all …]
/aosp12/frameworks/base/tools/locked_region_code_injection/test/lockedregioncodeinjection/
H A DTestMain.java16 import org.junit.Assert;
65 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedBlock()
75 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedBlock()
85 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedMethod()
90 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedMethod()
100 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedMethod2()
105 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedMethod2()
115 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedMethod3()
120 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedMethod3()
152 Assert.assertTrue(caughtException); in testCaughtException()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
H A DAvrcpItemTest.java31 import org.junit.Assert;
482 Assert.assertEquals(title, in avrcpMediaItem_toMediaMetadata()
494 Assert.assertEquals(uri, in avrcpMediaItem_toMediaMetadata()
496 Assert.assertEquals(uri, in avrcpMediaItem_toMediaMetadata()
498 Assert.assertEquals(uri, in avrcpMediaItem_toMediaMetadata()
500 Assert.assertEquals(null, in avrcpMediaItem_toMediaMetadata()
546 Assert.assertEquals(uri, in avrcpFolderItem_toMediaMetadata()
548 Assert.assertEquals(uri, in avrcpFolderItem_toMediaMetadata()
550 Assert.assertEquals(uri, in avrcpFolderItem_toMediaMetadata()
552 Assert.assertEquals(null, in avrcpFolderItem_toMediaMetadata()
[all …]
H A DAvrcpCoverArtStorageTest.java32 import org.junit.Assert;
102 Assert.assertEquals(expectedUri, uri); in addNewImage_imageExists()
113 Assert.assertEquals(expectedUri, uri); in addExistingImage_imageUpdated()
160 Assert.assertEquals(null, uri); in addNullImage_imageNotAdded()
167 Assert.assertEquals(null, uri); in addImageNullDevice_imageNotAdded()
174 Assert.assertEquals(null, uri); in addImageNullHandle_imageNotAdded()
181 Assert.assertEquals(null, uri); in addImageEmptyHandle_imageNotAdded()
205 Assert.assertEquals(null, image); in getImageThatDoesntExist_returnsNull()
212 Assert.assertEquals(null, image); in getImageNullDevice_returnsNull()
219 Assert.assertEquals(null, image); in getImageNullHandle_returnsNull()
[all …]
/aosp12/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DPowerProfileTest.java31 import org.junit.Assert;
58 Assert.assertEquals(12.0f, audio.onMa, EPSILON); in testReadGood()
69 Assert.assertEquals(941.0f, camera.onMa, EPSILON); in testReadGood()
73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood()
74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood()
76 Assert.assertEquals(2, cpu.clusters.length); in testReadGood()
78 Assert.assertEquals(4, cpu.clusters[0].coreCount); in testReadGood()
125 Assert.assertEquals(1.0f, gps.onMa, EPSILON); in testReadGood()
135 Assert.assertEquals(11.0f, modem.rxMa, EPSILON); in testReadGood()
136 Assert.assertEquals(5, modem.txMa.length); in testReadGood()
[all …]
/aosp12/frameworks/base/media/tests/MtpTests/src/android/mtp/
H A DMtpStorageManagerTest.java27 import org.junit.Assert;
83 Assert.fail(); in vWriteNewFile()
310 Assert.fail(); in testMtpObjectGetSize()
360 Assert.assertNotNull(obj); in testGetByPath()
372 Assert.assertNull(obj); in testGetByPathError()
382 Assert.assertNotNull(obj); in testGetObject()
606 Assert.assertEquals(id, 1); in testSendObjectSuccess()
625 Assert.assertEquals(id, 1); in testSendObjectSuccessDir()
653 Assert.assertEquals(id, 1); in testSendObjectSuccessDelayed()
672 Assert.assertEquals(id, 1); in testSendObjectSuccessDirDelayed()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
H A DStateMachineTest.java36 import org.junit.Assert;
232 Assert.assertEquals(i, lr.getWhat()); in testStateMachineQuit()
237 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineQuit()
334 Assert.assertEquals(1, lr.getWhat()); in testStateMachineQuitNow()
339 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineQuitNow()
545 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineEnterExitTransitionToTest()
563 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineEnterExitTransitionToTest()
759 Assert.assertEquals(2, sm1.mExitCount); in testStateMachine1()
775 Assert.assertEquals(2, sm1.mExitCount); in testStateMachine1()
884 Assert.assertTrue(sm2.mDidEnter); in testStateMachine2()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerServiceTest.java23 import static org.junit.Assert.fail;
49 import org.junit.Assert;
123 Assert.assertNull(pri.removedUsers); in testPackageRemoval()
124 Assert.assertNull(pri.broadcastUsers); in testPackageRemoval()
128 Assert.assertNull(pri.broadcastUsers); in testPackageRemoval()
144 Assert.assertNotNull(pri.broadcastUsers); in testPackageRemoval()
146 Assert.assertNotNull(pri.instantUserIds); in testPackageRemoval()
156 Assert.assertNotNull(pri.broadcastUsers); in testPackageRemoval()
158 Assert.assertNotNull(pri.instantUserIds); in testPackageRemoval()
247 Assert.assertEquals(10000L, full.minTimeUs); in testTimeouts()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DMenuTest.java26 import junit.framework.Assert;
42 Assert.assertEquals(id, item.getItemId()); in testItemId()
43 Assert.assertEquals(item, mMenu.findItem(id)); in testItemId()
44 Assert.assertEquals(0, mMenu.findItemIndex(id)); in testItemId()
58 Assert.assertEquals(groupId, item.getGroupId()); in testGroupId()
177 Assert.assertNull(mMenu.findItem(1)); in testRemove()
181 Assert.assertNull(mMenu.findItem(2)); in testRemove()
187 Assert.assertNull(mMenu.findItem(3)); in testRemove()
188 Assert.assertNull(mMenu.findItem(4)); in testRemove()
189 Assert.assertNull(mMenu.findItem(5)); in testRemove()
[all …]
/aosp12/frameworks/multidex/library/test/src/androidx/multidex/
H A DMultiDexTest.java19 import org.junit.Assert;
28 Assert.assertFalse(MultiDex.isVMMultidexCapable(null)); in testVersionCheck()
31 Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32")); in testVersionCheck()
32 Assert.assertFalse(MultiDex.isVMMultidexCapable("2.0")); in testVersionCheck()
35 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1")); in testVersionCheck()
36 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.2")); in testVersionCheck()
40 Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0")); in testVersionCheck()
41 Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0.0")); in testVersionCheck()
42 Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0.1")); in testVersionCheck()
43 Assert.assertTrue(MultiDex.isVMMultidexCapable("3.1.0")); in testVersionCheck()
[all …]
/aosp12/build/make/tools/product_config/test/com/android/build/config/
H A DErrorReporterTest.java19 import org.junit.Assert;
35 Assert.assertTrue(errors.hadWarningOrError()); in testAdding()
36 Assert.assertTrue(errors.hadError()); in testAdding()
39 Assert.assertEquals(1, entries.size()); in testAdding()
57 Assert.assertFalse(errors.hadWarningOrError()); in testNoError()
58 Assert.assertFalse(errors.hadError()); in testNoError()
71 Assert.assertTrue(errors.hadWarningOrError()); in testWarning()
72 Assert.assertFalse(errors.hadError()); in testWarning()
85 Assert.assertFalse(errors.hadWarningOrError()); in testHidden()
86 Assert.assertFalse(errors.hadError()); in testHidden()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DRemoteDevicesTest.java25 import org.junit.Assert;
71 Assert.assertNotNull(msg); in testSendUuidIntent()
272 Assert.assertEquals(batteryLevel, in testResetBatteryLevel_testAclStateChangeCallback()
286 Assert.assertEquals(BLUETOOTH_CONNECT, in testResetBatteryLevel_testAclStateChangeCallback()
293 Assert.assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testResetBatteryLevel_testAclStateChangeCallback()
376 Assert.assertEquals(100, in testGetBatteryLevelFromXEventVsc()
378 Assert.assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
380 Assert.assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
382 Assert.assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
384 Assert.assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
[all …]
H A DAdapterServiceTest.java61 import org.junit.Assert;
128 Assert.assertNotNull(adapterConfig); in setupClass()
514 Assert.assertFalse( in testSnoopLoggingChange()
570 Assert.assertNotNull(metricsSalt); in testObfuscateBluetoothAddress_BluetoothDisabled()
784 Assert.assertTrue(id > 0); in testGetMetricId_BluetoothDisabled()
798 Assert.assertTrue(id > 0); in testGetMetricId_BluetoothEnabled()
809 Assert.assertTrue(id1 > 0); in testGetMetricId_PersistentBetweenToggle()
815 Assert.assertEquals(id2, id1); in testGetMetricId_PersistentBetweenToggle()
821 Assert.assertEquals(id3, id1); in testGetMetricId_PersistentBetweenToggle()
834 Assert.assertTrue(id1 > 0); in testgetMetricId_PersistentBetweenAdapterServiceInitialization()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidServiceTest.java45 import org.junit.Assert;
142 Assert.assertNotNull(mService); in startService()
148 Assert.assertNull(mService); in stopService()
158 Assert.assertNotNull(device); in onReceive()
160 Assert.assertNotNull(queue); in onReceive()
173 Assert.assertNotNull(intent); in verifyConnectionStateIntent()
184 Assert.assertNull(intent); in verifyNoConnectionStateIntent()
205 Assert.assertTrue(mService.stop()); in testStopHearingAidService()
211 Assert.assertTrue(mService.start()); in testStopHearingAidService()
223 Assert.assertEquals("Initial device priority", in testGetSetPriority()
[all …]
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_constant.java27 private void Assert(boolean b) { in Assert() method in UT_constant
34 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
35 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
36 Assert(ScriptC_constant.const_charTest == -8); in run()
37 Assert(ScriptC_constant.const_shortTest == -16); in run()
38 Assert(ScriptC_constant.const_intTest == -32); in run()
39 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
42 Assert(ScriptC_constant.const_ucharTest == 8); in run()
43 Assert(ScriptC_constant.const_ushortTest == 16); in run()
44 Assert(ScriptC_constant.const_uintTest == 32); in run()
[all …]
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_constant.java29 private void Assert(boolean b) { in Assert() method in UT_constant
36 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
37 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
38 Assert(ScriptC_constant.const_charTest == -8); in run()
39 Assert(ScriptC_constant.const_shortTest == -16); in run()
40 Assert(ScriptC_constant.const_intTest == -32); in run()
41 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
44 Assert(ScriptC_constant.const_ucharTest == 8); in run()
45 Assert(ScriptC_constant.const_ushortTest == 16); in run()
46 Assert(ScriptC_constant.const_uintTest == 32); in run()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DClientWakelockAccountantTest.java21 import junit.framework.Assert;
41 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
43 Assert.assertEquals(1, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
45 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
58 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStopAttributingWakelock()
64 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStopAttributingWakelock()
67 Assert.assertEquals(0, mClient.updatePendingRequestWakelockTime(0)); in testStopAttributingWakelock()
75 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStopAllPendingRequests()
77 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStopAllPendingRequests()
80 Assert.assertEquals(0, mClient.updatePendingRequestWakelockTime(0)); in testStopAllPendingRequests()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
H A DA2dpServiceTest.java46 import org.junit.Assert;
140 Assert.assertNotNull(mA2dpService); in startService()
146 Assert.assertNull(mA2dpService); in stopService()
180 Assert.assertNotNull(intent); in verifyConnectionStateIntent()
191 Assert.assertNull(intent); in verifyNoConnectionStateIntent()
197 Assert.assertNotNull(intent); in verifyAudioStateIntent()
207 Assert.assertNull(intent); in verifyNoAudioStateIntent()
213 Assert.assertNotNull(intent); in verifyCodecConfigIntent()
216 Assert.assertEquals(codecStatus, in verifyCodecConfigIntent()
222 Assert.assertNull(intent); in verifyNoCodecConfigIntent()
[all …]
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_constant.java31 private void Assert(boolean b) { in Assert() method in UT_constant
38 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
39 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
40 Assert(ScriptC_constant.const_charTest == -8); in run()
41 Assert(ScriptC_constant.const_shortTest == -16); in run()
42 Assert(ScriptC_constant.const_intTest == -32); in run()
43 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
46 Assert(ScriptC_constant.const_ucharTest == 8); in run()
47 Assert(ScriptC_constant.const_ushortTest == 16); in run()
48 Assert(ScriptC_constant.const_uintTest == 32); in run()
[all …]

12345678910>>...121