Searched refs:mSettingsFacade (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 74 @Mock private NetworkScorerAppManager.SettingsFacade mSettingsFacade; field in NetworkScorerAppManagerTest 93 mNetworkScorerAppManager = new NetworkScorerAppManager(mMockContext, mSettingsFacade); in setUp() 245 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_noChange() 253 verify(mSettingsFacade).putString(mMockContext, in testSetActiveScorer_nullPackage_currentIsSet() 255 verify(mSettingsFacade).putInt(mMockContext, in testSetActiveScorer_nullPackage_currentIsSet() 265 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_nullPackage_currentIsNull() 278 verify(mSettingsFacade).putString(mMockContext, in testSetActiveScorer_validPackage() 280 verify(mSettingsFacade).putInt(mMockContext, in testSetActiveScorer_validPackage() 293 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_invalidPackage() 302 verify(mSettingsFacade, never()).getString(any(), in testUpdateState_recommendationsForcedOff() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 53 private final SettingsFacade mSettingsFacade; field in NetworkScorerAppManager 62 mSettingsFacade = settingsFacade; in NetworkScorerAppManager() 220 return mSettingsFacade.getSecureInt(mContext, Settings.Secure.LOCATION_MODE, in isLocationModeEnabled() 313 mSettingsFacade.getString(mContext, Settings.Global.NETWORK_SCORER_APP); in migrateNetworkScorerAppSettingIfNeeded() 336 mSettingsFacade.getString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE); in migrateNetworkScorerAppSettingIfNeeded() 340 mSettingsFacade.putString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE, in migrateNetworkScorerAppSettingIfNeeded() 349 mSettingsFacade.putString(mContext, Settings.Global.NETWORK_SCORER_APP, null); in migrateNetworkScorerAppSettingIfNeeded() 353 mSettingsFacade.getString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE); in migrateNetworkScorerAppSettingIfNeeded() 364 return mSettingsFacade.getString(mContext, Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE); in getNetworkRecommendationsPackage() 368 mSettingsFacade.putString(mContext, in setNetworkRecommendationsPackage() [all …]
|