Home
last modified time | relevance | path

Searched refs:storageContext (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClockApplication.kt50 val storageContext: Context in getDefaultSharedPreferences() constant
55 storageContext = context.createDeviceProtectedStorageContext() in getDefaultSharedPreferences()
56 if (!storageContext.moveSharedPreferencesFrom(context, name)) { in getDefaultSharedPreferences()
60 storageContext = context in getDefaultSharedPreferences()
62 return PreferenceManager.getDefaultSharedPreferences(storageContext) in getDefaultSharedPreferences()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.kt131 val storageContext: Context in onCreate() constant
136 storageContext = context.createDeviceProtectedStorageContext() in onCreate()
137 if (!storageContext.moveDatabaseFrom(context, ClockDatabaseHelper.DATABASE_NAME)) { in onCreate()
142 storageContext = context in onCreate()
145 mOpenHelper = ClockDatabaseHelper(storageContext) in onCreate()