Home
last modified time | relevance | path

Searched refs:SafeCloseable (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/async/
DLifetime.java36 public class Lifetime implements SafeCloseable {
42 private final Set<SafeCloseable> mCloseables;
47 mCloseables = new HashSet<SafeCloseable>(); in Lifetime()
54 mCloseables = new HashSet<SafeCloseable>(); in Lifetime()
63 public <T extends SafeCloseable> T add(T closeable) { in add()
80 List<SafeCloseable> toClose = new ArrayList<SafeCloseable>(); in close()
96 for (SafeCloseable closeable : toClose) { in close()
DObservables.java36 private static final SafeCloseable NOOP_CALLBACK_HANDLE = new SafeCloseable() {
63 public SafeCloseable addCallback(Runnable callback, Executor executor) { in transform()
102 public SafeCloseable addCallback(Runnable callback, Executor executor) {
110 public static <T> SafeCloseable addThreadSafeCallback(final Observable<T> observable,
DHandlerFactory.java35 lifetime.add(new SafeCloseable() { in create()
56 lifetime.add(new SafeCloseable() { in create()
DRefCountBase.java26 public class RefCountBase<T extends SafeCloseable> implements SafeCloseable {
DListenable.java25 public class Listenable<T> implements SafeCloseable {
30 private SafeCloseable mExistingCallbackHandle;
DConcurrentState.java76 public SafeCloseable addCallback(Runnable callback, Executor executor) { in addCallback()
79 return new SafeCloseable() { in addCallback()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DBasicCameraFactory.java27 import com.android.camera.async.SafeCloseable;
128 SafeCloseable zoomCallback = zoom.addCallback(mPreviewUpdater, MoreExecutors in BasicCameraFactory()
131 SafeCloseable flashCallback = flash.addCallback(mPreviewUpdater, MoreExecutors in BasicCameraFactory()
134 SafeCloseable exposureCallback = exposure.addCallback(mPreviewUpdater, MoreExecutors in BasicCameraFactory()
137 SafeCloseable hdrCallback = hdrSceneSetting.addCallback(mPreviewUpdater, MoreExecutors in BasicCameraFactory()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingObserver.java20 import com.android.camera.async.SafeCloseable;
34 private class Listener implements SettingsManager.OnSettingChangedListener, SafeCloseable {
87 public SafeCloseable addCallback(@Nonnull Runnable callback, @Nonnull Executor executor) { in addCallback()
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DGenericOneCameraImpl.java24 import com.android.camera.async.SafeCloseable;
55 private final SafeCloseable mCloseListener;
69 public GenericOneCameraImpl(SafeCloseable closeListener, PictureTaker pictureTaker, in GenericOneCameraImpl()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DTicket.java19 import com.android.camera.async.SafeCloseable;
28 public interface Ticket extends SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruResourcePool.java19 import com.android.camera.async.SafeCloseable;
40 public interface Resource<T> extends SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceLifecycle.java20 import com.android.camera.async.SafeCloseable;
26 public interface SingleDeviceLifecycle<TDevice, TKey> extends SafeCloseable {
DSingleDeviceRequest.java20 import com.android.camera.async.SafeCloseable;
33 public class SingleDeviceRequest<TDevice> implements SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceSurfaceTexture.java19 import com.android.camera.async.SafeCloseable;
31 public interface ResourceSurfaceTexture extends SafeCloseable {
DResourceOpenedCamera.java22 import com.android.camera.async.SafeCloseable;
33 public interface ResourceOpenedCamera extends SafeCloseable {
DResourceCaptureTools.java21 import com.android.camera.async.SafeCloseable;
36 public interface ResourceCaptureTools extends SafeCloseable {
DResourceConstructed.java29 import com.android.camera.async.SafeCloseable;
43 public interface ResourceConstructed extends SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/burst/
DSurfaceTextureContainer.java22 import com.android.camera.async.SafeCloseable;
28 public class SurfaceTextureContainer implements SafeCloseable {
DRingBuffer.java21 import com.android.camera.async.SafeCloseable;
32 class RingBuffer<T extends ImageProxy> implements SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DImageProxy.java21 import com.android.camera.async.SafeCloseable;
37 public interface ImageProxy extends SafeCloseable {
DImageReaderProxy.java23 import com.android.camera.async.SafeCloseable;
33 public interface ImageReaderProxy extends SafeCloseable {
DCameraDeviceProxy.java24 import com.android.camera.async.SafeCloseable;
35 public interface CameraDeviceProxy extends SafeCloseable {
DCameraCaptureSessionProxy.java28 import com.android.camera.async.SafeCloseable;
38 public interface CameraCaptureSessionProxy extends SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DFrameServer.java21 import com.android.camera.async.SafeCloseable;
39 public interface Session extends SafeCloseable {
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DImageSaver.java20 import com.android.camera.async.SafeCloseable;
47 public interface ImageSaver extends SafeCloseable {

12