Home
last modified time | relevance | path

Searched refs:null (Results 1 – 25 of 3056) sorted by relevance

12345678910>>...123

/cts/tests/tests/content/src/android/content/cts/
DIntentFilterTest.java78 verifyContent(filter, null, null); in testConstructor()
81 verifyContent(filter, ACTION, null); in testConstructor()
104 if (action != null) { in verifyContent()
110 if (dataType != null) { in verifyContent()
124 String actual = null; in testCategories()
134 IntentFilter filter = new Match(null, new String[] { "category1" }, null, null, null, null); in testCategories()
136 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, null, null, null), in testCategories()
137 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, in testCategories()
138 new String[] { "category1" }, null, null), in testCategories()
139 new MatchCondition(IntentFilter.NO_MATCH_CATEGORY, null, in testCategories()
[all …]
DContentResolverTest.java124 mContentResolver.delete(TABLE1_URI, null, null); in tearDown()
125 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
128 mContentResolver.delete(REMOTE_TABLE1_URI, null, null); in tearDown()
129 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
150 client.delete(REMOTE_CRASH_URI, null, null); in testCrashOnLaunch()
201 uClient.delete(REMOTE_CRASH_URI, null, null); in testUnstableToStableRefs()
239 uClient.delete(REMOTE_CRASH_URI, null, null); in testStableToUnstableRefs()
268 mContentResolver.getType(null); in testGetType()
288 client.delete(REMOTE_CRASH_URI, null, null); in testUnstableGetType()
313 mCursor = mContentResolver.query(TABLE1_URI, null, null, null); in testQuery()
[all …]
/cts/tests/tests/ndef/src/android/ndef/cts/
DNdefTest.java42 r = new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null); in testConstructor()
50 assertEquals(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null), in testEquals()
51 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)); in testEquals()
77 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null))); in testEquals()
80 assertEquals(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null).hashCode(), in testEquals()
81 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null).hashCode()); in testEquals()
120 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
124 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
128 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
133 new NdefRecord(NdefRecord.TNF_WELL_KNOWN, null, new byte[] {0}, null)), in testValidParsing()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java61 context.openOrCreateDatabase(DATABASE_FILE, Context.MODE_PRIVATE, null)); in setUp()
85 null, null, null, null, null); in testSetDistinct()
95 null, null, null, null, null); in testSetDistinct()
105 null, null, null, null, null); in testSetDistinct()
124 null, null, null, null, null); in testSetProjectionMap()
128 sql = sqliteQueryBuilder.buildQuery(null, // projectionIn is null in testSetProjectionMap()
129 null, null, null, null, null); in testSetProjectionMap()
136 sqliteQueryBuilder.setProjectionMap(null); in testSetProjectionMap()
138 null, null, null, null, null); in testSetProjectionMap()
155 null, null, null, null, null); in testSetCursorFactory()
[all …]
DDatabaseStatementTest.java51 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null); in setUp()
86 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testExecuteStatement()
140 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementLongBinding()
162 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementStringBinding()
185 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementClearBindings()
207 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testSimpleStringBinding()
232 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementMultipleBindings()
267 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in run()
316 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementConstraint()
DSQLiteDatabaseTest.java87 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp()
288 "SELECT num FROM test", null)); in assertNum()
317 SQLiteDatabase database = null; in testAccessPageSize()
319 database = SQLiteDatabase.openOrCreateDatabase(databaseFile.getPath(), null); in testAccessPageSize()
328 if (database != null) { in testAccessPageSize()
344 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement()
357 cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement()
369 cursor = mDatabase.query("test", null, null, null, null, null, null); in testCompileStatement()
384 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete()
387 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DHeaderViewListAdapterTest.java71 new HeaderViewListAdapter(header, footer, null); in testConstructor()
78 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testGetHeadersCount()
84 headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testGetHeadersCount()
90 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testGetFootersCount()
96 headerViewListAdapter = new HeaderViewListAdapter(null, footer, null); in testGetFootersCount()
103 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testIsEmpty()
106 headerViewListAdapter = new HeaderViewListAdapter(null, null, mEmptyAdapter); in testIsEmpty()
109 headerViewListAdapter = new HeaderViewListAdapter(null, null, mFullAdapter); in testIsEmpty()
125 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testRemoveHeader()
131 headerViewListAdapter.removeHeader(null); in testRemoveHeader()
[all …]
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioCodecTest.java34 assertEquals(AudioCodec.PCMU, 0, "PCMU/8000", null); in testConstants()
35 assertEquals(AudioCodec.PCMA, 8, "PCMA/8000", null); in testConstants()
36 assertEquals(AudioCodec.GSM, 3, "GSM/8000", null); in testConstants()
37 assertEquals(AudioCodec.GSM_EFR, -1, "GSM-EFR/8000", null); in testConstants()
38 assertEquals(AudioCodec.AMR, -1, "AMR/8000", null); in testConstants()
45 assertNull(AudioCodec.getCodec(128, "PCMU/8000", null)); in testGetCodec()
46 assertNull(AudioCodec.getCodec(-1, "PCMU/8000", null)); in testGetCodec()
47 assertNull(AudioCodec.getCodec(96, null, null)); in testGetCodec()
50 assertEquals(AudioCodec.getCodec(0, null, null), 0, "PCMU/8000", null); in testGetCodec()
51 assertEquals(AudioCodec.getCodec(8, null, null), 8, "PCMA/8000", null); in testGetCodec()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DIpSecManagerTest.java86 IpSecManager.SecurityParameterIndex randomSpi = null, droidSpi = null; in testAllocSpi()
143 GenericUdpSocket sockLeft = null, sockRight = null; in checkUnconnectedUdp()
173 GenericTcpSocket client = null, accepted = null; in checkTcp()
410 return authOrAead == null ? 0 : authOrAead.getTruncationLengthBits(); in getTruncLenBits()
414 if (cryptOrAead == null) { return 0; } in getIvLen()
430 if (cryptOrAead == null) { return 4; } in getBlkSize()
462 if (crypt != null) { in checkTransform()
465 if (auth != null) { in checkTransform()
468 if (aead != null) { in checkTransform()
502 getIvLen(crypt != null ? crypt : aead), in checkTransform()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DCustomPrintOptionsTest.java120 return null; in getPages()
153 return null; in setUpServicesAndAdapter()
154 }, null, null, null, null, null, invocation -> { in setUpServicesAndAdapter()
156 return null; in setUpServicesAndAdapter()
175 return null; in setUpServicesAndAdapter()
192 return null; in setUpServicesAndAdapter()
193 }, null); in setUpServicesAndAdapter()
197 invocation -> firstSessionCallbacks, null, null); in setUpServicesAndAdapter()
201 SecondPrintService.setCallbacks(createMockPrintServiceCallbacks(null, null, null)); in setUpServicesAndAdapter()
253 if (mediaSize != null) { in testCase()
[all …]
DPrinterInfoTest.java84 "Printer", null in createFirstMockPrinterDiscoverySessionCallbacks()
88 NAMED_PRINTERS_NAME_PREFIX, "", null in createFirstMockPrinterDiscoverySessionCallbacks()
103 "Description", "", null in createFirstMockPrinterDiscoverySessionCallbacks()
110 null in createFirstMockPrinterDiscoverySessionCallbacks()
125 null in createFirstMockPrinterDiscoverySessionCallbacks()
139 RuntimeException e = null; in createFirstMockPrinterDiscoverySessionCallbacks()
140 PrinterId printerId = null; in createFirstMockPrinterDiscoverySessionCallbacks()
142 if (localPrinterId == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
160 if (localPrinterId == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
161 if (e == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerTest.java97 if (mMediaFile != null) { in cleanup()
100 if (mFileDir != null) { in cleanup()
102 if (files != null) { in cleanup()
110 if (mMediaScannerConnection != null) { in cleanup()
112 mMediaScannerConnection = null; in cleanup()
133 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()
140 Cursor c = res.query(media1Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
150 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()
156 c = res.query(media2Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
185 Cursor c = res.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, in testMediaScanner()
[all …]
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java63 if (null != value) { in convertValueToList()
78 if (null == value) in convertValueToBoolean()
92 if (null == charSeq) in convertValueToInt()
136 if (null == value) { in convertValueToUnsignedInt()
189 serializer.startDocument(null, true); in writeMapXml()
191 writeMapXml(val, null, serializer); in writeMapXml()
212 serializer.startDocument(null, true); in writeListXml()
214 writeListXml(val, null, serializer); in writeListXml()
234 writeMapXml(val, name, out, null); in writeMapXml()
257 if (val == null) { in writeMapXml()
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java60 if (null != value) { in convertValueToList()
75 if (null == value) in convertValueToBoolean()
89 if (null == charSeq) in convertValueToInt()
133 if (null == value) { in convertValueToUnsignedInt()
187 serializer.startDocument(null, true); in writeListXml()
189 writeListXml(val, null, serializer); in writeListXml()
208 writeMapXml(val, name, out, null); in writeMapXml()
230 if (val == null) { in writeMapXml()
231 out.startTag(null, "null"); in writeMapXml()
232 out.endTag(null, "null"); in writeMapXml()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java61 if (null != value) { in convertValueToList()
76 if (null == value) in convertValueToBoolean()
90 if (null == charSeq) in convertValueToInt()
134 if (null == value) { in convertValueToUnsignedInt()
188 serializer.startDocument(null, true); in writeListXml()
190 writeListXml(val, null, serializer); in writeListXml()
209 writeMapXml(val, name, out, null); in writeMapXml()
231 if (val == null) { in writeMapXml()
232 out.startTag(null, "null"); in writeMapXml()
233 out.endTag(null, "null"); in writeMapXml()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DTestReport.java83 xml.startTag(null, TEST_RESULTS_REPORT_TAG); in getContents()
84 xml.attribute(null, "report-version", Integer.toString(REPORT_VERSION)); in getContents()
85 xml.attribute(null, "creation-time", DATE_FORMAT.format(new Date())); in getContents()
87 xml.startTag(null, VERIFIER_INFO_TAG); in getContents()
88 xml.attribute(null, "version-name", Version.getVersionName(mContext)); in getContents()
89 xml.attribute(null, "version-code", Integer.toString(Version.getVersionCode(mContext))); in getContents()
90 xml.endTag(null, VERIFIER_INFO_TAG); in getContents()
92 xml.startTag(null, DEVICE_INFO_TAG); in getContents()
93 xml.startTag(null, BUILD_INFO_TAG); in getContents()
94 xml.attribute(null, "board", Build.BOARD); in getContents()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_Genres_MembersTest.java79 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp()
85 c = mContentResolver.query(uri, null, null, null, null); in setUp()
96 Media._ID + "=" + mAudioIdOfJam, null); in tearDown() local
98 Media._ID + "=" + mAudioIdOfJamLive, null); in tearDown() local
103 Cursor c = null; in testGetContentUri()
105 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri()
106 null, null, null)); in testGetContentUri()
115 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
134 c = mContentResolver.query(membersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
177 null, null, null); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Images_ThumbnailsTest.java99 mContentResolver.delete(row, null, null); in tearDown()
142 Thumbnails.EXTERNAL_CONTENT_URI, Thumbnails.MICRO_KIND, null); in testQueryExternalThumbnails()
156 if (uri != null) { in testQueryExternalThumbnails()
161 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryExternalThumbnails()
169 Thumbnails.MICRO_KIND, null); in testQueryExternalThumbnails()
174 c = Thumbnails.query(mContentResolver, uri, null); in testQueryExternalThumbnails()
191 String stringUrl = null; in testQueryExternalMiniThumbnails()
193 stringUrl = Media.insertImage(mContentResolver, src, "cts" + System.nanoTime(), null); in testQueryExternalMiniThumbnails()
204 new String[]{ Media._ID, Media.DATA }, null, null, null); in testQueryExternalMiniThumbnails()
212 assertNotNull(Thumbnails.getThumbnail(resolver, imageId, Thumbnails.MINI_KIND, null)); in testQueryExternalMiniThumbnails()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java61 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
103 DatabaseUtils.appendValueToSql(sb, null); in testAppendValueToSql()
119 null, null, null, null, null); in testBindObjectToProgram()
131 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testBindObjectToProgram()
146 SQLiteDatabase db = getContext().openOrCreateDatabase(dbName, 0, null); in testCreateDbFromSqlStatements()
151 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements()
163 null, null, null, null, null); in testCursorDoubleToContentValues()
183 null, null, null, null, null); in testCursorDoubleToCursorValues()
201 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testCursorIntToContentValues()
230 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testcursorLongToContentValues()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java126 if (null == mockAuthenticator) { in getMockAuthenticator()
163 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown()
165 assertTrue(removeAccount(am, ACCOUNT_SAME_TYPE, mActivity, null /* callback */).getBoolean( in tearDown()
174 removeAccount(am, ctsAccount, mActivity, null /* callback */); in tearDown()
290 if (expectedOptions != null) { in validateOptions()
337 account, newName, null /* callback */, null /* handler */); in renameAccount()
349 null /* handler */); in removeAccount()
363 null /* handler */); in removeAccountWithIntentLaunch()
377 null /* handler */); in removeAccount()
401 null /* no callback */, in getAuthTokenByFeature()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java108 if (sTestKeyStore == null) { in getPrivateKey()
116 if (entry == null) { in getPrivateKey()
134 if (sPrivateKey2 == null) { in getPrivateKey2()
141 if (sSecretKey == null) { in getSecretKey()
148 if (sSecretKey2 == null) { in getSecretKey2()
272 null, in populate()
284 null, in populate()
285 null); in populate()
291 ks.load(null, null); in clearKeyStore()
312 ks.setKeyEntry(alias, privateKey.getPrivateKey(), null, privateKey.getCertificateChain()); in setPrivateKeyNoPassword()
[all …]
DAndroidKeyStoreTest.java729 ksTemp.load(null, null); in setUp()
750 keyStore.load(null, null); in tearDown()
808 mKeyStore.load(null, null); in testKeyStore_Aliases_Unencrypted_Success()
812 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success()
816 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_Aliases_Unencrypted_Success()
830 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
834 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
838 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
847 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_CAOnly_Unencrypted_Success()
849 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_ContainsAliases_CAOnly_Unencrypted_Success()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContacts_PeopleTest.java97 mProvider.delete(row, null, null); in tearDown()
102 mProvider.delete(row, null, null); in tearDown()
107 mProvider.delete(row, null, null); in tearDown()
124 null, null, null, null); in testAddToGroup()
130 Groups.SYSTEM_ID + "='" + Groups.GROUP_MY_CONTACTS + "'", null, null, null); in testAddToGroup()
153 People.NAME + " = 'test_people_create'", null, null, null); in testAddToGroup()
160 Groups.SYSTEM_ID + "='" + Groups.GROUP_MY_CONTACTS + "'", null, null, null); in testAddToGroup()
172 null, null, null, null); in testAddToGroup()
177 null, null, null, null); in testAddToGroup()
197 null, null, null, null); in testAddToGroup()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DContactsProviderTest.java39 null, null, null, null); in testQueryContacts()
75 null, null, null, null); in testQueryProfile()
113 new ContentValues(0), null, null); in testUpdateProfile()
132 null, null, null, null); in testQueryPhoneEnterprise()
150 ContactsContract.RawContactsEntity.CORP_CONTENT_URI, null, null, null, null); in testRawContactsEntityCorp()
/cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/
DJvmtiTaggingTest.java75 if (weak.get() != null) { in testTaggingGC()
97 getTaggedObjectsRun(null, false, false, exp1); in testGetTaggedObjects()
105 getTaggedObjectsRun(null, true, true, exp2); in testGetTaggedObjects()
112 exp4.add(null, 1).add(null, 1).add(null, 2).add(null, 2).add(null, 3).add(null, 3) in testGetTaggedObjects()
113 .add(null, 4).add(null, 4).add(null, 5).add(null, 5).add(null, 6).add(null, 6) in testGetTaggedObjects()
114 .add(null, 7).add(null, 7).add(null, 8).add(null, 8).add(null, 9).add(null, 9); in testGetTaggedObjects()
115 getTaggedObjectsRun(null, false, true, exp4); in testGetTaggedObjects()
123 getTaggedObjectsRun(null, true, false, exp5); in testGetTaggedObjects()
125 l = null; in testGetTaggedObjects()
152 if (objects == null && tags == null) { in check()
[all …]

12345678910>>...123