Searched refs:mDataStore (Results 1 – 3 of 3) sorted by relevance
73 private PreferenceDataStore mDataStore; field in PreferenceDataStoreTest87 mDataStore = mock(PreferenceDataStore.class); in setup()116 preference.setPreferenceDataStore(mDataStore); in testSetGetOnPreference()118 assertEquals(mDataStore, preference.getPreferenceDataStore()); in testSetGetOnPreference()123 mManager.setPreferenceDataStore(mDataStore); in testSetGetOnPreferenceManager()125 assertEquals(mDataStore, mManager.getPreferenceDataStore()); in testSetGetOnPreferenceManager()134 mManager.setPreferenceDataStore(mDataStore); in testSetOnPreferenceManagerGetOnPreference()136 assertEquals(mDataStore, preference.getPreferenceDataStore()); in testSetOnPreferenceManagerGetOnPreference()143 mPreference.setPreferenceDataStore(mDataStore); in testDataStoresHierarchy()152 assertEquals(mDataStore, mPreference.getPreferenceDataStore()); in testDataStoresHierarchy()[all …]
47 private PersistentDataStore mDataStore; field in PersistentDataStoreTest53 mDataStore = new PersistentDataStore(mInjector); in setUp()80 mDataStore.loadIfNeeded(); in testLoadingBrightnessConfigurations()81 BrightnessConfiguration config = mDataStore.getBrightnessConfiguration(1 /*userSerial*/); in testLoadingBrightnessConfigurations()89 config = mDataStore.getBrightnessConfiguration(3 /*userSerial*/); in testLoadingBrightnessConfigurations()113 mDataStore.loadIfNeeded(); in testBrightnessConfigWithInvalidCurveIsIgnored()114 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testBrightnessConfigWithInvalidCurveIsIgnored()132 mDataStore.loadIfNeeded(); in testBrightnessConfigWithInvalidFloatsIsIgnored()133 assertNull(mDataStore.getBrightnessConfiguration(0 /*userSerial*/)); in testBrightnessConfigWithInvalidFloatsIsIgnored()144 mDataStore.loadIfNeeded(); in testEmptyBrightnessConfigurationsDoesntCrash()[all …]
157 private final PersistentDataStore mDataStore = new PersistentDataStore(); field in InputManagerService787 synchronized (mDataStore) { in deliverInputDevicesChanged()909 synchronized (mDataStore) { in getTouchCalibrationForInputDevice()910 return mDataStore.getTouchCalibration(inputDeviceDescriptor, surfaceRotation); in getTouchCalibrationForInputDevice()931 synchronized (mDataStore) { in setTouchCalibrationForInputDevice()933 if (mDataStore.setTouchCalibration(inputDeviceDescriptor, surfaceRotation, in setTouchCalibrationForInputDevice()938 mDataStore.saveIfNeeded(); in setTouchCalibrationForInputDevice()1056 synchronized (mDataStore) { in updateKeyboardLayouts()1058 mDataStore.removeUninstalledKeyboardLayouts(availableKeyboardLayouts); in updateKeyboardLayouts()1060 mDataStore.saveIfNeeded(); in updateKeyboardLayouts()[all …]