/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/ |
D | shared-preferences.jd | 15 <li><a href="#GetSharedPreferences">SharedPreferences에 대한 핸들 가져오기</a></li> 16 <li><a href="#WriteSharedPreference">SharedPreferences에 쓰기</a></li> 17 <li><a href="#ReadSharedPreference">SharedPreferences에서 읽어오기</a></li> 22 <li><a href="{@docRoot}guide/topics/data/data-storage.html#pref">SharedPreferences 사용하기</a></li> 30 {@link android.content.SharedPreferences} API를 사용합니다. 31 {@link android.content.SharedPreferences} 개체는 33 {@link android.content.SharedPreferences} 파일은 프레임워크로 36 <p>이 클래스에서는 {@link android.content.SharedPreferences} API를 사용하여 단순한 값을 저장하고 39 <p class="note"><strong>참고:</strong> {@link android.content.SharedPreferences} API는 40 키-값 쌍을 읽고 쓰는 용도로만 사용됩니다. 또한, (앱 설정을 저장하는 데 대한 구현으로 {@link android.content.SharedPreferences}를 [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/ |
D | shared-preferences.jd | 15 <li><a href="#GetSharedPreferences">取得 SharedPreferences 的控點</a></li> 29 <p>若您希望儲存相對較小的索引鍵值集合,應使用 {@link android.content.SharedPreferences} API。 30 {@link android.content.SharedPreferences} 物件指向包含索引鍵值配對的檔案,並提供讀取及寫入這些配對的簡單方法。 32 每個 {@link android.content.SharedPreferences} 檔案都由架構管理,可以是公用或私用檔案。 36 <p>本課程將為您展示如何使用 {@link android.content.SharedPreferences} API 儲存及擷取簡單值。 39 …SharedPreferences} API 僅用於讀取及寫入索引鍵值配對,不應將其與 {@link android.preference.Preference} API 混淆,後者可協助您建置應… 46 <h2 id="GetSharedPreferences">取得 SharedPreferences 的控點</h2> 68 SharedPreferences sharedPref = context.getSharedPreferences( 79 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); 90 <p>若要寫入至共用偏好設定檔案,請針對您的 {@link android.content.SharedPreferences} 呼叫 {@link [all …]
|
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/ |
D | shared-preferences.jd | 15 <li><a href="#GetSharedPreferences">Получение средства обработки SharedPreferences</a></li> 30 используйте {@link android.content.SharedPreferences} API-интерфейсы. 31 Объект {@link android.content.SharedPreferences} указывает на файл, 33 файлом {@link android.content.SharedPreferences} осуществляется 36 … вы узнаете, как использовать API-интерфейсы {@link android.content.SharedPreferences} для сохране… 39 …><strong>Примечание.</strong> API-интерфейсы {@link android.content.SharedPreferences} предназначе… 42 для настроек приложения (хотя они используют {@link android.content.SharedPreferences} в качестве с… 46 <h2 id="GetSharedPreferences">Получение средства обработки SharedPreferences</h2> 68 SharedPreferences sharedPref = context.getSharedPreferences( 79 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); [all …]
|
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/ |
D | shared-preferences.jd | 15 <li><a href="#GetSharedPreferences">SharedPreferences を操作する</a></li> 30 {@link android.content.SharedPreferences} API を使用する必要があります。 31 {@link android.content.SharedPreferences} オブジェクトは、キー値のペアを含むファイルをポイントし、読み取りと書き込み用の単純なメソッドを提供します。 33 {@link android.content.SharedPreferences} ファイルは、フレームワークによって管理され、プライベートまたは共有にすることができます。 36 <p>このクラスでは、{@link android.content.SharedPreferences} API を使用して単純な値を格納し、取得する方法について説明します。 39 <p class="note"><strong>注:</strong> {@link android.content.SharedPreferences} API は、キー値のペアの読み取りおよび書… 41 {@link android.content.SharedPreferences} を実装として使用してアプリの設定を保存します)。 46 <h2 id="GetSharedPreferences">SharedPreferences を操作する</h2> 68 SharedPreferences sharedPref = context.getSharedPreferences( 79 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/ |
D | shared-preferences.jd | 29 <p>如果您有想要保存的相对较小键值集合,您应使用 {@link android.content.SharedPreferences} API。 30 {@link android.content.SharedPreferences} 对象指向包含键值对的文件并提供读写这些文件的简单方法。 33 {@link android.content.SharedPreferences} 文件由框架进行管理并且可以专用或共享。 36 <p>本课向您展示如何使用 {@link android.content.SharedPreferences} API 存储和检索简单的值。 39 <p class="note"><strong>注意:</strong>{@link android.content.SharedPreferences} API 仅用于读写键值对,您不得将其与 40 …Preference} API 混淆,后者帮助您为您的应用设置构建用户界面(尽管它们使用 {@link android.content.SharedPreferences} 作为其实现以保存应用设… 68 SharedPreferences sharedPref = context.getSharedPreferences( 79 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); 90 <p>要写入共享首选项文件, 请通过对您的 {@link android.content.SharedPreferences} 调用 {@link 91 android.content.SharedPreferences#edit} 来创建一个 {@link [all …]
|
/frameworks/base/docs/html/training/basics/data-storage/ |
D | shared-preferences.jd | 15 <li><a href="#GetSharedPreferences">Get a Handle to a SharedPreferences</a></li> 30 you should use the {@link android.content.SharedPreferences} APIs. 31 A {@link android.content.SharedPreferences} object points to a file containing 33 {@link android.content.SharedPreferences} file is 36 <p>This class shows you how to use the {@link android.content.SharedPreferences} APIs to store and 39 <p class="note"><strong>Note:</strong> The {@link android.content.SharedPreferences} APIs are 42 for your app settings (although they use {@link android.content.SharedPreferences} as their 47 <h2 id="GetSharedPreferences">Get a Handle to a SharedPreferences</h2> 69 SharedPreferences sharedPref = context.getSharedPreferences( 80 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); [all …]
|
/frameworks/base/docs/html-intl/intl/pt-br/training/basics/data-storage/ |
D | shared-preferences.jd | 30 use as APIs {@link android.content.SharedPreferences}. 31 Um objeto {@link android.content.SharedPreferences} indica um arquivo que contém 33 {@link android.content.SharedPreferences} é 36 <p>Essa lição mostra como usar as APIs {@link android.content.SharedPreferences} para armazenar e 39 <p class="note"><strong>Observação:</strong> as APIs {@link android.content.SharedPreferences} são 42 para as configurações do seu aplicativo (embora usem {@link android.content.SharedPreferences} como 68 SharedPreferences sharedPref = context.getSharedPreferences( 79 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); 91 android.content.SharedPreferences.Editor} chamando {@link 92 android.content.SharedPreferences#edit} em seu {@link android.content.SharedPreferences}.</p> [all …]
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | SharedPreferencesCompat.java | 19 import android.content.SharedPreferences; 30 void apply(@NonNull SharedPreferences.Editor editor); in apply() 36 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() 44 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() 66 public void apply(@NonNull SharedPreferences.Editor editor) { in apply()
|
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/ |
D | SampleTrustAgent.java | 23 import android.content.SharedPreferences; 34 implements SharedPreferences.OnSharedPreferenceChangeListener { 180 SharedPreferences sharedPreferences = PreferenceManager in setReportUnlockAttempts() 186 SharedPreferences sharedPreferences = PreferenceManager in getReportUnlockAttempts() 192 SharedPreferences sharedPreferences = PreferenceManager in setReportDeviceLocked() 198 SharedPreferences sharedPreferences = PreferenceManager in getReportDeviceLocked() 204 SharedPreferences sharedPreferences = PreferenceManager in setIsManagingTrust() 210 SharedPreferences sharedPreferences = PreferenceManager in getIsManagingTrust() 216 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | PreferenceManager.java | 20 import android.content.SharedPreferences; 53 private SharedPreferences mSharedPreferences; 59 private SharedPreferences.Editor mEditor; 194 public SharedPreferences getSharedPreferences() { in getSharedPreferences() 211 public static SharedPreferences getDefaultSharedPreferences(Context context) { in getDefaultSharedPreferences() 321 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues() 330 SharedPreferences.Editor editor = in setDefaultValues() 345 SharedPreferences.Editor getEditor() { in getEditor()
|
/frameworks/ex/common/java/com/android/common/ |
D | SharedPreferencesCompat.java | 19 import android.content.SharedPreferences; 32 Class cls = SharedPreferences.Editor.class; 39 public static void apply(SharedPreferences.Editor editor) { in apply()
|
D | OperationScheduler.java | 19 import android.content.SharedPreferences; 76 private final SharedPreferences mStorage; 82 public OperationScheduler(SharedPreferences storage) { in OperationScheduler() 318 SharedPreferences.Editor editor = mStorage.edit(); in onTransientError()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportPrefs.java | 20 import android.content.SharedPreferences; 35 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState() 41 final SharedPreferences prefs = context.getSharedPreferences( in setWarningState()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | SettingsActivity.java | 17 import android.content.SharedPreferences; 18 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumePrefs.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 58 private static SharedPreferences prefs(Context context) { in prefs()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 24 import android.content.SharedPreferences; 88 private SharedPreferences mSharedPreferences; 94 private SharedPreferences.Editor mEditor; 352 public SharedPreferences getSharedPreferences() { in getSharedPreferences() 369 public static SharedPreferences getDefaultSharedPreferences(Context context) { in getDefaultSharedPreferences() 479 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues() 488 SharedPreferences.Editor editor = in setDefaultValues() 509 SharedPreferences.Editor getEditor() { in getEditor()
|
D | Preference.java | 27 import android.content.SharedPreferences; 1056 public SharedPreferences getSharedPreferences() { in getSharedPreferences() 1083 public SharedPreferences.Editor getEditor() { in getEditor() 1412 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit() 1446 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() 1498 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet() 1547 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() 1591 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistFloat() 1635 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistLong() 1679 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistBoolean()
|
/frameworks/support/v4/gingerbread/android/support/v4/content/ |
D | EditorCompatGingerbread.java | 19 import android.content.SharedPreferences; 23 public static void apply(@NonNull SharedPreferences.Editor editor) { in apply()
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 22 import android.content.SharedPreferences; 98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents() 182 DropBoxManager db, SharedPreferences prefs, in addFileToDropBox() 189 DropBoxManager db, SharedPreferences prefs, in addFileWithFootersToDropBox() 210 private static void addAuditErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, in addAuditErrorsToDropBox() 243 private static void addFsckErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, in addFsckErrorsToDropBox()
|
/frameworks/multidex/library/src/android/support/multidex/ |
D | MultiDexExtractor.java | 20 import android.content.SharedPreferences; 137 SharedPreferences prefs = getMultiDexPreferences(context); in isModified() 232 SharedPreferences prefs = getMultiDexPreferences(context); in putStoredApkInfo() 233 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo() 244 private static SharedPreferences getMultiDexPreferences(Context context) { in getMultiDexPreferences() 378 Class<?> cls = SharedPreferences.Editor.class; 385 private static void apply(SharedPreferences.Editor editor) { in apply()
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetConfigure.java | 21 import android.content.SharedPreferences; 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
|
D | TestAppWidgetProvider.java | 23 import android.content.SharedPreferences; 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 110 private static SharedPreferences get(Context context) { in get()
|
/frameworks/base/core/java/android/content/ |
D | SharedPreferences.java | 44 public interface SharedPreferences { interface 61 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 26 import android.content.SharedPreferences; 114 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 123 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 125 SharedPreferences.Editor editor = prefs.edit();
|