Home
last modified time | relevance | path

Searched refs:sSingleton (Results 1 – 13 of 13) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java89 private static FastScrollingIndexCache sSingleton; field in FastScrollingIndexCache
92 if (sSingleton == null) { in getInstance()
96 sSingleton = new FastScrollingIndexCache(prefs); in getInstance()
101 return sSingleton; in getInstance()
107 sSingleton = new FastScrollingIndexCache(prefs); in getInstanceForTest()
108 return sSingleton; in getInstanceForTest()
DProfileDatabaseHelper.java39 private static ProfileDatabaseHelper sSingleton = null; field in ProfileDatabaseHelper
56 if (sSingleton == null) { in getInstance()
57 sSingleton = new ProfileDatabaseHelper(context, DATABASE_NAME, true, in getInstance()
60 return sSingleton; in getInstance()
DContactLocaleUtils.java508 private static ContactLocaleUtils sSingleton; field in ContactLocaleUtils
535 if (sSingleton == null) { in getInstance()
536 sSingleton = new ContactLocaleUtils(LocaleSet.newDefault()); in getInstance()
538 return sSingleton; in getInstance()
552 if (sSingleton == null || !sSingleton.isLocale(locales)) { in setLocales()
556 sSingleton = new ContactLocaleUtils(locales); in setLocales()
DContactsDatabaseHelper.java930 private static ContactsDatabaseHelper sSingleton = null; field in ContactsDatabaseHelper
995 if (sSingleton == null) { in getInstance()
996 sSingleton = new ContactsDatabaseHelper(context, DATABASE_NAME, true, in getInstance()
999 return sSingleton; in getInstance()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseHelper.java131 private static SlicesDatabaseHelper sSingleton; field in SlicesDatabaseHelper
134 if (sSingleton == null) { in getInstance()
135 sSingleton = new SlicesDatabaseHelper(context.getApplicationContext()); in getInstance()
137 return sSingleton; in getInstance()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDatabaseHelper.java137 private static AnomalyDatabaseHelper sSingleton; field in AnomalyDatabaseHelper
140 if (sSingleton == null) { in getInstance()
141 sSingleton = new AnomalyDatabaseHelper(context.getApplicationContext()); in getInstance()
143 return sSingleton; in getInstance()
DBatteryDatabaseManager.java54 private static BatteryDatabaseManager sSingleton; field in BatteryDatabaseManager
63 if (sSingleton == null) { in getInstance()
64 sSingleton = new BatteryDatabaseManager(context); in getInstance()
66 return sSingleton; in getInstance()
71 sSingleton = batteryDatabaseManager; in setUpForTest()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDatabaseHelper.java137 private static AnomalyDatabaseHelper sSingleton; field in AnomalyDatabaseHelper
140 if (sSingleton == null) { in getInstance()
141 sSingleton = new AnomalyDatabaseHelper(context.getApplicationContext()); in getInstance()
143 return sSingleton; in getInstance()
DBatteryDatabaseManager.java54 private static BatteryDatabaseManager sSingleton; field in BatteryDatabaseManager
63 if (sSingleton == null) { in getInstance()
64 sSingleton = new BatteryDatabaseManager(context); in getInstance()
66 return sSingleton; in getInstance()
71 sSingleton = batteryDatabaseManager; in setUpForTest()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java131 private static SlicesDatabaseHelper sSingleton; field in SlicesDatabaseHelper
134 if (sSingleton == null) { in getInstance()
135 sSingleton = new SlicesDatabaseHelper(context.getApplicationContext()); in getInstance()
137 return sSingleton; in getInstance()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java170 private static IndexDatabaseHelper sSingleton; field in IndexDatabaseHelper
175 if (sSingleton == null) { in getInstance()
176 sSingleton = new IndexDatabaseHelper(context); in getInstance()
178 return sSingleton; in getInstance()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java251 private static CalendarDatabaseHelper sSingleton = null; field in CalendarDatabaseHelper
308 if (sSingleton == null) { in getInstance()
309 sSingleton = new CalendarDatabaseHelper(context); in getInstance()
311 return sSingleton; in getInstance()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java753 private static DatabaseHelper sSingleton = null; field in TvProvider.DatabaseHelper
757 if (sSingleton == null) { in getInstance()
758 sSingleton = new DatabaseHelper(context); in getInstance()
760 return sSingleton; in getInstance()