blob: 80ede585cd6d2ee5e4ee87ec04692686a924e25f [file] [log] [blame]
// Signature format: 4.0
package androidx.camera.testing.fakes {
public final class FakeAppConfig {
method public static androidx.camera.core.CameraXConfig create();
method public static androidx.camera.core.CameraXConfig create(androidx.camera.core.CameraSelector?);
}
public class FakeCamera implements androidx.camera.core.Camera {
ctor public FakeCamera();
ctor public FakeCamera(androidx.camera.core.impl.CameraControlInternal);
ctor public FakeCamera(androidx.camera.core.impl.CameraControlInternal?, androidx.camera.core.impl.CameraInfoInternal);
ctor public FakeCamera(String);
ctor public FakeCamera(String, androidx.camera.core.impl.CameraControlInternal?, androidx.camera.core.impl.CameraInfoInternal);
method public void attachUseCases(java.util.Collection<androidx.camera.core.UseCase!>);
method public void close();
method public void detachUseCases(java.util.Collection<androidx.camera.core.UseCase!>);
method public java.util.Set<androidx.camera.core.UseCase!> getAttachedUseCases();
method @IntRange(from=0) public int getAvailableCameraCount();
method public androidx.camera.core.impl.CameraControlInternal getCameraControlInternal();
method public androidx.camera.core.impl.CameraInfoInternal getCameraInfoInternal();
method public androidx.camera.core.impl.Observable<androidx.camera.core.impl.CameraInternal.State!> getCameraState();
method public androidx.camera.core.impl.CameraConfig getExtendedConfig();
method public boolean getHasTransform();
method public java.util.List<androidx.camera.core.UseCase!> getUseCaseActiveHistory();
method public java.util.List<androidx.camera.core.UseCase!> getUseCaseInactiveHistory();
method public java.util.List<androidx.camera.core.UseCase!> getUseCaseResetHistory();
method public java.util.List<androidx.camera.core.UseCase!> getUseCaseUpdateHistory();
method public void onUseCaseActive(androidx.camera.core.UseCase);
method public void onUseCaseInactive(androidx.camera.core.UseCase);
method public void onUseCaseReset(androidx.camera.core.UseCase);
method public void onUseCaseUpdated(androidx.camera.core.UseCase);
method public void open();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> release();
method public void setAvailableCameraCount(@IntRange(from=0) int);
method public void setExtendedConfig(androidx.camera.core.impl.CameraConfig?);
method public void setHasTransform(boolean);
}
public final class FakeCameraCaptureResult {
ctor public FakeCameraCaptureResult();
method public androidx.camera.core.impl.CameraCaptureMetaData.AeMode getAeMode();
method public androidx.camera.core.impl.CameraCaptureMetaData.AeState getAeState();
method public androidx.camera.core.impl.CameraCaptureMetaData.AfMode getAfMode();
method public androidx.camera.core.impl.CameraCaptureMetaData.AfState getAfState();
method public androidx.camera.core.impl.CameraCaptureMetaData.AwbMode getAwbMode();
method public androidx.camera.core.impl.CameraCaptureMetaData.AwbState getAwbState();
method public androidx.camera.core.impl.CameraCaptureMetaData.FlashState getFlashState();
method public androidx.camera.core.impl.TagBundle getTagBundle();
method public long getTimestamp();
method public void setAeMode(androidx.camera.core.impl.CameraCaptureMetaData.AeMode);
method public void setAeState(androidx.camera.core.impl.CameraCaptureMetaData.AeState);
method public void setAfMode(androidx.camera.core.impl.CameraCaptureMetaData.AfMode);
method public void setAfState(androidx.camera.core.impl.CameraCaptureMetaData.AfState);
method public void setAwbMode(androidx.camera.core.impl.CameraCaptureMetaData.AwbMode);
method public void setAwbState(androidx.camera.core.impl.CameraCaptureMetaData.AwbState);
method public void setFlashState(androidx.camera.core.impl.CameraCaptureMetaData.FlashState);
method public void setTagBundle(androidx.camera.core.impl.TagBundle);
method public void setTimestamp(long);
}
public static final class FakeCameraCaptureResult.Builder {
ctor public FakeCameraCaptureResult.Builder();
method public androidx.camera.testing.fakes.FakeCameraCaptureResult build();
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setAeState(androidx.camera.core.impl.CameraCaptureMetaData.AeState?);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setAfMode(androidx.camera.core.impl.CameraCaptureMetaData.AfMode?);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setAfState(androidx.camera.core.impl.CameraCaptureMetaData.AfState?);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setAwbState(androidx.camera.core.impl.CameraCaptureMetaData.AwbState?);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setFlashState(androidx.camera.core.impl.CameraCaptureMetaData.FlashState?);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setTagBundle(androidx.camera.core.impl.TagBundle);
method public androidx.camera.testing.fakes.FakeCameraCaptureResult.Builder setTimestamp(long);
}
public final class FakeCameraControl implements androidx.camera.core.CameraControl {
ctor public FakeCameraControl();
ctor public FakeCameraControl(androidx.camera.core.impl.CameraControlInternal.ControlUpdateCallback);
ctor public FakeCameraControl(java.util.concurrent.Executor, androidx.camera.core.impl.CameraControlInternal.ControlUpdateCallback);
method public void addInteropConfig(androidx.camera.core.impl.Config);
method public void addZslConfig(androidx.camera.core.impl.SessionConfig.Builder);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> cancelFocusAndMetering();
method public void clearInteropConfig();
method public void clearNewCaptureRequestListener();
method public void completeAllCaptureRequests(androidx.camera.testing.imagecapture.CaptureResult);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> enableTorch(boolean);
method public int getExposureCompensationIndex();
method public int getFlashMode();
method public androidx.camera.core.impl.Config getInteropConfig();
method public androidx.camera.core.FocusMeteringAction? getLastSubmittedFocusMeteringAction();
method public float getLinearZoom();
method public androidx.camera.core.ImageCapture.ScreenFlash? getScreenFlash();
method public android.graphics.Rect getSensorRect();
method public androidx.camera.core.impl.SessionConfig getSessionConfig();
method public boolean getTorchEnabled();
method public float getZoomRatio();
method public boolean isZslConfigAdded();
method public boolean isZslDisabledByByUserCaseConfig();
method @Deprecated public void notifyAllRequestsOnCaptureCancelled();
method @Deprecated public void notifyAllRequestsOnCaptureCompleted(androidx.camera.core.impl.CameraCaptureResult);
method @Deprecated public void notifyAllRequestsOnCaptureFailed();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Integer!> setExposureCompensationIndex(int);
method public void setFlashMode(int);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setLinearZoom(float);
method public void setOnNewCaptureRequestListener(androidx.camera.testing.fakes.FakeCameraControl.OnNewCaptureRequestListener);
method public void setOnNewCaptureRequestListener(java.util.concurrent.Executor, androidx.camera.testing.fakes.FakeCameraControl.OnNewCaptureRequestListener);
method public void setScreenFlash(androidx.camera.core.ImageCapture.ScreenFlash?);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setZoomRatio(float);
method public void setZslDisabledByUserCaseConfig(boolean);
method public com.google.common.util.concurrent.ListenableFuture<androidx.camera.core.FocusMeteringResult!> startFocusAndMetering(androidx.camera.core.FocusMeteringAction);
method public void submitCaptureResult(androidx.camera.testing.imagecapture.CaptureResult);
method public com.google.common.util.concurrent.ListenableFuture<java.util.List<java.lang.Void!>!> submitStillCaptureRequests(java.util.List<androidx.camera.core.impl.CaptureConfig!>, int, int);
field public static final androidx.camera.core.impl.CameraControlInternal DEFAULT_EMPTY_INSTANCE;
}
public static interface FakeCameraControl.OnNewCaptureRequestListener {
method public void onNewCaptureRequests(java.util.List<androidx.camera.core.impl.CaptureConfig!>);
}
public final class FakeCameraInfoInternal implements androidx.camera.core.CameraInfo {
ctor public FakeCameraInfoInternal();
ctor public FakeCameraInfoInternal(int, int);
ctor public FakeCameraInfoInternal(String);
ctor public FakeCameraInfoInternal(String, int);
ctor public FakeCameraInfoInternal(String, int, int);
method public void addCameraQuirk(androidx.camera.core.impl.Quirk);
method public void addSessionCaptureCallback(java.util.concurrent.Executor, androidx.camera.core.impl.CameraCaptureCallback);
method public String getCameraId();
method public androidx.camera.core.impl.Quirks getCameraQuirks();
method public androidx.lifecycle.LiveData<androidx.camera.core.CameraState!> getCameraState();
method public androidx.camera.core.impl.EncoderProfilesProvider getEncoderProfilesProvider();
method public androidx.camera.core.ExposureState getExposureState();
method public String getImplementationType();
method public int getSensorRotationDegrees();
method public int getSensorRotationDegrees(int);
method public java.util.Set<androidx.camera.core.DynamicRange!> getSupportedDynamicRanges();
method public java.util.List<android.util.Size!> getSupportedHighResolutions(int);
method public java.util.List<android.util.Size!> getSupportedResolutions(int);
method public androidx.camera.core.impl.Timebase getTimebase();
method public androidx.lifecycle.LiveData<java.lang.Integer!> getTorchState();
method public androidx.lifecycle.LiveData<androidx.camera.core.ZoomState!> getZoomState();
method public boolean hasFlashUnit();
method public boolean isPreviewStabilizationSupported();
method public boolean isPrivateReprocessingSupported();
method public boolean isVideoStabilizationSupported();
method public void removeSessionCaptureCallback(androidx.camera.core.impl.CameraCaptureCallback);
method public void setEncoderProfilesProvider(androidx.camera.core.impl.EncoderProfilesProvider);
method public void setExposureState(int, android.util.Range<java.lang.Integer!>, android.util.Rational, boolean);
method public void setImplementationType(String);
method public void setIntrinsicZoomRatio(float);
method public void setIsFocusMeteringSupported(boolean);
method public void setPrivateReprocessingSupported(boolean);
method public void setSupportedDynamicRanges(java.util.Set<androidx.camera.core.DynamicRange!>);
method public void setSupportedHighResolutions(int, java.util.List<android.util.Size!>);
method public void setSupportedResolutions(int, java.util.List<android.util.Size!>);
method public void setTimebase(androidx.camera.core.impl.Timebase);
method public void setTorch(int);
method public void setZoom(float, float, float, float);
}
}
package androidx.camera.testing.imagecapture {
public final class CaptureResult {
method public static androidx.camera.testing.imagecapture.CaptureResult cancelledResult();
method public static androidx.camera.testing.imagecapture.CaptureResult failedResult();
method public androidx.camera.testing.fakes.FakeCameraCaptureResult? getCameraCaptureResult();
method public int getCaptureStatus();
method public static androidx.camera.testing.imagecapture.CaptureResult successfulResult();
method public static androidx.camera.testing.imagecapture.CaptureResult successfulResult(optional androidx.camera.testing.fakes.FakeCameraCaptureResult fakeCameraCaptureResult);
property public final androidx.camera.testing.fakes.FakeCameraCaptureResult? cameraCaptureResult;
property public final int captureStatus;
field public static final int CAPTURE_STATUS_CANCELLED = 2; // 0x2
field public static final int CAPTURE_STATUS_FAILED = 1; // 0x1
field public static final int CAPTURE_STATUS_SUCCESSFUL = 0; // 0x0
field public static final androidx.camera.testing.imagecapture.CaptureResult.Companion Companion;
}
public static final class CaptureResult.Companion {
method public androidx.camera.testing.imagecapture.CaptureResult cancelledResult();
method public androidx.camera.testing.imagecapture.CaptureResult failedResult();
method public androidx.camera.testing.imagecapture.CaptureResult successfulResult();
method public androidx.camera.testing.imagecapture.CaptureResult successfulResult(optional androidx.camera.testing.fakes.FakeCameraCaptureResult fakeCameraCaptureResult);
property public static final int CAPTURE_STATUS_CANCELLED;
property public static final int CAPTURE_STATUS_FAILED;
property public static final int CAPTURE_STATUS_SUCCESSFUL;
}
}