/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 24 import com.android.messaging.ui.mediapicker.CameraManager.CameraWrapper; 34 CameraManager.setCameraWrapper(null); in setUp() 44 CameraManager.setCameraWrapper(MockCameraFactory.createCameraWrapper()); in testNoCameraDeviceGetInfo() 45 assertEquals(false, CameraManager.get().hasAnyCamera()); in testNoCameraDeviceGetInfo() 46 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testNoCameraDeviceGetInfo() 48 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testNoCameraDeviceGetInfo() 55 CameraManager.setCameraWrapper(MockCameraFactory.createCameraWrapper( in testFrontFacingOnlyGetInfo() 58 assertEquals(true, CameraManager.get().hasAnyCamera()); in testFrontFacingOnlyGetInfo() 59 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testFrontFacingOnlyGetInfo() 60 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testFrontFacingOnlyGetInfo() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraMediaChooser.java | 38 import com.android.messaging.ui.mediapicker.CameraManager.MediaCallback; 49 CameraManager.CameraManagerListener { 68 if (CameraManager.get().hasAnyCamera()) { in getSupportedMediaTypes() 77 CameraManager.get().closeCamera(); in destroyView() 78 CameraManager.get().setListener(null); in destroyView() 79 CameraManager.get().setSubscriptionDataProvider(null); in destroyView() 85 CameraManager.get().setListener(this); in createView() 86 CameraManager.get().setSubscriptionDataProvider(this); in createView() 87 CameraManager.get().setVideoMode(false); in createView() 98 if (CameraManager.get().isVideoMode()) { in createView() [all …]
|
D | CameraPreview.java | 96 if (CameraManager.hasCameraPermission()) { in onVisibilityChanged() 98 CameraManager.get().openCamera(); in onVisibilityChanged() 100 CameraManager.get().closeCamera(); in onVisibilityChanged() 118 if (CameraManager.hasCameraPermission()) { in onAttachedToWindow() 119 CameraManager.get().openCamera(); in onAttachedToWindow() 124 CameraManager.get().closeCamera(); in onDetachedFromWindow() 128 if (CameraManager.hasCameraPermission()) { in onRestoreInstanceState() 129 CameraManager.get().openCamera(); in onRestoreInstanceState() 134 CameraManager.get().openCamera(); in onCameraPermissionGranted()
|
D | HardwareCameraPreview.java | 47 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview() 52 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview() 57 CameraManager.get().setSurface(null); in HardwareCameraPreview() 63 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview()
|
D | SoftwareCameraPreview.java | 45 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview() 51 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview() 56 CameraManager.get().setSurface(null); in SoftwareCameraPreview()
|
D | CameraMediaChooserView.java | 45 bundle.putInt(KEY_CAMERA_INDEX, CameraManager.get().getCameraIndex()); in onSaveInstanceState() 56 CameraManager.get().selectCameraByIndex(bundle.getInt(KEY_CAMERA_INDEX)); in onRestoreInstanceState() 71 CameraManager.get().selectCamera(Camera.CameraInfo.CAMERA_FACING_BACK); in resetState()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | CameraComposerFragment.java | 41 import com.android.dialer.callcomposer.camera.CameraManager; 42 import com.android.dialer.callcomposer.camera.CameraManager.CameraManagerListener; 43 import com.android.dialer.callcomposer.camera.CameraManager.MediaCallback; 56 implements CameraManagerListener, OnClickListener, CameraManager.MediaCallback { 136 CameraManager.get().setListener(this); in setupCamera() 138 CameraManager.get().setRenderOverlay(focus); in setupCamera() 139 CameraManager.get().selectCamera(cameraDirection); in setupCamera() 176 CameraManager.get().takePicture(heightPercent, this); in onClick() 179 CameraManager.get().swapCamera(); in onClick() 180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick() [all …]
|
/packages/apps/Settings/src/com/android/settings/flashlight/ |
D | FlashlightSlice.java | 30 import android.hardware.camera2.CameraManager; 105 final CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in onNotifyChange() 120 final CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraId()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/flashlight/ |
D | FlashlightSlice.java | 30 import android.hardware.camera2.CameraManager; 105 final CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in onNotifyChange() 120 final CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraId()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 60 public class CameraManager implements FocusOverlayManager.Listener { class 96 private static CameraManager instance; 148 private CameraManager() { in CameraManager() method in CameraManager 180 public static CameraManager get() { in get() 182 instance = new CameraManager(); in get() 357 "Opening camera " + CameraManager.this.cameraIndex); in openCamera() 379 "Opened camera " + CameraManager.this.cameraIndex + " " + (camera != null)); in openCamera() 399 openCameraTask.execute(CameraManager.this.cameraIndex); in openCamera() 446 if (CameraManager.this.camera != camera) { in takePicture()
|
D | HardwareCameraPreview.java | 48 CameraManager.get().setSurface(preview); in HardwareCameraPreview() 54 CameraManager.get().setSurface(preview); in HardwareCameraPreview() 59 CameraManager.get().setSurface(null); in HardwareCameraPreview() 65 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
|
D | SoftwareCameraPreview.java | 46 CameraManager.get().setSurface(preview); in SoftwareCameraPreview() 55 CameraManager.get().setSurface(preview); in SoftwareCameraPreview() 60 CameraManager.get().setSurface(null); in SoftwareCameraPreview()
|
D | CameraPreview.java | 72 CameraManager.get().openCamera(); in maybeOpenCamera() 125 CameraManager.get().closeCamera(); in onVisibilityChanged() 152 CameraManager.get().closeCamera(); in onDetachedFromWindow()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | Camera2Actions.java | 22 import android.hardware.camera2.CameraManager; 44 private final CameraManager mCameraManager; 50 CameraManager cameraManager, in Camera2Actions() 90 private final CameraManager mCameraManager; 93 public OpenCameraRunnable(CameraManager cameraManager, String cameraId, in OpenCameraRunnable()
|
D | Camera2ActionProvider.java | 20 import android.hardware.camera2.CameraManager; 32 private final CameraManager mCameraManager; 37 public Camera2ActionProvider(CameraManager cameraManager, HandlerFactory handlerFactory, in Camera2ActionProvider()
|
D | CameraModuleHelper.java | 19 import android.hardware.camera2.CameraManager; 46 CameraManager cameraManager = AndroidServices.instance().provideCameraManager(); in provideCamera2ActionProvider()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/cameraui/ |
D | CameraMediaChooserView.java | 27 import com.android.dialer.callcomposer.camera.CameraManager; 49 final int cameraIndex = CameraManager.get().getCameraIndex(); in onSaveInstanceState() 68 CameraManager.get().selectCameraByIndex(cameraIndex); in onRestoreInstanceState() 75 CameraManager.get().selectCamera(Camera.CameraInfo.CAMERA_FACING_BACK); in resetState()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AndroidServices.java | 26 import android.hardware.camera2.CameraManager; 78 public CameraManager provideCameraManager() { in provideCameraManager() 79 CameraManager cameraManager = null; in provideCameraManager() 84 cameraManager = (CameraManager) service; in provideCameraManager()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestVideoProvider.java | 31 import android.hardware.camera2.CameraManager; 66 private CameraManager mCameraManager; 81 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in TestVideoProvider() 329 CameraManager cameraManager = (CameraManager) mContext.getSystemService( in setCameraCapabilities()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | Camera2OneCameraManagerImpl.java | 23 import android.hardware.camera2.CameraManager; 54 CameraManager cameraManager; in create() 66 private final CameraManager mCameraManager; 69 public Camera2OneCameraManagerImpl(CameraManager cameraManger) { in Camera2OneCameraManagerImpl()
|
D | Camera2OneCameraOpenerImpl.java | 24 import android.hardware.camera2.CameraManager; 58 private final CameraManager mCameraManager; 69 CameraManager cameraManager; in create() 92 CameraManager cameraManager, in Camera2OneCameraOpenerImpl()
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorPreviewCamera.java | 25 import android.hardware.camera2.CameraManager; 62 .getSystemService(CameraManager.class) in startCamera() 86 CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraCapabilities()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | SelfManagedAnswerVideoCallScreen.java | 25 import android.hardware.camera2.CameraManager; 121 CameraManager manager = context.getSystemService(CameraManager.class); in openCamera() 142 private StreamConfigurationMap getFrontFacingCameraSizes(CameraManager manager) { in getFrontFacingCameraSizes()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallCameraManager.java | 22 import android.hardware.camera2.CameraManager; 111 CameraManager cameraManager = null; in maybeInitializeCameraList() 113 cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in maybeInitializeCameraList()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 24 import android.hardware.camera2.CameraManager; 51 …CameraManager cameraMgr = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); // "c… in printCameraSystemInfo() 71 private static void printCameraInfo(CameraManager manager, String id) { in printCameraInfo()
|