Home
last modified time | relevance | path

Searched refs:mSettingsHelper (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperTest.java52 private SettingsHelper mSettingsHelper; field in SettingsHelperTest
66 mSettingsHelper = spy(new SettingsHelper(mContext)); in setUp()
71 when(mSettingsHelper.isReplacedSystemSetting(eq(SETTING_KEY))).thenReturn(true); in testOnBackupValue_settingReplaced_returnsRealValue()
72 doReturn(SETTING_REAL_VALUE).when(mSettingsHelper).getRealValueForSystemSetting( in testOnBackupValue_settingReplaced_returnsRealValue()
75 assertEquals(SETTING_REAL_VALUE, mSettingsHelper.onBackupValue(SETTING_KEY, SETTING_VALUE)); in testOnBackupValue_settingReplaced_returnsRealValue()
80 when(mSettingsHelper.isReplacedSystemSetting(eq(SETTING_KEY))).thenReturn(false); in testGetRealValue_settingNotReplaced_returnsSameValue()
82 assertEquals(SETTING_VALUE, mSettingsHelper.onBackupValue(SETTING_KEY, SETTING_VALUE)); in testGetRealValue_settingNotReplaced_returnsSameValue()
87 when(mSettingsHelper.isReplacedSystemSetting(eq(SETTING_KEY))).thenReturn(true); in testRestoreValue_settingReplaced_doesNotRestore()
88 mSettingsHelper.restoreValue(mContext, mContentResolver, new ContentValues(), Uri.EMPTY, in testRestoreValue_settingReplaced_doesNotRestore()
DSettingsHelperRestoreTest.java47 private SettingsHelper mSettingsHelper; field in SettingsHelperRestoreTest
53 mSettingsHelper = new SettingsHelper(mContext); in setUp()
69 mSettingsHelper.restoreValue( in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
92 mSettingsHelper.restoreValue( in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
135 mSettingsHelper.restoreValue( in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_alreadyConfigured_doesNotRestoreValue()
157 mSettingsHelper.restoreValue( in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_notAlreadyConfigured_restoresValue()
DSettingsBackupAgentTest.java97 mAgentUnderTest.mSettingsHelper = helper; in testRoundTripDeviceSpecificSettings()
115 mAgentUnderTest.mSettingsHelper = helper; in testRoundTripDeviceSpecificSettingsWithBlock()
133 mAgentUnderTest.mSettingsHelper = new TestSettingsHelper(mContext); in testGeneratedHeaderMatchesCurrentDevice()
205 mAgentUnderTest.mSettingsHelper = settingsHelper; in testOnRestore_preservedSettingsAreNotRestored()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java257 protected final SettingsHelper mSettingsHelper; field in GeofenceManager
269 mSettingsHelper = injector.getSettingsHelper(); in GeofenceManager()
330 if (!mSettingsHelper.isLocationEnabled(mUserInfoHelper.getCurrentUserId())) { in isActive()
334 if (!mSettingsHelper.isLocationEnabled(identity.getUserId())) { in isActive()
340 if (mSettingsHelper.isLocationPackageBlacklisted(identity.getUserId(), in isActive()
352 mSettingsHelper.addOnLocationEnabledChangedListener(mLocationEnabledChangedListener); in onRegister()
353 mSettingsHelper.addOnLocationPackageBlacklistChangedListener( in onRegister()
361 mSettingsHelper.removeOnLocationEnabledChangedListener(mLocationEnabledChangedListener); in onUnregister()
362 mSettingsHelper.removeOnLocationPackageBlacklistChangedListener( in onUnregister()
438 mSettingsHelper.getBackgroundThrottleProximityAlertIntervalMs(), in mergeRegistrations()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssListenerMultiplexer.java182 protected final SettingsHelper mSettingsHelper; field in GnssListenerMultiplexer
214 mSettingsHelper = injector.getSettingsHelper(); in GnssListenerMultiplexer()
303 if (mSettingsHelper.isLocationPackageBlacklisted(identity.getUserId(), in isActive()
317 if (mSettingsHelper.getBackgroundThrottlePackageWhitelist().contains( in isBackgroundRestrictionExempt()
349 mSettingsHelper.addOnBackgroundThrottlePackageWhitelistChangedListener( in onRegister()
351 mSettingsHelper.addOnLocationPackageBlacklistChangedListener( in onRegister()
366 mSettingsHelper.removeOnBackgroundThrottlePackageWhitelistChangedListener( in onUnregister()
368 mSettingsHelper.removeOnLocationPackageBlacklistChangedListener( in onUnregister()
DGnssMeasurementsProvider.java146 mSettingsHelper.addOnGnssMeasurementsFullTrackingEnabledChangedListener(this); in onActive()
151 mSettingsHelper.removeOnGnssMeasurementsFullTrackingEnabledChangedListener(this); in onInactive()
166 if (mSettingsHelper.isGnssMeasurementsFullTrackingEnabled()) { in mergeRegistrations()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DTestInjector.java30 private final FakeSettingsHelper mSettingsHelper; field in TestInjector
46 mSettingsHelper = new FakeSettingsHelper(); in TestInjector()
84 return mSettingsHelper; in getSettingsHelper()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java631 if (!mSettingsHelper.getIgnoreSettingsAllowlist().contains( in calculateProviderLocationRequest()
658 mSettingsHelper.getBackgroundThrottleIntervalMs())); in calculateProviderLocationRequest()
666 if (mSettingsHelper.getBackgroundThrottlePackageWhitelist().contains( in isThrottlingExempt()
1309 protected final SettingsHelper mSettingsHelper;
1377 mSettingsHelper = injector.getSettingsHelper();
1387 mLocationFudger = new LocationFudger(mSettingsHelper.getCoarseLocationAccuracyM());
1408 mSettingsHelper.addOnLocationEnabledChangedListener(mLocationEnabledChangedListener);
1436 mSettingsHelper.removeOnLocationEnabledChangedListener(mLocationEnabledChangedListener);
1865 mSettingsHelper.addOnBackgroundThrottleIntervalChangedListener(
1867 mSettingsHelper.addOnBackgroundThrottlePackageWhitelistChangedListener(
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java196 SettingsHelper mSettingsHelper; field in SettingsBackupAgent
208 mSettingsHelper = new SettingsHelper(this); in onCreate()
220 byte[] locale = mSettingsHelper.getLocaleData(); in onBackup()
324 mSettingsHelper.applyAudioSettings(); in onRestore()
357 mSettingsHelper.setLocaleData(localeData, size); in onRestore()
483 mSettingsHelper.setLocaleData(buffer, nBytes); in onRestoreFile()
777 SettingsHelper settingsHelper = mSettingsHelper; in restoreSettings()
1012 value = mSettingsHelper.onBackupValue(key, value); in extractRelevantValues()
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java1691 private final SystemSettingsHelper mSettingsHelper; field in LocationManagerService.SystemInjector
1717 mSettingsHelper = new SystemSettingsHelper(context); in SystemInjector()
1730 mSettingsHelper.onSystemReady(); in onSystemReady()
1771 return mSettingsHelper; in getSettingsHelper()