Home
last modified time | relevance | path

Searched defs:prefs (Results 1 – 18 of 18) sorted by relevance

/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DAccountStorage.java42 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in SetAccount() local
51 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in GetAccount() local
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DUtils.java94 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in storeLocation() local
109 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getLocation() local
124 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in storeGeofenceEnabled() local
134 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getGeofenceEnabled() local
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
DSimpleGeofenceStore.java87 SharedPreferences.Editor prefs = mPrefs.edit(); in setGeofence() local
104 SharedPreferences.Editor prefs = mPrefs.edit(); in clearGeofence() local
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/
DExampleAppWidgetConfigure.java108 SharedPreferences.Editor prefs = context.getSharedPreferences(PREFS_NAME, 0).edit(); in saveTitlePref() local
116 SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0); in loadTitlePref() local
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicy.java89 SharedPreferences prefs = mContext.getSharedPreferences(APP_PREF, Context.MODE_PRIVATE); in readFromLocal() local
163 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE); in onDisabled() local
DPolicySetupActivity.java67 SharedPreferences prefs = getSharedPreferences(APP_PREF, MODE_PRIVATE); in onResume() local
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPersistentState.java99 SharedPreferences prefs = getPreferences(0); in onResume() local
DDeviceAdminSample.java486 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in reloadSummaries() local
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/
DVoiceRecognitionService.java48 SharedPreferences prefs = getSharedPreferences( in onStartListening() local
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessageLogger.java40 SharedPreferences prefs = getPrefs(context); in logMessage() local
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DHistory.java34 public History(SharedPreferences prefs, String sharedPrefKey, int maxSize) { in History()
/development/samples/MultiDisplay/src/com/example/android/multidisplay/launcher/
DPinnedAppListViewModel.java70 final SharedPreferences prefs = context.getSharedPreferences(PINNED_APPS_KEY, 0); in PinnedAppListLiveData() local
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnClient.java59 final SharedPreferences prefs = getSharedPreferences(Prefs.NAME, MODE_PRIVATE); in onCreate() local
DToyVpnService.java104 final SharedPreferences prefs = getSharedPreferences(ToyVpnClient.Prefs.NAME, MODE_PRIVATE); in connect() local
/development/samples/SipDemo/src/com/example/android/sip/
DWalkieTalkieActivity.java123 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); in initializeLocalProfile() local
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java105 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { in onSharedPreferenceChanged()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DAppRestrictionEnforcerFragment.java245 SharedPreferences prefs = activity.getSharedPreferences(PREFS_KEY, Context.MODE_PRIVATE); in loadRestrictions() local
/development/samples/Vault/src/com/example/android/vault/
DVaultProvider.java300 final SharedPreferences prefs = getContext() in createDocument() local