Home
last modified time | relevance | path

Searched refs:TDevice (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceStateMachine.java51 public class SingleDeviceStateMachine<TDevice, TKey> implements SingleDeviceCloseListener,
52 SingleDeviceOpenListener<TDevice> {
71 private final SingleDeviceActions<TDevice> mDeviceActions;
87 private SingleDeviceRequest<TDevice> mDeviceRequest;
91 private TDevice mOpenDevice;
98 public SingleDeviceStateMachine(SingleDeviceActions<TDevice> deviceActions, in SingleDeviceStateMachine()
152 public void setRequest(final SingleDeviceRequest<TDevice> deviceRequest) { in setRequest()
160 SingleDeviceRequest<TDevice> previous = mDeviceRequest; in setRequest()
183 public void onDeviceOpened(TDevice device) { in onDeviceOpened()
215 public void onDeviceOpenException(TDevice tDevice) { in onDeviceOpenException()
[all …]
DMultiCameraDeviceLifecycle.java280 private <TDevice> ListenableFuture<TDevice> openDevice(Lifetime requestLifetime, in openDevice()
281 CameraDeviceKey key, CameraDeviceActionProvider<TDevice> provider) { in openDevice()
283 final SingleDeviceLifecycle<TDevice, CameraDeviceKey> deviceLifecycle; in openDevice()
284 final ListenableFuture<TDevice> result; in openDevice()
300 (SingleDeviceLifecycle<TDevice, CameraDeviceKey>) mCurrentDevice; in openDevice()
319 private <TDevice> SingleDeviceLifecycle<TDevice, CameraDeviceKey>
321 CameraDeviceActionProvider<TDevice> provider) { in createLifecycle()
330 SingleDeviceStateMachine<TDevice, CameraDeviceKey> deviceState = in createLifecycle()
DCameraDeviceLifecycle.java34 public class CameraDeviceLifecycle<TDevice> implements
35 SingleDeviceLifecycle<TDevice, CameraDeviceKey> {
41 private final SingleDeviceStateMachine<TDevice, CameraDeviceKey> mDeviceState;
45 private SingleDeviceRequest<TDevice> mDeviceRequest;
50 SingleDeviceStateMachine<TDevice, CameraDeviceKey> deviceState) { in CameraDeviceLifecycle() argument
62 public ListenableFuture<TDevice> createRequest(Lifetime lifetime) { in createRequest()
DSingleDeviceRequest.java33 public class SingleDeviceRequest<TDevice> implements SafeCloseable {
34 private final SettableFuture<TDevice> mFuture;
47 public ListenableFuture<TDevice> getFuture() { in getFuture()
61 public boolean set(TDevice device) { in set()
DSingleDeviceOpenListener.java22 public interface SingleDeviceOpenListener<TDevice> {
27 public void onDeviceOpened(TDevice device); in onDeviceOpened()
38 public void onDeviceOpenException(TDevice device); in onDeviceOpenException()
DSingleDeviceActions.java24 public interface SingleDeviceActions<TDevice> {
34 public void executeOpen(SingleDeviceOpenListener<TDevice> openListener, in executeOpen()
42 public void executeClose(SingleDeviceCloseListener closeListener, TDevice device) in executeClose()
DCameraDeviceActionProvider.java30 public interface CameraDeviceActionProvider<TDevice> {
36 public SingleDeviceActions<TDevice> get(CameraDeviceKey key); in get()
DSingleDeviceLifecycle.java26 public interface SingleDeviceLifecycle<TDevice, TKey> extends SafeCloseable {
37 public ListenableFuture<TDevice> createRequest(Lifetime lifetime); in createRequest()