Home
last modified time | relevance | path

Searched refs:DEVICE_POLICY_DEFAULT (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioManagerUnitTest.java21 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
65 DEVICE_POLICY_DEFAULT); in testAudioManager_playSoundWithVirtualDeviceContextDefaultPolicy()
100 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
DMediaPlayerUnitTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
59 vdmPlaybackSessionId, DEVICE_POLICY_DEFAULT); in testConstructionWithContext_virtualDeviceDefaultAudioPolicy()
102 vdmPlaybackSessionId, DEVICE_POLICY_DEFAULT); in testCreateFromResource_virtualDeviceDefaultAudioPolicy()
158 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
DAudioTrackUnitTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
78 vdmPlaybackSessionId, DEVICE_POLICY_DEFAULT); in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy()
141 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
DAudioRecordUnitTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
77 vdmPlaybackSessionId, DEVICE_POLICY_DEFAULT); in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy()
144 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
134 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomSensorSupport()
150 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomAudioInputSupport()
169 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomCameraSupport()
DVirtualDeviceManagerServiceTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
473 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_invalidDeviceId_returnsDefault()
475 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_invalidDeviceId_returnsDefault()
481 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_defaultDeviceId_returnsDefault()
483 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_defaultDeviceId_returnsDefault()
489 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_nonExistentDeviceId_returnsDefault()
491 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_nonExistentDeviceId_returnsDefault()
497 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_unspecifiedPolicy_returnsDefault()
499 .isEqualTo(DEVICE_POLICY_DEFAULT); in getDevicePolicy_unspecifiedPolicy_returnsDefault()
2004 new VirtualCameraController(DEVICE_POLICY_DEFAULT, virtualDeviceId)); in createVirtualDevice()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
82 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testNumberOfCameras()
93 DEVICE_POLICY_DEFAULT); in testCameraInfo()
170 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testConnect()
271 DEVICE_POLICY_DEFAULT); in testConnectDevice()
DCameraDeviceBinderTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
251 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in setUp()
420 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testCameraCharacteristics()
/frameworks/base/core/java/android/companion/virtualnative/
DIVirtualDeviceManagerNative.aidl41 const int DEVICE_POLICY_DEFAULT = 0; field
/frameworks/base/core/java/android/companion/virtual/
DVirtualDeviceParams.java139 @IntDef(prefix = "DEVICE_POLICY_", value = {DEVICE_POLICY_DEFAULT, DEVICE_POLICY_CUSTOM})
148 public static final int DEVICE_POLICY_DEFAULT = 0; field in VirtualDeviceParams
499 return mDevicePolicies.get(policyType, DEVICE_POLICY_DEFAULT); in getDevicePolicy()
1112 if (mDevicePolicies.get(POLICY_TYPE_SENSORS, DEVICE_POLICY_DEFAULT) in build()
1142 case DEVICE_POLICY_DEFAULT: in build()
1179 && mDevicePolicies.get(POLICY_TYPE_AUDIO, DEVICE_POLICY_DEFAULT) in build()
DVirtualDeviceManager.java344 return VirtualDeviceParams.DEVICE_POLICY_DEFAULT; in getDevicePolicy()
348 return VirtualDeviceParams.DEVICE_POLICY_DEFAULT; in getDevicePolicy()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/camera/
DVirtualCameraController.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
198 if (mCameraPolicy == DEVICE_POLICY_DEFAULT) { in checkConfigByPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/camera/
DVirtualCameraControllerTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
190 DEVICE_POLICY_DEFAULT, DEVICE_ID); in registerCamera_withDefaultCameraPolicy_throwsException()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp93 return DevicePolicy::DEVICE_POLICY_DEFAULT; in getDevicePolicyForDeviceId()
98 return DevicePolicy::DEVICE_POLICY_DEFAULT; in getDevicePolicyForDeviceId()
101 int policy = IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT; in getDevicePolicyForDeviceId()
107 return DevicePolicy::DEVICE_POLICY_DEFAULT; in getDevicePolicyForDeviceId()
115 deviceContext.policy == DevicePolicy::DEVICE_POLICY_DEFAULT) { in isCameraAccessible()
DACameraManager.h42 DEVICE_POLICY_DEFAULT = enumerator
43 ::android::companion::virtualnative::IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT,
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceImpl.java23 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
354 mParams.getDevicePolicy(POLICY_TYPE_ACTIVITY) == DEVICE_POLICY_DEFAULT
426 return mDevicePolicies.get(policyType, DEVICE_POLICY_DEFAULT);
669 .setShowInHostDeviceRecents(devicePolicy == DEVICE_POLICY_DEFAULT);
679 devicePolicy == DEVICE_POLICY_DEFAULT);
1148 ? getDevicePolicy(POLICY_TYPE_ACTIVITY) == DEVICE_POLICY_DEFAULT
1153 getDevicePolicy(POLICY_TYPE_RECENTS) == DEVICE_POLICY_DEFAULT;
DVirtualDeviceManagerService.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
561 ? virtualDevice.getDevicePolicy(policyType) : DEVICE_POLICY_DEFAULT; in getDevicePolicy()
/frameworks/base/media/java/android/media/
DPlayerBase.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
578 == DEVICE_POLICY_DEFAULT) { in resolvePlaybackSessionId()
DAudioRecord.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
1100 == DEVICE_POLICY_DEFAULT) { in resolveSessionId()
DAudioManager.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
4085 != DEVICE_POLICY_DEFAULT; in hasCustomPolicyVirtualDeviceContext()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
578 return DEVICE_POLICY_DEFAULT; in getDevicePolicyFromContext()
666 DEVICE_POLICY_DEFAULT); in getPhysicalCameraMultiResolutionConfigs()
2370 if (devicePolicy == DEVICE_POLICY_DEFAULT && info.mDeviceId == DEVICE_ID_DEFAULT) { in shouldHideCamera()
2519 devicePolicy == DEVICE_POLICY_DEFAULT in isConcurrentSessionConfigurationSupported()
2564 devicePolicy == DEVICE_POLICY_DEFAULT ? DEVICE_ID_DEFAULT : deviceId); in cameraIdHasConcurrentStreamsLocked()
/frameworks/native/libs/sensor/
DSensorManager.cpp67 int devicePolicy = IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT; in getDeviceIdForUid()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java21 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
1232 || mVdm.getDevicePolicy(deviceId, POLICY_TYPE_SENSORS) == DEVICE_POLICY_DEFAULT; in isDeviceSensorPolicyDefault()
DCamera.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_DEFAULT;
345 return DEVICE_POLICY_DEFAULT; in getDevicePolicyFromContext()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp790 && (devicePolicy != IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT)) { in getNumberOfCameras()
1192 || (devicePolicy == IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT)) { in resolveCameraId()
1259 && (devicePolicy != IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT)) { in cameraIdIntToStrLocked()
3342 devicePolicy == IVirtualDeviceManagerNative::DEVICE_POLICY_DEFAULT in isConcurrentSessionConfigurationSupported()

12