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

123

/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/compat/
H A DVibratorCompatWrapper.java28 private static final VibratorCompatWrapper sInstance = new VibratorCompatWrapper(); field in class:VibratorCompatWrapper
35 if (sInstance.mVibrator == null) {
36 sInstance.mVibrator =
39 return sInstance;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/
H A DLanguageSwitcherProxy.java31 private static final LanguageSwitcherProxy sInstance = new LanguageSwitcherProxy(); field in class:LanguageSwitcherProxy
38 return sInstance;
44 sInstance.mLanguageSwitcher = new LanguageSwitcher(service);
45 sInstance.mLanguageSwitcher.loadLocales(prefs, conf.locale);
46 sInstance.mPrefs = prefs;
47 sInstance.mService = service;
48 prefs.registerOnSharedPreferenceChangeListener(sInstance);
53 sInstance.mLanguageSwitcher.onConfigurationChanged(conf, sInstance.mPrefs);
58 sInstance
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DStringBuilderPool.java28 private static final StringBuilderPool sInstance = new StringBuilderPool(); field in class:StringBuilderPool
43 final int poolSize = sInstance.mPool.size();
44 final StringBuilder sb = poolSize > 0 ? (StringBuilder) sInstance.mPool.remove(poolSize - 1)
53 for (final StringBuilder q : sInstance.mPool) {
57 sInstance.mPool.add(garbage);
61 for (int i = sInstance.mPool.size(); i < capacity; ++i) {
63 sInstance.mPool.add(sb);
68 return sInstance.mPool.size();
H A DComposingStateManager.java23 private static final ComposingStateManager sInstance = new ComposingStateManager(); field in class:ComposingStateManager
28 return sInstance;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DConfig.java28 private static AlbumSetPage sInstance; field in class:Config.AlbumSetPage
34 if (sInstance == null) {
35 sInstance = new AlbumSetPage(context);
37 return sInstance;
67 private static AlbumPage sInstance; field in class:Config.AlbumPage
72 if (sInstance == null) {
73 sInstance = new AlbumPage(context);
75 return sInstance;
89 private static ManageCachePage sInstance; field in class:Config.ManageCachePage
95 if (sInstance
110 private static PhotoPage sInstance; field in class:Config.PhotoPage
[all...]
/packages/apps/Mms/src/com/android/mms/layout/
H A DLayoutManager.java37 private static LayoutManager sInstance; field in class:LayoutManager
73 if (sInstance != null) {
76 sInstance = new LayoutManager(context);
80 if (sInstance == null) {
83 return sInstance;
/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;
/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.java34 private static SmsReceiver sInstance; field in class:SmsReceiver
37 if (sInstance == null) {
38 sInstance = new SmsReceiver();
40 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/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDefaultCallLogInsertionHelper.java39 private static DefaultCallLogInsertionHelper sInstance; field in class:DefaultCallLogInsertionHelper
47 if (sInstance == null) {
48 sInstance = new DefaultCallLogInsertionHelper(context);
50 return sInstance;
H A DHanziToPinyin.java248 private static HanziToPinyin sInstance; field in class:HanziToPinyin
291 if (sInstance != null) {
292 return sInstance;
302 sInstance = new HanziToPinyin(true);
303 return sInstance;
307 sInstance = new HanziToPinyin(false);
308 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.java49 private static RateController sInstance; field in class:RateController
81 if (sInstance != null) {
84 sInstance = new RateController(context);
88 if (sInstance == null) {
91 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.java61 private static ResolveCache sInstance; field in class:ResolveCache
68 if (sInstance == null) {
70 sInstance = new ResolveCache(applicationContext);
78 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter);
80 return sInstance;
84 sInstance = null;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DAccessibleKeyboardViewProxy.java38 private static final AccessibleKeyboardViewProxy sInstance = new AccessibleKeyboardViewProxy(); field in class:AccessibleKeyboardViewProxy
48 sInstance.initInternal(inputMethod, prefs);
49 sInstance.mListener = AccessibleInputMethodServiceProxy.getInstance();
53 return sInstance;
57 sInstance.mView = view;
H A DAccessibleInputMethodServiceProxy.java35 private static final AccessibleInputMethodServiceProxy sInstance = field in class:AccessibleInputMethodServiceProxy
86 sInstance.initInternal(inputMethod, prefs);
90 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;

Completed in 462 milliseconds

123