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

12

/frameworks/base/core/java/android/text/method/
H A DDateKeyListener.java39 if (sInstance != null)
40 return sInstance;
42 sInstance = new DateKeyListener();
43 return sInstance;
57 private static DateKeyListener sInstance; field in class:DateKeyListener
H A DDateTimeKeyListener.java39 if (sInstance != null)
40 return sInstance;
42 sInstance = new DateTimeKeyListener();
43 return sInstance;
57 private static DateTimeKeyListener sInstance; field in class:DateTimeKeyListener
H A DTimeKeyListener.java39 if (sInstance != null)
40 return sInstance;
42 sInstance = new TimeKeyListener();
43 return sInstance;
57 private static TimeKeyListener sInstance; field in class:TimeKeyListener
H A DHideReturnsTransformationMethod.java51 if (sInstance != null)
52 return sInstance;
54 sInstance = new HideReturnsTransformationMethod();
55 return sInstance;
58 private static HideReturnsTransformationMethod sInstance; field in class:HideReturnsTransformationMethod
H A DSingleLineTransformationMethod.java54 if (sInstance != null)
55 return sInstance;
57 sInstance = new SingleLineTransformationMethod();
58 return sInstance;
61 private static SingleLineTransformationMethod sInstance; field in class:SingleLineTransformationMethod
H A DDialerKeyListener.java36 if (sInstance != null)
37 return sInstance;
39 sInstance = new DialerKeyListener();
40 return sInstance;
112 private static DialerKeyListener sInstance; field in class:DialerKeyListener
H A DDigitsKeyListener.java90 if (sInstance[kind] != null)
91 return sInstance[kind];
93 sInstance[kind] = new DigitsKeyListener(sign, decimal);
94 return sInstance[kind];
217 private static DigitsKeyListener[] sInstance = new DigitsKeyListener[4]; field in class:DigitsKeyListener
H A DTextKeyListener.java38 private static TextKeyListener[] sInstance = field in class:TextKeyListener
82 if (sInstance[off] == null) {
83 sInstance[off] = new TextKeyListener(cap, autotext);
86 return sInstance[off];
223 if (sInstance != null)
224 return sInstance;
226 sInstance = new NullKeyListener();
227 return sInstance;
230 private static NullKeyListener sInstance; field in class:TextKeyListener.NullKeyListener
H A DPasswordTransformationMethod.java64 if (sInstance != null)
65 return sInstance;
67 sInstance = new PasswordTransformationMethod();
68 return sInstance;
265 private static PasswordTransformationMethod sInstance; field in class:PasswordTransformationMethod
H A DLinkMovementMethod.java248 if (sInstance == null)
249 sInstance = new LinkMovementMethod();
251 return sInstance;
254 private static LinkMovementMethod sInstance; field in class:LinkMovementMethod
H A DMultiTapKeyListener.java34 private static MultiTapKeyListener[] sInstance = field in class:MultiTapKeyListener
70 if (sInstance[off] == null) {
71 sInstance[off] = new MultiTapKeyListener(cap, autotext);
74 return sInstance[off];
H A DScrollingMovementMethod.java233 if (sInstance == null)
234 sInstance = new ScrollingMovementMethod();
236 return sInstance;
239 private static ScrollingMovementMethod sInstance; field in class:ScrollingMovementMethod
/frameworks/base/core/java/android/text/
H A DSpannable.java53 private static Spannable.Factory sInstance = new Spannable.Factory(); field in class:Spannable.Factory
59 return sInstance;
H A DEditable.java124 private static Editable.Factory sInstance = new Editable.Factory(); field in class:Editable.Factory
130 return sInstance;
/frameworks/base/include/utils/
H A DSingleton.h33 TYPE* instance = sInstance;
36 sInstance = instance;
49 static TYPE* sInstance; member in class:android::Singleton
62 template<> TYPE* Singleton< TYPE >::sInstance(0);
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java38 private static AccessibilityManager sInstance = new AccessibilityManager(); field in class:AccessibilityManager
46 return sInstance;
/frameworks/base/telephony/java/android/telephony/gsm/
H A DSmsManager.java30 private static SmsManager sInstance; field in class:SmsManager
40 if (sInstance == null) {
41 sInstance = new SmsManager();
43 return sInstance;
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityManager.java53 private static AccessibilityManager sInstance; field in class:AccessibilityManager
96 if (sInstance == null) {
97 sInstance = new AccessibilityManager(context);
100 return sInstance;
/frameworks/base/services/java/com/android/server/
H A DAttributeCache.java36 private static AttributeCache sInstance = null; field in class:AttributeCache
64 if (sInstance == null) {
65 sInstance = new AttributeCache(context);
70 return sInstance;
/frameworks/base/core/java/com/android/internal/app/
H A DShutdownThread.java64 private static final ShutdownThread sInstance = new ShutdownThread(); field in class:ShutdownThread
155 sInstance.mContext = context;
156 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
157 sInstance.mWakeLock = null;
158 if (sInstance.mPowerManager.isScreenOn()) {
160 sInstance.mWakeLock = sInstance.mPowerManager.newWakeLock(
162 sInstance.mWakeLock.acquire();
165 sInstance.mWakeLock = null;
168 sInstance
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
H A DRilMessageDecoder.java38 private static RilMessageDecoder sInstance = null; field in class:RilMessageDecoder
55 if (sInstance == null) {
56 sInstance = new RilMessageDecoder(caller, fh);
57 sInstance.start();
59 return sInstance;
H A DStkService.java120 private static StkService sInstance; field in class:StkService
460 if (sInstance == null) {
467 sInstance = new StkService(ci, sr, context, fh, sc);
468 StkLog.d(sInstance, "NEW sInstance");
470 StkLog.d(sInstance, "Reinitialize the Service with SIMRecords");
474 mSimRecords.registerForRecordsLoaded(sInstance, MSG_ID_SIM_LOADED, null);
475 StkLog.d(sInstance, "sr changed reinitialize and return current sInstance");
477 StkLog.d(sInstance, "Retur
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DHanziToPinyin.java305 private static HanziToPinyin sInstance; field in class:HanziToPinyin
347 if (sInstance != null) {
348 return sInstance;
354 sInstance = new HanziToPinyin(true);
355 return sInstance;
359 sInstance = new HanziToPinyin(false);
360 return sInstance;
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java46 private static InputContextCallback sInstance = new InputContextCallback(); field in class:InputConnectionWrapper.InputContextCallback
57 // Return sInstance if it's non-null, otherwise construct a new callback
59 if (sInstance != null) {
60 callback = sInstance;
61 sInstance = null;
80 // If sInstance is non-null, just let this object be garbage-collected
81 if (sInstance == null) {
86 sInstance = this;
/frameworks/base/core/java/android/webkit/
H A DGeolocationPermissions.java60 private static GeolocationPermissions sInstance; field in class:GeolocationPermissions
88 if (sInstance == null) {
89 sInstance = new GeolocationPermissions();
91 return sInstance;

Completed in 1655 milliseconds

12