Home
last modified time | relevance | path

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

12345678910>>...166

/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 …]
DDatabaseStatementTest.java52 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null); in setUp()
87 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testExecuteStatement()
100 try (Cursor c = mDatabase.rawQuery("PRAGMA busy_timeout;", null)) { in testExecutePragmaStatement() argument
154 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementLongBinding()
176 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementStringBinding()
199 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementClearBindings()
221 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testSimpleStringBinding()
246 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementMultipleBindings()
281 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in run()
330 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementConstraint()
/cts/tests/tests/ndef/src/android/ndef/cts/
DNdefTest.java43 r = new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null); in testConstructor()
51 assertEquals(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null), in testEquals()
52 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)); in testEquals()
78 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null))); in testEquals()
81 assertEquals(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null).hashCode(), in testEquals()
82 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null).hashCode()); in testEquals()
121 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
125 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
129 assertEquals(new NdefMessage(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)), in testValidParsing()
134 new NdefRecord(NdefRecord.TNF_WELL_KNOWN, null, new byte[] {0}, null)), in testValidParsing()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntentFilterTest.java135 verifyContent(filter, null, null); in testConstructor()
138 verifyContent(filter, ACTION, null); in testConstructor()
161 if (action != null) { in verifyContent()
167 if (dataType != null) { in verifyContent()
184 String actual = null; in testCategories()
194 IntentFilter filter = new Match(null, new String[]{"category1"}, null, null, null, null); in testCategories()
196 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, null, null, null), in testCategories()
197 new MatchCondition(IntentFilter.MATCH_CATEGORY_EMPTY, null, in testCategories()
198 new String[]{"category1"}, null, null), in testCategories()
199 new MatchCondition(IntentFilter.NO_MATCH_CATEGORY, null, in testCategories()
[all …]
DSearchRecentSuggestionsProviderTest.java51 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()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderValidationTest.java113 super(decoder, mediaType, null, allTestParams); in CodecDecoderValidationTest()
137 null, -1.0f, 4122701060L, -1, -1, 340, 280, CODEC_ALL}, in input()
140 null, -1.0f, 1201859039L, -1, -1, 520, 390, CODEC_ALL}, in input()
146 null, -1.0f, -1L, -1, -1, 512, 288, CODEC_ALL}, in input()
160 null, -1.0f, -1L, -1, -1, 642, 642, in input()
163 null, -1.0f, 3947092788L, -1, -1, 642, 642, CODEC_ANY}, in input()
165 null, -1.0f, 516982978L, -1, -1, 642, 642, CODEC_ANY}, in input()
167 null, -1.0f, 3018465268L, -1, -1, 642, 642, CODEC_ANY}, in input()
169 null, -1.0f, 4032809269L, -1, -1, 642, 642, CODEC_ANY}, in input()
171 null, -1.0f, 3684481474L, -1, -1, 642, 642, CODEC_ANY}, in input()
[all …]
DDecoderHDRInfoTest.java124 HDR_STATIC_INFO, HDR_STATIC_INFO, null, null}, in input()
127 HDR_STATIC_INFO, HDR_STATIC_INCORRECT_INFO, null, null}, in input()
129 HDR_STATIC_INFO, null, null, null}, in input()
131 null, HDR_STATIC_INFO, null, null}, in input()
133 null, HDR_STATIC_INFO, null, null}, in input()
136 HDR_STATIC_INFO, HDR_STATIC_INFO, null, null}, in input()
139 HDR_STATIC_INFO, HDR_STATIC_INCORRECT_INFO, null, null}, in input()
141 HDR_STATIC_INFO, null, null, null}, in input()
143 null, HDR_STATIC_INFO, null, null}, in input()
145 null, null, HDR_DYNAMIC_INFO_HEVC, null}, in input()
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DKernelConfigTest.java83 if (set != null) { in getDeviceConfig()
188 if (mitigationInfoMeltdown != null && mitigationInfoSpectreV2 != null && in getHardware()
199 if (nodeContent == null) in getHardware()
227 result.put("VULN_SAFE", null); in createHardwareMitigations()
228 result.put("EXYNOS990", null); in createHardwareMitigations()
229 result.put("EXYNOS980", null); in createHardwareMitigations()
230 result.put("EXYNOS850", null); in createHardwareMitigations()
231 result.put("EXYNOS3830", null); in createHardwareMitigations()
232 result.put("EXYNOS9630", null); in createHardwareMitigations()
233 result.put("EXYNOS9830", null); in createHardwareMitigations()
[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/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/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/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DAInjector.java50 ClipData clipData = parcel.readParcelable(null); in createClipData()
64 TextUtils.writeToParcel(null, dest, 0); // mLabel in beginClipData()
66 dest.writePersistableBundle(null); // mExtras in beginClipData()
75 TextUtils.writeToParcel(null, dest, 0); // mText in beginClipData()
76 dest.writeString(null); // mHtmlText in beginClipData()
86 dest.writeString(null); // taskAffinity in beginClipData()
87 dest.writeString(null); // permission in beginClipData()
88 dest.writeString(null); // processName in beginClipData()
89 dest.writeString(null); // className in beginClipData()
97 dest.writeString(null); // scanSourceDir in beginClipData()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerTest.java122 if (mMediaFile != null) { in cleanup()
125 if (mFileDir != null) { in cleanup()
127 if (files != null) { in cleanup()
135 if (mMediaScannerConnection != null) { in cleanup()
137 mMediaScannerConnection = null; in cleanup()
158 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()
165 Cursor c = res.query(media1Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
175 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()
181 c = res.query(media2Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles()
210 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/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DBundleKeyQueryHelper.java40 private Boolean mExpectsToExist = null;
41 private StringQueryHelper<E> mStringQuery = null;
42 private IntegerQueryHelper<E> mIntegerQuery = null;
43 private LongQueryHelper<E> mLongQuery = null;
44 private BooleanQueryHelper<E> mBooleanQuery = null;
55 mQuery = null; in BundleKeyQueryHelper()
69 if (mExpectsToExist != null) { in exists()
79 if (mExpectsToExist != null) { in doesNotExist()
89 if (mStringQuery == null) { in stringValue()
98 if (mSerializableQuery == null) { in serializableValue()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java87 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_deletesContacts()
88 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_deletesContacts()
92 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_deletesContacts()
95 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_deletesContacts()
100 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts()
101 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts()
106 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts()
110 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts()
119 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemovalWithMergedContact_deletesContacts()
121 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemovalWithMergedContact_deletesContacts()
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DCtsBasicVoiceInteractionService.java91 private HotwordDetectionServiceFailure mHotwordDetectionServiceFailure = null;
92 private SoundTriggerFailure mSoundTriggerFailure = null;
93 private String mUnknownFailure = null;
110 mAvailabilityChangeLatch = null; in resetState()
111 mOnDetectRejectLatch = null; in resetState()
112 mOnErrorLatch = null; in resetState()
113 mOnFailureLatch = null; in resetState()
114 mOnQueryFinishRejectLatch = null; in resetState()
115 mOnRecognitionPausedLatch = null; in resetState()
116 mOnRecognitionResumedLatch = null; in resetState()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DResources_RegisterResourcePathsTest.java97 null, APP_ONE_RES_DIR, null, null, null, null, null, null, in testExistingResourcesAfterRegistration()
98 CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null, null); in testExistingResourcesAfterRegistration()
125 null, APP_ONE_RES_DIR, null, null, null, null, null, null, in testNewResourcesAfterRegistration()
126 CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null, null); in testNewResourcesAfterRegistration()
171 null, APP_ONE_RES_DIR, null, null, null, null, null, null, in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration()
172 CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null, null); in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration()
181 null, APP_ONE_RES_DIR, null, null, null, null, null, null, in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration()
182 CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null, null); in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTest.java67 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
68 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
88 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert()
104 int deletedRows = mContentResolver.delete(uri, null, null); in testSmsDelete()
108 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete()
128 mContentResolver.update(uri, values, null, null); in testSmsUpdate()
153 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen()
159 int cursorUpdate = mContentResolver.update(uri, updateValues, null, null); in testInsertSms_canUpdateSeen()
171 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus()
187 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsType()
[all …]
/cts/tests/mediaprovider/src/android/provider/cts/media/
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()
116 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
135 c = mContentResolver.query(membersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
178 null, null, null); in testStoreAudioGenresMembersExternal()
[all …]
/cts/tests/mediaprovider/modern/src/android/provider/cts/media/modern/
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
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 …]
/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 …]

12345678910>>...166