Home
last modified time | relevance | path

Searched refs:mMockSystemServices (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java99 private final MockSystemServices mMockSystemServices; field in DpmMockContext
179 mMockSystemServices = mockSystemServices; in DpmMockContext()
227 return mMockSystemServices.alarmManager; in getSystemService()
229 return mMockSystemServices.userManager; in getSystemService()
231 return mMockSystemServices.powerManager; in getSystemService()
233 return mMockSystemServices.wifiManager; in getSystemService()
235 return mMockSystemServices.accountManager; in getSystemService()
237 return mMockSystemServices.telephonyManager; in getSystemService()
239 return mMockSystemServices.connectivityManager; in getSystemService()
241 return mMockSystemServices.appOpsManager; in getSystemService()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java70 private ArrayMap<String, Object> mMockSystemServices; field in TestableContext
166 if (mMockSystemServices == null) mMockSystemServices = new ArrayMap<>(); in addMockSystemService()
167 mMockSystemServices.put(name, service); in addMockSystemService()
177 if (mMockSystemServices != null && mMockSystemServices.containsKey(name)) { in getSystemService()
178 return mMockSystemServices.get(name); in getSystemService()