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.java96 private final MockSystemServices mMockSystemServices; field in DpmMockContext
171 mMockSystemServices = mockSystemServices; in DpmMockContext()
209 return mMockSystemServices.alarmManager; in getSystemService()
211 return mMockSystemServices.userManager; in getSystemService()
213 return mMockSystemServices.powerManager; in getSystemService()
215 return mMockSystemServices.wifiManager; in getSystemService()
217 return mMockSystemServices.accountManager; in getSystemService()
219 return mMockSystemServices.telephonyManager; in getSystemService()
231 return mMockSystemServices.packageManager; in getPackageManager()
235 return mMockSystemServices.userManagerInternal; in getUserManagerInternal()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java64 private ArrayMap<String, Object> mMockSystemServices; field in TestableContext
148 if (mMockSystemServices == null) mMockSystemServices = new ArrayMap<>(); in addMockSystemService()
149 mMockSystemServices.put(name, service); in addMockSystemService()
159 if (mMockSystemServices != null && mMockSystemServices.containsKey(name)) { in getSystemService()
160 return mMockSystemServices.get(name); in getSystemService()