Home
last modified time | relevance | path

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

12345678910>>...23

/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/tests/database/src/android/database/sqlite/cts/
DDatabaseStatementTest.java58 mDatabase.close(); in tearDown()
89 statement.close(); in testExecuteStatement()
125 statement1.close(); in testSimpleQuery()
126 statement2.close(); in testSimpleQuery()
138 statement.close(); in testStatementLongBinding()
148 c.close(); in testStatementLongBinding()
160 statement.close(); in testStatementStringBinding()
170 c.close(); in testStatementStringBinding()
183 statement.close(); in testStatementClearBindings()
192 c.close(); in testStatementClearBindings()
[all …]
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()
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.java104 mDatabase.close(); in closeAndDeleteDatabase()
113 db.close(); in testOpenDatabase()
120 db.close(); in testOpenDatabase()
126 db.close(); in testOpenDatabase()
131 db.close(); in testOpenDatabase()
331 database.close(); in testAccessPageSize()
356 insertStatement.close(); in testCompileStatement()
357 cursor.close(); in testCompileStatement()
366 cursor.close(); in testCompileStatement()
374 deleteStatement.close(); in testCompileStatement()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java66 mAssetFileDes.close(); in tearDown()
80 assetFileDes.close(); in testConstructor()
86 assetFileDes.close(); in testConstructor()
92 assetFileDes.close(); in testConstructor()
109 mOutputStream.close(); in testInputOutputStream()
123 mAssetFileDes.close(); in testInputOutputStream()
140 mInputStream.close(); in testInputOutputStream()
154 mAssetFileDes.close(); in testInputOutputStream()
159 mAssetFileDes.close(); in testInputOutputStream()
170 mAssetFileDes.close(); in testInputOutputStream()
/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 verifyException(doc::close, IllegalStateException.class); in closeWithOpenPage()
109 doc.close(); in closeWithOpenPage()
121 doc.close(); in writeEmptyDoc()
137 doc.close(); in writeWithOpenPage()
[all …]
DPdfRendererTest.java99 renderer.close(); in rendererRecoversAfterFailure()
101 firstRenderer.close(); in rendererRecoversAfterFailure()
107 renderer.close(); in useRendererAfterClose()
109 verifyException(renderer::close, IllegalStateException.class); in useRendererAfterClose()
119 page.close(); in usePageAfterClose()
126 verifyException(page::close, IllegalStateException.class); in usePageAfterClose()
133 renderer.close(); in usePageAfterClose()
141 verifyException(renderer::close, IllegalStateException.class); in closeWithOpenPage()
143 page.close(); in closeWithOpenPage()
144 renderer.close(); in closeWithOpenPage()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DVpnServiceTest.java56 descriptor.close(); in testEstablish()
70 socket.close(); in testProtect_DatagramSocket()
84 socket.close(); in testProtect_Socket()
99 descriptor.close(); in testProtect_int()
104 socket.close(); in testProtect_int()
/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/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java76 doc.close(); in createWithNullContext()
87 doc.close(); in startPage()
102 doc.close(); in oneMilPageSize()
123 doc.close(); in getPageWidth()
133 doc.close(); in getPageHeight()
144 doc.close(); in getContentRect()
158 doc.close(); in getContentRectBigMargins()
167 doc.close(); in getPageHeightAfterClose()
177 doc.close(); in getPageWidthAfterClose()
187 doc.close(); in getContentRectAfterClose()
/cts/tools/dasm/src/dasm/
DMain.java90 close(inp); in assemble()
101 close(inp); in assemble()
161 close(hr_outp); in assemble()
162 close(outp); in assemble()
169 close(hr_outp); in assemble()
170 close(outp); in assemble()
176 private static void close(Closeable c) { in close() method in Main
179 c.close(); in close()
/cts/tests/tests/security/src/android/security/cts/
DARTBootASLRTest.java51 bufReader.close(); in testARTASLR()
52 reader.close(); in testARTASLR()
53 ins.close(); in testARTASLR()
DMediaServerCrashTest.java59 mOnPrepareCalled.close(); in setUp()
60 mOnCompletionCalled.close(); in setUp()
104 afd.close(); in testIfMediaServerDied()
135 dmStream.close(); in checkIfMediaServerDiedForDrm()
136 flFile.close(); in checkIfMediaServerDiedForDrm()
148 flFd.close(); in checkIfMediaServerDiedForDrm()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java66 mWriter.close(); in tearDown()
121 reader.close(); in testAbandonedSurfaceExceptions()
130 writer.close(); in testAbandonedSurfaceExceptions()
141 reader.close(); in testAbandonedSurfaceExceptions()
149 writer.close(); in testAbandonedSurfaceExceptions()
253 cameraImage.close(); in readerWriterFormatTestByCamera()
254 outputImage.close(); in readerWriterFormatTestByCamera()
288 outputImage.close(); in readerWriterFormatTestByCamera()
295 mReader.close(); in readerWriterFormatTestByCamera()
297 mReaderForWriter.close(); in readerWriterFormatTestByCamera()
[all …]
/cts/tests/tests/provider/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/net/jni/
DNativeMultinetworkJni.c87 close(fd); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork()
150 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
161 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
170 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
203 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
221 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
228 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
235 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_Genres_MembersTest.java48 c.close(); in setUp()
54 c.close(); in setUp()
72 c.close(); in testGetContentUri()
78 c.close(); in testGetContentUri()
99 c.close(); in testStoreAudioGenresMembersExternal()
150 c.close(); in testStoreAudioGenresMembersExternal()
160 c.close(); in testStoreAudioGenresMembersExternal()
170 c.close(); in testStoreAudioGenresMembersExternal()
185 c.close(); in testStoreAudioGenresMembersExternal()
194 c.close(); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Images_ThumbnailsTest.java81 c.close(); in testQueryInternalThumbnails()
104 c.close(); in testQueryInternalThumbnails()
112 c.close(); in testQueryInternalThumbnails()
137 c.close(); in testQueryExternalMiniThumbnails()
148 c.close(); in testQueryExternalMiniThumbnails()
155 c.close(); in testQueryExternalMiniThumbnails()
177 c2.close(); in testQueryExternalMiniThumbnails()
180 c.close(); in testQueryExternalMiniThumbnails()
189 c.close(); in testQueryExternalMiniThumbnails()
203 c.close(); in testQueryExternalMiniThumbnails()
[all …]
DMediaStore_Audio_ArtistsTest.java44 c.close(); in testGetContentUri()
48 c.close(); in testGetContentUri()
90 c.close(); in testStoreAudioArtists()
118 c.close(); in testStoreAudioArtists()
123 c.close(); in testStoreAudioArtists()
130 c.close(); in testStoreAudioArtists()
DSearchRecentSuggestionsTest.java65 c.close(); in testSearchRecentSuggestions()
81 c.close(); in testSearchRecentSuggestions()
113 c.close(); in testSearchRecentSuggestions()
119 c.close(); in testSearchRecentSuggestions()
153 cursor.close(); in testSuggestionsTable()
182 cursor.close(); in testSuggestionsTable()
208 cursor.close(); in waitForCursorCount()
/cts/tools/vm-tests-tf/src/util/build/
DDasmBuildStep.java67 close(inp); in assemble()
81 close(inp); in assemble()
135 close(outp); in assemble()
142 close(outp); in assemble()
148 private static void close(Closeable c) { in close() method in DasmBuildStep
152 c.close(); in close()
/cts/common/device-side/util/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/tests/media/src/android/media/cts/
DMediaCasTest.java186 mediaCas.close(); in testEnumeratePlugins()
189 descrambler.close(); in testEnumeratePlugins()
218 unsupportedCAS.close(); in testInvalidSystemIdFails()
221 unsupportedDescrambler.close(); in testInvalidSystemIdFails()
303 session.close(); in testClearKeyApis()
304 streamSession.close(); in testClearKeyApis()
307 mediaCas.close(); in testClearKeyApis()
310 descrambler.close(); in testClearKeyApis()
337 mediaCas.close(); in testClearKeySessionClosedAfterRelease()
356 mediaCas.close(); in testClearKeySessionClosedAfterRelease()
[all …]
/cts/libs/vogar-expect/src/vogar/util/
DIoUtils.java28 c.close(); in closeQuietly()
37 c.close(); in closeQuietly()

12345678910>>...23