Searched refs:mMockSystemServices (Results 1 – 2 of 2) sorted by relevance
96 private final MockSystemServices mMockSystemServices; field in DpmMockContext171 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 …]
64 private ArrayMap<String, Object> mMockSystemServices; field in TestableContext148 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()