Home
last modified time | relevance | path

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

12345678910

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarNavigationManagerTest.java59 assertNotNull(mCarAppFocusManager); in setUp()
77 assertNotNull(imageReference); in testSerializeAndDeserializeProto()
78 assertNotNull(distance); in testSerializeAndDeserializeProto()
79 assertNotNull(maneuver); in testSerializeAndDeserializeProto()
80 assertNotNull(lane); in testSerializeAndDeserializeProto()
81 assertNotNull(laneDirection); in testSerializeAndDeserializeProto()
82 assertNotNull(cue); in testSerializeAndDeserializeProto()
83 assertNotNull(cueElement); in testSerializeAndDeserializeProto()
84 assertNotNull(step); in testSerializeAndDeserializeProto()
85 assertNotNull(latLng); in testSerializeAndDeserializeProto()
[all …]
DCarInfoManagerTest.java32 assertNotNull(mInfoManager); in setUp()
36 assertNotNull(mInfoManager.getVehicleId()); in testVehicleId()
41 assertNotNull(mInfoManager.getManufacturer()); in testNotNullItems()
42 assertNotNull(mInfoManager.getModel()); in testNotNullItems()
43 assertNotNull(mInfoManager.getModelYear()); in testNotNullItems()
/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/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/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java22 import static org.junit.Assert.assertNotNull;
78 assertNotNull("getOverview() returned null", mLauncher.getOverview()); in testPressRecentAppsLauncherAndGetOverview()
85 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
93 assertNotNull("switchToAllApps() returned null", in testAllAppsFromOverview()
127 assertNotNull("overview.getCurrentTask() returned null (1)", task); in testOverview()
128 assertNotNull("OverviewTask.open returned null", task.open()); in testOverview()
143 assertNotNull("overview.getCurrentTask() returned null (2)", task); in testOverview()
153 assertNotNull("overview.switchToAllApps() returned null (1)", allApps); in testOverview()
158 assertNotNull("allApps.switchBackToOverview() returned null", overview); in testOverview()
164 assertNotNull("overview.switchToAllApps() returned null (2)", allApps); in testOverview()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java24 import static org.junit.Assert.assertNotNull;
85 assertNotNull(msg); in testParseRtmDelNeigh()
90 assertNotNull(hdr); in testParseRtmDelNeigh()
98 assertNotNull(ndmsgHdr); in testParseRtmDelNeigh()
103 assertNotNull(destination); in testParseRtmDelNeigh()
112 assertNotNull(msg); in testParseRtmNewNeigh()
117 assertNotNull(hdr); in testParseRtmNewNeigh()
125 assertNotNull(ndmsgHdr); in testParseRtmNewNeigh()
130 assertNotNull(destination); in testParseRtmNewNeigh()
142 assertNotNull(msg); in testParseRtmGetNeighResponse()
[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()
DNduseroptMessageTest.java23 import static org.junit.Assert.assertNotNull;
98 assertNotNull(nlMsg); in testParseWithinNetlinkMessage()
127 assertNotNull(nlMsg); in testParseUnknownOptionWithinNetlinkMessage()
205 assertNotNull(msg); in testTruncation()
214 assertNotNull(msg); in testToString()
230 assertNotNull(msg); in assertMatches()
240 assertNotNull(opt); in assertPref64Option()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java21 import static org.junit.Assert.assertNotNull;
104 assertNotNull(drivingEvent); in testDrivingStateChange()
124 assertNotNull(drivingEvent); in testDrivingStateChange()
136 assertNotNull(drivingEvent); in testDrivingStateChange()
139 assertNotNull(restrictions); in testDrivingStateChange()
152 assertNotNull(drivingEvent); in testDrivingStateChange()
155 assertNotNull(restrictions); in testDrivingStateChange()
194 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
214 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
227 assertNotNull(drivingEvent); in testDrivingStateChangeForMalformedInputs()
[all …]
DCarStorageMonitoringTest.java21 import static org.junit.Assert.assertNotNull;
401 assertNotNull(wearEstimate); in testReadWearEstimate()
411 assertNotNull(wearEstimateChanges); in testReadWearHistory()
429 assertNotNull(wearEstimateChanges); in checkLastWearEvent()
460 assertNotNull(bootIoStats); in testBootIoStats()
505 assertNotNull(aggregateIoStats); in testAggregateIoStats()
512 assertNotNull(mockIoStat); in testAggregateIoStats()
538 assertNotNull(deltas); in testIoStatsDeltas()
542 assertNotNull(delta0); in testIoStatsDeltas()
546 assertNotNull(delta0Stats); in testIoStatsDeltas()
[all …]
DCarDiagnosticManagerTest.java21 import static org.junit.Assert.assertNotNull;
253 assertNotNull(liveFrame); in testLiveFrameRead()
318 assertNotNull(liveFrame); in testMissingSensorRead()
352 assertNotNull(liveFrame); in testFuelSystemStatus()
380 assertNotNull(liveFrame); in testSecondaryAirStatus()
417 assertNotNull(liveFrame); in testIgnitionMonitors()
420 assertNotNull(commonIgnitionMonitors); in testIgnitionMonitors()
430 assertNotNull(sparkIgnitionMonitors); in testIgnitionMonitors()
460 assertNotNull(liveFrame); in testIgnitionMonitors()
464 assertNotNull(commonIgnitionMonitors); in testIgnitionMonitors()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java109 assertNotNull(activity.mListFragment); in testOnListItemClick()
125 assertNotNull(activity.mListFragment); in testOnActivityCreatedLoaderHistoryFromCbs()
135 assertNotNull(activity.mListFragment.getLoaderManager()); in testOnActivityCreatedLoaderHistoryFromCbs()
141 assertNotNull(activity.mListFragment); in testOnLoadFinishedWithData()
182 assertNotNull(activity.mListFragment); in testOnLoadFinishedEmptyData()
194 assertNotNull(activity.mListFragment); in testOnLoaderReset()
204 assertNotNull(activity.mListFragment); in testOnContextItemSelectedDelete()
235 assertNotNull(activity.mListFragment); in testOnContextItemSelectedViewDetails()
302 assertNotNull(activity.mListFragment); in testFragmentOnOptionsItemSelected()
334 assertNotNull(activity.mListFragment); in testFragmentOnCreateOptionsMenu()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchivesProviderTest.java25 import static junit.framework.Assert.assertNotNull;
85 assertNotNull("Cursor must not be null.", cursor); in testQueryRoots()
109 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Success()
117 assertNotNull(notificationUri); in testOpen_Success()
130 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Success()
162 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Failure()
170 assertNotNull(notificationUri); in testOpen_Failure()
183 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_Failure()
216 assertNotNull("Cursor must not be null. File not found?", cursor); in testOpen_ClosesOnRelease()
223 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/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java23 import static org.junit.Assert.assertNotNull;
122 assertNotNull("allApps parameter is null", allApps); in runAllAppsTest()
152 assertNotNull("All apps: can't fine YouTube", allApps.getAppIcon("YouTube")); in runAllAppsTest()
154 assertNotNull("All apps: can't fine Camera", allApps.getAppIcon("Camera")); in runAllAppsTest()
171 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
194 assertNotNull("ensureScrollable didn't add Chrome app", in testWorkspace()
212 assertNotNull("No Chrome app in workspace", app); in testWorkspace()
219 assertNotNull("AppIcon.launch returned null", app.launch(getAppPackageName())); in runIconLaunchFromAllAppsTest()
246 assertNotNull("openAllWidgets() returned null", widgets); in testWidgets()
248 assertNotNull("getAllWidgets() returned null", widgets); in testWidgets()
/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/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/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()
DDataUsageSettingsTests.java56 assertNotNull("Data usage element not found", in testElementsOnDataUsageScreen()
59 assertNotNull("Data usage bar not found", in testElementsOnDataUsageScreen()
62 assertNotNull("WiFi Data usage element not found", in testElementsOnDataUsageScreen()
65 assertNotNull("Network restrictions element not found", in testElementsOnDataUsageScreen()
77 assertNotNull("Network & internet screen not loaded", mDevice.wait( in launchDataUsageSettings()
/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/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java19 import static org.junit.Assert.assertNotNull;
91 assertNotNull("Record trace switch not found.", in testElementsOnMainScreen()
94 assertNotNull("Applications element not found.", in testElementsOnMainScreen()
97 assertNotNull("Categories element not found.", in testElementsOnMainScreen()
100 assertNotNull("Restore default categories element not found.", in testElementsOnMainScreen()
103 assertNotNull("Per-CPU buffer size element not found.", in testElementsOnMainScreen()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java90 Assert.assertNotNull(adapterService); in setAdapterService()
115 Assert.assertNotNull(adapterService); in clearAdapterService()
138 Assert.assertNotNull(adapterService); in startService()
169 Assert.assertNotNull(adapterService); in stopService()
193 Assert.assertNotNull(bluetoothAdapter); in getTestDevice()
196 Assert.assertNotNull(testDevice); in getTestDevice()
210 Assert.assertNotNull(intent); in waitForIntent()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiQrCodeTest.java20 import static org.junit.Assert.assertNotNull;
106 assertNotNull(config); in parseValidZxingWifiQrCode()
119 assertNotNull(config); in parseValidZxingWifiQrCodeSae()
132 assertNotNull(config); in parseValidZxingWifiQrCode_noPass_and_no_password()
145 assertNotNull(config); in parseValidZxingWifiQrCode_no_security_and_no_password()
158 assertNotNull(config); in parseValidZxingWifiQrCode_specialCharacters()

12345678910