Home
last modified time | relevance | path

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

123456789

/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/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java110 assertNotNull(created1);
115 assertNotNull(created2);
120 assertNotNull(created3);
125 assertNotNull(created4);
136 assertNotNull(created1);
140 assertNotNull(created2);
150 assertNotNull(created1);
154 assertNotNull(created2);
158 assertNotNull(created3);
162 assertNotNull(created4);
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java22 import static org.junit.Assert.assertNotNull;
77 assertNotNull("getOverview() returned null", mLauncher.getOverview()); in testPressRecentAppsLauncherAndGetOverview()
84 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
92 assertNotNull("switchToAllApps() returned null", in testAllAppsFromOverview()
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()
152 assertNotNull("overview.switchToAllApps() returned null (1)", allApps); in testOverview()
157 assertNotNull("allApps.switchBackToOverview() returned null", overview); in testOverview()
163 assertNotNull("overview.switchToAllApps() returned null (2)", allApps); in testOverview()
[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/settings/ui/
DTraceurAppTests.java19 import static org.junit.Assert.assertNotNull;
88 assertNotNull("Record trace switch not found.", in testElementsOnMainScreen()
91 assertNotNull("Applications element not found.", in testElementsOnMainScreen()
94 assertNotNull("Categories element not found.", in testElementsOnMainScreen()
97 assertNotNull("Restore default categories element not found.", in testElementsOnMainScreen()
100 assertNotNull("Per-CPU buffer size element not found.", in testElementsOnMainScreen()
103 assertNotNull("Clear saved traces element not found.", in testElementsOnMainScreen()
106 assertNotNull("Long traces element not found.", in testElementsOnMainScreen()
109 assertNotNull("Maximum long trace size element not found.", in testElementsOnMainScreen()
112 assertNotNull("Maximum long trace duration element not found.", in testElementsOnMainScreen()
[all …]
/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/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;
120 assertNotNull("allApps parameter is null", allApps); in runAllAppsTest()
150 assertNotNull("All apps: can't fine YouTube", allApps.getAppIcon("YouTube")); in runAllAppsTest()
152 assertNotNull("All apps: can't fine Camera", allApps.getAppIcon("Camera")); in runAllAppsTest()
169 assertNotNull("switchToAllApps() returned null", in testWorkspaceSwitchToAllApps()
192 assertNotNull("ensureScrollable didn't add Chrome app", in testWorkspace()
210 assertNotNull("No Chrome app in workspace", app); in testWorkspace()
217 assertNotNull("AppIcon.launch returned null", app.launch(getAppPackageName())); in runIconLaunchFromAllAppsTest()
243 assertNotNull("openAllWidgets() returned null", widgets); in testWidgets()
245 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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java285 assertNotNull(cursor); in testBulkInsertCarriers()
407 assertNotNull(cursor); in testUpdateConflictingCarriers()
454 assertNotNull(cursor); in doSimpleTestForUri()
508 assertNotNull(cursor); in testOwnedBy()
575 assertNotNull(cursor); in testSimTable()
653 assertNotNull(enforceCursor); in testEnforceManagedUri()
668 assertNotNull(cursorNotEnforced); in testEnforceManagedUri()
677 assertNotNull(cursorNotEnforcedDpc); in testEnforceManagedUri()
682 assertNotNull(cursorNotEnforcedOthers); in testEnforceManagedUri()
694 assertNotNull(enforceCursor); in testEnforceManagedUri()
[all …]
/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()
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java63 assertNotNull(response); in testGetSmallNdef()
94 assertNotNull(response); in testGetLargeNdef()
125 assertNotNull(response); in testGetExcessiveNdef()
156 assertNotNull(response); in testPutSmallNdef()
187 assertNotNull(response); in testPutLargeNdef()
221 assertNotNull(response); in testUnsupportedVersion()
257 assertNotNull(response); in testDifferentMinorVersion()
/packages/apps/Gallery/tests/src/com/android/camera/
DBitmapManagerUnitTests.java66 assertNotNull(manager); in testSingleton()
67 assertNotNull(mBitmapManager); in testSingleton()
93 assertNotNull(t.getBitmap()); in testDefaultAllowDecoding()
118 assertNotNull(t.getBitmap()); in testAllowDecoding()
136 assertNotNull(t1.getBitmap()); in testThreadDecoding()

123456789