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