Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/os/
DParcelNullabilityTest.java19 import static org.junit.Assert.assertNull;
44 assertNull(throughBytes(p).createByteArray()); in nullByteArray()
52 assertNull(throughBytes(p).readBlob()); in nullBlob()
60 assertNull(throughBytes(p).readString()); in nullString()
68 assertNull(throughBytes(p).readCharSequence()); in nullCharSequence()
76 assertNull(throughBytes(p).readStrongBinder()); in nullStrongBinder()
84 assertNull(throughBytes(p).readStrongBinder()); in nullStringInterface()
112 assertNull(throughBytes(p).createRawFileDescriptorArray()); in nullRawFileDescriptorArray()
140 assertNull(throughBytes(p).readArraySet(null)); in nullArraySet()
148 assertNull(throughBytes(p).readBundle()); in nullBundle()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java20 import static org.junit.Assert.assertNull;
50 assertNull(NetworkKey.createFromWifiInfo(null)); in createFromWifi_nullInput()
56 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
63 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
70 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
76 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullBssid()
83 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptyBssid()
90 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_invalidBssid()
105 assertNull(NetworkKey.createFromScanResult(null)); in createFromScanResult_nullInput()
113 assertNull(NetworkKey.createFromScanResult(scanResult)); in createFromScanResult_nullWifiSsid()
[all …]
DUriTest.java81 assertNull(u.getQuery()); in testBuildUponOpaqueStringUri()
82 assertNull(u.getPath()); in testBuildUponOpaqueStringUri()
83 assertNull(u.getAuthority()); in testBuildUponOpaqueStringUri()
84 assertNull(u.getHost()); in testBuildUponOpaqueStringUri()
95 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
98 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
312 assertNull(uri.getPath()); in testSchemeOnly()
386 assertNull(uri.getFragment()); in testOpaqueUri()
392 assertNull(uri.getAuthority()); in testOpaqueUri()
393 assertNull(uri.getEncodedAuthority()); in testOpaqueUri()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java21 import static org.junit.Assert.assertNull;
33 assertNull(NitzData.parse("38/06/20,00:00:00+0")); in testParse_dateOutsideAllowedRange()
41 assertNull(NitzData.parse("38/06/20,00:00:00")); in testParse_missingRequiredFields()
53 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
60 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
67 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
77 assertNull(nitz.getDstAdjustmentMillis()); in testParse_noDstField()
78 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_noDstField()
84 assertNull(nitz.getDstAdjustmentMillis()); in testParse_noDstField()
85 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_noDstField()
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()
DCellIdentityTdscdmaTest.java55 assertNull(ci.getMccString()); in testDefaultConstructor()
56 assertNull(ci.getMncString()); in testDefaultConstructor()
62 assertNull(ci.getOperatorAlphaLong()); in testDefaultConstructor()
63 assertNull(ci.getOperatorAlphaShort()); in testDefaultConstructor()
88 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
89 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
94 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
99 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
103 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
104 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
DCellIdentityWcdmaTest.java99 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
100 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
101 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
108 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
109 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
116 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
117 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
123 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
124 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
125 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
DCellIdentityGsmTest.java99 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
100 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
101 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
108 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
109 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
116 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
117 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
123 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
124 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
125 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
DCellIdentityLteTest.java101 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
102 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
103 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
111 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
112 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
120 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
121 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
128 assertNull(ci.getMccString()); in testConstructorWithEmptyMccMnc()
129 assertNull(ci.getMncString()); in testConstructorWithEmptyMccMnc()
130 assertNull(ci.getMobileNetworkOperator()); in testConstructorWithEmptyMccMnc()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DHorizontalFocusSearchTest.java74 assertNull("going up from mLeftTall", in testSearchFromLeftButton()
76 assertNull("going down from mLeftTall", in testSearchFromLeftButton()
78 assertNull("going left from mLeftTall", in testSearchFromLeftButton()
87 assertNull("going up from mMidShort1Top", in TODO_testSearchFromMiddleLeftButton()
104 assertNull("going down from mMidShort2Bottom", in TODO_testSearchFromMiddleRightButton()
115 assertNull("going up from mRightTall", in testSearchFromRightButton()
117 assertNull("going down from mRightTall", in testSearchFromRightButton()
122 assertNull("going right from mRightTall", in testSearchFromRightButton()
DVerticalFocusSearchTest.java89 assertNull("going up from mTopWide.", in testSearchFromTopButton()
92 assertNull("going left from mTopWide.", in testSearchFromTopButton()
95 assertNull("going right from mTopWide.", in testSearchFromTopButton()
105 assertNull("going left should have no next focus", in testSearchFromMidLeft()
126 assertNull("going right should have no next focus", in testSearchFromMidRight()
140 assertNull("going down from bottom button should have no next focus.", in testSearchFromFromBottom()
143 assertNull("going left from bottom button should have no next focus.", in testSearchFromFromBottom()
146 assertNull("going right from bottom button should have no next focus.", in testSearchFromFromBottom()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java78 assertNull(pi.signatures); in testGetPackageInfo()
79 assertNull(pi.signingInfo); in testGetPackageInfo()
84 assertNull(pi.signatures); in testGetPackageInfo()
89 assertNull(pi); in testGetPackageInfo()
99 assertNull(ai); in testGetApplicationInfo()
106 assertNull(ai); in testGetActivityInfoWithMetadata()
111 assertNull(ai); in testGetActivityInfoWithMetadata()
118 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
151 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
155 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java21 import static org.junit.Assert.assertNull;
117 assertNull(mUiccSlot.getUiccCard()); in testUpdateInactiveSlotStatus()
119 assertNull(mUiccSlot.getIccId()); in testUpdateInactiveSlotStatus()
126 assertNull(mUiccSlot.getUiccCard()); in testUpdateInactiveSlotStatus()
136 assertNull(mUiccSlot.getUiccCard()); in testUpdateActiveSlotStatus()
138 assertNull(mUiccSlot.getIccId()); in testUpdateActiveSlotStatus()
153 assertNull(mUiccSlot.getUiccCard()); in testUpdateActiveSlotStatus()
178 assertNull(mUiccSlot.getUiccCard()); in testUpdateSlotStatusEuiccIsSupported()
180 assertNull(mUiccSlot.getIccId()); in testUpdateSlotStatusEuiccIsSupported()
187 assertNull(mUiccSlot.getUiccCard()); in testUpdateSlotStatusEuiccIsSupported()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotCacheTest.java22 import static org.junit.Assert.assertNull;
58 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
69 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
80 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
89 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
97 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
106 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
DTaskPositioningControllerTests.java29 import static org.junit.Assert.assertNull;
73 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
88 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
96 assertNull(mTarget.getDragWindowHandleLocked()); in testFinishPositioningWhenAppRequested()
111 assertNull(mTarget.getDragWindowHandleLocked()); in testFinishPositioningWhenAppRequested()
118 assertNull(mTarget.getDragWindowHandleLocked()); in testHandleTapOutsideTask()
139 assertNull(mTarget.getDragWindowHandleLocked()); in testHandleTapOutsideTask()
DTaskStackTests.java28 import static org.junit.Assert.assertNull;
113 assertNull(stack.getDisplayContent()); in testStackRemoveImmediately()
114 assertNull(task.mStack); in testStackRemoveImmediately()
126 assertNull(stack.getParent()); in testRemoveContainer()
128 assertNull(stack.getDisplayContent()); in testRemoveContainer()
129 assertNull(task.getDisplayContent()); in testRemoveContainer()
130 assertNull(task.mStack); in testRemoveContainer()
150 assertNull(task.getParent()); in testRemoveContainer_deferRemoval()
152 assertNull(task.getController()); in testRemoveContainer_deferRemoval()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java21 import static org.junit.Assert.assertNull;
123 assertNull(mConfigs.put(config)); in addNetworks()
156 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
165 assertNull(mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
166 assertNull(mConfigs.getByConfigKeyForCurrentUser(config.configKey())); in verifyGetters()
169 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
171 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
235 assertNull(mConfigs.put(config1)); in testPutRemoveClear()
251 assertNull(mConfigs.put(config3)); in testPutRemoveClear()
293 assertNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchWithOtherNetworks()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java116 assertNull(map1.put(i, i + 1)); in runPutAndGetTest()
117 assertNull(map2.put(i, i + 1)); in runPutAndGetTest()
121 assertNull(map3.put(i, i + 1)); in runPutAndGetTest()
122 assertNull(map4.put(i, i + 1)); in runPutAndGetTest()
152 assertNull(map.put(i, i + 1)); in testReplacingPut()
153 assertNull(map.remove(i + 1)); in testReplacingPut()
163 assertNull(map.put(i, i + 1)); in testRemove()
164 assertNull(map.remove(i + 1)); in testRemove()
190 assertNull(map.remove(3)); in testRemove()
204 assertNull(map.put(i, i + 1)); in testClear()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java19 import static org.junit.Assert.assertNull;
140 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidMimeType()
152 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithUnencodedData()
164 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidPart()
176 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithMissingBoundary()
189 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithInvalidContentType()
201 assertNull(ConfigParser.parsePasspointConfig( in parseConfigFileWithoutPasspointProfile()
/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/base/services/tests/servicestests/src/com/android/server/am/
DMemoryStatUtilTest.java32 import static org.junit.Assert.assertNull;
264 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents()
267 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents()
285 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
288 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
291 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
294 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
300 assertNull(parseMemoryStatFromProcfs(contents, PROC_STATUS_CONTENTS)); in testParseMemoryStatFromProcfs_invalidValue()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DPersistentDataStoreTest.java21 import static org.junit.Assert.assertNull;
93 assertNull(config.getDescription()); in testLoadingBrightnessConfigurations()
112 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testBrightnessConfigWithInvalidCurveIsIgnored()
131 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testBrightnessConfigWithInvalidFloatsIsIgnored()
143 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testEmptyBrightnessConfigurationsDoesntCrash()
154 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testStoreAndReloadOfBrightnessConfigurations()
180 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testNullBrightnessConfiguration()
186 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testNullBrightnessConfiguration()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPersistentConnectionTest.java131 assertNull(conn.getServiceBinder()); in testAll()
144 assertNull(conn.getServiceBinder()); in testAll()
174 assertNull(conn.getServiceBinder()); in testAll()
184 assertNull(conn.getServiceBinder()); in testAll()
197 assertNull(conn.getServiceBinder()); in testAll()
221 assertNull(conn.getServiceBinder()); in testAll()
237 assertNull(conn.getServiceBinder()); in testAll()
260 assertNull(conn.getServiceBinder()); in testAll()
276 assertNull(conn.getServiceBinder()); in testAll()
288 assertNull(conn.getServiceBinder()); in testAll()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java27 import static org.junit.Assert.assertNull;
114 assertNull(fixedLp.getPrivateDnsServerName()); in testTrackedValidationUpdates()
118 assertNull(fixedLp.getPrivateDnsServerName()); in testTrackedValidationUpdates()
177 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
188 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
196 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
205 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
213 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
222 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
234 assertNull(lp.getPrivateDnsServerName()); in testIgnoreUntrackedValidationUpdates()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsImplTest.java29 import static org.junit.Assert.assertNull;
100 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
101 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
115 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
117 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
146 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
148 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
180 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
181 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
225 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
[all …]

12345678910>>...14