Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java416 private static ContactLocaleUtils sSingleton; field in ContactLocaleUtils
443 if (sSingleton == null) { in getInstance()
444 sSingleton = new ContactLocaleUtils(LocaleSet.getDefault()); in getInstance()
446 return sSingleton; in getInstance()
455 if (sSingleton == null || !sSingleton.isLocale(locales)) { in setLocales()
456 sSingleton = new ContactLocaleUtils(locales); in setLocales()
DFastScrollingIndexCache.java88 private static FastScrollingIndexCache sSingleton; field in FastScrollingIndexCache
91 if (sSingleton == null) { in getInstance()
93 sSingleton = new FastScrollingIndexCache(prefs); in getInstance()
95 return sSingleton; in getInstance()
101 sSingleton = new FastScrollingIndexCache(prefs); in getInstanceForTest()
102 return sSingleton; in getInstanceForTest()
DProfileDatabaseHelper.java39 private static ProfileDatabaseHelper sSingleton = null; field in ProfileDatabaseHelper
55 if (sSingleton == null) { in getInstance()
56 sSingleton = new ProfileDatabaseHelper(context, DATABASE_NAME, true); in getInstance()
58 return sSingleton; in getInstance()
DContactsDatabaseHelper.java940 private static ContactsDatabaseHelper sSingleton = null; field in ContactsDatabaseHelper
998 if (sSingleton == null) { in getInstance()
999 sSingleton = new ContactsDatabaseHelper(context, DATABASE_NAME, true); in getInstance()
1001 return sSingleton; in getInstance()
/packages/services/Telephony/src/com/android/phone/
DCallGatewayManager.java73 private static CallGatewayManager sSingleton; field in CallGatewayManager
76 if (sSingleton == null) { in getInstance()
77 sSingleton = new CallGatewayManager(); in getInstance()
79 return sSingleton; in getInstance()
/packages/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java134 private static IndexDatabaseHelper sSingleton; field in IndexDatabaseHelper
137 if (sSingleton == null) { in getInstance()
138 sSingleton = new IndexDatabaseHelper(context); in getInstance()
140 return sSingleton; in getInstance()
/packages/apps/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java64 private static DialerDatabaseHelper sSingleton = null; field in DialerDatabaseHelper
322 if (sSingleton == null) { in getInstance()
326 sSingleton = new DialerDatabaseHelper(context.getApplicationContext(), in getInstance()
329 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()