/cts/tests/tests/content/src/android/content/cts/ |
D | IntentFilterTest.java | 78 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 …]
|
D | SearchRecentSuggestionsProviderTest.java | 51 s.attachInfo(mProviderContext, null); in testSearchRecentSuggestionsProvider() 58 String[] selArgs = new String[] { null }; in testSearchRecentSuggestionsProvider() 60 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 64 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 68 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 71 s.delete(TEST_URI, null, null); in testSearchRecentSuggestionsProvider() 72 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 76 s.update(TEST_URI, null, null, null); in testSearchRecentSuggestionsProvider()
|
D | ContentResolverTest.java | 119 mContentResolver.delete(TABLE1_URI, null, null); in tearDown() 120 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown() 123 mContentResolver.delete(REMOTE_TABLE1_URI, null, null); in tearDown() 124 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown() 145 client.delete(REMOTE_SELF_URI, null, null); in testCrashOnLaunch() 196 uClient.delete(REMOTE_SELF_URI, null, null); in testUnstableToStableRefs() 234 uClient.delete(REMOTE_SELF_URI, null, null); in testStableToUnstableRefs() 263 mContentResolver.getType(null); in testGetType() 283 client.delete(REMOTE_SELF_URI, null, null); in testUnstableGetType() 308 mCursor = mContentResolver.query(TABLE1_URI, null, null, null, null); in testQuery() [all …]
|
/cts/tests/tests/ndef/src/android/ndef/cts/ |
D | NdefTest.java | 42 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/net/src/android/net/rtp/cts/ |
D | AudioCodecTest.java | 34 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/provider/src/android/provider/cts/ |
D | MediaStore_Audio_GenresTest.java | 42 Cursor c = null; in testGetContentUri() 44 Genres.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 45 null, null)); in testGetContentUri() 49 Genres.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, in testGetContentUri() 50 null, null, null)); in testGetContentUri() 59 assertNull(mContentResolver.query(Genres.getContentUri(volume), null, null, null, null)); in testGetContentUri() local 71 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal() 81 assertEquals(1, mContentResolver.update(uri, values, null, null)); in testStoreAudioGenresExternal() 82 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal() 87 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioGenresExternal() [all …]
|
D | MediaStore_Audio_Genres_MembersTest.java | 45 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp() 51 c = mContentResolver.query(uri, null, null, null, null); in setUp() 61 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJam, null); in tearDown() 63 null); in tearDown() 68 Cursor c = null; in testGetContentUri() 70 Members.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME, 1), null, in testGetContentUri() 71 null, null, null)); in testGetContentUri() 76 Members.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME, 1), null, in testGetContentUri() 77 null, null, null)); in testGetContentUri() 86 assertNull(mContentResolver.query(Members.getContentUri(volume, 1), null, null, null, in testGetContentUri() local [all …]
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 42 Cursor c = null; in testGetContentUri() 45 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 50 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 56 null, null, null, null)); in testGetContentUri() local 72 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums() 73 null, null); in testStoreAudioArtistsAlbums() 90 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums() 116 mContentResolver.update(artistsAlbumsUri, albumValues, null, null); in testStoreAudioArtistsAlbums() 124 mContentResolver.delete(artistsAlbumsUri, null, null); in testStoreAudioArtistsAlbums() 130 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioArtistsAlbums() [all …]
|
D | MediaStore_Audio_AlbumsTest.java | 49 Cursor c = null; in testGetContentUri() 51 Albums.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 52 null, null)); in testGetContentUri() 55 Albums.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 56 null, null)); in testGetContentUri() 61 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); in testGetContentUri() local 91 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() 92 null); in testStoreAudioAlbums() 143 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() 151 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() [all …]
|
D | MediaStore_Audio_PlaylistsTest.java | 42 Cursor c = null; in testGetContentUri() 44 Playlists.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 45 null, null)); in testGetContentUri() 51 Playlists.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, in testGetContentUri() 52 null, null, null)); in testGetContentUri() 60 assertNull(mContentResolver.query(Playlists.getContentUri(volume), null, null, null, in testGetContentUri() local 61 null)); in testGetContentUri() local 79 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() 97 assertEquals(1, mContentResolver.update(uri, values, null, null)); in testStoreAudioPlaylistsExternal() 98 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() [all …]
|
D | MediaStore_Audio_ArtistsTest.java | 40 Cursor c = null; in testGetContentUri() 42 Artists.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 43 null, null)); in testGetContentUri() 46 Artists.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, null, in testGetContentUri() 47 null, null)); in testGetContentUri() 52 assertNull(mContentResolver.query(Artists.getContentUri(volume), null, null, null, null)); in testGetContentUri() local 80 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists() 113 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() 121 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() 125 mContentResolver.delete(uri, null, null); in testStoreAudioArtists() [all …]
|
D | Contacts_PeopleTest.java | 95 mProvider.delete(row, null, null); in tearDown() 100 mProvider.delete(row, null, null); in tearDown() 105 mProvider.delete(row, null, null); in tearDown() 122 null, null, null, null); in testAddToGroup() 128 Groups.SYSTEM_ID + "='" + Groups.GROUP_MY_CONTACTS + "'", null, null, null); in testAddToGroup() 151 People.NAME + " = 'test_people_create'", null, null, null); in testAddToGroup() 158 Groups.SYSTEM_ID + "='" + Groups.GROUP_MY_CONTACTS + "'", null, null, null); in testAddToGroup() 170 null, null, null, null); in testAddToGroup() 175 null, null, null, null); in testAddToGroup() 195 null, null, null, null); in testAddToGroup() [all …]
|
D | Settings_NameValueTableTest.java | 35 Cursor c = cr.query(uri, null, null, null, null); in testPutString() 42 c = cr.query(uri, null, null, null, null); in testPutString() 49 c = cr.query(uri, null, selection, null, null); in testPutString() 58 cr.delete(uri, selection, null); in testPutString() 59 c = cr.query(uri, null, null, null, null); in testPutString()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteQueryBuilderTest.java | 46 mDatabase = getContext().openOrCreateDatabase(DATABASE_FILE, Context.MODE_PRIVATE, null); in setUp() 68 null, null, null, null, null, null); in testSetDistinct() 78 null, null, null, null, null, null); in testSetDistinct() 88 null, null, null, null, null, null); in testSetDistinct() 106 null, null, null, null, null, null); in testSetProjectionMap() 110 sql = sqliteQueryBuilder.buildQuery(null, // projectionIn is null in testSetProjectionMap() 111 null, null, null, null, null, null); in testSetProjectionMap() 118 sqliteQueryBuilder.setProjectionMap(null); in testSetProjectionMap() 120 null, null, null, null, null, null); in testSetProjectionMap() 136 null, null, null, null, null); in testSetCursorFactory() [all …]
|
D | DatabaseStatementTest.java | 51 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()
|
D | SQLiteDatabaseTest.java | 75 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp() 278 "SELECT num FROM test", null)); in assertNum() 307 SQLiteDatabase database = null; in testAccessPageSize() 309 database = SQLiteDatabase.openOrCreateDatabase(databaseFile.getPath(), null); in testAccessPageSize() 318 if (database != null) { in testAccessPageSize() 334 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement() 347 cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement() 359 cursor = mDatabase.query("test", null, null, null, null, null, null); in testCompileStatement() 374 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete() 377 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | HeaderViewListAdapterTest.java | 50 new HeaderViewListAdapter(header, footer, null); in testConstructor() 56 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testGetHeadersCount() 62 headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testGetHeadersCount() 67 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testGetFootersCount() 73 headerViewListAdapter = new HeaderViewListAdapter(null, footer, null); in testGetFootersCount() 79 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testIsEmpty() 83 headerViewListAdapter = new HeaderViewListAdapter(null, null, emptyAdapter); in testIsEmpty() 87 headerViewListAdapter = new HeaderViewListAdapter(null, null, fullAdapter); in testIsEmpty() 102 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testRemoveHeader() 108 headerViewListAdapter = new HeaderViewListAdapter(null, null, null); in testRemoveHeader() [all …]
|
D | ResourceCursorTreeAdapterTest.java | 72 mParent = (ViewGroup) layoutInflater.inflate(R.layout.cursoradapter_host, null); in setUp() 77 mResourceCursorTreeAdapter = new MockResourceCursorTreeAdapter(mContext, null, in testConstructor() 86 new MockResourceCursorTreeAdapter(mContext, null, mCollapsedGroupLayout, in testConstructor() 89 new MockResourceCursorTreeAdapter(mContext, null, mCollapsedGroupLayout, in testConstructor() 92 new MockResourceCursorTreeAdapter(mContext, null, -1, -1); in testConstructor() 94 new MockResourceCursorTreeAdapter(mContext, null, -1, -1, -1); in testConstructor() 96 new MockResourceCursorTreeAdapter(mContext, null, -1, -1, -1, -1); in testConstructor() 102 mResourceCursorTreeAdapter = new MockResourceCursorTreeAdapter(mContext, null, in testNewChildView() 105 View result = mResourceCursorTreeAdapter.newChildView(null, null, true, mParent); in testNewChildView() 108 result = mResourceCursorTreeAdapter.newChildView(null, null, false, mParent); in testNewChildView() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ContactsProviderTest.java | 39 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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResultsReport.java | 92 xml.startTag(null, TEST_RESULTS_REPORT_TAG); in getContents() 93 xml.attribute(null, "report-version", Integer.toString(REPORT_VERSION)); in getContents() 94 xml.attribute(null, "creation-time", DATE_FORMAT.format(new Date())); in getContents() 96 xml.startTag(null, VERIFIER_INFO_TAG); in getContents() 97 xml.attribute(null, "version-name", Version.getVersionName(mContext)); in getContents() 98 xml.attribute(null, "version-code", Integer.toString(Version.getVersionCode(mContext))); in getContents() 99 xml.attribute(null, "build", Version.getBuildNumber(mContext)); in getContents() 100 xml.endTag(null, VERIFIER_INFO_TAG); in getContents() 102 xml.startTag(null, DEVICE_INFO_TAG); in getContents() 103 xml.startTag(null, BUILD_INFO_TAG); in getContents() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | MetricsXmlSerializer.java | 36 if (reportLog == null) { in serialize() 42 if (summary != null) { in serialize() 43 mXmlSerializer.startTag(null, "Summary"); in serialize() 44 mXmlSerializer.attribute(null, "message", summary.getMessage()); in serialize() 45 mXmlSerializer.attribute(null, "scoreType", summary.getType().getXmlString()); in serialize() 46 mXmlSerializer.attribute(null, "unit", summary.getUnit().getXmlString()); in serialize() 48 mXmlSerializer.endTag(null, "Summary"); in serialize() 52 mXmlSerializer.startTag(null, "Details"); in serialize() 54 mXmlSerializer.startTag(null, "ValueArray"); in serialize() 55 mXmlSerializer.attribute(null, "source", result.getLocation()); in serialize() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaScannerTest.java | 86 if (mMediaFile != null) { in cleanup() 89 if (mFileDir != null) { in cleanup() 91 if (files != null) { in cleanup() 99 if (mMediaScannerConnection != null) { in cleanup() 101 mMediaScannerConnection = null; in cleanup() 129 Cursor c = res.query(audiouri, null, null, null, null); in testMediaScanner() 144 c = res.query(audiouri, null, null, null, null); in testMediaScanner() 155 c = res.query(audiouri, null, null, null, null); in testMediaScanner() 183 c = res.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, null, in testMediaScanner() 185 new String[] { "ctsmediascanplaylist1"}, null); in testMediaScanner() [all …]
|
/cts/tests/tests/content/src/android/content/cts/util/ |
D | XmlUtils.java | 63 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/widget/src/android/widget/cts/util/ |
D | XmlUtils.java | 61 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/tests/tests/view/src/android/view/cts/util/ |
D | XmlUtils.java | 60 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 …]
|