/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeManagerTest.java | 54 @Mock private HalDeviceManager mHalDeviceManager; field in WifiAwareNativeManagerTest 96 mHalDeviceManager, mWifiAwareNativeCallback); in setUp() 99 mInOrder = inOrder(mWifiAwareStateManagerMock, mHalDeviceManager, mWifiNanIfaceMock, in setUp() 103 mInOrder.verify(mHalDeviceManager).initialize(); in setUp() 104 mInOrder.verify(mHalDeviceManager).registerStatusListener( in setUp() 123 when(mHalDeviceManager.isStarted()).thenReturn(true); in testControlFlowWithoutInterface() 124 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlowWithoutInterface() 128 mInOrder.verify(mHalDeviceManager).registerInterfaceAvailableForRequestListener( in testControlFlowWithoutInterface() 136 when(mHalDeviceManager.isStarted()).thenReturn(false); in testControlFlowWithoutInterface() 142 when(mHalDeviceManager.isStarted()).thenReturn(true); in testControlFlowWithoutInterface() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeManager.java | 46 private HalDeviceManager mHalDeviceManager; field in WifiAwareNativeManager 59 mHalDeviceManager = halDeviceManager; in WifiAwareNativeManager() 79 mHalDeviceManager.initialize(); in start() 80 mHalDeviceManager.registerStatusListener( in start() 87 if (mHalDeviceManager.isStarted()) { in start() 90 mHalDeviceManager.registerInterfaceAvailableForRequestListener( in start() 97 if (mHalDeviceManager.isStarted()) { in start() 98 mHalDeviceManager.registerInterfaceAvailableForRequestListener( in start() 128 if (mHalDeviceManager == null) { in tryToGetAware() 135 IWifiNanIface iface = mHalDeviceManager.createNanIface(mInterfaceDestroyedListener, in tryToGetAware() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pNativeInterfaceManagementTest.java | 62 @Mock private HalDeviceManager mHalDeviceManager; field in WifiP2pNativeInterfaceManagementTest 83 when(mHalDeviceManager.isSupported()).thenReturn(true); in setUp() 84 when(mHalDeviceManager.createP2pIface(any(InterfaceDestroyedListener.class), in setUp() 101 mWifiVendorHal, mSupplicantP2pIfaceHal, mHalDeviceManager, in setUp() 110 when(mHalDeviceManager.isStarted()).thenReturn(false); in testRegisterInterfaceAvailableListener() 113 when(mHalDeviceManager.isStarted()).thenReturn(true); in testRegisterInterfaceAvailableListener() 117 verify(mHalDeviceManager).registerStatusListener(hdmCallbackCaptor.capture(), eq(mHandler)); in testRegisterInterfaceAvailableListener() 121 verify(mHalDeviceManager).registerInterfaceAvailableForRequestListener(eq(IfaceType.P2P), in testRegisterInterfaceAvailableListener() 133 verify(mHalDeviceManager).createP2pIface(any(InterfaceDestroyedListener.class), in testSetUpInterface() 143 when(mHalDeviceManager.isSupported()).thenReturn(false); in testSetUpInterfaceWithNoVendorHal() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiVendorHalTest.java | 137 private HalDeviceManager mHalDeviceManager; field in WifiVendorHalTest 306 when(mHalDeviceManager.isReady()).thenReturn(true); in setUp() 307 when(mHalDeviceManager.isStarted()).thenReturn(true); in setUp() 312 }).when(mHalDeviceManager).start(); in setUp() 316 when(mHalDeviceManager.isReady()).thenReturn(true); in setUp() 317 when(mHalDeviceManager.isStarted()).thenReturn(false); in setUp() 321 }).when(mHalDeviceManager).stop(); in setUp() 322 when(mHalDeviceManager.createStaIface(anyBoolean(), any(), eq(null))) in setUp() 324 when(mHalDeviceManager.createApIface(any(), eq(null))) in setUp() 326 when(mHalDeviceManager.removeIface(any())).thenReturn(true); in setUp() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pNative.java | 45 private final HalDeviceManager mHalDeviceManager; field in WifiP2pNative 116 mHalDeviceManager = halDeviceManager; in WifiP2pNative() 166 return mHalDeviceManager.isSupported(); in isHalInterfaceSupported() 177 if (mHalDeviceManager.isSupported()) { in createP2pIface() 178 mIWifiP2pIface = mHalDeviceManager in createP2pIface() 208 mHalDeviceManager.registerStatusListener(() -> { in registerInterfaceAvailableListener() 209 if (mHalDeviceManager.isStarted()) { in registerInterfaceAvailableListener() 211 mHalDeviceManager.registerInterfaceAvailableForRequestListener( in registerInterfaceAvailableListener() 215 if (mHalDeviceManager.isStarted()) { in registerInterfaceAvailableListener() 216 mHalDeviceManager.registerInterfaceAvailableForRequestListener( in registerInterfaceAvailableListener() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttNative.java | 54 private final HalDeviceManager mHalDeviceManager; field in RttNative 97 mHalDeviceManager = halDeviceManager; in RttNative() 105 mHalDeviceManager.initialize(); in start() 106 mHalDeviceManager.registerStatusListener(() -> { in start() 108 if (mHalDeviceManager.isStarted()) { in start() 109 mHalDeviceManager.registerRttControllerLifecycleCallback(mRttLifecycleCb, in start() 113 if (mHalDeviceManager.isStarted()) { in start() 114 mHalDeviceManager.registerRttControllerLifecycleCallback(mRttLifecycleCb, handler); in start() 486 pw.println(" mHalDeviceManager: " + mHalDeviceManager); in dump()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiVendorHal.java | 240 private final HalDeviceManager mHalDeviceManager; field in WifiVendorHal 256 mHalDeviceManager = halDeviceManager; in WifiVendorHal() 283 mHalDeviceManager.initialize(); in initialize() 284 mHalDeviceManager.registerStatusListener( in initialize() 310 return mHalDeviceManager.isSupported(); in isVendorHalSupported() 356 if (!mHalDeviceManager.start()) { in startVendorHal() 401 IWifiStaIface iface = mHalDeviceManager.createStaIface(lowPrioritySta, in createStaIface() 407 String ifaceName = mHalDeviceManager.getName((IWifiIface) iface); in createStaIface() 437 if (!mHalDeviceManager.removeIface((IWifiIface) iface)) { in removeStaIface() 480 IWifiApIface iface = mHalDeviceManager.createApIface( in createApIface() [all …]
|
D | WifiInjector.java | 141 private HalDeviceManager mHalDeviceManager; field in WifiInjector 213 mHalDeviceManager = new HalDeviceManager(mClock, clientModeImplLooper); in WifiInjector() 215 new WifiVendorHal(mHalDeviceManager, mWifiCoreHandlerThread.getLooper()); in WifiInjector() 232 mWifiVendorHal, mSupplicantP2pIfaceHal, mHalDeviceManager, in WifiInjector() 382 mHalDeviceManager.enableVerboseLogging(verbose); in enableVerboseLogging() 731 return mHalDeviceManager; in getHalDeviceManager()
|