Home
last modified time | relevance | path

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

12345678910>>...12

/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestLogTest.java34 assertNull(TestLogType.fromDataName(null)); in testTestLogType_fromDataName()
35 assertNull(TestLogType.fromDataName("")); in testTestLogType_fromDataName()
36 assertNull(TestLogType.fromDataName("kmsg-foo_bar_test")); in testTestLogType_fromDataName()
56 assertNull(TestLog.fromDataName("kmsg-baz_test", null)); in testFromDataName_unrecognizedDataName()
60 assertNull(TestLog.fromDataName(null, "http://logs/baz_test")); in testFromDataName_nullDataName()
64 assertNull(TestLog.fromDataName("logcat-bar_test", null)); in testFromDataName_nullUrl()
68 assertNull(TestLog.fromDataName(null, null)); in testFromDataName_allNull()
78 assertNull(TestLog.fromXml(newXml("<TestLog type=\"kmsg\" url=\"http://logs/baz_test\">"))); in testFromXml_unrecognizedType()
82 assertNull(TestLog.fromXml(newXml("<TestLog url=\"http://logs/baz_test\">"))); in testFromXml_noTypeAttribute()
86 assertNull(TestLog.fromXml(newXml("<TestLog type=\"bugreport\">"))); in testFromXml_noUrlAttribute()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DMailToTest.java50 assertNull(mailTo_1.getBody()); in testParseMailToURI()
51 assertNull(mailTo_1.getCc()); in testParseMailToURI()
52 assertNull(mailTo_1.getSubject()); in testParseMailToURI()
61 assertNull(mailTo_2.getBody()); in testParseMailToURI()
62 assertNull(mailTo_2.getCc()); in testParseMailToURI()
74 assertNull(mailTo_3.getCc()); in testParseMailToURI()
75 assertNull(mailTo_3.getSubject()); in testParseMailToURI()
87 assertNull(mailTo_4.getCc()); in testParseMailToURI()
88 assertNull(mailTo_4.getSubject()); in testParseMailToURI()
103 assertNull(mailTo_5.getSubject()); in testParseMailToURI()
[all …]
DUriTest.java57 assertNull(u.getQuery()); in testBuildUpon()
58 assertNull(u.getPath()); in testBuildUpon()
59 assertNull(u.getAuthority()); in testBuildUpon()
60 assertNull(u.getHost()); in testBuildUpon()
86 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
90 assertNull(Uri.parse("foo:bob%20lee").getEncodedQuery()); in testStringUri()
91 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
262 assertNull(uri.getFragment()); in testOpaqueUri()
268 assertNull(uri.getAuthority()); in testOpaqueUri()
269 assertNull(uri.getEncodedAuthority()); in testOpaqueUri()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DMimeTypeMapTest.java61 assertNull(mMimeTypeMap.getMimeTypeFromExtension("some_random_string")); in testGetMimeTypeFromExtension()
63 assertNull(mMimeTypeMap.getMimeTypeFromExtension(null)); in testGetMimeTypeFromExtension()
64 assertNull(mMimeTypeMap.getMimeTypeFromExtension("")); in testGetMimeTypeFromExtension()
82 assertNull(mMimeTypeMap.getExtensionFromMimeType("some_random_string")); in testGetExtensionFromMimeType()
84 assertNull(mMimeTypeMap.getExtensionFromMimeType(null)); in testGetExtensionFromMimeType()
85 assertNull(mMimeTypeMap.getExtensionFromMimeType("")); in testGetExtensionFromMimeType()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_PhotoTest.java64 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
65 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
85 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
86 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddEmptyPhoto()
94 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
95 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
96 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddEmptyPhoto()
DSettings_SecureTest.java50 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in assertSettingsForTests()
68 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutInt()
90 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutFloat()
112 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutLong()
134 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutString()
144 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutString()
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DPermissionsHostTest.java69 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testFail()
79 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testKill()
88 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testDefault()
93 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testGranted()
100 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testInteractiveGrant()
105 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testRuntimeGroupGrantSpecificity()
110 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK), false, false)); in testRuntimeGroupGrantExpansion()
115 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK_COMPAT), false, false)); in testCompatDefault()
120 assertNull(getDevice().installPackage(mCtsBuild.getTestApp(APK_COMPAT), false, false)); in testCompatRevoked()
DAppSecurityTests.java122 assertNull(String.format("failed to install shared uid app, Reason: %s", installResult), in testSharedUidDifferentCerts()
148 assertNull(String.format("failed to install simple app. Reason: %s", installResult), in testAppUpgradeDifferentCerts()
173 assertNull(String.format("failed to install app with data. Reason: %s", installResult), in testAppFailAccessPrivateData()
180 assertNull(String.format("failed to install app access data. Reason: %s", in testAppFailAccessPrivateData()
202 assertNull(String.format("failed to install app with data. Reason: %s", installResult), in testUninstallRemovesData()
211 assertNull(String.format("failed to install app with data second time. Reason: %s", in testUninstallRemovesData()
234 assertNull(String.format("failed to install target instrumentation app. Reason: %s", in testInstrumentationDiffCert()
240 assertNull(String.format( in testInstrumentationDiffCert()
268 assertNull(String.format("failed to install declare permission app. Reason: %s", in testPermissionDiffCert()
273 assertNull(String.format("failed to install declare permission compat app. Reason: %s", in testPermissionDiffCert()
[all …]
DKeySetHostTest.java211 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
254 assertNull(String.format("failed to upgrade keyset app from no specified upgrade-key-set" in testNoKSToUpgradeKS()
265 assertNull(String.format("failed to upgrade keyset app from specified upgrade-key-set" in testUpgradeKSToNoKS()
295 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithUpgradeKey()
306 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithSigningUpgradeKey()
318 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testMultipleUpgradeKSWithUpgradeKey()
340 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
345 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
377 assertNull(String.format("failed to install keyset perm-def app, Reason: %s", in testKeyRotationPerm()
381 assertNull(String.format("failed to install keyset test app. Reason: %s", in testKeyRotationPerm()
[all …]
DExternalStorageHostTest.java95 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone()
119 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead()
143 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite()
168 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageGifts()
169 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageGifts()
170 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageGifts()
205 assertNull("Failed to install: " + installResult, installResult); in testMultiUserStorageIsolated()
/cts/tests/tests/location/src/android/location/cts/
DAddressTest.java59 assertNull(address.getAdminArea()); in testAccessAdminArea()
70 assertNull(address.getCountryCode()); in testAccessCountryCode()
81 assertNull(address.getCountryName()); in testAccessCountryName()
98 assertNull(address.getExtras()); in testAccessExtras()
109 assertNull(address.getFeatureName()); in testAccessFeatureName()
156 assertNull(address.getPhone()); in testAccessPhone()
167 assertNull(address.getPostalCode()); in testAccessPostalCode()
178 assertNull(address.getThoroughfare()); in testAccessThoroughfare()
189 assertNull(address.getUrl()); in testAccessUrl()
200 assertNull(address.getSubAdminArea()); in testAccessSubAdminArea()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DMessageTest.java65 assertNull(mMessage.getCallback()); in testAccessMessageProperties()
86 assertNull(message.obj); in testObtain()
87 assertNull(message.replyTo); in testObtain()
88 assertNull(message.getTarget()); in testObtain()
89 assertNull(message.getCallback()); in testObtain()
90 assertNull(message.peekData()); in testObtain()
151 assertNull(mMessage.peekData()); in testPeekData()
178 assertNull(message.obj); in testRecycle()
179 assertNull(message.replyTo); in testRecycle()
180 assertNull(message.getTarget()); in testRecycle()
[all …]
DBundleTest.java121 assertNull(mBundle.get(KEY)); in testGet()
145 assertNull(mBundle.getBooleanArray(KEY)); in testGetBooleanArray()
165 assertNull(mBundle.getBundle(KEY)); in testGetBundle()
195 assertNull(mBundle.getByteArray(KEY)); in testGetByteArray()
236 assertNull(mBundle.getCharArray(KEY)); in testGetCharArray()
252 assertNull(mBundle.getCharSequence(KEY)); in testGetCharSequence()
253 assertNull(mBundle.getCharSequence(KEY2)); in testGetCharSequence()
264 assertNull(mBundle.getCharSequenceArray(KEY)); in testGetCharSequenceArray()
284 assertNull(mBundle.getCharSequenceArrayList(KEY)); in testGetCharSequenceArrayList()
329 assertNull(mBundle.getDoubleArray(KEY)); in testGetDoubleArray()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DActivityManagerRunningTaskInfoTest.java56 assertNull(values.baseActivity); in testWriteToParcel()
57 assertNull(values.topActivity); in testWriteToParcel()
58 assertNull(values.thumbnail); in testWriteToParcel()
84 assertNull(values.baseActivity); in testReadFromParcel()
85 assertNull(values.topActivity); in testReadFromParcel()
86 assertNull(values.thumbnail); in testReadFromParcel()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DPaintDrawableTest.java49 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
58 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
64 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
72 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
74 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
80 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
97 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
161 assertNull(paintDrawable.getShape()); in testInflateTag()
DDrawableContainerTest.java53 assertNull(mDrawableContainer.getCurrent()); in testDraw()
98 assertNull(mDrawableContainer.getCurrent()); in testGetPadding()
119 assertNull(mDrawableContainerState.getConstantPadding()); in testGetPadding()
131 assertNull(mDrawableContainer.getCurrent()); in testGetPadding()
133 assertNull(mDrawableContainerState.getConstantPadding()); in testGetPadding()
146 assertNull(mDrawableContainer.getCurrent()); in testSetAlpha()
167 assertNull(mDrawableContainer.getCurrent()); in testSetDither()
190 assertNull(mDrawableContainer.getCurrent()); in testSetHotspotBounds()
209 assertNull(mDrawableContainer.getCurrent()); in testGetHotspotBounds()
227 assertNull(mDrawableContainer.getCurrent()); in testSetColorFilter()
[all …]
/cts/tools/signature-tools/test/signature/comparator/
DMethodCompareTests.java21 import static org.junit.Assert.assertNull;
46 assertNull(compare(fromApi, toApi)); in compareEqualClasses()
151 assertNull(apiDelta); in compareExceptions0()
196 assertNull(apiDelta); in compareRuntimeExceptions()
230 assertNull(apiDelta); in compareMissingDefaultConstructor()
251 assertNull(apiDelta); in compareMissingAbstractMethod()
272 assertNull(apiDelta); in compareMissingInheritedMethod()
293 assertNull(apiDelta); in compareMissingInheritedMethodGeneric0()
314 assertNull(apiDelta); in compareMissingInheritedMethodGeneric1()
340 assertNull(apiDelta); in compareMissingInheritedMethodGeneric2()
[all …]
DClassCompareTest.java21 import static org.junit.Assert.assertNull;
53 assertNull(compare(fromApi, toApi)); in compareEqualClasses()
129 assertNull(compare(fromApi, toApi)); in compareDefaultedAnnotationElementOnClass()
141 assertNull(compare(fromApi, toApi)); in compareSameInterfaces()
178 assertNull(apiDelta); in compareMissingGenericInterface0()
200 assertNull(apiDelta); in compareMissingGenericInterface1()
233 assertNull(apiDelta); in compareInterfaceClosure()
250 assertNull(apiDelta); in compareUpperBounds0()
281 assertNull(apiDelta); in compareTypeVariables0()
313 assertNull(apiDelta); in compareTypeVariables2()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentValuesTest.java72 assertNull(mContentValues.get("key")); in testPutNull()
75 assertNull(mContentValues.get("value")); in testPutNull()
78 assertNull(mContentValues.get("")); in testPutNull()
94 assertNull(mContentValues.getAsLong(null)); in testGetAsLong()
107 assertNull(mContentValues.getAsByte(null)); in testGetAsByte()
120 assertNull(mContentValues.getAsInteger(null)); in testGetAsInteger()
148 assertNull(mContentValues.getAsShort(null)); in testGetAsShort()
179 assertNull(mContentValues.getAsFloat(null)); in testGetAsFloat()
190 assertNull(mContentValues.getAsBoolean(null)); in testGetAsBoolean()
211 assertNull(mContentValues.get(null)); in testGet()
[all …]
DContentProviderTest.java90 assertNull(mockContentProvider.getContext()); in testAttachInfo()
91 assertNull(mockContentProvider.getReadPermission()); in testAttachInfo()
92 assertNull(mockContentProvider.getWritePermission()); in testAttachInfo()
95 assertNull(mockContentProvider.getContext()); in testAttachInfo()
127 assertNull(mockContentProvider.getContext()); in testGetContext()
137 assertNull(mockContentProvider.getReadPermission()); in testAccessReadPermission()
148 assertNull(mockContentProvider.getReadPermission()); in testAccessReadPermission()
153 assertNull(mockContentProvider.getWritePermission()); in testAccessWritePermission()
160 assertNull(mockContentProvider.getWritePermission()); in testAccessWritePermission()
DContentQueryMapTest.java148 assertNull(contentValues); in testRequery()
159 assertNull(contentValues); in testRequery()
182 assertNull(contentValues); in testSetKeepUpdated()
197 assertNull(contentValues); in testSetKeepUpdated()
205 assertNull(contentValues); in testSetKeepUpdated()
212 assertNull(contentValues); in testSetKeepUpdated()
284 assertNull(contentValues); in testSetKeepUpdatedWithHandler()
299 assertNull(contentValues); in testSetKeepUpdatedWithHandler()
307 assertNull(contentValues); in testSetKeepUpdatedWithHandler()
314 assertNull(contentValues); in testSetKeepUpdatedWithHandler()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityTest.java43 assertNull(mActivity.findPreference("check_box_preference_from_intent")); in testAddPreferencesFromIntent()
52 assertNull(mActivity.findPreference("check_box_preference_from_resource")); in testAddPreferencesFromResource()
64 assertNull(mActivity.getPreferenceScreen()); in testGetPreferenceScreen()
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenTest.java37 assertNull(rfc822Token2.getName()); in testConstructor()
43 assertNull(rfc822Token3.getAddress()); in testConstructor()
49 assertNull(rfc822Token4.getComment()); in testConstructor()
68 assertNull(rfc822Token.getName()); in testAccessName()
100 assertNull(rfc822Token.getComment()); in testAccessComment()
119 assertNull(rfc822Token.getAddress()); in testAccessAddress()
/cts/tests/tests/dreams/src/android/service/dreams/cts/
DDreamServiceTest.java30 assertNull(actionMode); in testOnWindowStartingActionMode()
40 assertNull(actionMode); in testOnWindowStartingActionModeTyped()
/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java45 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter()
51 assertNull(loginFilter.filter(source1, 0, source1.length(), dest2, 5, 6)); in testFilter()
57 assertNull(loginFilter.filter(source2, 0, source2.length(), in testFilter()
64 assertNull(loginFilter.filter(spannedSource, 0, spannedSource.length(), in testFilter()
101 assertNull("should return null when start is larger than end", in testFilter()

12345678910>>...12