Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 10 of 10) 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/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/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/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/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()