Home
last modified time | relevance | path

Searched refs:isValidVirtualDeviceId (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/companion/virtual/
DIVirtualDeviceManager.aidl91 boolean isValidVirtualDeviceId(int deviceId); in isValidVirtualDeviceId() method
DVirtualDeviceManager.java438 public boolean isValidVirtualDeviceId(int deviceId) { in isValidVirtualDeviceId() method in VirtualDeviceManager
444 return mService.isValidVirtualDeviceId(deviceId); in isValidVirtualDeviceId()
/frameworks/base/services/core/java/com/android/server/companion/virtual/
DVirtualDeviceManagerInternal.java158 public abstract boolean isValidVirtualDeviceId(int deviceId); in isValidVirtualDeviceId() method in VirtualDeviceManagerInternal
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java448 assertThat(mVdm.isValidVirtualDeviceId(DEVICE_ID_INVALID)).isFalse(); in isDeviceIdValid_invalidDeviceId_returnsFalse()
449 assertThat(mLocalService.isValidVirtualDeviceId(DEVICE_ID_INVALID)).isFalse(); in isDeviceIdValid_invalidDeviceId_returnsFalse()
454 assertThat(mVdm.isValidVirtualDeviceId(DEVICE_ID_DEFAULT)).isFalse(); in isDeviceIdValid_defaultDeviceId_returnsFalse()
455 assertThat(mLocalService.isValidVirtualDeviceId(DEVICE_ID_DEFAULT)).isFalse(); in isDeviceIdValid_defaultDeviceId_returnsFalse()
460 assertThat(mVdm.isValidVirtualDeviceId(mDeviceImpl.getDeviceId())).isTrue(); in isDeviceIdValid_validVirtualDeviceId_returnsTrue()
461 assertThat(mLocalService.isValidVirtualDeviceId(mDeviceImpl.getDeviceId())).isTrue(); in isDeviceIdValid_validVirtualDeviceId_returnsTrue()
466 assertThat(mVdm.isValidVirtualDeviceId(mDeviceImpl.getDeviceId() + 1)).isFalse(); in isDeviceIdValid_nonExistentDeviceId_returnsFalse()
467 assertThat(mLocalService.isValidVirtualDeviceId(mDeviceImpl.getDeviceId() + 1)).isFalse(); in isDeviceIdValid_nonExistentDeviceId_returnsFalse()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceManagerService.java598 public boolean isValidVirtualDeviceId(int deviceId) { in isValidVirtualDeviceId() method in VirtualDeviceManagerService.VirtualDeviceManagerImpl
885 public boolean isValidVirtualDeviceId(int deviceId) { in isValidVirtualDeviceId() method in VirtualDeviceManagerService.LocalService
886 return mImpl.isValidVirtualDeviceId(deviceId); in isValidVirtualDeviceId()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java1070 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1126 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1152 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1185 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1315 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1344 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1377 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1409 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1445 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
1481 when(mIVirtualDeviceManager.isValidVirtualDeviceId(1)).thenReturn(true);
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java2827 if (!isValidVirtualDeviceId(virtualDeviceId)) { in checkOperationImpl()
3013 if (!isValidVirtualDeviceId(proxyVirtualDeviceId)) { in noteProxyOperationImpl()
3094 if (!isValidVirtualDeviceId(virtualDeviceId)) { in noteOperationImpl()
3582 if (!isValidVirtualDeviceId(virtualDeviceId)) { in startOperationImpl()
3673 if (!isValidVirtualDeviceId(proxyVirtualDeviceId)) { in startProxyOperationImpl()
3682 if (!isValidVirtualDeviceId(proxiedVirtualDeviceId)) { in startProxyOperationImpl()
4003 if (!isValidVirtualDeviceId(virtualDeviceId)) { in finishOperationImpl()
4052 if (!isValidVirtualDeviceId(proxyVirtualDeviceId)) { in finishProxyOperationImpl()
4351 private boolean isValidVirtualDeviceId(int virtualDeviceId) { in isValidVirtualDeviceId() method in AppOpsService
4358 if (mVirtualDeviceManagerInternal.isValidVirtualDeviceId(virtualDeviceId)) { in isValidVirtualDeviceId()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java894 if (deviceId != DEVICE_ID_DEFAULT && !mVdm.isValidVirtualDeviceId(deviceId)) { in getClipboardLocked()
/frameworks/base/core/java/android/app/
DContextImpl.java2889 if (vdm == null || !vdm.isValidVirtualDeviceId(deviceId)) { in createDeviceContext()
3172 if (!vdm.isValidVirtualDeviceId(updatedDeviceId)) { in updateDeviceId()
DActivityThread.java4972 if (vdm != null && vdm.isValidVirtualDeviceId(mLastReportedDeviceId)) { in handleCreateService()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java1552 if (!vdm.isValidVirtualDeviceId(virtualDevice.getDeviceId())) { in createVirtualDisplayInternal()
/frameworks/base/services/
Dart-profile1189 HSPLcom/android/server/appop/AppOpsService;->isValidVirtualDeviceId(I)Z+]Landroid/util/SparseArray;…
Dart-wear-profile7720 PLcom/android/server/appop/AppOpsService;->isValidVirtualDeviceId(I)Z