Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 18 of 18) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DPersistentState.java120 SharedPreferences.Editor editor = getPreferences(0).edit(); in onPause() local
121 editor.putString("text", mSaved.getText().toString()); in onPause()
122 editor.putInt("selection-start", mSaved.getSelectionStart()); in onPause()
123 editor.putInt("selection-end", mSaved.getSelectionEnd()); in onPause()
124 editor.commit(); in onPause()
DRedirectGetter.java77 SharedPreferences.Editor editor = preferences.edit();
78 editor.putString("text", mText.getText().toString());
80 if (editor.commit()) {
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmStorage.java76 SharedPreferences.Editor editor = mSharedPreferences.edit(); in saveAlarm() local
77 editor.putString(String.valueOf(alarm.id), alarm.toJson()); in saveAlarm()
78 editor.apply(); in saveAlarm()
107 SharedPreferences.Editor editor = mSharedPreferences.edit(); in deleteAlarm() local
108 editor.remove(String.valueOf(alarm.id)); in deleteAlarm()
109 editor.apply(); in deleteAlarm()
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicy.java71 SharedPreferences.Editor editor = in saveToLocal() local
74 editor.putInt(KEY_PASSWORD_QUALITY, passwordQuality); in saveToLocal()
78 editor.putInt(KEY_PASSWORD_LENGTH, passwordLength); in saveToLocal()
82 editor.putInt(KEY_PASSWORD_MIN_UPPERCASE, passwordMinUppercase); in saveToLocal()
85 editor.commit(); in saveToLocal()
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DUtils.java95 SharedPreferences.Editor editor = prefs.edit(); in storeLocation() local
96 editor.putLong(PREFERENCES_LAT, Double.doubleToRawLongBits(location.latitude)); in storeLocation()
97 editor.putLong(PREFERENCES_LNG, Double.doubleToRawLongBits(location.longitude)); in storeLocation()
98 editor.apply(); in storeLocation()
125 SharedPreferences.Editor editor = prefs.edit(); in storeGeofenceEnabled() local
126 editor.putBoolean(PREFERENCES_GEOFENCE_ENABLED, enable); in storeGeofenceEnabled()
127 editor.apply(); in storeGeofenceEnabled()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageFetcher.java212 DiskLruCache.Editor editor = mHttpDiskCache.edit(key); in processBitmap() local
213 if (editor != null) { in processBitmap()
215 editor.newOutputStream(DISK_CACHE_INDEX))) { in processBitmap()
216 editor.commit(); in processBitmap()
218 editor.abort(); in processBitmap()
DDiskLruCache.java532 Editor editor = new Editor(entry); in edit() local
533 entry.currentEditor = editor; in edit()
538 return editor; in edit()
565 private synchronized void completeEdit(Editor editor, boolean success) throws IOException { in completeEdit() argument
566 Entry entry = editor.entry; in completeEdit()
567 if (entry.currentEditor != editor) { in completeEdit()
575 editor.abort(); in completeEdit()
DImageCache.java259 final DiskLruCache.Editor editor = mDiskLruCache.edit(key); in addBitmapToCache() local
260 if (editor != null) { in addBitmapToCache()
261 out = editor.newOutputStream(DISK_CACHE_INDEX); in addBitmapToCache()
264 editor.commit(); in addBitmapToCache()
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DMainActivity.java127 final SharedPreferences.Editor editor = in onCustomClicked() local
129 editor.putBoolean(CUSTOM_CONFIG_KEY, mCustomConfig.isChecked()).commit(); in onCustomClicked()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerFragment.java259 SharedPreferences.Editor editor = activity.getSharedPreferences(PREFS_DEVICE_OWNER, in savePersistentPreferredLauncher() local
262 editor.remove(PREF_LAUNCHER); in savePersistentPreferredLauncher()
264 editor.putString(PREF_LAUNCHER, packageName); in savePersistentPreferredLauncher()
266 editor.apply(); in savePersistentPreferredLauncher()
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/
DFitDistanceWatchFaceConfigActivity.java248 SharedPreferences.Editor editor = sharedPreferences.edit(); in setUserFitPreferences() local
249 editor.putBoolean(PREFS_FIT_ENABLED_BY_USER, userFitPreferences); in setUserFitPreferences()
250 editor.commit(); in setUserFitPreferences()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DKeyChainDemoActivity.java193 Editor editor = pref.edit(); in setAlias() local
194 editor.putString(KEYCHAIN_PREF_ALIAS, alias); in setAlias()
195 editor.commit(); in setAlias()
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DFingerprintAuthenticationDialogFragment.java177 SharedPreferences.Editor editor = mSharedPreferences.edit(); in verifyPassword() local
178 editor.putBoolean(getString(R.string.use_fingerprint_to_authenticate_key), in verifyPassword()
180 editor.apply(); in verifyPassword()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintAuthenticationDialogFragment.java226 SharedPreferences.Editor editor = mSharedPreferences.edit(); in verifyPassword() local
227 editor.putBoolean(getString(R.string.use_fingerprint_to_authenticate_key), in verifyPassword()
229 editor.apply(); in verifyPassword()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DChangedContacts.java148 SharedPreferences.Editor editor = pref.edit(); in saveLastTimestamp() local
149 editor.putLong(key, time); in saveLastTimestamp()
150 editor.commit(); in saveLastTimestamp()
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/
DSkeletonActivity.java54 mEditor = (EditText) findViewById(R.id.editor); in onCreate()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java446 SharedPreferences.Editor editor = sharedPreferences.edit(); in onActivityResult() local
447 editor.putInt(WearableMainActivity.PREFS_SPEED_LIMIT_KEY, newSpeedLimit); in onActivityResult()
448 editor.apply(); in onActivityResult()
/development/tools/checkstyle/
Dcheckstyle.jarMETA-INF/MANIFEST.MF META-INF/ checkstyle_packages.xml sun_checks.xml com/ ...