Searched refs:editor (Results 1 – 10 of 10) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | PersistentState.java | 120 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()
|
D | RedirectGetter.java | 77 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/ |
D | Policy.java | 71 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/ |
D | ImageFetcher.java | 212 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()
|
D | DiskLruCache.java | 532 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()
|
D | ImageCache.java | 259 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/ |
D | MainActivity.java | 127 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/ |
D | KeyChainDemoActivity.java | 193 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/ |
D | ChangedContacts.java | 148 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/ |
D | SkeletonActivity.java | 54 mEditor = (EditText) findViewById(R.id.editor); in onCreate()
|