Home
last modified time | relevance | path

Searched refs:sInstance (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Mms/src/com/android/mms/data/
DRecipientIdCache.java31 private static RecipientIdCache sInstance; field in RecipientIdCache
32 static RecipientIdCache getInstance() { return sInstance; } in getInstance()
47 sInstance = new RecipientIdCache(context); in init()
65 Context context = sInstance.mContext; in fill()
74 synchronized (sInstance) { in fill()
77 sInstance.mCache.clear(); in fill()
82 sInstance.mCache.put(id, number); in fill()
96 synchronized (sInstance) { in getAddresses()
109 String number = sInstance.mCache.get(longId); in getAddresses()
118 number = sInstance.mCache.get(longId); in getAddresses()
[all …]
DConversation.java634 private static Cache sInstance = new Cache(); field in Conversation.Cache
635 static Cache getInstance() { return sInstance; } in getInstance()
646 synchronized (sInstance) { in get()
650 for (Conversation c : sInstance.mCache) { in get()
668 synchronized (sInstance) { in get()
672 for (Conversation c : sInstance.mCache) { in get()
687 synchronized (sInstance) { in put()
694 if (sInstance.mCache.contains(c)) { in put()
698 sInstance.mCache.add(c); in put()
707 for (Conversation c : sInstance.mCache) { in remove()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkDigitsKeyListener.java37 if (sInstance != null) { in getInstance()
38 return sInstance; in getInstance()
40 sInstance = new StkDigitsKeyListener(); in getInstance()
41 return sInstance; in getInstance()
53 private static StkDigitsKeyListener sInstance; field in StkDigitsKeyListener
DStkAppService.java75 static StkAppService sInstance = null; field in StkAppService
157 sInstance = this; in onCreate()
234 return sInstance; in getInstance()
/packages/apps/Mms/src/com/android/mms/layout/
DLayoutManager.java38 private static LayoutManager sInstance; field in LayoutManager
74 if (sInstance != null) { in init()
77 sInstance = new LayoutManager(context); in init()
81 if (sInstance == null) { in getInstance()
84 return sInstance; in getInstance()
/packages/apps/Mms/src/com/android/mms/transaction/
DSmsReceiver.java34 private static SmsReceiver sInstance; field in SmsReceiver
37 if (sInstance == null) { in getInstance()
38 sInstance = new SmsReceiver(); in getInstance()
40 return sInstance; in getInstance()
DRetryScheduler.java59 private static RetryScheduler sInstance; field in RetryScheduler
61 if (sInstance == null) { in getInstance()
62 sInstance = new RetryScheduler(context); in getInstance()
64 return sInstance; in getInstance()
/packages/apps/Mms/src/com/android/mms/util/
DRateController.java50 private static RateController sInstance; field in RateController
82 if (sInstance != null) { in init()
85 sInstance = new RateController(context); in init()
89 if (sInstance == null) { in getInstance()
92 return sInstance; in getInstance()
DDownloadManager.java76 synchronized (sInstance) {
100 synchronized (sInstance) {
110 private static DownloadManager sInstance; field in DownloadManager
137 if (sInstance != null) { in init()
140 sInstance = new DownloadManager(context); in init()
144 if (sInstance == null) { in getInstance()
147 return sInstance; in getInstance()
DSmileyParser.java36 private static SmileyParser sInstance; field in SmileyParser
37 public static SmileyParser getInstance() { return sInstance; } in getInstance()
39 sInstance = new SmileyParser(context); in init()
DDraftCache.java37 private static DraftCache sInstance; field in DraftCache
195 sInstance = new DraftCache(context); in init()
202 return sInstance; in getInstance()
/packages/apps/Email/src/com/android/email/
DVendorPolicyLoader.java62 private static VendorPolicyLoader sInstance; field in VendorPolicyLoader
67 if (sInstance == null) { in getInstance()
69 sInstance = new VendorPolicyLoader(context); in getInstance()
71 return sInstance; in getInstance()
83 sInstance = new VendorPolicyLoader(context, apkPackageName, name, true); in injectPolicyForTest()
93 sInstance = null; in clearInstanceForTest()
DUtility.java320 private static FolderProperties sInstance; field in Utility.FolderProperties
348 if (sInstance == null) { in getInstance()
350 if (sInstance == null) { in getInstance()
351 sInstance = new FolderProperties(context); in getInstance()
355 return sInstance; in getInstance()
DSecurityPolicy.java47 private static SecurityPolicy sInstance = null; field in SecurityPolicy
81 if (sInstance == null) { in getInstance()
82 sInstance = new SecurityPolicy(context); in getInstance()
84 return sInstance; in getInstance()
DController.java53 private static Controller sInstance; field in Controller
85 if (sInstance == null) { in getInstance()
86 sInstance = new Controller(_context); in getInstance()
88 return sInstance; in getInstance()
DMessagingController.java115 private static MessagingController sInstance = null; field in MessagingController
140 if (sInstance == null) { in getInstance()
141 sInstance = new MessagingController(_context); in getInstance()
143 return sInstance; in getInstance()
150 sInstance = mockController; in injectMockController()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DKeyboardSwitcher.java140 private static final KeyboardSwitcher sInstance = new KeyboardSwitcher(); field in KeyboardSwitcher
143 return sInstance; in getInstance()
151 sInstance.mInputMethodService = ims; in init()
154 sInstance.mLayoutId = Integer.valueOf( in init()
156 sInstance.updateSettingsKeyState(prefs); in init()
157 prefs.registerOnSharedPreferenceChangeListener(sInstance); in init()
159 sInstance.mSymbolsId = sInstance.makeSymbolsId(false); in init()
160 sInstance.mSymbolsShiftedId = sInstance.makeSymbolsShiftedId(false); in init()
DLatinIMEUtil.java48 private static GCUtils sInstance = new GCUtils(); field in LatinIMEUtil.GCUtils
52 return sInstance; in getInstance()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAppWidgetProvider.java58 private static CalendarAppWidgetProvider sInstance; field in CalendarAppWidgetProvider
61 if (sInstance == null) { in getInstance()
62 sInstance = new CalendarAppWidgetProvider(); in getInstance()
64 return sInstance; in getInstance()
/packages/apps/Music/src/com/android/music/
DMediaAppWidgetProvider.java39 private static MediaAppWidgetProvider sInstance; field in MediaAppWidgetProvider
42 if (sInstance == null) { in getInstance()
43 sInstance = new MediaAppWidgetProvider(); in getInstance()
45 return sInstance; in getInstance()
/packages/apps/Contacts/src/com/android/contacts/model/
DSources.java63 private static SoftReference<Sources> sInstance = null; field in Sources
71 Sources sources = sInstance == null ? null : sInstance.get(); in getInstance()
74 sInstance = new SoftReference<Sources>(sources); in getInstance()
/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java60 private static ContactsAsyncHelper sInstance; field in ContactsAsyncHelper
63 sInstance = new ContactsAsyncHelper();
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationsState.java322 static ApplicationsState sInstance; field in ApplicationsState
326 if (sInstance == null) { in getInstance()
327 sInstance = new ApplicationsState(app); in getInstance()
329 return sInstance; in getInstance()
DRunningState.java55 static RunningState sInstance; field in RunningState
543 if (sInstance == null) { in getInstance()
544 sInstance = new RunningState(context); in getInstance()
546 return sInstance; in getInstance()