Home
last modified time | relevance | path

Searched refs:mCloseGuard (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/java/android/hardware/location/
DContextHubClient.java51 private final CloseGuard mCloseGuard; field in ContextHubClient
65 mCloseGuard = null; in ContextHubClient()
67 mCloseGuard = CloseGuard.get(); in ContextHubClient()
68 mCloseGuard.open("close"); in ContextHubClient()
111 if (mCloseGuard != null) { in close()
112 mCloseGuard.close(); in close()
152 if (mCloseGuard != null) { in finalize()
153 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/tests/coretests/src/android/util/
DCloseGuardTest.java74 private final CloseGuard mCloseGuard; field in CloseGuardTest.ResourceOwner
77 mCloseGuard = new CloseGuard(); in ResourceOwner()
81 mCloseGuard.open("close"); in open()
85 mCloseGuard.close(); in close()
94 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfRenderer.java114 private final CloseGuard mCloseGuard = CloseGuard.get(); field in PdfRenderer
181 mCloseGuard.open("close"); in PdfRenderer()
239 if (mCloseGuard != null) { in finalize()
240 mCloseGuard.warnIfOpen(); in finalize()
267 mCloseGuard.close(); in doClose()
293 private final CloseGuard mCloseGuard = CloseGuard.get(); field in PdfRenderer.Page
319 mCloseGuard.open("close"); in Page()
460 if (mCloseGuard != null) { in finalize()
461 mCloseGuard.warnIfOpen(); in finalize()
478 mCloseGuard.close(); in doClose()
DPdfDocument.java81 private final CloseGuard mCloseGuard = CloseGuard.get(); field in PdfDocument
94 mCloseGuard.open("close"); in PdfDocument()
205 if (mCloseGuard != null) { in finalize()
206 mCloseGuard.warnIfOpen(); in finalize()
218 mCloseGuard.close(); in dispose()
DPdfEditor.java40 private final CloseGuard mCloseGuard = CloseGuard.get(); field in PdfEditor
93 mCloseGuard.open("close"); in PdfEditor()
278 if (mCloseGuard != null) { in finalize()
279 mCloseGuard.warnIfOpen(); in finalize()
300 mCloseGuard.close(); in doClose()
/frameworks/base/core/java/android/net/
DIpSecManager.java154 private final CloseGuard mCloseGuard = CloseGuard.get(); field in IpSecManager.SecurityParameterIndex
182 mCloseGuard.close(); in close()
189 if (mCloseGuard != null) { in finalize()
190 mCloseGuard.warnIfOpen(); in finalize()
237 mCloseGuard.open("open"); in SecurityParameterIndex()
550 private final CloseGuard mCloseGuard = CloseGuard.get(); field in IpSecManager.UdpEncapsulationSocket
574 mCloseGuard.open("constructor"); in UdpEncapsulationSocket()
610 mCloseGuard.close(); in close()
624 if (mCloseGuard != null) { in finalize()
625 mCloseGuard.warnIfOpen(); in finalize()
[all …]
DIpSecTransform.java142 mCloseGuard.open("build"); in activate()
178 mCloseGuard.close(); in close()
193 mCloseGuard.close(); in close()
200 if (mCloseGuard != null) { in finalize()
201 mCloseGuard.warnIfOpen(); in finalize()
214 private final CloseGuard mCloseGuard = CloseGuard.get(); field in IpSecTransform
/frameworks/base/core/java/android/view/
DInputEventSender.java35 private final CloseGuard mCloseGuard = CloseGuard.get(); field in InputEventSender
69 mCloseGuard.open("dispose"); in InputEventSender()
89 if (mCloseGuard != null) { in dispose()
91 mCloseGuard.warnIfOpen(); in dispose()
93 mCloseGuard.close(); in dispose()
DDisplayEventReceiver.java72 private final CloseGuard mCloseGuard = CloseGuard.get(); field in DisplayEventReceiver
114 mCloseGuard.open("dispose"); in DisplayEventReceiver()
134 if (mCloseGuard != null) { in dispose()
136 mCloseGuard.warnIfOpen(); in dispose()
138 mCloseGuard.close(); in dispose()
DInputEventReceiver.java36 private final CloseGuard mCloseGuard = CloseGuard.get(); field in InputEventReceiver
74 mCloseGuard.open("dispose"); in InputEventReceiver()
94 if (mCloseGuard != null) { in dispose()
96 mCloseGuard.warnIfOpen(); in dispose()
98 mCloseGuard.close(); in dispose()
DInputQueue.java40 private final CloseGuard mCloseGuard = CloseGuard.get(); field in InputQueue
54 mCloseGuard.open("dispose"); in InputQueue()
73 if (mCloseGuard != null) { in dispose()
75 mCloseGuard.warnIfOpen(); in dispose()
77 mCloseGuard.close(); in dispose()
/frameworks/base/core/java/android/hardware/
DSensorDirectChannel.java138 mCloseGuard.close(); in close()
198 mCloseGuard.open("SensorDirectChannel"); in SensorDirectChannel()
224 if (mCloseGuard != null) { in finalize()
225 mCloseGuard.warnIfOpen(); in finalize()
235 private final CloseGuard mCloseGuard = CloseGuard.get(); field in SensorDirectChannel
/frameworks/base/core/java/android/util/
DMemoryIntArray.java55 private final CloseGuard mCloseGuard = CloseGuard.get(); field in MemoryIntArray
76 mCloseGuard.open("close"); in MemoryIntArray()
87 mCloseGuard.open("close"); in MemoryIntArray()
147 mCloseGuard.close(); in close()
161 if (mCloseGuard != null) { in finalize()
162 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/services/core/java/com/android/server/tv/
DUinputBridge.java30 private final CloseGuard mCloseGuard = CloseGuard.get(); field in UinputBridge
60 mCloseGuard.open("close"); in UinputBridge()
66 if (mCloseGuard != null) { in finalize()
67 mCloseGuard.warnIfOpen(); in finalize()
83 mCloseGuard.close(); in close()
/frameworks/base/wifi/java/android/net/wifi/aware/
DDiscoverySession.java61 private final CloseGuard mCloseGuard = CloseGuard.get(); field in DiscoverySession
86 mCloseGuard.open("close"); in DiscoverySession()
110 mCloseGuard.close(); in close()
127 mCloseGuard.close(); in setTerminated()
134 if (mCloseGuard != null) { in finalize()
135 mCloseGuard.warnIfOpen(); in finalize()
DWifiAwareSession.java48 private final CloseGuard mCloseGuard = CloseGuard.get(); field in WifiAwareSession
59 mCloseGuard.open("close"); in WifiAwareSession()
82 mCloseGuard.close(); in close()
89 if (mCloseGuard != null) { in finalize()
90 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java53 private final CloseGuard mCloseGuard = CloseGuard.get(); field in UsbDeviceConnection
68 mCloseGuard.open("close"); in open()
92 mCloseGuard.close(); in close()
366 if (mCloseGuard != null) { in finalize()
367 mCloseGuard.warnIfOpen(); in finalize()
DUsbRequest.java79 private final CloseGuard mCloseGuard = CloseGuard.get(); field in UsbRequest
105 mCloseGuard.open("close"); in initialize()
119 mCloseGuard.close(); in close()
126 if (mCloseGuard != null) { in finalize()
127 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/java/android/hardware/lights/
DLightsManager.java143 private final CloseGuard mCloseGuard = new CloseGuard(); field in LightsManager.LightsSession
151 mCloseGuard.open("close"); in LightsSession()
185 mCloseGuard.close(); in close()
197 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/media/java/android/mtp/
DMtpDevice.java52 private CloseGuard mCloseGuard = CloseGuard.get(); field in MtpDevice
98 mCloseGuard.open("close"); in open()
113 mCloseGuard.close(); in close()
126 if (mCloseGuard != null) { in finalize()
127 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/java/android/app/prediction/
DAppPredictor.java80 private final CloseGuard mCloseGuard = CloseGuard.get(); field in AppPredictor
107 mCloseGuard.open("close"); in AppPredictor()
254 mCloseGuard.close(); in destroy()
271 if (mCloseGuard != null) { in finalize()
272 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/java/android/database/
DCursorWindow.java62 private final CloseGuard mCloseGuard = CloseGuard.get(); field in CursorWindow
143 mCloseGuard.open("close"); in CursorWindow()
172 mCloseGuard.open("close"); in CursorWindow()
178 if (mCloseGuard != null) { in finalize()
179 mCloseGuard.warnIfOpen(); in finalize()
188 if (mCloseGuard != null) { in dispose()
189 mCloseGuard.close(); in dispose()
/frameworks/base/media/java/android/media/
DMediaMuxer.java318 private final CloseGuard mCloseGuard = CloseGuard.get(); field in MediaMuxer
374 mCloseGuard.open("release"); in setUpMediaMuxer()
475 if (mCloseGuard != null) { in finalize()
476 mCloseGuard.warnIfOpen(); in finalize()
710 mCloseGuard.close(); in release()
/frameworks/base/core/java/android/content/
DContentProviderClient.java87 private final CloseGuard mCloseGuard = CloseGuard.get(); field in ContentProviderClient
110 mCloseGuard.open("close"); in ContentProviderClient()
587 mCloseGuard.close(); in closeInternal()
606 if (mCloseGuard != null) { in finalize()
607 mCloseGuard.warnIfOpen(); in finalize()
650 private final CloseGuard mCloseGuard = CloseGuard.get(); field in ContentProviderClient.CursorWrapperInner
654 mCloseGuard.open("close"); in CursorWrapperInner()
659 mCloseGuard.close(); in close()
666 if (mCloseGuard != null) { in finalize()
667 mCloseGuard.warnIfOpen(); in finalize()
/frameworks/base/core/java/android/bluetooth/
DBluetoothMap.java48 private CloseGuard mCloseGuard; field in BluetoothMap
91 mCloseGuard = new CloseGuard(); in BluetoothMap()
92 mCloseGuard.open("close"); in BluetoothMap()
97 if (mCloseGuard != null) { in finalize()
98 mCloseGuard.warnIfOpen(); in finalize()

12