Home
last modified time | relevance | path

Searched refs:mProxyManager (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DProxyManagerTest.java123 private ProxyManager mProxyManager; field in ProxyManagerTest
164 mProxyManager = new ProxyManager(new Object(), mMockA11yWindowManager, mMockContext, in setup()
189 mProxyManager.unregisterProxy(DISPLAY_ID); in unregisterProxy_always_stopsTrackingDisplay()
192 assertThat(mProxyManager.isProxyedDisplay(DISPLAY_ID)).isFalse(); in unregisterProxy_always_stopsTrackingDisplay()
202 mProxyManager.unregisterProxy(DISPLAY_ID); in unregisterProxy_deviceAssociatedWithSingleDisplay_stopsTrackingDevice()
204 assertThat(mProxyManager.isProxyedDeviceId(DEVICE_ID)).isFalse(); in unregisterProxy_deviceAssociatedWithSingleDisplay_stopsTrackingDevice()
217 mProxyManager.unregisterProxy(DISPLAY_ID); in unregisterProxy_deviceAssociatedWithMultipleDisplays_tracksRemainingProxy()
219 assertThat(mProxyManager.isProxyedDeviceId(DEVICE_ID)).isTrue(); in unregisterProxy_deviceAssociatedWithMultipleDisplays_tracksRemainingProxy()
232 mProxyManager.onProxyChanged(DEVICE_ID); in testOnProxyChanged_always_propagatesChange()
252 mProxyManager.setLocalVirtualDeviceManager(localVdm); in testUpdateProxyOfRunningAppsChange_changedUidIsStreamedApp_propagatesChange()
[all …]
DAccessibilityManagerServiceTest.java200 @Mock private ProxyManager mProxyManager; field in AccessibilityManagerServiceTest
263 mProxyManager, in setUp()
368 when(mProxyManager.displayBelongsToCaller(anyInt(), anyInt())).thenReturn(true); in testRegisterProxy()
370 verify(mProxyManager).registerProxy(eq(mMockServiceClient), eq(TEST_DISPLAY), anyInt(), in testRegisterProxy()
385 verify(mProxyManager, never()).registerProxy(any(), anyInt(), anyInt(), any(), in testRegisterProxyWithoutA11yPermissionOrRole()
395 verify(mProxyManager, never()).registerProxy(any(), anyInt(), anyInt(), any(), in testRegisterProxyWithoutDevicePermission()
404 verify(mProxyManager, never()).registerProxy(any(), anyInt(), anyInt(), any(), in testRegisterProxyForDefaultDisplay()
414 verify(mProxyManager, never()).registerProxy(any(), anyInt(), anyInt(), any(), in testRegisterProxyForInvalidDisplay()
422 when(mProxyManager.displayBelongsToCaller(anyInt(), anyInt())).thenReturn(true); in testUnRegisterProxyWithPermission()
426 verify(mProxyManager).unregisterProxy(TEST_DISPLAY); in testUnRegisterProxyWithPermission()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java346 private final ProxyManager mProxyManager; field in AccessibilityManagerService
510 mProxyManager = proxyManager; in AccessibilityManagerService()
555 mProxyManager = new ProxyManager(mLock, mA11yWindowManager, mContext, mMainHandler, in AccessibilityManagerService()
968 mProxyManager.clearConnections(deviceId); in registerBroadcastReceivers()
1065 final int deviceId = mProxyManager.getFirstDeviceIdForUidLocked( in addClient()
1072 if (mProxyManager.isProxyedDeviceId(deviceId)) { in addClient()
1078 return IntPair.of(mProxyManager.getStateLocked(deviceId), in addClient()
1087 if (mProxyManager.isProxyedDeviceId(deviceId)) { in addClient()
1093 return IntPair.of(mProxyManager.getStateLocked(deviceId), in addClient()
1234 if (mProxyManager.isProxyedDisplay(event.getDisplayId())) { in dispatchAccessibilityEventLocked()
[all …]