/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceTest.java | 134 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()
|
D | VirtualDeviceManagerServiceTest.java | 472 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/ |
D | IVirtualDeviceManagerNative.aidl | 66 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() method
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | AudioManagerUnitTest.java | 100 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager() 101 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
|
D | AudioTrackUnitTest.java | 141 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager() 142 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
|
D | AudioRecordUnitTest.java | 144 when(vdmMock.getDevicePolicy(anyInt(), anyInt())).thenReturn(DEVICE_POLICY_DEFAULT); in getMockVirtualDeviceManager() 145 when(vdmMock.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO)).thenReturn(audioDevicePolicy); in getMockVirtualDeviceManager()
|
D | MediaPlayerUnitTest.java | 158 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/ |
D | VirtualDevice.java | 163 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS) == DEVICE_POLICY_CUSTOM; in hasCustomSensorSupport() 200 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA) == DEVICE_POLICY_CUSTOM; in hasCustomCameraSupport()
|
D | IVirtualDeviceManager.aidl | 96 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() method
|
D | IVirtualDevice.aidl | 79 int getDevicePolicy(int policyType); in getDevicePolicy() method
|
D | VirtualDeviceManager.java | 340 public @VirtualDeviceParams.DevicePolicy int getDevicePolicy( in getDevicePolicy() method in VirtualDeviceManager 351 return mService.getDevicePolicy(deviceId, policyType); in getDevicePolicy()
|
D | VirtualDeviceInternal.java | 363 if (mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO) == DEVICE_POLICY_CUSTOM) { in createVirtualAudioDevice()
|
D | VirtualDeviceParams.java | 498 public @DevicePolicy int getDevicePolicy(@PolicyType int policyType) { in getDevicePolicy() method in VirtualDeviceParams
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | VirtualDeviceImpl.java | 275 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;
|
D | VirtualDeviceManagerService.java | 557 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/ |
D | SensorManager.cpp | 68 vdm->getDevicePolicy(deviceId, in getDeviceIdForUid()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 577 if (vdm == null || vdm.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO) in resolvePlaybackSessionId()
|
D | AudioRecord.java | 1099 if (vdm == null || vdm.getDevicePolicy(deviceId, POLICY_TYPE_AUDIO) in resolveSessionId()
|
D | AudioManager.java | 4084 return vdm != null && vdm.getDevicePolicy(mOriginalContextDeviceId, POLICY_TYPE_AUDIO) in hasCustomPolicyVirtualDeviceContext()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraManager.cpp | 102 Status status = vdm->getDevicePolicy(deviceId, IVirtualDeviceManagerNative::POLICY_TYPE_CAMERA, in getDevicePolicyForDeviceId()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 1232 || mVdm.getDevicePolicy(deviceId, POLICY_TYPE_SENSORS) == DEVICE_POLICY_DEFAULT; in isDeviceSensorPolicyDefault()
|
D | Camera.java | 350 return virtualDeviceManager.getDevicePolicy(context.getDeviceId(), POLICY_TYPE_CAMERA); in getDevicePolicyFromContext()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 476 return mVdm.getDevicePolicy(deviceId, POLICY_TYPE_CLIPBOARD) == DEVICE_POLICY_CUSTOM; in deviceUsesDefaultClipboard()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraManager.java | 584 return mVirtualDeviceManager.getDevicePolicy(context.getDeviceId(), POLICY_TYPE_CAMERA); in getDevicePolicyFromContext()
|
/frameworks/base/core/api/ |
D | test-current.txt | 937 method public int getDevicePolicy(int, int);
|