Home
last modified time | relevance | path

Searched refs:close (Results 1 – 25 of 1001) sorted by relevance

12345678910>>...41

/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DMaybeNull.java42 public static <T extends AutoCloseable> void close(T closeable) throws Exception { in close() method in MaybeNull
44 closeable.close(); in close()
56 public static <T extends UncheckedCloseable> void close(T closeable) { in close() method in MaybeNull
58 closeable.close(); in close()
68 public static <T extends Closeable> void close(T closeable) throws IOException { in close() method in MaybeNull
70 closeable.close(); in close()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererPreVTest.java113 renderer.close(); in rendererRecoversAfterFailure()
119 renderer.close(); in useRenderer_afterRendererClose_throwsException()
121 assertThrows(IllegalStateException.class, renderer::close); in useRenderer_afterRendererClose_throwsException()
132 renderer.close(); in usePage_afterRendererClose_throwsException()
141 page.close(); in usePage_afterPageClose_throwsException()
144 renderer.close(); in usePage_afterPageClose_throwsException()
151 page.close(); in useRenderer_afterPageClose()
154 renderer.close(); in useRenderer_afterPageClose()
161 renderer.close(); in getPdfPageCount()
169 renderer.close(); in getDocumentType_withNonLinearizedPdf()
[all …]
DPdfRendererTest.java100 renderer.close(); in getDocumentType_withNonLinearizedPdf()
111 renderer.close(); in getDocumentType_withLinearizedPdf()
167 renderer.close(); in rendererRecoversAfterFailure()
173 newRenderer.close(); in rendererRecoversAfterFailure()
176 firstRenderer.close(); in rendererRecoversAfterFailure()
182 renderer.close(); in useRendererAfterClose()
189 newRenderer.close(); in useRendererAfterClose()
212 page.close(); in assertPageAfterClose()
220 assertThrows(IllegalStateException.class, page::close); in assertPageAfterClose()
243 renderer.close(); in assertPageAfterClose()
[all …]
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DAutomatingFailedStep.java42 close(); in interact()
47 close(); in interact()
52 close(); in interact()
57 close(); in interact()
62 close(); in interact()
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderTestBase.kt90 it.close() in <lambda>()
108 file.close() in <lambda>()
115 file.close() in <lambda>()
122 asset.close() in <lambda>()
129 file.close() in <lambda>()
136 asset.close() in <lambda>()
147 asset.close() in <lambda>()
148 fd.close() in <lambda>()
155 asset.close() in <lambda>()
156 fd.close() in <lambda>()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteProgramTest.java46 mDatabase.close(); in tearDown()
68 statement.close(); in testBind()
88 statement.close(); in testBind()
99 cursor.close(); in testBind()
110 cursor.close(); in testBind()
119 statement.close(); in testBind()
133 statement.close(); in testBindNull()
149 cursor.close(); in testBindNull()
164 statement.close(); in testBindBlob()
181 cursor.close(); in testBindBlob()
DDatabaseStatementTest.java59 mDatabase.close(); in tearDown()
90 statement.close(); in testExecuteStatement()
97 statement.close(); in testExecutePragmaStatement()
139 statement1.close(); in testSimpleQuery()
140 statement2.close(); in testSimpleQuery()
152 statement.close(); in testStatementLongBinding()
162 c.close(); in testStatementLongBinding()
174 statement.close(); in testStatementStringBinding()
184 c.close(); in testStatementStringBinding()
197 statement.close(); in testStatementClearBindings()
[all …]
DSQLiteStatementTest.java65 mDatabase.close(); in tearDown()
99 statement2.close(); in testExecute()
107 statement1.close(); in testExecute()
110 statement2.close(); in testExecute()
123 statement2.close(); in testExecute()
137 statement.close(); in testExecuteInsert()
142 statement.close(); in testExecuteInsert()
149 c.close(); in testExecuteInsert()
161 statement.close(); in testExecuteInsert()
187 statement.close(); in testSimpleQueryForLong()
[all …]
DSQLiteDatabaseTest.java145 mDatabase.close(); in closeAndDeleteDatabase()
155 db.close(); in testOpenDatabase()
162 db.close(); in testOpenDatabase()
168 db.close(); in testOpenDatabase()
173 db.close(); in testOpenDatabase()
192 db.close(); in testOpenDatabase_fail_no_path()
214 db.close(); in testOpenDatabase_fail_root_path_create_if_necessary()
238 db.close(); in testOpenDatabase_fail_root_path_no_create()
452 database.close(); in testAccessPageSize()
478 insertStatement.close(); in testCompileStatement()
[all …]
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfDocumentTest.java57 doc.close(); in getPagesEmptyDocAfterClose()
64 doc.close(); in closeClosedDoc()
67 doc.close(); in closeClosedDoc()
73 doc.close(); in writeClosedDoc()
83 doc.close(); in startPageClosedDoc()
98 doc.close(); in finishPageTwiceDoc()
107 assertThrows(IllegalStateException.class, doc::close); in closeWithOpenPage()
109 doc.close(); in closeWithOpenPage()
121 doc.close(); in writeEmptyDoc()
137 doc.close(); in writeWithOpenPage()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java85 mAssetFileDes.close(); in tearDown()
100 assetFileDes.close(); in testConstructor()
106 assetFileDes.close(); in testConstructor()
112 assetFileDes.close(); in testConstructor()
130 mOutputStream.close(); in testInputOutputStream()
138 mAssetFileDes.close(); in testInputOutputStream()
155 mInputStream.close(); in testInputOutputStream()
163 mAssetFileDes.close(); in testInputOutputStream()
168 mAssetFileDes.close(); in testInputOutputStream()
179 mAssetFileDes.close(); in testInputOutputStream()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java79 outputStream.close(); in testCreatePrivateData()
85 dataOut.close(); in testCreatePrivateData()
86 outputStream.close(); in testCreatePrivateData()
101 inputStream.close(); in accessPublicData()
129 cursor.close(); in writeToDatabase()
132 db.close(); in writeToDatabase()
163 cursor.close(); in assertDatabaseDataDoesNotExist()
166 db.close(); in assertDatabaseDataDoesNotExist()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DSharedFilterTestService.java53 mTuner.close(); in onUnbind()
73 mDvrPlayback.close(); in closeFilter()
76 mFilter.close(); in closeFilter()
99 f.close(); in verifySharedFilter()
106 f.close(); in verifySharedFilter()
112 f.close(); in verifySharedFilter()
117 f.close(); in verifySharedFilter()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DSharedFilterTestService.java53 mTuner.close(); in onUnbind()
73 mDvrPlayback.close(); in closeFilter()
76 mFilter.close(); in closeFilter()
99 f.close(); in verifySharedFilter()
106 f.close(); in verifySharedFilter()
112 f.close(); in verifySharedFilter()
117 f.close(); in verifySharedFilter()
/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java77 doc.close(); in createWithNullContext()
88 doc.close(); in startPage()
103 doc.close(); in oneMilPageSize()
124 doc.close(); in getPageWidth()
134 doc.close(); in getPageHeight()
145 doc.close(); in getContentRect()
159 doc.close(); in getContentRectBigMargins()
168 doc.close(); in getPageHeightAfterClose()
178 doc.close(); in getPageWidthAfterClose()
188 doc.close(); in getContentRectAfterClose()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/
Dpoc.c42 close(fd); in drm_version()
57 close(fd); in nouveau_gem_ioctl_new()
70 close(fd); in nouveau_gem_ioctl_map()
92 close(fd); in main()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContacts_PeopleTest.java127 cursor.close(); in testAddToGroup()
133 cursor.close(); in testAddToGroup()
144 cursor.close(); in testAddToGroup()
158 cursor.close(); in testAddToGroup()
163 cursor.close(); in testAddToGroup()
168 cursor.close(); in testAddToGroup()
175 cursor.close(); in testAddToGroup()
180 cursor.close(); in testAddToGroup()
193 cursor.close(); in testAddToGroup()
200 cursor.close(); in testAddToGroup()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DARTBootASLRTest.java51 bufReader.close(); in testARTASLR()
52 reader.close(); in testARTASLR()
53 ins.close(); in testARTASLR()
/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java63 owner.close(); in testEnabled_OpenThenClosed()
80 owner.close(); in assertUnreleasedResources()
99 public void close() { in close() method in CloseGuardTest.ResourceOwner
100 mCloseGuard.close(); in close()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DAutoCloseableWrapper.java62 void close(U object) throws Exception; in close() method
89 public void close() throws Exception { in close() method in AutoCloseableWrapper
90 mCloser.close(mObject); in close()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DReportLogDeviceInfoStore.java59 jsonReader.close(); in open()
66 formatWriter.close(); in open()
75 public void close() throws IOException { in close() method in ReportLogDeviceInfoStore
78 mJsonWriter.close(); in close()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Audio_Genres_MembersTest.java82 c.close(); in setUp()
88 c.close(); in setUp()
107 c.close(); in testGetContentUri()
121 c.close(); in testStoreAudioGenresMembersExternal()
173 c.close(); in testStoreAudioGenresMembersExternal()
183 c.close(); in testStoreAudioGenresMembersExternal()
193 c.close(); in testStoreAudioGenresMembersExternal()
210 c.close(); in testStoreAudioGenresMembersExternal()
219 c.close(); in testStoreAudioGenresMembersExternal()
228 c.close(); in testStoreAudioGenresMembersExternal()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtils_InsertHelperTest.java46 mInsertHelper.close(); in tearDown()
47 mDatabase.close(); in tearDown()
57 mInsertHelper.close(); in testClose()
103 cursor.close(); in testInsert()
138 cursor.close(); in testInsert()
170 cursor.close(); in testInsert()
205 cursor.close(); in testReplace()
234 cursor.close(); in testReplace()
247 cursor.close(); in testReplace()
280 cursor.close(); in testReplace()
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java70 c.close(); in testSearchRecentSuggestions()
91 c.close(); in testSearchRecentSuggestions()
128 c.close(); in testSearchRecentSuggestions()
134 c.close(); in testSearchRecentSuggestions()
174 cursor.close(); in testSuggestionsTable()
207 cursor.close(); in testSuggestionsTable()
233 cursor.close(); in waitForCursorCount()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DTestSuiteTradefedParser.java124 xmlStream.close(); in praseKnownFailure()
128 zip.close(); in praseKnownFailure()
180 inStream.close(); in parseFile()
181 isReader.close(); in parseFile()
182 bfReader.close(); in parseFile()
187 zip.close(); in parseFile()

12345678910>>...41