Home
last modified time | relevance | path

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

1234

/packages/apps/Mms/src/com/android/mms/data/
DRecipientIdCache.java35 private static RecipientIdCache sInstance; field in RecipientIdCache
36 static RecipientIdCache getInstance() { return sInstance; } in getInstance()
54 sInstance = new RecipientIdCache(context); in init()
72 Context context = sInstance.mContext; in fill()
81 synchronized (sInstance) { in fill()
84 sInstance.mCache.clear(); in fill()
89 sInstance.mCache.put(id, number); in fill()
103 synchronized (sInstance) { in getAddresses()
116 String number = sInstance.mCache.get(longId); in getAddresses()
125 number = sInstance.mCache.get(longId); in getAddresses()
[all …]
DConversation.java941 private static Cache sInstance = new Cache(); field in Conversation.Cache
942 static Cache getInstance() { return sInstance; } in getInstance()
953 synchronized (sInstance) { in get()
957 for (Conversation c : sInstance.mCache) { in get()
975 synchronized (sInstance) { in get()
979 for (Conversation c : sInstance.mCache) { in get()
994 synchronized (sInstance) { in put()
1001 if (sInstance.mCache.contains(c)) { in put()
1008 sInstance.mCache.add(c); in put()
1022 synchronized (sInstance) { in replace()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java28 private static AlbumSetPage sInstance; field in Config.AlbumSetPage
37 if (sInstance == null) { in get()
38 sInstance = new AlbumSetPage(context); in get()
40 return sInstance; in get()
82 private static AlbumPage sInstance; field in Config.AlbumPage
88 if (sInstance == null) { in get()
89 sInstance = new AlbumPage(context); in get()
91 return sInstance; in get()
107 private static ManageCachePage sInstance; field in Config.ManageCachePage
113 if (sInstance == null) { in get()
[all …]
/packages/apps/Email/src/com/android/email/
DNotificationController.java85 private static NotificationController sInstance; field in NotificationController
140 if (sInstance == null) { in getInstance()
141 sInstance = new NotificationController(context, Clock.INSTANCE); in getInstance()
143 return sInstance; in getInstance()
823 if (mAccountId == sInstance.mSuspendAccountId in onChange()
824 || sInstance.mSuspendAccountId == Account.ACCOUNT_ID_COMBINED_VIEW) { in onChange()
828 ContentObserver observer = sInstance.mNotificationMap.get(mAccountId); in onChange()
873 int notificationId = sInstance.getNewMessageNotificationId(mAccountId); in onChange()
874 sInstance.mNotificationManager.cancel(notificationId); in onChange()
887 Notification n = sInstance.createNewMessageNotification( in onChange()
[all …]
DVendorPolicyLoader.java61 private static VendorPolicyLoader sInstance; field in VendorPolicyLoader
66 if (sInstance == null) { in getInstance()
68 sInstance = new VendorPolicyLoader(context); in getInstance()
70 return sInstance; in getInstance()
82 sInstance = new VendorPolicyLoader(context, apkPackageName, name, true); in injectPolicyForTest()
92 sInstance = null; in clearInstanceForTest()
DResourceHelper.java30 private static ResourceHelper sInstance; field in ResourceHelper
53 if (sInstance == null) { in getInstance()
54 sInstance = new ResourceHelper(context); in getInstance()
56 return sInstance; in getInstance()
/packages/apps/Mms/src/com/android/mms/util/
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()
DRateController.java48 private static RateController sInstance; field in RateController
80 if (sInstance != null) { in init()
83 sInstance = new RateController(context); in init()
87 if (sInstance == null) { in getInstance()
90 return sInstance; in getInstance()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java66 private static ResolveCache sInstance; field in ResolveCache
73 if (sInstance == null) { in getInstance()
75 sInstance = new ResolveCache(applicationContext); in getInstance()
83 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter); in getInstance()
85 return sInstance; in getInstance()
89 sInstance = null; in flush()
/packages/apps/Browser/src/com/android/browser/
DCrashRecoveryHandler.java53 private static CrashRecoveryHandler sInstance; field in CrashRecoveryHandler
64 if (sInstance == null) { in initialize()
65 sInstance = new CrashRecoveryHandler(controller); in initialize()
67 sInstance.mController = controller; in initialize()
69 return sInstance; in initialize()
73 return sInstance; in getInstance()
DWebViewTimersControl.java32 private static WebViewTimersControl sInstance; field in WebViewTimersControl
44 if (sInstance == null) { in getInstance()
45 sInstance = new WebViewTimersControl(); in getInstance()
47 return sInstance; in getInstance()
DAutoFillProfileDatabase.java35 private static AutoFillProfileDatabase sInstance; field in AutoFillProfileDatabase
88 if (sInstance == null) { in getInstance()
89 sInstance = new AutoFillProfileDatabase(context); in getInstance()
91 return sInstance; in getInstance()
/packages/apps/Gallery2/src/com/android/photos/data/
DMediaCache.java186 private static MediaCache sInstance; field in MediaCache
264 if (sInstance == null) { in initialize()
265 sInstance = new MediaCache(context); in initialize()
271 return sInstance; in getInstance()
275 sInstance.mRunning = false; in shutdown()
276 sInstance.mProcessNotifications.interrupt(); in shutdown()
277 for (ProcessQueue processingThread : sInstance.mProcessingThreads) { in shutdown()
280 sInstance = null; in shutdown()
/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
/packages/apps/Mms/src/com/android/mms/layout/
DLayoutManager.java35 private static LayoutManager sInstance; field in LayoutManager
71 if (sInstance != null) { in init()
74 sInstance = new LayoutManager(context); in init()
78 if (sInstance == null) { in getInstance()
81 return sInstance; in getInstance()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/filtershow/filters/
DFiltersManager.java29 private static FiltersManager sInstance = null; field in FiltersManager
45 if (sInstance == null) { in getManager()
46 sInstance = new FiltersManager(); in getManager()
48 return sInstance; in getManager()
82 sInstance = null; in reset()
/packages/apps/Phone/src/com/android/phone/
DInCallUiState.java59 private static InCallUiState sInstance; field in InCallUiState
73 if (sInstance == null) { in init()
74 sInstance = new InCallUiState(context); in init()
76 Log.wtf(TAG, "init() called multiple times! sInstance = " + sInstance); in init()
78 return sInstance; in init()
DRinger.java53 private static Ringer sInstance; field in Ringer
75 if (sInstance == null) { in init()
76 sInstance = new Ringer(context); in init()
78 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance); in init()
80 return sInstance; in init()
DCallController.java70 private static CallController sInstance; field in CallController
107 if (sInstance == null) { in init()
108 sInstance = new CallController(app, callLogger); in init()
110 Log.wtf(TAG, "init() called multiple times! sInstance = " + sInstance); in init()
112 return sInstance; in init()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DClock.java22 private static Clock sInstance = INSTANCE; field in Clock
25 return sInstance; in getInstance()
30 sInstance = clock; in injectInstance()
35 sInstance = INSTANCE; in resetInstance()
/packages/apps/Mms/src/com/android/mms/transaction/
DSmsReceiver.java33 private static SmsReceiver sInstance; field in SmsReceiver
36 if (sInstance == null) { in getInstance()
37 sInstance = new SmsReceiver(); in getInstance()
39 return sInstance; in getInstance()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothManager.java32 private static LocalBluetoothManager sInstance; field in LocalBluetoothManager
52 if (sInstance == null) { in getInstance()
59 sInstance = new LocalBluetoothManager(adapter, appContext); in getInstance()
62 return sInstance; in getInstance()
DLocalBluetoothAdapter.java45 private static LocalBluetoothAdapter sInstance; field in LocalBluetoothAdapter
68 if (sInstance == null) { in getInstance()
71 sInstance = new LocalBluetoothAdapter(adapter); in getInstance()
75 return sInstance; in getInstance()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDefaultCallLogInsertionHelper.java38 private static DefaultCallLogInsertionHelper sInstance; field in DefaultCallLogInsertionHelper
46 if (sInstance == null) { in getInstance()
47 sInstance = new DefaultCallLogInsertionHelper(context); in getInstance()
49 return sInstance; in getInstance()
DHanziToPinyin.java36 private static HanziToPinyin sInstance; field in HanziToPinyin
90 if (sInstance == null) { in getInstance()
91 sInstance = new HanziToPinyin(); in getInstance()
93 return sInstance; in getInstance()

1234