Home
last modified time | relevance | path

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

12345678910>>...153

/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java66 context.openOrCreateDatabase(DATABASE_FILE, Context.MODE_PRIVATE, null)); in setUp()
93 null, null, null, null, null); in testSetDistinct()
103 null, null, null, null, null); in testSetDistinct()
113 null, null, null, null, null); in testSetDistinct()
132 null, null, null, null, null); in testSetProjectionMap()
136 sql = sqliteQueryBuilder.buildQuery(null, // projectionIn is null in testSetProjectionMap()
137 null, null, null, null, null); in testSetProjectionMap()
144 sqliteQueryBuilder.setProjectionMap(null); in testSetProjectionMap()
146 null, null, null, null, null); in testSetProjectionMap()
164 builder.buildQuery(new String[] { "allowed" }, null, null, null, null, null); in testSetProjectionGreylist()
[all …]
DSQLiteDatabaseTest.java93 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp()
294 "SELECT num FROM test", null)); in assertNum()
331 SQLiteDatabase database = null; in testAccessPageSize()
333 database = SQLiteDatabase.openOrCreateDatabase(databaseFile.getPath(), null); in testAccessPageSize()
342 if (database != null) { in testAccessPageSize()
358 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement()
371 cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement()
383 cursor = mDatabase.query("test", null, null, null, null, null, null); in testCompileStatement()
398 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete()
401 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete()
[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()
/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/content/src/android/content/cts/
DIntentFilterTest.java89 verifyContent(filter, null, null); in testConstructor()
92 verifyContent(filter, ACTION, null); in testConstructor()
115 if (action != null) { in verifyContent()
121 if (dataType != null) { in verifyContent()
137 String actual = null; in testCategories()
147 IntentFilter filter = new Match(null, new String[]{"category1"}, null, null, null, null); in testCategories()
149 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, null, null, null), in testCategories()
150 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, in testCategories()
151 new String[]{"category1"}, null, null), in testCategories()
152 new MatchCondition(IntentFilter.NO_MATCH_CATEGORY, null, in testCategories()
[all …]
DSearchRecentSuggestionsProviderTest.java50 s.attachInfo(mProviderContext, null); in testSearchRecentSuggestionsProvider()
57 String[] selArgs = new String[] { null }; in testSearchRecentSuggestionsProvider()
59 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
63 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
67 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
70 s.delete(TEST_URI, null, null); in testSearchRecentSuggestionsProvider()
71 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
75 s.update(TEST_URI, null, null, null); in testSearchRecentSuggestionsProvider()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderValidationTest.java57 super(decoder, mime, null); in CodecDecoderValidationTest()
76 "bbb_340x280_768kbps_30fps_vp9.webm"}, null, -1.0f, 4122701060L, CODEC_ALL}, in input()
79 "bbb_520x390_1mbps_30fps_vp9.webm"}, null, -1.0f, 1201859039L, CODEC_ALL}, in input()
84 "bbb_512x288_30fps_1mbps_mpeg2_interlaced_nob_2fields.mp4"}, null, -1.0f, in input()
107 ".webm"}, null, -1.0f, 1319105122L, CODEC_ALL}, in input()
109 ".webm"}, null, -1.0f, 4128150660L, CODEC_ALL}, in input()
111 ".webm"}, null, -1.0f, 156928091L, CODEC_ALL}, in input()
113 ".webm"}, null, -1.0f, 3902485256L, CODEC_ALL}, in input()
117 "bbb_642x642_2mbps_30fps_mpeg2.mp4"}, null, -1.0f, -1L, CODEC_ANY}, in input()
119 "bbb_642x642_1mbps_30fps_avc.mp4"}, null, -1.0f, 3947092788L, CODEC_ANY}, in input()
[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/print/src/android/print/cts/
DCustomPrintOptionsTest.java111 return null; in getPages()
140 return null; in setUpServicesAndAdapter()
141 }, null, null, null, null, null, invocation -> { in setUpServicesAndAdapter()
143 return null; in setUpServicesAndAdapter()
162 return null; in setUpServicesAndAdapter()
179 return null; in setUpServicesAndAdapter()
180 }, null); in setUpServicesAndAdapter()
184 invocation -> firstSessionCallbacks, null, null); in setUpServicesAndAdapter()
188 SecondPrintService.setCallbacks(createMockPrintServiceCallbacks(null, null, null)); in setUpServicesAndAdapter()
240 if (mediaSize != null) { in testCase()
[all …]
DPrinterInfoTest.java82 "Printer", null in createFirstMockPrinterDiscoverySessionCallbacks()
86 NAMED_PRINTERS_NAME_PREFIX, "", null in createFirstMockPrinterDiscoverySessionCallbacks()
101 "Description", "", null in createFirstMockPrinterDiscoverySessionCallbacks()
108 null in createFirstMockPrinterDiscoverySessionCallbacks()
123 null in createFirstMockPrinterDiscoverySessionCallbacks()
137 RuntimeException e = null; in createFirstMockPrinterDiscoverySessionCallbacks()
138 PrinterId printerId = null; in createFirstMockPrinterDiscoverySessionCallbacks()
140 if (localPrinterId == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
158 if (localPrinterId == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
159 if (e == null) { in createFirstMockPrinterDiscoverySessionCallbacks()
[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/media/src/android/media/cts/
DMediaScannerTest.java120 if (mMediaFile != null) { in cleanup()
123 if (mFileDir != null) { in cleanup()
125 if (files != null) { in cleanup()
133 if (mMediaScannerConnection != null) { in cleanup()
135 mMediaScannerConnection = null; in cleanup()
156 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()
163 Cursor c = res.query(media1Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
173 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()
179 c = res.query(media2Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
208 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/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/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/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_Genres_MembersTest.java80 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp()
86 c = mContentResolver.query(uri, null, null, null, null); in setUp()
97 Media._ID + "=" + mAudioIdOfJam, null); in tearDown() local
99 Media._ID + "=" + mAudioIdOfJamLive, null); in tearDown() local
104 Cursor c = null; in testGetContentUri()
106 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri()
107 null, null, null)); in testGetContentUri()
117 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
136 c = mContentResolver.query(membersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
179 null, null, null); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_Artists_AlbumsTest.java79 Cursor c = null; in testGetContentUri()
81 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri()
90 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums()
91 null, null); in testStoreAudioArtistsAlbums()
106 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
127 mContentResolver.update(artistsAlbumsUri, albumValues, null, null); in testStoreAudioArtistsAlbums()
135 mContentResolver.delete(artistsAlbumsUri, null, null); in testStoreAudioArtistsAlbums()
141 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioArtistsAlbums()
144 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
165 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testDifferentArtistInSameAlbum()
[all …]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTest.java58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
59 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
78 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert()
94 int deletedRows = mContentResolver.delete(uri, null, null); in testSmsDelete()
98 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete()
118 mContentResolver.update(uri, values, null, null); in testSmsUpdate()
143 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen()
149 int cursorUpdate = mContentResolver.update(uri, updateValues, null, null); in testInsertSms_canUpdateSeen()
161 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus()
177 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsType()
[all …]
DLockedMessageTest.java57 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
81 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage()
82 null); in testLockedMessage_atMostOneLockedMessage()
101 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testLockedMessage_getNoLockedMessage()
106 Cursor smCursor = mContentResolver.query(smsUri, null, null, null); in testLockedMessage_getNoLockedMessage()
109 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage()
110 null); in testLockedMessage_getNoLockedMessage()
118 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage()
125 int cursorUpdate = mContentResolver.update(mmsUri, updateValues, null, null); in insertMmsWithLockedMessage()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsConnectionService.java73 if (sConnectionService != null) { in setUp()
82 sConnectionService = null; in tearDown()
90 if (sConnectionService != null) { in onCreateOutgoingConnection()
96 return null; in onCreateOutgoingConnection()
105 if (sConnectionService != null) { in onCreateIncomingConnection()
111 return null; in onCreateIncomingConnection()
119 if (sConnectionService != null) { in onCreateIncomingConnectionFailed()
132 if (sConnectionService != null) { in onCreateOutgoingConference()
138 return null; in onCreateOutgoingConference()
147 if (sConnectionService != null) { in onCreateOutgoingConferenceFailed()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAsserts.java47 if (uri != null) { in assertAccess()
52 if (uri != null) { in assertAccess()
56 if (intentClip != null) { in assertAccess()
67 assertReadingContentUriNotAllowed(uri, null); in assertAccess()
72 assertWritingContentUriNotAllowed(uri, null); in assertAccess()
78 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriNotAllowed()
87 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriAllowed()
94 assertReadingClipNotAllowed(clip, null); in assertReadingClipNotAllowed()
101 if (uri != null) { in assertReadingClipNotAllowed()
106 if (uri != null) { in assertReadingClipNotAllowed()
[all …]
/cts/tests/tests/contactsprovider/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/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java27 if (expectedErrorClass != null && thrown == null) { in checkError()
28 fail("Expected error of type " + expectedErrorClass, null); in checkError()
29 } else if (expectedErrorClass == null && thrown != null) { in checkError()
31 } else if (expectedErrorClass != null && thrown != null) { in checkError()
53 if (expectedErrorClass != null) { in load()
58 return null; in load()
60 checkError(expectedErrorClass, null, false); in load()
70 Class<?> c = load(className, null); in loadAndRun()
72 java.lang.reflect.Method method = null; in loadAndRun()
81 if (method == null) { in loadAndRun()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java63 if (TestEnvironment.getTestEnvironment().getExpectedWork() != null) { in onDestroy()
65 null); in onDestroy()
83 if (clip != null) { in onStartJob()
91 if (expectedWork != null) { in onStartJob()
95 permCheckWrite, null, "Spent too long waiting to start executing work"); in onStartJob()
100 permCheckWrite, null, "Failed waiting for work: " + e); in onStartJob()
105 while ((work = params.dequeueWork()) != null) { in onStartJob()
114 if (expected.requireUrisGranted != null) { in onStartJob()
122 permCheckRead, permCheckWrite, null, in onStartJob()
135 permCheckRead, permCheckWrite, null, in onStartJob()
[all …]

12345678910>>...153