Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 4 of 4) sorted by relevance

/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DUtils.java49 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context); in saveCounterToPreference() local
52 pref.edit().remove(PREF_KEY_COUNTER).apply(); in saveCounterToPreference()
54 pref.edit().putInt(PREF_KEY_COUNTER, value).apply(); in saveCounterToPreference()
63 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context); in getCounterFromPreference() local
64 return pref.getInt(PREF_KEY_COUNTER, 0); in getCounterFromPreference()
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
DComplicationToggleReceiver.java41 SharedPreferences pref = context.getSharedPreferences(PREFERENCES_NAME, 0); in onReceive() local
42 int value = pref.getInt(preferenceKey, 0); in onReceive()
43 SharedPreferences.Editor editor = pref.edit(); in onReceive()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/
DDebugService.java75 MyPreferences pref = MyPreferences.getInstance(getApplicationContext()); in onConnected() local
76 mAuthenticateResponses = pref.isResponseAuth(); in onConnected()
77 mAuthenticateDatasets = pref.isDatasetAuth(); in onConnected()
78 mNumberDatasets = pref.getNumberDatasets(4); in onConnected()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DNotificationsActivity.java117 public void initPushNotification(Preference pref) { in initPushNotification() argument
118 pref.setOnPreferenceClickListener( in initPushNotification()