Home
last modified time | relevance | path

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

12345678910>>...21

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPermissionsHostTest.java81 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(REVIEW_HELPER_APK), true, in approveReviewPermissionDialog()
126 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testFail()
141 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testKill()
156 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatDefault22()
166 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatRevoked22()
186 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testNoRuntimePrompt22()
195 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testDefault23()
201 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testGranted23()
207 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testInteractiveGrant23()
213 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testRuntimeGroupGrantSpecificity23()
[all …]
DInstantCookieHostTest.java19 import static org.junit.Assert.assertNull;
62 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookieUpdateAndRetrieval()
69 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedAcrossInstantInstalls()
73 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedAcrossInstantInstalls()
80 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedUpgradeFromInstant()
83 assertNull(installPackage(INSTANT_COOKIE_APP_APK, true, false)); in testCookiePersistedUpgradeFromInstant()
90 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, false)); in testCookieResetOnNonInstantReinstall()
94 assertNull(installPackage(INSTANT_COOKIE_APP_APK, true, false)); in testCookieResetOnNonInstantReinstall()
101 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookieValidWhenSignedWithTwoCerts()
105 assertNull(installPackage(INSTANT_COOKIE_APP_APK_2, true, true)); in testCookieValidWhenSignedWithTwoCerts()
DKeySetHostTest.java210 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
256 assertNull(String.format("failed to upgrade keyset app from no specified upgrade-key-set" in testNoKSToUpgradeKS()
267 assertNull(String.format("failed to upgrade keyset app from specified upgrade-key-set" in testUpgradeKSToNoKS()
297 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithUpgradeKey()
308 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithSigningUpgradeKey()
320 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testMultipleUpgradeKSWithUpgradeKey()
342 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
347 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
379 assertNull(String.format("failed to install keyset perm-def app, Reason: %s", in testKeyRotationPerm()
383 assertNull(String.format("failed to install keyset test app. Reason: %s", in testKeyRotationPerm()
[all …]
DExternalStorageHostTest.java21 import static org.junit.Assert.assertNull;
143 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone()
166 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead()
189 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite()
216 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageGifts()
221 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageGifts()
222 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageGifts()
245 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK_2), false, options)); in testExternalStorageObbGifts()
258 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageObbGifts()
290 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageUnsharedObb()
[all …]
/cts/hostsidetests/os/src/android/os/cts/
DStaticSharedLibsHostTests.java116 assertNull(install(STATIC_LIB_PROVIDER_RECURSIVE_APK)); in doTestInstallSharedLibrary()
118 assertNull(install(STATIC_LIB_PROVIDER1_APK)); in doTestInstallSharedLibrary()
120 assertNull(install(STATIC_LIB_PROVIDER2_APK)); in doTestInstallSharedLibrary()
122 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG)); in doTestInstallSharedLibrary()
124 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG)); in doTestInstallSharedLibrary()
126 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG)); in doTestInstallSharedLibrary()
163 assertNull(install(STATIC_LIB_PROVIDER_RECURSIVE_APK)); in testLoadCodeAndResourcesFromSharedLibraryRecursively()
165 assertNull(install(STATIC_LIB_PROVIDER1_APK)); in testLoadCodeAndResourcesFromSharedLibraryRecursively()
167 assertNull(install(STATIC_LIB_CONSUMER1_APK)); in testLoadCodeAndResourcesFromSharedLibraryRecursively()
185 assertNull(install(STATIC_LIB_PROVIDER_RECURSIVE_APK)); in testLoadCodeAndResourcesFromSharedLibraryRecursivelyUpdate()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DServicesInstantAppsCannotAccessTests.java29 import static org.junit.Assert.assertNull;
51 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetDevicePolicyManager()
57 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetFingerprintManager()
63 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetShortcutManager()
69 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetUsbManager()
79 assertNull(mgr); in cannotGetWallpaperManager()
87 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiP2pManager()
93 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiManager()
99 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiAwareManager()
/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.java58 assertNull(u.getQuery()); in testBuildUpon()
59 assertNull(u.getPath()); in testBuildUpon()
60 assertNull(u.getAuthority()); in testBuildUpon()
61 assertNull(u.getHost()); in testBuildUpon()
93 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
97 assertNull(Uri.parse("foo:bob%20lee").getEncodedQuery()); in testStringUri()
98 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
133 assertNull(uri.getUserInfo()); in testStringUri()
142 assertNull(uri.getUserInfo()); in testStringUri()
228 assertNull(Uri.decode(null)); in testDecode_null_returnsNull()
[all …]
/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/provider/src/android/provider/cts/contacts/
DContactsContract_PhotoTest.java66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
88 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
89 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddEmptyPhoto()
96 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
97 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
98 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddEmptyPhoto()
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DTelephonyManagerTest.java20 import static org.junit.Assert.assertNull;
59 assertNull( in testDeviceIdentifiersAreNotAccessible()
63 assertNull( in testDeviceIdentifiersAreNotAccessible()
67 assertNull( in testDeviceIdentifiersAreNotAccessible()
71 assertNull( in testDeviceIdentifiersAreNotAccessible()
75 assertNull( in testDeviceIdentifiersAreNotAccessible()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceParentGroupTest.java21 import static org.junit.Assert.assertNull;
64 assertNull(screen.getParent()); in parentViaCodeTest()
67 assertNull(category.getParent()); in parentViaCodeTest()
70 assertNull(pref.getParent()); in parentViaCodeTest()
79 assertNull(category.getParent()); in parentViaCodeTest()
82 assertNull(pref.getParent()); in parentViaCodeTest()
111 assertNull(pref.getParent()); in parentViaInflationTest()
130 assertNull(pref.getParent()); in parentDoubleAddTest()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java235 assertNull(attestationCert.getExtensionValue(Attestation.KEY_DESCRIPTION_OID)); in testEcAttestation_NoChallenge()
403 assertNull(attestationCert.getExtensionValue(Attestation.KEY_DESCRIPTION_OID)); in testRsaAttestation_NoChallenge()
464 assertNull(keyStore.getCertificateChain(keystoreAlias)); in testAesAttestation()
484 assertNull(keyStore.getCertificateChain(keystoreAlias)); in testHmacAttestation()
634 assertNull(attestation.getTeeEnforced().getAttestationApplicationId()); in checkAttestationApplicationId()
668 assertNull(keyDetailsList.getBrand()); in checkAttestationDeviceProperties()
669 assertNull(keyDetailsList.getDevice()); in checkAttestationDeviceProperties()
670 assertNull(keyDetailsList.getProduct()); in checkAttestationDeviceProperties()
671 assertNull(keyDetailsList.getManufacturer()); in checkAttestationDeviceProperties()
672 assertNull(keyDetailsList.getModel()); in checkAttestationDeviceProperties()
[all …]
DKeyStoreTest.java570 assertNull(keyStore.getKey("", null)); in test_KeyStore_getKey()
571 assertNull(keyStore.getKey("", PASSWORD_KEY)); in test_KeyStore_getKey()
575 assertNull(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
586 assertNull(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
592 assertNull(keyStore.getKey(ALIAS_ALT_CASE_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
593 assertNull(keyStore.getKey(ALIAS_ALT_CASE_NO_PASSWORD_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
594 assertNull(keyStore.getKey(ALIAS_ALT_CASE_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
612 assertNull(keyStore.getKey(ALIAS_PRIVATE, null)); in test_KeyStore_getKey()
626 assertNull(keyStore.getKey(ALIAS_SECRET, null)); in test_KeyStore_getKey()
641 assertNull(keyStore.getKey(ALIAS_PRIVATE, null)); in test_KeyStore_getKey()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java75 assertNull(cookie); in testDomain()
155 assertNull(cookie); in testInvalidDomain()
159 assertNull(cookie); in testInvalidDomain()
163 assertNull(cookie); in testInvalidDomain()
167 assertNull(cookie); in testInvalidDomain()
171 assertNull(cookie); in testInvalidDomain()
175 assertNull(cookie); in testInvalidDomain()
179 assertNull(cookie); in testInvalidDomain()
183 assertNull(cookie); in testInvalidDomain()
202 assertNull(cookie); in testPath()
[all …]
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/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 …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java22 import static org.junit.Assert.assertNull;
140 assertNull(path, font.getAxes()); in testBuilder_buffer()
142 assertNull(font.getFile()); in testBuilder_buffer()
162 assertNull(path, font.getAxes()); in testBuilder_buffer_ttc()
164 assertNull(font.getFile()); in testBuilder_buffer_ttc()
187 assertNull(font.getFile()); in testBuilder_buffer_vf()
207 assertNull(path, font.getAxes()); in testBuilder_buffer_override()
209 assertNull(font.getFile()); in testBuilder_buffer_override()
223 assertNull(path, font.getAxes()); in testBuilder_buffer_override()
225 assertNull(font.getFile()); in testBuilder_buffer_override()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DPaintDrawableTest.java21 import static org.junit.Assert.assertNull;
70 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
79 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
85 assertNull(paintDrawable.getShape()); in testSetCornerRadius()
94 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
96 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
102 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
119 assertNull(paintDrawable.getShape()); in testSetCornerRadii()
183 assertNull(paintDrawable.getShape()); in testInflateTag()
/cts/tests/tests/content/src/android/content/cts/
DContentValuesTest.java22 import static org.junit.Assert.assertNull;
87 assertNull(mContentValues.get("key")); in testPutNull()
90 assertNull(mContentValues.get("value")); in testPutNull()
93 assertNull(mContentValues.get("")); in testPutNull()
110 assertNull(mContentValues.getAsLong(null)); in testGetAsLong()
124 assertNull(mContentValues.getAsByte(null)); in testGetAsByte()
138 assertNull(mContentValues.getAsInteger(null)); in testGetAsInteger()
168 assertNull(mContentValues.getAsShort(null)); in testGetAsShort()
201 assertNull(mContentValues.getAsFloat(null)); in testGetAsFloat()
213 assertNull(mContentValues.getAsBoolean(null)); in testGetAsBoolean()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SecureTest.java21 import static org.junit.Assert.assertNull;
60 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in assertSettingsForTests()
80 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutInt()
103 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutFloat()
126 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutLong()
149 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutString()
159 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutString()
186 assertNull(Settings.Secure.getString(cr, BLUETOOTH_MAC_ADDRESS_SETTING_NAME)); in testBluetoothAddressNotAvailable()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DUpdateProviderInfoTest.java21 import static org.junit.Assert.assertNull;
81 assertNull(getProviderInfo().configure); in testInfoOverrides()
89 assertNull(getProviderInfo().configure); in testInfoOverrides()
95 assertNull(getProviderInfo().configure); in testOverridesPersistedOnUpdate()
109 assertNull(getProviderInfo().configure); in testOverridesPersistedOnUpdate()
115 assertNull(getProviderInfo().configure); in testOverrideClearedWhenMissingInfo()
122 assertNull(getProviderInfo().configure); in testOverrideClearedWhenMissingInfo()
/cts/tests/tests/print/src/android/print/cts/
DPrintJobTest.java24 import static org.junit.Assert.assertNull;
300 assertNull(printJob.getTag());
306 eventually(() -> assertNull(printJob.getTag()));
326 assertNull(printJob.getAdvancedStringOption(INVALID_STRING_KEY));
332 assertNull(printJob.getAdvancedStringOption(VALID_NULL_KEY));
337 assertNull(printJob.getAdvancedStringOption(VALID_INT_KEY));
383 assertNull(printJob.getAdvancedStringOption(INVALID_STRING_KEY));
389 assertNull(printJob.getAdvancedStringOption(VALID_NULL_KEY));
394 assertNull(printJob.getAdvancedStringOption(VALID_INT_KEY));
431 assertNull(printJob.getInfo().getAdvancedStringOption(INVALID_STRING_KEY));
[all …]
/cts/hostsidetests/backup/src/android/cts/backup/
DFullBackupOnlyHostSideTest.java19 import static org.junit.Assert.assertNull;
92 assertNull(uninstallPackage(FULLBACKUPONLY_APP_PACKAGE)); in tearDown()
113 assertNull(uninstallPackage(FULLBACKUPONLY_APP_PACKAGE)); in testFullBackupOnlyFalse_WithAgent()
139 assertNull(uninstallPackage(FULLBACKUPONLY_APP_PACKAGE)); in testFullBackupOnlyFalse_NoAgent()
165 assertNull(uninstallPackage(FULLBACKUPONLY_APP_PACKAGE)); in testFullBackupOnlyTrue_WithAgent()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAbstractAuthenticatorTests.java92 assertNull(result.get(AccountManager.KEY_AUTHTOKEN)); in testStartAddAccountSessionDefaultImpl()
102 assertNull(sessionBundle.getString(AccountManager.KEY_ACCOUNT_TYPE)); in testStartAddAccountSessionDefaultImpl()
129 assertNull(result.get(AccountManager.KEY_AUTHTOKEN)); in testStartUpdateCredentialsSessionDefaultImpl()
139 assertNull(sessionBundle.getString(Fixtures.KEY_ACCOUNT_NAME)); in testStartUpdateCredentialsSessionDefaultImpl()
197 assertNull(addAccountTx.authTokenType); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
209 assertNull(result.get(AccountManager.KEY_AUTHTOKEN)); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
266 assertNull(updateCredentialsTx.authTokenType); in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl()
276 assertNull(result.get(AccountManager.KEY_AUTHTOKEN)); in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl()
286 assertNull(result.getString(AccountManager.KEY_PASSWORD)); in validateNullPasswordAndStatusToken()
287 assertNull(result.getString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN)); in validateNullPasswordAndStatusToken()

12345678910>>...21