Home
last modified time | relevance | path

Searched refs:setMiracastMode (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/p2p/
DIWifiP2pManager.aidl31 void setMiracastMode(int mode); in setMiracastMode() method
DWifiP2pManager.java1684 public void setMiracastMode(int mode) { in setMiracastMode() method in WifiP2pManager
1686 mService.setMiracastMode(mode); in setMiracastMode()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java759 public void setMiracastMode(int mode) { in setMiracastMode() method in WifiP2pNative
760 mSupplicantP2pIfaceHal.setMiracastMode(mode); in setMiracastMode()
DSupplicantP2pIfaceHal.java1670 public boolean setMiracastMode(int mode) { in setMiracastMode() method in SupplicantP2pIfaceHal
1688 result.setResult(mISupplicantP2pIface.setMiracastMode(targetMode)); in setMiracastMode()
DWifiP2pServiceImpl.java674 public void setMiracastMode(int mode) { in setMiracastMode() method in WifiP2pServiceImpl
1665 mWifiNative.setMiracastMode(message.arg1); in processMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java2049 when(mISupplicantP2pIfaceMock.setMiracastMode(anyByte())) in testSetMiracastMode_success()
2057 assertFalse(mDut.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE)); in testSetMiracastMode_success()
2059 assertTrue(mDut.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE)); in testSetMiracastMode_success()
2062 assertTrue(mDut.setMiracastMode(WifiP2pManager.MIRACAST_SINK)); in testSetMiracastMode_success()
2066 assertTrue(mDut.setMiracastMode(-1)); in testSetMiracastMode_success()
2076 when(mISupplicantP2pIfaceMock.setMiracastMode(anyByte())) in testSetMiracastMode_failure()
2078 assertFalse(mDut.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE)); in testSetMiracastMode_failure()
2089 when(mISupplicantP2pIfaceMock.setMiracastMode(anyByte())) in testSetMiracastMode_exception()
2091 assertFalse(mDut.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE)); in testSetMiracastMode_exception()
DWifiP2pNativeTest.java575 mWifiP2pNative.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE); in testSetMiracastMode()
576 verify(mSupplicantP2pIfaceHalMock).setMiracastMode(eq(WifiP2pManager.MIRACAST_SOURCE)); in testSetMiracastMode()
DWifiP2pServiceImplTest.java3037 mWifiP2pServiceImpl.setMiracastMode(0); in testSetMiracastModeWhenP2pEnabled()
3044 verify(mWifiNative).setMiracastMode(eq(0)); in testSetMiracastModeWhenP2pEnabled()
3055 mWifiP2pServiceImpl.setMiracastMode(0); in testSetMiracastModeWhenP2pDisabled()
3062 verify(mWifiNative, never()).setMiracastMode(anyInt()); in testSetMiracastModeWhenP2pDisabled()
3072 mWifiP2pServiceImpl.setMiracastMode(0); in testSetMiracastModeWhenPermissionDeined1()
3075 verify(mWifiNative, never()).setMiracastMode(anyInt()); in testSetMiracastModeWhenPermissionDeined1()
3086 mWifiP2pServiceImpl.setMiracastMode(0); in testSetMiracastModeWhenPermissionDeined2()
3092 verify(mWifiNative, never()).setMiracastMode(anyInt()); in testSetMiracastModeWhenPermissionDeined2()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java577 mWifiP2pManager.setMiracastMode(WifiP2pManager.MIRACAST_DISABLED); in updateConnection()
728 mWifiP2pManager.setMiracastMode(WifiP2pManager.MIRACAST_SOURCE); in updateConnection()