Home
last modified time | relevance | path

Searched refs:getDevicePolicy (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceTest.java134 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomSensorSupport()
137 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomSensorSupport()
150 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomAudioInputSupport()
153 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomAudioInputSupport()
169 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA)).thenReturn(DEVICE_POLICY_DEFAULT); in virtualDevice_hasCustomCameraSupport()
172 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomCameraSupport()
DVirtualDeviceManagerServiceTest.java472 assertThat(mVdm.getDevicePolicy(DEVICE_ID_INVALID, POLICY_TYPE_SENSORS)) in getDevicePolicy_invalidDeviceId_returnsDefault()
474 assertThat(mVdmNative.getDevicePolicy(DEVICE_ID_INVALID, POLICY_TYPE_SENSORS)) in getDevicePolicy_invalidDeviceId_returnsDefault()
480 assertThat(mVdm.getDevicePolicy(DEVICE_ID_DEFAULT, POLICY_TYPE_SENSORS)) in getDevicePolicy_defaultDeviceId_returnsDefault()
482 assertThat(mVdmNative.getDevicePolicy(DEVICE_ID_DEFAULT, POLICY_TYPE_SENSORS)) in getDevicePolicy_defaultDeviceId_returnsDefault()
488 assertThat(mVdm.getDevicePolicy(mDeviceImpl.getDeviceId() + 1, POLICY_TYPE_SENSORS)) in getDevicePolicy_nonExistentDeviceId_returnsDefault()
490 assertThat(mVdmNative.getDevicePolicy(mDeviceImpl.getDeviceId() + 1, POLICY_TYPE_SENSORS)) in getDevicePolicy_nonExistentDeviceId_returnsDefault()
496 assertThat(mVdm.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_unspecifiedPolicy_returnsDefault()
498 assertThat(mVdmNative.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_unspecifiedPolicy_returnsDefault()
512 assertThat(mVdm.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_returnsCustom()
514 assertThat(mVdmNative.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_returnsCustom()
/frameworks/base/core/java/android/companion/virtualnative/
DIVirtualDeviceManagerNative.aidl66 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() method
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioManagerUnitTest.java100 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
101 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
DAudioTrackUnitTest.java141 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
142 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
DAudioRecordUnitTest.java144 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
145 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
DMediaPlayerUnitTest.java158 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager()
159 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
/frameworks/base/core/java/android/companion/virtual/
DVirtualDevice.java163 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS) == DEVICE_POLICY_CUSTOM; in hasCustomSensorSupport()
200 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA) == DEVICE_POLICY_CUSTOM; in hasCustomCameraSupport()
DIVirtualDeviceManager.aidl96 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() method
DIVirtualDevice.aidl79 int getDevicePolicy(int policyType); in getDevicePolicy() method
DVirtualDeviceManager.java340 public @VirtualDeviceParams.DevicePolicy int getDevicePolicy( in getDevicePolicy() method in VirtualDeviceManager
351 return mService.getDevicePolicy(deviceId, policyType); in getDevicePolicy()
DVirtualDeviceInternal.java363 if (mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO) == DEVICE_POLICY_CUSTOM) { in createVirtualAudioDevice()
DVirtualDeviceParams.java498 public @DevicePolicy int getDevicePolicy(@PolicyType int policyType) { in getDevicePolicy() method in VirtualDeviceParams
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceImpl.java275 params.getDevicePolicy(POLICY_TYPE_CAMERA), deviceId)
354 mParams.getDevicePolicy(POLICY_TYPE_ACTIVITY) == DEVICE_POLICY_DEFAULT
422 public @VirtualDeviceParams.DevicePolicy int getDevicePolicy(
429 return mParams.getDevicePolicy(policyType);
1085 if (getDevicePolicy(POLICY_TYPE_AUDIO) == VirtualDeviceParams.DEVICE_POLICY_CUSTOM) {
1148 ? getDevicePolicy(POLICY_TYPE_ACTIVITY) == DEVICE_POLICY_DEFAULT
1153 getDevicePolicy(POLICY_TYPE_RECENTS) == DEVICE_POLICY_DEFAULT;
DVirtualDeviceManagerService.java557 public int getDevicePolicy(int deviceId, @VirtualDeviceParams.PolicyType int policyType) { in getDevicePolicy() method in VirtualDeviceManagerService.VirtualDeviceManagerImpl
561 ? virtualDevice.getDevicePolicy(policyType) : DEVICE_POLICY_DEFAULT; in getDevicePolicy()
710 public int getDevicePolicy(int deviceId, int policyType) { in getDevicePolicy() method in VirtualDeviceManagerService.VirtualDeviceManagerNativeImpl
711 return mImpl.getDevicePolicy(deviceId, policyType); in getDevicePolicy()
/frameworks/native/libs/sensor/
DSensorManager.cpp68 vdm->getDevicePolicy(deviceId, in getDeviceIdForUid()
/frameworks/base/media/java/android/media/
DPlayerBase.java577 if (vdm == null || vdm.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO) in resolvePlaybackSessionId()
DAudioRecord.java1099 if (vdm == null || vdm.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO) in resolveSessionId()
DAudioManager.java4084 return vdm != null && vdm.getDevicePolicy(mOriginalContextDeviceId, POLICY_TYPE_AUDIO) in hasCustomPolicyVirtualDeviceContext()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp102 Status status = vdm->getDevicePolicy(deviceId, IVirtualDeviceManagerNative::POLICY_TYPE_CAMERA, in getDevicePolicyForDeviceId()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java1232 || mVdm.getDevicePolicy(deviceId, POLICY_TYPE_SENSORS) == DEVICE_POLICY_DEFAULT; in isDeviceSensorPolicyDefault()
DCamera.java350 return virtualDeviceManager.getDevicePolicy(context.getDeviceId(), POLICY_TYPE_CAMERA); in getDevicePolicyFromContext()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java476 return mVdm.getDevicePolicy(deviceId, POLICY_TYPE_CLIPBOARD) == DEVICE_POLICY_CUSTOM; in deviceUsesDefaultClipboard()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java584 return mVirtualDeviceManager.getDevicePolicy(context.getDeviceId(), POLICY_TYPE_CAMERA); in getDevicePolicyFromContext()
/frameworks/base/core/api/
Dtest-current.txt937 method public int getDevicePolicy(int, int);

12