Home
last modified time | relevance | path

Searched refs:DEVICE_POLICY_CUSTOM (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerUnitTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
73 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testConstructionWithContext_virtualDeviceCustomAudioPolicy()
88 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testConstructionWithContext_virtualSetSessionIdOverridesContext()
116 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testCreateFromResource_virtualDeviceCustomAudioPolicy()
131 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testCreateFromResource_explicitSessionIdOverridesContext()
DAudioManagerUnitTest.java20 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
51 DEVICE_POLICY_CUSTOM); in testAudioManager_playSoundWithDefaultDeviceContext()
79 DEVICE_POLICY_CUSTOM); in testAudioManager_playSoundWithVirtualDeviceContextCustomPolicy()
DAudioTrackUnitTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
94 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy()
112 vdmPlaybackSessionId, DEVICE_POLICY_CUSTOM); in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext()
DAudioRecordUnitTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
94 vdmRecordingSessionId, DEVICE_POLICY_CUSTOM); in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy()
113 vdmRecordingSessionId, DEVICE_POLICY_CUSTOM); in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
137 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomSensorSupport()
153 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomAudioInputSupport()
172 when(mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA)).thenReturn(DEVICE_POLICY_CUSTOM); in virtualDevice_hasCustomCameraSupport()
DVirtualDeviceManagerServiceTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
507 .setDevicePolicy(POLICY_TYPE_SENSORS, DEVICE_POLICY_CUSTOM) in getDevicePolicy_returnsCustom()
513 .isEqualTo(DEVICE_POLICY_CUSTOM); in getDevicePolicy_returnsCustom()
515 .isEqualTo(DEVICE_POLICY_CUSTOM); in getDevicePolicy_returnsCustom()
536 .setDevicePolicy(POLICY_TYPE_RECENTS, DEVICE_POLICY_CUSTOM) in getDevicePolicy_customRecentsPolicy_gwpcCannotShowRecentsOnHostDevice()
589 .setDevicePolicy(POLICY_TYPE_SENSORS, DEVICE_POLICY_CUSTOM) in getVirtualSensor_returnsCorrectSensor()
/frameworks/base/core/java/android/companion/virtual/
DVirtualDevice.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
163 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_SENSORS) == DEVICE_POLICY_CUSTOM; in hasCustomSensorSupport()
200 return mVirtualDevice.getDevicePolicy(POLICY_TYPE_CAMERA) == DEVICE_POLICY_CUSTOM; in hasCustomCameraSupport()
DVirtualDeviceParams.java139 @IntDef(prefix = "DEVICE_POLICY_", value = {DEVICE_POLICY_DEFAULT, DEVICE_POLICY_CUSTOM})
154 public static final int DEVICE_POLICY_CUSTOM = 1; field in VirtualDeviceParams
1113 != DEVICE_POLICY_CUSTOM) { in build()
1151 case DEVICE_POLICY_CUSTOM: in build()
1163 mDevicePolicies.put(POLICY_TYPE_ACTIVITY, DEVICE_POLICY_CUSTOM); in build()
1180 != DEVICE_POLICY_CUSTOM) { in build()
DVirtualDeviceInternal.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
363 if (mVirtualDevice.getDevicePolicy(POLICY_TYPE_AUDIO) == DEVICE_POLICY_CUSTOM) { in createVirtualAudioDevice()
/frameworks/base/core/java/android/companion/virtualnative/
DIVirtualDeviceManagerNative.aidl42 const int DEVICE_POLICY_CUSTOM = 1; field
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsDeviceAwareServiceTest.java21 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
77 .setDevicePolicy(POLICY_TYPE_CAMERA, DEVICE_POLICY_CUSTOM) in setUp()
DAppOpsActiveWatcherTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
159 .setDevicePolicy(POLICY_TYPE_CAMERA, DEVICE_POLICY_CUSTOM) in testWatchActiveOpsForExternalDevice()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/camera/
DVirtualCameraControllerTest.java19 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
96 DEVICE_POLICY_CUSTOM, DEVICE_ID); in setUp()
/frameworks/av/camera/ndk/impl/
DACameraManager.h44 DEVICE_POLICY_CUSTOM = enumerator
45 ::android::companion::virtualnative::IVirtualDeviceManagerNative::DEVICE_POLICY_CUSTOM
/frameworks/native/libs/sensor/
DSensorManager.cpp71 if (devicePolicy == IVirtualDeviceManagerNative::DEVICE_POLICY_CUSTOM) { in getDeviceIdForUid()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java22 import static android.companion.virtual.VirtualDeviceParams.DEVICE_POLICY_CUSTOM;
476 return mVdm.getDevicePolicy(deviceId, POLICY_TYPE_CLIPBOARD) == DEVICE_POLICY_CUSTOM; in deviceUsesDefaultClipboard()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceImpl.java1085 if (getDevicePolicy(POLICY_TYPE_AUDIO) == VirtualDeviceParams.DEVICE_POLICY_CUSTOM) {
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp3443 s.deviceId, IVirtualDeviceManagerNative::DEVICE_POLICY_CUSTOM); in addListenerHelper()
/frameworks/base/core/api/
Dsystem-current.txt3516 field public static final int DEVICE_POLICY_CUSTOM = 1; // 0x1