/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/ |
H A D | EmergencyContactsPreferenceTest.java | 59 @Mock private SharedPreferences mSharedPreferences; field in class:EmergencyContactsPreferenceTest 69 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); 152 when(mSharedPreferences.getString(eq(mPreference.getKey()), any()))
|
H A D | EmergencyEditTextPreferenceTest.java | 47 @Mock private SharedPreferences mSharedPreferences; field in class:EmergencyEditTextPreferenceTest 54 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); 78 when(mSharedPreferences.getString(eq(mPreference.getKey()), nullable(String.class)))
|
H A D | EmergencyListPreferenceTest.java | 51 @Mock private SharedPreferences mSharedPreferences; field in class:EmergencyListPreferenceTest 58 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); 75 when(mSharedPreferences.getString( 98 when(mSharedPreferences.getString(
|
H A D | NameAutoCompletePreferenceTest.java | 53 @Mock private SharedPreferences mSharedPreferences; field in class:NameAutoCompletePreferenceTest 61 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); 87 when(mSharedPreferences.getString(eq(mPreference.getKey()), nullable(String.class)))
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | CameraPreference.java | 33 private SharedPreferences mSharedPreferences; field in class:CameraPreference 55 if (mSharedPreferences == null) { 56 mSharedPreferences = ComboPreferences.get(mContext); 58 return mSharedPreferences;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | ManagedProvisioningSharedPreferences.java | 36 private final SharedPreferences mSharedPreferences; field in class:ManagedProvisioningSharedPreferences 39 mSharedPreferences = context.getSharedPreferences(SHARED_PREFERENCE, Context.MODE_PRIVATE); 44 return mSharedPreferences.getLong(KEY_PROVISIONING_ID, DEFAULT_PROVISIONING_ID); 56 mSharedPreferences.edit().putLong(KEY_PROVISIONING_ID, provisioningId).commit();
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | ManagedProvisioningSharedPreferencesTest.java | 42 SharedPreferences mSharedPreferences; field in class:ManagedProvisioningSharedPreferencesTest 50 mSharedPreferences = targetContext.getSharedPreferences(KEY_TEST_SHARED_PREFERENCE, 55 .thenReturn(mSharedPreferences); 65 mSharedPreferences.edit().clear().commit();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/ |
H A D | DeviceNameSuggestionStatus.java | 28 private SharedPreferences mSharedPreferences; field in class:DeviceNameSuggestionStatus 42 mSharedPreferences = context.getSharedPreferences( 51 mSharedPreferences.edit().putBoolean(IS_SUGGESTION_FINISHED, true).apply(); 60 return mSharedPreferences.getBoolean(IS_SUGGESTION_FINISHED, false);
|
/packages/apps/Contacts/src/com/android/contacts/testing/ |
H A D | InjectedServices.java | 34 private SharedPreferences mSharedPreferences; field in class:InjectedServices 46 this.mSharedPreferences = sharedPreferences; 50 return mSharedPreferences;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
H A D | PropertiesProvisioningDataParser.java | 85 private final ManagedProvisioningSharedPreferences mSharedPreferences; field in class:PropertiesProvisioningDataParser 96 mSharedPreferences = checkNotNull(sharedPreferences); 117 .setProvisioningId(mSharedPreferences.incrementAndGetProvisioningId())
|
H A D | ExtrasProvisioningDataParser.java | 110 private final ManagedProvisioningSharedPreferences mSharedPreferences; field in class:ExtrasProvisioningDataParser 121 mSharedPreferences = checkNotNull(sharedPreferences); 175 final long provisioningId = mSharedPreferences.incrementAndGetProvisioningId();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
H A D | CachedStorageValuesHelperTest.java | 60 private SharedPreferences mSharedPreferences; field in class:CachedStorageValuesHelperTest 66 mSharedPreferences = mContext.getSharedPreferences(SHARED_PREFERENCES_NAME, 0); 74 mSharedPreferences 102 mSharedPreferences 141 mSharedPreferences 167 mSharedPreferences 194 mSharedPreferences 220 mSharedPreferences 275 assertThat(mSharedPreferences.getLong(GAME_APPS_SIZE_KEY, -1)).isEqualTo(1L); 276 assertThat(mSharedPreferences [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/preference/ |
H A D | ContactsPreferencesTest.java | 43 @Mock private SharedPreferences mSharedPreferences; field in class:ContactsPreferencesTest 59 .thenReturn(mSharedPreferences); 60 Mockito.when(mSharedPreferences.contains(ContactsPreferences.SORT_ORDER_KEY)) 62 Mockito.when(mSharedPreferences.contains(ContactsPreferences.DISPLAY_ORDER_KEY)) 64 Mockito.when(mSharedPreferences.contains(ContactsPreferences.PHONETIC_NAME_DISPLAY_KEY)) 88 Mockito.when(mSharedPreferences.getInt(Mockito.eq(ContactsPreferences.SORT_ORDER_KEY), 107 Mockito.when(mSharedPreferences.getInt(Mockito.eq(ContactsPreferences.DISPLAY_ORDER_KEY), 126 Mockito.when(mSharedPreferences.getInt( 137 Mockito.when(mSharedPreferences.getInt( 154 Mockito.when(mSharedPreferences [all...] |
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/ |
H A D | PreferenceUtilsTest.java | 59 @Mock SharedPreferences mSharedPreferences; field in class:PreferenceUtilsTest 75 when(mContext.getSharedPreferences(anyString(), anyInt())).thenReturn(mSharedPreferences); 76 when(mSharedPreferences.edit()).thenReturn(mSharedPreferencesEditor); 83 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn(""); 90 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn("mxyzptlk"); 97 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) 107 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) 130 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) 146 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn(""); 158 when(mSharedPreferences [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
H A D | BillingCycleSettingsTest.java | 75 SharedPreferences mSharedPreferences; field in class:BillingCycleSettingsTest 83 mSharedPreferences = RuntimeEnvironment.application.getSharedPreferences( 86 when(mMockPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); 90 mSharedPreferences.edit().putBoolean( 98 assertFalse(mSharedPreferences.getBoolean(BillingCycleSettings.KEY_SET_DATA_LIMIT, true)); 106 assertTrue(mSharedPreferences.getBoolean(BillingCycleSettings.KEY_SET_DATA_LIMIT, false));
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
H A D | SharedPreferencesFeature.java | 32 private SharedPreferences mSharedPreferences; field in class:SharedPreferencesFeature 53 if (mSharedPreferences == null) { 54 mSharedPreferences = 57 mEnabled = mSharedPreferences.getBoolean(mKey, mDefaultValue); 70 if (mSharedPreferences == null) { 71 mSharedPreferences = 75 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); 78 mSharedPreferences.edit().putBoolean(mKey, enable).apply();
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
H A D | Setting.java | 30 private final SharedPreferences mSharedPreferences; field in class:Setting 35 mSharedPreferences = null; 39 mSharedPreferences = sharedPreferences; 47 mSharedPreferences = sharedPreferences; 74 return mSharedPreferences.getInt(mKey, -1); 78 return mSharedPreferences.getString(mKey, ""); 82 mSharedPreferences.edit().putInt(mKey, value).apply(); 87 mSharedPreferences.edit().putString(mKey, value).apply();
|
H A D | SettingsDialog.java | 57 private SharedPreferences mSharedPreferences; field in class:SettingsDialog 65 mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); 137 mSharedPreferences.registerOnSharedPreferenceChangeListener(mPresetSettingsListener); 144 mSharedPreferences.unregisterOnSharedPreferenceChangeListener(mPresetSettingsListener); 150 settings.add(new Setting(mSharedPreferences, "preset", 158 new Setting(mSharedPreferences, settingKeys[i], settingNames[i],
|
/packages/apps/EmergencyInfo/src/com/android/emergency/view/ |
H A D | ViewInfoActivity.java | 58 private SharedPreferences mSharedPreferences; field in class:ViewInfoActivity 80 mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); 99 String name = mSharedPreferences.getString(PreferenceKeys.KEY_NAME, "");
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
H A D | CachedStorageValuesHelper.java | 49 private final SharedPreferences mSharedPreferences; field in class:CachedStorageValuesHelper 56 mSharedPreferences = 71 final long freeBytes = mSharedPreferences.getLong(FREE_BYTES_KEY, -1); 72 final long totalBytes = mSharedPreferences.getLong(TOTAL_BYTES_KEY, -1); 84 final long gamesSize = mSharedPreferences.getLong(GAME_APPS_SIZE_KEY, -1); 85 final long musicAppsSize = mSharedPreferences.getLong(MUSIC_APPS_SIZE_KEY, -1); 86 final long videoAppsSize = mSharedPreferences.getLong(VIDEO_APPS_SIZE_KEY, -1); 87 final long photoAppSize = mSharedPreferences.getLong(PHOTO_APPS_SIZE_KEY, -1); 88 final long otherAppsSize = mSharedPreferences.getLong(OTHER_APPS_SIZE_KEY, -1); 89 final long cacheSize = mSharedPreferences [all...] |
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
H A D | ActiveMediaSourceManager.java | 56 private final SharedPreferences mSharedPreferences; field in class:ActiveMediaSourceManager 116 mSharedPreferences = mContext.getSharedPreferences(PLAYBACK_MODEL_SHARED_PREFS, 302 return mSharedPreferences.getString(PLAYBACK_MODEL_ACTIVE_PACKAGE_NAME_KEY, null); 306 mSharedPreferences.edit()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
H A D | PersonalWorkSlidingTabStrip.java | 46 private final SharedPreferences mSharedPreferences; field in class:PersonalWorkSlidingTabStrip 75 mSharedPreferences = Launcher.getLauncher(getContext()).getSharedPrefs(); 132 if (mSharedPreferences.getBoolean(KEY_SHOWED_PEEK_WORK_TAB, false)) { 139 mSharedPreferences.edit().putBoolean(KEY_SHOWED_PEEK_WORK_TAB, true).apply();
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
H A D | ExtrasProvisioningDataParserTest.java | 151 private ManagedProvisioningSharedPreferences mSharedPreferences; field in class:ExtrasProvisioningDataParserTest 166 when(mSharedPreferences.incrementAndGetProvisioningId()).thenReturn(TEST_PROVISIONING_ID); 169 mSharedPreferences);
|
H A D | PropertiesProvisioningDataParserTest.java | 130 private ManagedProvisioningSharedPreferences mSharedPreferences; field in class:PropertiesProvisioningDataParserTest 141 when(mSharedPreferences.incrementAndGetProvisioningId()).thenReturn(TEST_PROVISIONING_ID); 143 new Utils(), mSharedPreferences);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | BluetoothDiscoverableEnabler.java | 68 private final SharedPreferences mSharedPreferences; field in class:BluetoothDiscoverableEnabler 99 mSharedPreferences = discoveryPreference.getSharedPreferences(); 204 mSharedPreferences.edit().putString(KEY_DISCOVERABLE_TIMEOUT, timeoutValue).apply(); 215 String timeoutValue = mSharedPreferences.getString(KEY_DISCOVERABLE_TIMEOUT,
|