Home
last modified time | relevance | path

Searched refs:StateCallback (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/
DFatalErrorHandler.java109 case CameraDevice.StateCallback.ERROR_CAMERA_DEVICE: in fromCamera2CameraDeviceStateCallbackError()
110 case CameraDevice.StateCallback.ERROR_CAMERA_DISABLED: in fromCamera2CameraDeviceStateCallbackError()
111 case CameraDevice.StateCallback.ERROR_CAMERA_IN_USE: in fromCamera2CameraDeviceStateCallbackError()
112 case CameraDevice.StateCallback.ERROR_CAMERA_SERVICE: in fromCamera2CameraDeviceStateCallbackError()
113 case CameraDevice.StateCallback.ERROR_MAX_CAMERAS_IN_USE: in fromCamera2CameraDeviceStateCallbackError()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraDeviceProxy.java34 CameraCaptureSession.StateCallback {
35 private final CameraCaptureSessionProxy.StateCallback mStateCallback;
38 CameraCaptureSessionProxy.StateCallback stateCallback) { in AndroidCaptureSessionStateCallback()
81 CameraCaptureSessionProxy.StateCallback stateCallback, in createCaptureSession()
/packages/apps/Settings/src/com/android/settings/connecteddevice/threadnetwork/
DThreadNetworkFragmentController.kt21 import android.net.thread.ThreadNetworkController.StateCallback in <lambda>()
44 private val stateCallback: StateCallback in <lambda>()
98 private fun newStateCallback(): StateCallback { in <lambda>()
99 return object : StateCallback { in <lambda>()
DBaseThreadNetworkController.kt20 import android.net.thread.ThreadNetworkController.StateCallback
43 fun registerStateCallback(executor: Executor, callback: StateCallback)
45 fun unregisterStateCallback(callback: StateCallback)
DThreadNetworkToggleController.kt20 import android.net.thread.ThreadNetworkController.StateCallback in <lambda>()
45 private val stateCallback: StateCallback in <lambda>()
63 private fun newStateCallback(): StateCallback { in <lambda>()
64 return object : StateCallback { in <lambda>()
DThreadNetworkUtils.kt22 import android.net.thread.ThreadNetworkController.StateCallback
50 override fun registerStateCallback(executor: Executor, callback: StateCallback) { in getThreadNetworkController()
54 override fun unregisterStateCallback(callback: StateCallback) { in getThreadNetworkController()
/packages/services/Car/car-lib/src/android/car/
DCarRemoteDeviceManager.java162 public interface StateCallback { interface in CarRemoteDeviceManager
191 private StateCallback mCallback;
199 StateCallback callback;
223 StateCallback callback;
275 @NonNull StateCallback callback) { in registerStateCallback()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java33 import android.net.thread.ThreadNetworkController.StateCallback;
78 StateCallback callback = in getEnabledState()
79 new StateCallback() { in getEnabledState()
107 StateCallback callback = future::complete; in getDeviceRole()
162 ThreadNetworkController.StateCallback callback = in waitForRoleAnyOf()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/keyguard/
DKeyguardStateMonitor.java33 private final StateCallback mCallback;
66 KeyguardStateMonitor(IKeyguardService service, int userId, StateCallback callback) { in KeyguardStateMonitor()
89 interface StateCallback { interface in KeyguardStateMonitor
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/
DFakeThreadNetworkController.kt27 var registeredStateCallback: ThreadNetworkController.StateCallback? = null
61 callback: ThreadNetworkController.StateCallback in registerStateCallback()
70 override fun unregisterStateCallback(callback: ThreadNetworkController.StateCallback) { in unregisterStateCallback()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipDelegateBinderConnectionStub.java42 protected final List<StateCallback> mStateCallbacks;
55 Executor executor, List<StateCallback> stateCallbacks) { in SipDelegateBinderConnectionStub()
66 for (SipDelegateBinderConnection.StateCallback c: mStateCallbacks) { in create()
DSipDelegateBinderConnection.java59 protected final List<StateCallback> mStateCallbacks;
86 for (StateCallback c : mStateCallbacks) {
103 for (StateCallback c : mStateCallbacks) {
119 for (StateCallback c : mStateCallbacks) {
165 List<StateCallback> stateCallbacks) { in SipDelegateBinderConnection()
DDelegateBinderStateManager.java46 interface StateCallback { interface
73 Executor executor, List<StateCallback> stateCallbacks); in create()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarRemoteDeviceManagerUnitTest.java36 import android.car.CarRemoteDeviceManager.StateCallback;
67 private StateCallback mStateCallback;
105 mock(StateCallback.class))); in testRegisterStateCallbackWithNullParameters_throwsException()
164 mRemoteDeviceManager.registerStateCallback(mock(Executor.class), mock(StateCallback.class)); in testRegisterDuplicateStateCallback_throwsException()
169 mock(StateCallback.class))); in testRegisterDuplicateStateCallback_throwsException()
/packages/services/Car/cpp/computepipe/example/
DFaceTracker.cpp64 StateCallback::StateCallback(std::shared_ptr<RemoteState> s) : mStateTracker(s) { in StateCallback() function in android::automotive::computepipe::StateCallback
67 ndk::ScopedAStatus StateCallback::handleState(PipeState state) { in handleState()
91 mStateCallback = ndk::SharedRefBase::make<StateCallback>(mRemoteState); in init()
DFaceTracker.h78 class StateCallback : public BnPipeStateCallback {
80 explicit StateCallback(std::shared_ptr<RemoteState> s);
99 std::shared_ptr<StateCallback> mStateCallback = nullptr;
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java119 private final Map<StateCallback, StateCallbackProxy> mStateCallbackMap = new HashMap<>();
217 public interface StateCallback { interface in ThreadNetworkController
245 private final StateCallback mCallback;
247 StateCallbackProxy(@CallbackExecutor Executor executor, StateCallback callback) { in StateCallbackProxy()
295 @NonNull @CallbackExecutor Executor executor, @NonNull StateCallback callback) { in registerStateCallback()
321 public void unregisterStateCallback(@NonNull StateCallback callback) { in unregisterStateCallback()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java62 import android.net.thread.ThreadNetworkController.StateCallback;
160 StateCallback callback = deviceRole::complete; in registerStateCallback_permissionsGranted_returnsCurrentStates()
229 StateCallback callback = role -> deviceRole.complete(role); in registerStateCallback_alreadyRegistered_throwsIllegalArgumentException()
241 StateCallback callback = role -> deviceRole.complete(role); in unregisterStateCallback_noPermissions_throwsSecurityException()
258 StateCallback callback = role -> deviceRole.complete(role); in unregisterStateCallback_callbackRegistered_success()
268 StateCallback callback = role -> deviceRole.complete(role); in unregisterStateCallback_callbackNotRegistered_throwsIllegalArgumentException()
280 StateCallback callback = deviceRole::complete; in unregisterStateCallback_alreadyUnregistered_throwsIllegalArgumentException()
930 StateCallback callback = future::complete;
952 StateCallback callback =
967 StateCallback callback =
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java24 import android.hardware.camera2.CameraDevice.StateCallback;
47 public class SelfManagedAnswerVideoCallScreen extends StateCallback implements VideoCallScreen {
246 private class CaptureSessionCallback extends CameraCaptureSession.StateCallback {
/packages/apps/DevCamera/src/com/android/devcamera/
DLoggingCallbacks.java37 public static class DeviceStateCallback extends CameraDevice.StateCallback {
63 public static class SessionStateCallback extends CameraCaptureSession.StateCallback {
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java114 private final CameraDevice.StateCallback mCameraStateCallback =
115 new CameraDevice.StateCallback() {
135 new CameraCaptureSession.StateCallback() {
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorPreviewCamera.java101 private final class CameraListener extends CameraDevice.StateCallback {
140 private final class CaptureSessionCallback extends CameraCaptureSession.StateCallback {
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DOccupantConnectionFragment.java33 import android.car.CarRemoteDeviceManager.StateCallback;
80 private final StateCallback mStateCallback = new StateCallback() {
/packages/modules/Permission/tests/cts/permissionui/AppThatAccessesCameraAndMic/src/android/permissionui/cts/appthataccessescameraandmic/
DAccessCameraOrMicActivity.kt142 object : CameraDevice.StateCallback() {
164 object : CameraCaptureSession.StateCallback() { in onOpened()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraOpenerImpl.java118 mCameraManager.openCamera(cameraKey.getValue(), new CameraDevice.StateCallback() { in open()
150 if (error == CameraDevice.StateCallback.ERROR_CAMERA_IN_USE) { in open()

12