Searched refs:sInstance (Results 1 - 25 of 65) sorted by relevance

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DClock.java22 private static Clock sInstance = INSTANCE; field in class:Clock
25 return sInstance;
30 sInstance = clock;
35 sInstance = INSTANCE;
/packages/apps/Stk/src/com/android/stk/
H A DStkDigitsKeyListener.java37 if (sInstance != null) {
38 return sInstance;
40 sInstance = new StkDigitsKeyListener();
41 return sInstance;
53 private static StkDigitsKeyListener sInstance; field in class:StkDigitsKeyListener
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DVibratorUtils.java23 private static final VibratorUtils sInstance = new VibratorUtils(); field in class:VibratorUtils
31 if (sInstance.mVibrator == null) {
32 sInstance.mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
34 return sInstance;
/packages/apps/Mms/src/com/android/mms/layout/
H A DLayoutManager.java35 private static LayoutManager sInstance; field in class:LayoutManager
71 if (sInstance != null) {
74 sInstance = new LayoutManager(context);
78 if (sInstance == null) {
81 return sInstance;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DConfig.java28 private static AlbumSetPage sInstance; field in class:Config.AlbumSetPage
37 if (sInstance == null) {
38 sInstance = new AlbumSetPage(context);
40 return sInstance;
82 private static AlbumPage sInstance; field in class:Config.AlbumPage
88 if (sInstance == null) {
89 sInstance = new AlbumPage(context);
91 return sInstance;
107 private static ManageCachePage sInstance; field in class:Config.ManageCachePage
113 if (sInstance
[all...]
/packages/apps/Mms/src/com/android/mms/data/
H A DRecipientIdCache.java35 private static RecipientIdCache sInstance; field in class:RecipientIdCache
36 static RecipientIdCache getInstance() { return sInstance; }
54 sInstance = new RecipientIdCache(context);
72 Context context = sInstance.mContext;
81 synchronized (sInstance) {
84 sInstance.mCache.clear();
89 sInstance.mCache.put(id, number);
103 synchronized (sInstance) {
116 String number = sInstance.mCache.get(longId);
125 number = sInstance
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DWebViewTimersControl.java32 private static WebViewTimersControl sInstance; field in class:WebViewTimersControl
44 if (sInstance == null) {
45 sInstance = new WebViewTimersControl();
47 return sInstance;
H A DAutoFillProfileDatabase.java35 private static AutoFillProfileDatabase sInstance; field in class:AutoFillProfileDatabase
88 if (sInstance == null) {
89 sInstance = new AutoFillProfileDatabase(context);
91 return sInstance;
H A DCrashRecoveryHandler.java53 private static CrashRecoveryHandler sInstance; field in class:CrashRecoveryHandler
64 if (sInstance == null) {
65 sInstance = new CrashRecoveryHandler(controller);
67 sInstance.mController = controller;
69 return sInstance;
73 return sInstance;
/packages/apps/Email/src/com/android/email/
H A DResourceHelper.java30 private static ResourceHelper sInstance; field in class:ResourceHelper
53 if (sInstance == null) {
54 sInstance = new ResourceHelper(context);
56 return sInstance;
H A DVendorPolicyLoader.java61 private static VendorPolicyLoader sInstance; field in class:VendorPolicyLoader
66 if (sInstance == null) {
68 sInstance = new VendorPolicyLoader(context);
70 return sInstance;
82 sInstance = new VendorPolicyLoader(context, apkPackageName, name, true);
92 sInstance = null;
/packages/apps/Mms/src/com/android/mms/transaction/
H A DSmsReceiver.java33 private static SmsReceiver sInstance; field in class:SmsReceiver
36 if (sInstance == null) {
37 sInstance = new SmsReceiver();
39 return sInstance;
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DLocalBluetoothManager.java32 private static LocalBluetoothManager sInstance; field in class:LocalBluetoothManager
52 if (sInstance == null) {
59 sInstance = new LocalBluetoothManager(adapter, appContext);
62 return sInstance;
H A DLocalBluetoothAdapter.java45 private static LocalBluetoothAdapter sInstance; field in class:LocalBluetoothAdapter
68 if (sInstance == null) {
71 sInstance = new LocalBluetoothAdapter(adapter);
75 return sInstance;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodManagerCompatWrapper.java35 private static final InputMethodManagerCompatWrapper sInstance = field in class:InputMethodManagerCompatWrapper
45 if (sInstance.mImm == null) {
48 return sInstance;
52 sInstance.mImm = ImfUtils.getInputMethodManager(context);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDefaultCallLogInsertionHelper.java38 private static DefaultCallLogInsertionHelper sInstance; field in class:DefaultCallLogInsertionHelper
46 if (sInstance == null) {
47 sInstance = new DefaultCallLogInsertionHelper(context);
49 return sInstance;
H A DHanziToPinyin.java346 private static HanziToPinyin sInstance; field in class:HanziToPinyin
389 if (sInstance != null) {
390 return sInstance;
400 sInstance = new HanziToPinyin(true);
401 return sInstance;
405 sInstance = new HanziToPinyin(false);
406 return sInstance;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DMeasureHelper.java24 private static MeasureHelper sInstance = new MeasureHelper(null); field in class:MeasureHelper
35 sInstance.mComponent = component;
36 return sInstance;
/packages/apps/Mms/src/com/android/mms/util/
H A DRateController.java48 private static RateController sInstance; field in class:RateController
80 if (sInstance != null) {
83 sInstance = new RateController(context);
87 if (sInstance == null) {
90 return sInstance;
H A DDownloadManager.java75 synchronized (sInstance) {
99 synchronized (sInstance) {
109 private static DownloadManager sInstance; field in class:DownloadManager
136 if (sInstance != null) {
139 sInstance = new DownloadManager(context);
143 if (sInstance == null) {
146 return sInstance;
/packages/apps/Phone/src/com/android/phone/
H A DInCallUiState.java59 private static InCallUiState sInstance; field in class:InCallUiState
73 if (sInstance == null) {
74 sInstance = new InCallUiState(context);
76 Log.wtf(TAG, "init() called multiple times! sInstance = " + sInstance);
78 return sInstance;
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DResolveCache.java66 private static ResolveCache sInstance; field in class:ResolveCache
73 if (sInstance == null) {
75 sInstance = new ResolveCache(applicationContext);
83 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter);
85 return sInstance;
89 sInstance = null;
/packages/apps/Contacts/src/com/android/contacts/list/
H A DProviderStatusWatcher.java73 private static ProviderStatusWatcher sInstance; field in class:ProviderStatusWatcher
100 if (sInstance == null) {
101 sInstance = new ProviderStatusWatcher(context);
103 return sInstance;
/packages/apps/Email/src/com/android/email/activity/
H A DRecentMailboxManager.java43 static RecentMailboxManager sInstance; field in class:RecentMailboxManager
83 if (sInstance == null) {
84 sInstance = new RecentMailboxManager(context);
86 return sInstance;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DStatistics.java77 private static final Statistics sInstance = new Statistics(); field in class:Statistics
80 return sInstance;

Completed in 450 milliseconds

123