Home
last modified time | relevance | path

Searched refs:assertNull (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java4 import static org.junit.Assert.assertNull;
33 assertNull(NetworkKey.createFromWifiInfo(null)); in createFromWifi_nullInput()
39 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
46 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
53 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
59 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullBssid()
66 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptyBssid()
73 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_invalidBssid()
88 assertNull(NetworkKey.createFromScanResult(null)); in createFromScanResult_nullInput()
96 assertNull(NetworkKey.createFromScanResult(scanResult)); in createFromScanResult_nullWifiSsid()
[all …]
DUriTest.java80 assertNull(u.getQuery()); in testBuildUponOpaqueStringUri()
81 assertNull(u.getPath()); in testBuildUponOpaqueStringUri()
82 assertNull(u.getAuthority()); in testBuildUponOpaqueStringUri()
83 assertNull(u.getHost()); in testBuildUponOpaqueStringUri()
94 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
97 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
301 assertNull(uri.getPath()); in testSchemeOnly()
375 assertNull(uri.getFragment()); in testOpaqueUri()
381 assertNull(uri.getAuthority()); in testOpaqueUri()
382 assertNull(uri.getEncodedAuthority()); in testOpaqueUri()
[all …]
/frameworks/support/core-utils/tests/java/android/support/v4/app/
DFrameMetricsAggregatorTest.java21 import static org.junit.Assert.assertNull;
58 assertNull(durations); in testFrameMetrics()
62 assertNull(sparseArray); in testFrameMetrics()
72 assertNull(durations); in testFrameMetrics()
79 assertNull(durations[i]); in testFrameMetrics()
91 assertNull(durations); in testFrameMetrics()
122 assertNull(durations); in testFrameMetrics()
132 assertNull(durations); in testFrameMetrics()
142 assertNull(durations); in testFrameMetrics()
152 assertNull(durations); in testFrameMetrics()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DStackWindowControllerTests.java29 import static org.junit.Assert.assertNull;
55 assertNull(stackController.mContainer); in testRemoveContainer()
56 assertNull(taskController.mContainer); in testRemoveContainer()
57 assertNull(stack.getDisplayContent()); in testRemoveContainer()
58 assertNull(task.getDisplayContent()); in testRemoveContainer()
59 assertNull(task.mStack); in testRemoveContainer()
78 assertNull(stackController.mContainer); in testRemoveContainer_deferRemoval()
79 assertNull(stack.getController()); in testRemoveContainer_deferRemoval()
84 assertNull(taskController.mContainer); in testRemoveContainer_deferRemoval()
85 assertNull(task.getController()); in testRemoveContainer_deferRemoval()
DTaskSnapshotCacheTest.java21 import static junit.framework.Assert.assertNull;
56 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
67 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
78 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
87 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached()
95 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached()
104 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testRestoreFromDisk()
DTaskWindowContainerControllerTests.java27 import static org.junit.Assert.assertNull;
50 assertNull(taskController.mContainer); in testRemoveContainer()
51 assertNull(appController.mContainer); in testRemoveContainer()
69 assertNull(taskController.mContainer); in testRemoveContainer_deferRemoval()
70 assertNull(task.getController()); in testRemoveContainer_deferRemoval()
75 assertNull(appController.mContainer); in testRemoveContainer_deferRemoval()
76 assertNull(app.getController()); in testRemoveContainer_deferRemoval()
/frameworks/support/core-utils/tests/java/android/support/v4/content/
DMimeTypeFilterTest.java21 import static org.junit.Assert.assertNull;
79 assertNull(MimeTypeFilter.matches( in matchesManyFilters()
84 assertNull(MimeTypeFilter.matches("image/jpeg", new String[] {})); in matchesManyFilters()
86 assertNull(MimeTypeFilter.matches("image/jpeg", new String[] {"image/png", "video/jpeg"})); in matchesManyFilters()
87 assertNull(MimeTypeFilter.matches("image/jpeg", new String[] {"video/jpeg", "image/png"})); in matchesManyFilters()
89 assertNull(MimeTypeFilter.matches(null, new String[] {"*/*"})); in matchesManyFilters()
90 assertNull(MimeTypeFilter.matches(null, new String[] {"image/"})); in matchesManyFilters()
91 assertNull(MimeTypeFilter.matches(null, new String[] {"image/jpeg"})); in matchesManyFilters()
94 assertNull(MimeTypeFilter.matches((String) null, new String[] { "*/*" })); in matchesManyFilters()
95 assertNull(MimeTypeFilter.matches("", new String[] { "*/*" })); in matchesManyFilters()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java84 assertNull(result); in testParsingFail_NotVvm()
92 assertNull(result); in testParsingFail_PrefixMismatch()
100 assertNull(result); in testParsingFail_MissingFirstColon()
108 assertNull(result); in testParsingFail_MissingSecondColon()
116 assertNull(result); in testParsingFail_MessageEndAfterClientPrefix()
124 assertNull(result); in testParsingFail_MessageEndAfterPrefix()
131 assertNull(result); in testParsingFail_InvalidKeyValuePair()
138 assertNull(result); in testParsingFail_InvalidMissingKey()
176 assertNull(result); in testAlternativeParsingFail_MissingSeparator()
184 assertNull(result); in testAlternativeParsingFail_NotWhitelistedEvent()
DPhoneSubInfoControllerTest.java28 import static org.junit.Assert.assertNull;
111 assertNull(mPhoneSubInfoControllerUT.getDeviceIdForPhone(0, TAG)); in testGetDeviceIdWithOutPermission()
112 assertNull(mPhoneSubInfoControllerUT.getDeviceIdForPhone(1, TAG)); in testGetDeviceIdWithOutPermission()
161 assertNull(mPhoneSubInfoControllerUT.getNaiForSubscriber(0, TAG)); in testGetNaiWithOutPermission()
162 assertNull(mPhoneSubInfoControllerUT.getNaiForSubscriber(1, TAG)); in testGetNaiWithOutPermission()
211 assertNull(mPhoneSubInfoControllerUT.getImeiForSubscriber(0, TAG)); in testGetImeiWithOutPermission()
212 assertNull(mPhoneSubInfoControllerUT.getImeiForSubscriber(1, TAG)); in testGetImeiWithOutPermission()
261 assertNull(mPhoneSubInfoControllerUT.getDeviceSvnUsingSubId(0, TAG)); in testGetDeviceSvnWithOutPermission()
262 assertNull(mPhoneSubInfoControllerUT.getDeviceSvnUsingSubId(1, TAG)); in testGetDeviceSvnWithOutPermission()
314 assertNull(mPhoneSubInfoControllerUT.getSubscriberIdForSubscriber(0, TAG)); in testGetSubscriberIdWithOutPermission()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DHorizontalFocusSearchTest.java73 assertNull("going up from mLeftTall", in testSearchFromLeftButton()
75 assertNull("going down from mLeftTall", in testSearchFromLeftButton()
77 assertNull("going left from mLeftTall", in testSearchFromLeftButton()
86 assertNull("going up from mMidShort1Top", in TODO_testSearchFromMiddleLeftButton()
103 assertNull("going down from mMidShort2Bottom", in TODO_testSearchFromMiddleRightButton()
114 assertNull("going up from mRightTall", in testSearchFromRightButton()
116 assertNull("going down from mRightTall", in testSearchFromRightButton()
121 assertNull("going right from mRightTall", in testSearchFromRightButton()
DVerticalFocusSearchTest.java88 assertNull("going up from mTopWide.", in testSearchFromTopButton()
91 assertNull("going left from mTopWide.", in testSearchFromTopButton()
94 assertNull("going right from mTopWide.", in testSearchFromTopButton()
104 assertNull("going left should have no next focus", in testSearchFromMidLeft()
125 assertNull("going right should have no next focus", in testSearchFromMidRight()
139 assertNull("going down from bottom button should have no next focus.", in testSearchFromFromBottom()
142 assertNull("going left from bottom button should have no next focus.", in testSearchFromFromBottom()
145 assertNull("going right from bottom button should have no next focus.", in testSearchFromFromBottom()
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DPreferenceParentGroupTest.java20 import static junit.framework.Assert.assertNull;
57 assertNull(screen.getParent()); in parentAddRemoveTest()
60 assertNull(category.getParent()); in parentAddRemoveTest()
63 assertNull(pref.getParent()); in parentAddRemoveTest()
72 assertNull(category.getParent()); in parentAddRemoveTest()
75 assertNull(pref.getParent()); in parentAddRemoveTest()
94 assertNull(pref.getParent()); in parentReassignTest()
121 assertNull(pref.getParent()); in parentDoubleAddTest()
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java22 import static org.junit.Assert.assertNull;
47 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en()
51 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en()
54 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en()
63 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
67 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
98 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_thai()
102 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_thai()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java20 import static org.junit.Assert.assertNull;
100 assertNull(mConfigs.put(config)); in addNetworks()
136 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
145 assertNull(mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
147 assertNull(mConfigs.getByFQDNForCurrentUser(config.FQDN)); in verifyGetters()
149 assertNull(mConfigs.getByConfigKeyForCurrentUser(config.configKey())); in verifyGetters()
152 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
154 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
200 assertNull(mConfigs.put(config1)); in testPutRemoveClear()
216 assertNull(mConfigs.put(config3)); in testPutRemoveClear()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java19 import static org.junit.Assert.assertNull;
139 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidMimeType()
151 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithUnencodedData()
163 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidPart()
175 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithMissingBoundary()
188 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidContentType()
200 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithoutPasspointProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java78 assertNull(pi.signatures); in testGetPackageInfo()
87 assertNull(pi); in testGetPackageInfo()
97 assertNull(ai); in testGetApplicationInfo()
104 assertNull(ai); in testGetActivityInfoWithMetadata()
109 assertNull(ai); in testGetActivityInfoWithMetadata()
116 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
149 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
153 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DBaseCardViewTest.java25 import static org.junit.Assert.assertNull;
54 assertNull(view.getAnimation()); in mockInfoHeightAnimation()
64 assertNull(view.getAnimation()); in mockInfoAlphaAnimation()
102 assertNull(cardView.getAnimation()); in infoOver_InfoVisibleAlways()
109 assertNull(cardView.getAnimation()); in infoOver_InfoVisibleAlways()
116 assertNull(cardView.getAnimation()); in infoOver_InfoVisibleAlways()
123 assertNull(cardView.getAnimation()); in infoOver_InfoVisibleAlways()
149 assertNull(cardView.getAnimation()); in infoUnder_InfoVisibleAlways()
156 assertNull(cardView.getAnimation()); in infoUnder_InfoVisibleAlways()
163 assertNull(cardView.getAnimation()); in infoUnder_InfoVisibleAlways()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DPersistentConnectionTest.java118 assertNull(conn.getServiceBinder()); in testAll()
131 assertNull(conn.getServiceBinder()); in testAll()
161 assertNull(conn.getServiceBinder()); in testAll()
171 assertNull(conn.getServiceBinder()); in testAll()
184 assertNull(conn.getServiceBinder()); in testAll()
208 assertNull(conn.getServiceBinder()); in testAll()
224 assertNull(conn.getServiceBinder()); in testAll()
247 assertNull(conn.getServiceBinder()); in testAll()
263 assertNull(conn.getServiceBinder()); in testAll()
275 assertNull(conn.getServiceBinder()); in testAll()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java208 assertNull(detector.getTimer()); in testFindingCountryCommon()
214 assertNull(detector.getQueryThread()); in testFindingCountryCommon()
231 assertNull(detector.getTimer()); in testFindingCountryCancelled()
239 assertNull(detector.getQueryThread()); in testFindingCountryCancelled()
256 assertNull(detector.getTimer()); in testFindingLocationCancelled()
258 assertNull(detector.getQueryThread()); in testFindingLocationCancelled()
280 assertNull(detector.getQueryThread()); in testFindingLocationFailed()
282 assertNull(countryListener.getCountry()); in testFindingLocationFailed()
310 assertNull(detector.getTimer()); in testFindingCountryFailed()
316 assertNull(detector.getQueryThread()); in testFindingCountryFailed()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccControllerTest.java32 import static org.junit.Assert.assertNull;
107 assertNull(mUiccControllerUT.getIccRecords(0, UiccController.APP_FAM_3GPP)); in testSanity()
108 assertNull(mUiccControllerUT.getIccRecords(0, UiccController.APP_FAM_3GPP2)); in testSanity()
109 assertNull(mUiccControllerUT.getIccRecords(0, UiccController.APP_FAM_IMS)); in testSanity()
110 assertNull(mUiccControllerUT.getIccFileHandler(0, UiccController.APP_FAM_3GPP)); in testSanity()
111 assertNull(mUiccControllerUT.getIccFileHandler(0, UiccController.APP_FAM_3GPP2)); in testSanity()
112 assertNull(mUiccControllerUT.getIccFileHandler(0, UiccController.APP_FAM_IMS)); in testSanity()
122 assertNull(mUiccControllerUT.getUiccCard(0)); in testPowerOff()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java24 import static org.junit.Assert.assertNull;
60 assertNull(mEnterpriseConfig.getCaCertificate()); in testGetEmptyCaCertificate()
61 assertNull(mEnterpriseConfig.getCaCertificates()); in testGetEmptyCaCertificate()
64 assertNull(mEnterpriseConfig.getCaCertificate()); in testGetEmptyCaCertificate()
67 assertNull(mEnterpriseConfig.getCaCertificates()); in testGetEmptyCaCertificate()
70 assertNull(mEnterpriseConfig.getCaCertificates()); in testGetEmptyCaCertificate()
93 assertNull(mEnterpriseConfig.getClientCertificateChain()); in testSetClientKeyEntryWithNull()
94 assertNull(mEnterpriseConfig.getClientCertificate()); in testSetClientKeyEntryWithNull()
96 assertNull(mEnterpriseConfig.getClientCertificateChain()); in testSetClientKeyEntryWithNull()
97 assertNull(mEnterpriseConfig.getClientCertificate()); in testSetClientKeyEntryWithNull()
[all …]
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentReplaceTest.java21 import static org.junit.Assert.assertNull;
68 assertNull(activity.findViewById(R.id.textB)); in testReplaceFragment()
69 assertNull(activity.findViewById(R.id.textC)); in testReplaceFragment()
79 assertNull(activity.findViewById(R.id.textC)); in testReplaceFragment()
86 assertNull(activity.findViewById(R.id.textA)); in testReplaceFragment()
87 assertNull(activity.findViewById(R.id.textB)); in testReplaceFragment()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportProgressServiceTest.java21 import static junit.framework.Assert.assertNull;
122 assertNull(findSendToAccount(mTestContext, null)); in findSendToAccount_noWorkProfile()
123 assertNull(findSendToAccount(mTestContext, "")); in findSendToAccount_noWorkProfile()
124 assertNull(findSendToAccount(mTestContext, "android.com")); in findSendToAccount_noWorkProfile()
125 assertNull(findSendToAccount(mTestContext, "@android.com")); in findSendToAccount_noWorkProfile()
189 assertNull(findSendToAccount(mTestContext, null)); in findSendToAccount_withWorkProfile_noAccounts()
190 assertNull(findSendToAccount(mTestContext, "")); in findSendToAccount_withWorkProfile_noAccounts()
191 assertNull(findSendToAccount(mTestContext, "android.com")); in findSendToAccount_withWorkProfile_noAccounts()
192 assertNull(findSendToAccount(mTestContext, "@android.com")); in findSendToAccount_withWorkProfile_noAccounts()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAppCompatMenuItemIconTintingTest.java21 import static org.junit.Assert.assertNull;
77 assertNull(MenuItemCompat.getIconTintMode(firstItem)); in testIconTinting()
81 assertNull(MenuItemCompat.getIconTintList(secondItem)); in testIconTinting()
83 assertNull(MenuItemCompat.getIconTintMode(thirdItem)); in testIconTinting()
84 assertNull(MenuItemCompat.getIconTintList(thirdItem)); in testIconTinting()
127 assertNull("No icon after XML loading", sixthItem.getIcon()); in testIconTintingWithNoIcon()
134 assertNull("No icon after setting icon tint list", sixthItem.getIcon()); in testIconTintingWithNoIcon()
138 assertNull("No icon after setting icon tint mode", sixthItem.getIcon()); in testIconTintingWithNoIcon()
/frameworks/support/customtabs/tests/src/android/support/customtabs/
DCustomTabsIntentTest.java22 import static org.junit.Assert.assertNull;
48 assertNull(customTabsIntent.startAnimationBundle); in testBareboneCustomTabIntent()
53 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION)); in testBareboneCustomTabIntent()
55 assertNull(intent.getComponent()); in testBareboneCustomTabIntent()

12345678910>>...12