Home
last modified time | relevance | path

Searched refs:assertNotNull (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/
DScaledLayoutTest.java20 import static junit.framework.Assert.assertNotNull;
54 assertNotNull(activity); in testScaledLayout_layoutInXml()
56 assertNotNull(rootLayout); in testScaledLayout_layoutInXml()
58 assertNotNull(scaledLayout); in testScaledLayout_layoutInXml()
60 assertNotNull(view1); in testScaledLayout_layoutInXml()
62 assertNotNull(view2); in testScaledLayout_layoutInXml()
64 assertNotNull(view3); in testScaledLayout_layoutInXml()
66 assertNotNull(view4); in testScaledLayout_layoutInXml()
88 assertNotNull(activity); in testScaledLayout_layoutThroughCode()
90 assertNotNull(rootLayout); in testScaledLayout_layoutThroughCode()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiWakeMetricsTest.java21 import static junit.framework.Assert.assertNotNull;
45 assertNotNull(wifiWakeStats); in buildsEmptyProto()
64 assertNotNull(wifiWakeStats); in buildsMultiSessionProto_fewerThanMax()
82 assertNotNull(wifiWakeStats); in buildsMultiSessionProto_greaterThanMax()
90 assertNotNull(session); in buildsMultiSessionProto_greaterThanMax()
110 assertNotNull(wifiWakeStats); in buildProtoCountsWakes()
125 assertNotNull(wifiWakeStats); in buildProtoDoesNotCountWakeInCurrentSession()
138 assertNotNull(wifiWakeStats); in buildProtoCountsIgnoredStarts()
150 assertNotNull(wifiWakeStats); in buildProtoDoesNotIncludeCurrentSession()
163 assertNotNull(wifiWakeStats); in ignoresEventsIfStartNotCalled()
[all …]
DWifiNetworkFactoryTest.java270 assertNotNull(mDataSource); in setUp()
275 assertNotNull(mModeChangeCallbackCaptor.getValue()); in setUp()
284 assertNotNull(mNetworkProvider); in setUp()
595 assertNotNull(mSelectedNetwork); in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithConnectedRequestFromFgApp()
621 assertNotNull(mSelectedNetwork); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithConnectedRequestFromFgApp()
651 assertNotNull(mSelectedNetwork); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithSameConnectedRequestFromFgApp()
920 assertNotNull(matchedScanResultsCaptor.getValue()); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
961 assertNotNull(matchedScanResultsCaptor.getValue()); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatchForSaeTransitionScanResult()
1002 assertNotNull(matchedScanResultsCaptor.getValue()); in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
1044 assertNotNull(matchedScanResultsCaptor.getValue()); in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
[all …]
DScanTestUtil.java353 assertNotNull(prefix + "expected ScanResults was null", expected); in assertScanResultsEquals()
354 assertNotNull(prefix + "actual ScanResults was null", actual); in assertScanResultsEquals()
365 assertNotNull(prefix + "expected ScanResults was null", expected); in assertScanResultsEqualsAnyOrder()
366 assertNotNull(prefix + "actual ScanResults was null", actual); in assertScanResultsEqualsAnyOrder()
403 assertNotNull(prefix + "expected ScanData was null", expected); in assertScanDataEquals()
404 assertNotNull(prefix + "actual ScanData was null", actual); in assertScanDataEquals()
417 assertNotNull("expected " + prefix + "ScanData[] was null", expected); in assertScanDatasEquals()
418 assertNotNull("actaul " + prefix + "ScanData[] was null", actual); in assertScanDatasEquals()
449 assertNotNull("buckets was null", actual.buckets); in assertNativeScanSettingsEquals()
451 assertNotNull("buckets[" + i + "] was null", actual.buckets[i]); in assertNativeScanSettingsEquals()
[all …]
DSupplicantStaIfaceHalTest.java32 import static org.junit.Assert.assertNotNull;
929 assertNotNull(mISupplicantStaIfaceCallback); in testAnqpDoneCallback()
954 assertNotNull(mISupplicantStaIfaceCallbackV14); in testAnqpDoneCallback_1_4()
976 assertNotNull(mISupplicantStaIfaceCallback); in testIconDoneCallback()
1001 assertNotNull(mISupplicantStaIfaceCallback); in testHs20SubscriptionRemediationCallback()
1048 assertNotNull(mISupplicantStaIfaceCallback); in testStateChangeCallbackWithNoConfiguredNetwork()
1069 assertNotNull(mISupplicantStaIfaceCallback); in testStateChangeToAssociatedCallback()
1090 assertNotNull(mISupplicantStaIfaceCallback); in testStateChangeToCompletedCallback()
1113 assertNotNull(mISupplicantStaIfaceCallback); in testDisconnectedCallback()
1139 assertNotNull(mISupplicantStaIfaceCallback); in testAuthFailurePasswordOnDisconnect()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java107 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); in testEditSchema()
108 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_NAME)); in testEditSchema()
109 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema()
110 assertNotNull(type.getKindForMimetype(Email.CONTENT_ITEM_TYPE)); in testEditSchema()
111 assertNotNull(type.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE)); in testEditSchema()
112 assertNotNull(type.getKindForMimetype(Im.CONTENT_ITEM_TYPE)); in testEditSchema()
113 assertNotNull(type.getKindForMimetype(Organization.CONTENT_ITEM_TYPE)); in testEditSchema()
114 assertNotNull(type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE)); in testEditSchema()
115 assertNotNull(type.getKindForMimetype(Note.CONTENT_ITEM_TYPE)); in testEditSchema()
116 assertNotNull(type.getKindForMimetype(Website.CONTENT_ITEM_TYPE)); in testEditSchema()
[all …]
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java19 import static org.junit.Assert.assertNotNull;
130 assertNotNull("Record trace switch not found.", in testElementsOnMainScreen()
133 assertNotNull("Applications element not found.", in testElementsOnMainScreen()
136 assertNotNull("Categories element not found.", in testElementsOnMainScreen()
139 assertNotNull("Restore default categories element not found.", in testElementsOnMainScreen()
142 assertNotNull("Per-CPU buffer size element not found.", in testElementsOnMainScreen()
145 assertNotNull("Clear saved traces element not found.", in testElementsOnMainScreen()
148 assertNotNull("Long traces element not found.", in testElementsOnMainScreen()
151 assertNotNull("Maximum long trace size element not found.", in testElementsOnMainScreen()
154 assertNotNull("Maximum long trace duration element not found.", in testElementsOnMainScreen()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java25 import static org.junit.Assert.assertNotNull;
86 assertNotNull(msg); in testParseRtmDelNeigh()
91 assertNotNull(hdr); in testParseRtmDelNeigh()
99 assertNotNull(ndmsgHdr); in testParseRtmDelNeigh()
104 assertNotNull(destination); in testParseRtmDelNeigh()
113 assertNotNull(msg); in testParseRtmNewNeigh()
118 assertNotNull(hdr); in testParseRtmNewNeigh()
126 assertNotNull(ndmsgHdr); in testParseRtmNewNeigh()
131 assertNotNull(destination); in testParseRtmNewNeigh()
143 assertNotNull(msg); in testParseRtmGetNeighResponse()
[all …]
DConntrackMessageTest.java24 import static org.junit.Assert.assertNotNull;
152 assertNotNull(msg); in testConntrackParseIPv4TcpTimeoutUpdate()
157 assertNotNull(hdr); in testConntrackParseIPv4TcpTimeoutUpdate()
166 assertNotNull(nfmsgHdr); in testConntrackParseIPv4TcpTimeoutUpdate()
201 assertNotNull(msg); in testConntrackParseIPv4UdpTimeoutUpdate()
206 assertNotNull(hdr); in testConntrackParseIPv4UdpTimeoutUpdate()
215 assertNotNull(nfmsgHdr); in testConntrackParseIPv4UdpTimeoutUpdate()
295 assertNotNull(msg); in testParseCtNew()
300 assertNotNull(hdr); in testParseCtNew()
309 assertNotNull(nfmsgHdr); in testParseCtNew()
[all …]
DNetlinkSocketTest.java23 import static org.junit.Assert.assertNotNull;
52 assertNotNull(fd); in testBasicWorkingGetNeighborsQuery()
57 assertNotNull(localAddr); in testBasicWorkingGetNeighborsQuery()
63 assertNotNull(req); in testBasicWorkingGetNeighborsQuery()
73 assertNotNull(response); in testBasicWorkingGetNeighborsQuery()
81 assertNotNull(msg); in testBasicWorkingGetNeighborsQuery()
83 assertNotNull(hdr); in testBasicWorkingGetNeighborsQuery()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java22 import static org.junit.Assert.assertNotNull;
89 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
126 assertNotNull("overview.getCurrentTask() returned null (1)", task); in testOverview()
127 assertNotNull("OverviewTask.open returned null", task.open()); in testOverview()
142 assertNotNull("overview.getCurrentTask() returned null (2)", task); in testOverview()
192 assertNotNull("Workspace.switchToOverview() returned null", in testSwitchToOverview()
205 assertNotNull("Background.switchToOverview() returned null", background.switchToOverview()); in testBackground()
212 assertNotNull("Launcher.getBackground() returned null", background); in getAndAssertBackground()
224 assertNotNull("switchToAllApps() returned null", in testAllAppsFromHome()
232 assertNotNull("pressHome returned null", mLauncher.pressHome()); in testAllAppsFromHome()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java116 assertNotNull(activity.mListFragment); in testOnListItemClick()
132 assertNotNull(activity.mListFragment); in testOnActivityCreatedLoaderHistoryFromCbs()
142 assertNotNull(activity.mListFragment.getLoaderManager()); in testOnActivityCreatedLoaderHistoryFromCbs()
148 assertNotNull(activity.mListFragment); in testOnLoadFinishedWithData()
189 assertNotNull(activity.mListFragment); in testOnLoadFinishedEmptyData()
201 assertNotNull(activity.mListFragment); in testOnLoaderReset()
211 assertNotNull(activity.mListFragment); in testOnContextItemSelectedDelete()
229 assertNotNull("onContextItemSelected - MENU_DELETE_ALL should create alert dialog", in testOnContextItemSelectedDelete()
240 assertNotNull(activity.mListFragment); in testOnContextItemSelectedViewDetails()
307 assertNotNull(activity.mListFragment); in testFragmentOnOptionsItemSelected()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java21 import static org.junit.Assert.assertNotNull;
105 assertNotNull(drivingEvent); in testDrivingStateChange()
125 assertNotNull(drivingEvent); in testDrivingStateChange()
137 assertNotNull(drivingEvent); in testDrivingStateChange()
140 assertNotNull(restrictions); in testDrivingStateChange()
153 assertNotNull(drivingEvent); in testDrivingStateChange()
156 assertNotNull(restrictions); in testDrivingStateChange()
195 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
219 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
237 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java25 import static junit.framework.Assert.assertNotNull;
86 assertNotNull("Cursor must not be null.", cursor); in testQueryRoots()
110 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Success()
118 assertNotNull(notificationUri); in testOpen_Success()
131 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Success()
163 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Failure()
171 assertNotNull(notificationUri); in testOpen_Failure()
184 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Failure()
217 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_ClosesOnRelease()
224 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_ClosesOnRelease()
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUtils.java19 import static junit.framework.Assert.assertNotNull;
195 assertNotNull(uri); in insertChannel()
205 assertNotNull(uri); in insertPrograms()
218 assertNotNull(cursor); in queryPrograms()
238 assertNotNull(uri); in insertPreviewPrograms()
252 assertNotNull(cursor); in queryPreviewPrograms()
271 assertNotNull(uri); in insertRecordedPrograms()
284 assertNotNull(cursor); in queryRecordedPrograms()
308 assertNotNull(uri); in insertWatchedPrograms()
322 assertNotNull(cursor); in queryWatchedPrograms()
[all …]
DColumnFilterTest.java77 assertNotNull(uri); in insertChannel()
89 assertNotNull(cursor); in testQueryChannel()
102 assertNotNull(cursor); in testQueryChannel_count()
111 assertNotNull(cursor); in testQueryChannelWithNullProjection()
121 assertNotNull(cursor); in testQueryChannelWithNoValidColumn()
135 assertNotNull(cursor); in testInsertAndQueryChannel()
153 assertNotNull(cursor); in testUpdateChannel()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceTest.java26 import static org.junit.Assert.assertNotNull;
142 assertNotNull(ipSecSrv); in testIpSecServiceCreate()
172 assertNotNull(udpEncapResp); in testOpenAndCloseUdpEncapsulationSocket()
180 assertNotNull(udpEncapResp); in testOpenAndCloseUdpEncapsulationSocket()
226 assertNotNull(udpEncapResp); in testOpenUdpEncapsulationSocketAfterClose()
247 assertNotNull(udpEncapResp); in testUdpEncapPortNotReleased()
267 assertNotNull(udpEncapResp); in testOpenUdpEncapsulationSocketOnRandomPort()
293 assertNotNull(udpEncapResp); in testOpenUdpEncapsulationSocketTwice()
478 assertNotNull(newUdpEncapSocket); in testSocketResourceTrackerLimitation()
493 assertNotNull(extraUdpEncapSocket); in testSocketResourceTrackerLimitation()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DIconLoaderTest.java43 assertNotNull(mLoader.getIcon(String.valueOf(android.R.drawable.star_on))); in testGetIcon()
56 public void assertNotNull(NowOrLater<?> value) { in assertNotNull() method in IconLoaderTest
58 assertNotNull(value.getNow()); in assertNotNull()
62 consumer.assertNotNull(); in assertNotNull()
89 public void assertNotNull() { in assertNotNull() method in IconLoaderTest.AssertConsumer
90 IconLoaderTest.assertNotNull(waitFor()); in assertNotNull()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java23 import static org.junit.Assert.assertNotNull;
130 assertNotNull("allApps parameter is null", allApps); in runAllAppsTest()
160 assertNotNull("All apps: can't fine YouTube", allApps.getAppIcon("YouTube")); in runAllAppsTest()
162 assertNotNull("All apps: can't fine Camera", allApps.getAppIcon("Camera")); in runAllAppsTest()
179 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
203 assertNotNull("ensureScrollable didn't add Chrome app", in testWorkspace()
221 assertNotNull("No Chrome app in workspace", app); in testWorkspace()
228 assertNotNull("AppIcon.launch returned null", app.launch(getAppPackageName())); in runIconLaunchFromAllAppsTest()
256 assertNotNull("openAllWidgets() returned null", widgets); in testWidgets()
258 assertNotNull("getAllWidgets() returned null", widgets); in testWidgets()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DMediaResourceManagerTest.java47 assertNotNull(mediaResourceManager); in testLoadFromCache()
63 assertNotNull(mediaResourceManager); in testCacheEviction()
86 assertNotNull(mediaResourceManager); in testReclaimMemoryFromMediaCache()
106 assertNotNull(mediaResourceManager); in testLoadInvalidImage()
117 assertNotNull(mediaResourceManager); in testLoadImageSynchronously()
122 assertNotNull(resource); in testLoadImageSynchronously()
156 assertNotNull(resource); in createAssertListener()
/packages/services/Telephony/tests/src/com/android/phone/tests/
DCallForwardInfoTest.java19 import static org.junit.Assert.assertNotNull;
40 assertNotNull(PhoneNumberUtils.formatNumber("+12345678900", Locale.US.getCountry())); in testCallForwardNumberResponses()
41 assertNotNull(PhoneNumberUtils.formatNumber("123-456-7890", Locale.US.getCountry())); in testCallForwardNumberResponses()
42 assertNotNull(PhoneNumberUtils.formatNumber("#123", Locale.US.getCountry())); in testCallForwardNumberResponses()
43 assertNotNull(PhoneNumberUtils.formatNumber("*12", Locale.US.getCountry())); in testCallForwardNumberResponses()
/packages/apps/StorageManager/tests/unit/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoaderTest.java31 import static org.junit.Assert.assertNotNull;
44 assertNotNull(result); in testEmptyDirectory()
56 assertNotNull(result); in testFilesInDirectory()
70 assertNotNull(result); in testNestedDirectories()
93 assertNotNull(result); in testSumFileSizes()
109 assertNotNull(result); in testFetchesThumbnailsForImages()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DNotificationSettingsTests.java86 assertNotNull("Could not find Settings > Apps screen", view); in testNotificationsSettingsListForCalculator()
88 assertNotNull("Could not find Calculator notification settings", app); in testNotificationsSettingsListForCalculator()
104 assertNotNull("Could not find Settings > Apps screen", view); in testNotificationsSettingsListForPhone()
110 assertNotNull("Could not find Phone notification settings", phone); in testNotificationsSettingsListForPhone()
113 assertNotNull("Could not find incoming calls channel", incomingCalls); in testNotificationsSettingsListForPhone()
120 assertNotNull("Could not find importance toggle", importance); in testNotificationsSettingsListForPhone()
156 assertNotNull("Could not find Settings > Apps & notifications screen", title); in launchAppsSettings()
/packages/modules/IPsec/tests/cts/src/android/eap/cts/
DEapSessionConfigTest.java23 import static org.junit.Assert.assertNotNull;
92 assertNotNull(eapSimConfig); in testBuildWithAllEapMethods()
97 assertNotNull(eapAkaConfig); in testBuildWithAllEapMethods()
102 assertNotNull(eapAkaPrimeConfig); in testBuildWithAllEapMethods()
109 assertNotNull(eapMsChapV2Config); in testBuildWithAllEapMethods()
115 assertNotNull(eapTtlsConfig); in testBuildWithAllEapMethods()
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DReferenceWithHistoryTest.java22 import static org.junit.Assert.assertNotNull;
50 assertNotNull(dumpReferenceWithHistory(referenceWithHistory)); in testBasicReferenceBehavior()
56 assertNotNull(dumpReferenceWithHistory(referenceWithHistory)); in testBasicReferenceBehavior()
62 assertNotNull(dumpReferenceWithHistory(referenceWithHistory)); in testBasicReferenceBehavior()
68 assertNotNull(dumpReferenceWithHistory(referenceWithHistory)); in testBasicReferenceBehavior()
74 assertNotNull(dumpReferenceWithHistory(referenceWithHistory)); in testBasicReferenceBehavior()

12345678910>>...17