Searched refs:mockService (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkStack.java | 59 final IBinder mockService = sMockService; in getService() local 60 if (mockService != null) return mockService; in getService() 72 public static void setServiceForTest(@Nullable IBinder mockService) { in setServiceForTest() argument 73 sMockService = mockService; in setServiceForTest()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 113 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() method in MultipathPolicyTrackerTest 143 mockService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class, mCM); in setUp() 144 mockService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, mNPM); in setUp() 145 mockService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, mStatsManager); in setUp() 146 mockService(Context.TELEPHONY_SERVICE, TelephonyManager.class, mTelephonyManager); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 176 private static <T, I> IBinder mockService(Class<T> class1, Class<I> iface) { in mockService() method in ClientModeImplTest 195 IBinder p2pBinder = mockService(WifiP2pServiceImpl.class, IWifiP2pManager.class); in getFrameworkFacade() 215 IBinder batteryStatsBinder = mockService(BatteryStats.class, IBatteryStats.class); in getFrameworkFacade()
|