Home
last modified time | relevance | path

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

12345678910>>...119

/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 …]
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()
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()
/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/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.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 …]
DPrinterCapabilitiesChangeTest.java92 if (mediaSize != null) { in generatePrinters()
104 cap = null; in generatePrinters()
126 while (printAttributes[0] == null || in waitForMediaSizeChange()
169 return null; in setUpPrinting()
170 }, null, null, null, null, null, invocation -> { in setUpPrinting()
172 return null; in setUpPrinting()
177 invocation -> firstSessionCallbacks, null, null); in setUpPrinting()
181 SecondPrintService.setCallbacks(createMockPrintServiceCallbacks(null, null, null)); in setUpPrinting()
199 return null; in setUpPrinting()
219 return null; in setUpPrinting()
[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/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/media/src/android/media/cts/
DMediaScannerTest.java96 if (mMediaFile != null) { in cleanup()
99 if (mFileDir != null) { in cleanup()
101 if (files != null) { in cleanup()
109 if (mMediaScannerConnection != null) { in cleanup()
111 mMediaScannerConnection = null; in cleanup()
132 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()
139 Cursor c = res.query(media1Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
149 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()
155 c = res.query(media2Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
184 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/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/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 …]
/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/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/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/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 …]
/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 …]
/cts/tests/JobSchedulerSharedUid/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>>...119