Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/method/
DDateTimeKeyListener.java39 if (sInstance != null) in getInstance()
40 return sInstance; in getInstance()
42 sInstance = new DateTimeKeyListener(); in getInstance()
43 return sInstance; in getInstance()
57 private static DateTimeKeyListener sInstance; field in DateTimeKeyListener
DDateKeyListener.java39 if (sInstance != null) in getInstance()
40 return sInstance; in getInstance()
42 sInstance = new DateKeyListener(); in getInstance()
43 return sInstance; in getInstance()
57 private static DateKeyListener sInstance; field in DateKeyListener
DTimeKeyListener.java39 if (sInstance != null) in getInstance()
40 return sInstance; in getInstance()
42 sInstance = new TimeKeyListener(); in getInstance()
43 return sInstance; in getInstance()
57 private static TimeKeyListener sInstance; field in TimeKeyListener
DHideReturnsTransformationMethod.java51 if (sInstance != null) in getInstance()
52 return sInstance; in getInstance()
54 sInstance = new HideReturnsTransformationMethod(); in getInstance()
55 return sInstance; in getInstance()
58 private static HideReturnsTransformationMethod sInstance; field in HideReturnsTransformationMethod
DSingleLineTransformationMethod.java54 if (sInstance != null) in getInstance()
55 return sInstance; in getInstance()
57 sInstance = new SingleLineTransformationMethod(); in getInstance()
58 return sInstance; in getInstance()
61 private static SingleLineTransformationMethod sInstance; field in SingleLineTransformationMethod
DDialerKeyListener.java36 if (sInstance != null) in getInstance()
37 return sInstance; in getInstance()
39 sInstance = new DialerKeyListener(); in getInstance()
40 return sInstance; in getInstance()
112 private static DialerKeyListener sInstance; field in DialerKeyListener
DTextKeyListener.java38 private static TextKeyListener[] sInstance = field in TextKeyListener
82 if (sInstance[off] == null) { in getInstance()
83 sInstance[off] = new TextKeyListener(cap, autotext); in getInstance()
86 return sInstance[off]; in getInstance()
223 if (sInstance != null) in getInstance()
224 return sInstance; in getInstance()
226 sInstance = new NullKeyListener(); in getInstance()
227 return sInstance; in getInstance()
230 private static NullKeyListener sInstance; field in TextKeyListener.NullKeyListener
DDigitsKeyListener.java90 if (sInstance[kind] != null) in getInstance()
91 return sInstance[kind]; in getInstance()
93 sInstance[kind] = new DigitsKeyListener(sign, decimal); in getInstance()
94 return sInstance[kind]; in getInstance()
217 private static DigitsKeyListener[] sInstance = new DigitsKeyListener[4]; field in DigitsKeyListener
DPasswordTransformationMethod.java64 if (sInstance != null) in getInstance()
65 return sInstance; in getInstance()
67 sInstance = new PasswordTransformationMethod(); in getInstance()
68 return sInstance; in getInstance()
265 private static PasswordTransformationMethod sInstance; field in PasswordTransformationMethod
DScrollingMovementMethod.java233 if (sInstance == null) in getInstance()
234 sInstance = new ScrollingMovementMethod(); in getInstance()
236 return sInstance; in getInstance()
239 private static ScrollingMovementMethod sInstance; field in ScrollingMovementMethod
/frameworks/base/include/utils/
DSingleton.h33 TYPE* instance = sInstance; in getInstance()
36 sInstance = instance; in getInstance()
49 static TYPE* sInstance; variable
64 template<> TYPE* Singleton< TYPE >::sInstance(0);
/frameworks/base/core/java/com/android/internal/app/
DShutdownThread.java68 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread
163 sInstance.mContext = context; in beginShutdownSequence()
164 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence()
165 sInstance.mWakeLock = null; in beginShutdownSequence()
166 if (sInstance.mPowerManager.isScreenOn()) { in beginShutdownSequence()
168 sInstance.mWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence()
170 sInstance.mWakeLock.acquire(); in beginShutdownSequence()
173 sInstance.mWakeLock = null; in beginShutdownSequence()
176 sInstance.mHandler = new Handler() { in beginShutdownSequence()
178 sInstance.start(); in beginShutdownSequence()
/frameworks/base/core/java/com/android/internal/util/
DHanziToPinyin.java305 private static HanziToPinyin sInstance; field in HanziToPinyin
347 if (sInstance != null) { in getInstance()
348 return sInstance; in getInstance()
354 sInstance = new HanziToPinyin(true); in getInstance()
355 return sInstance; in getInstance()
359 sInstance = new HanziToPinyin(false); in getInstance()
360 return sInstance; in getInstance()
/frameworks/base/telephony/java/android/telephony/gsm/
DSmsManager.java30 private static SmsManager sInstance; field in SmsManager
40 if (sInstance == null) { in getDefault()
41 sInstance = new SmsManager(); in getDefault()
43 return sInstance; in getDefault()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
DRilMessageDecoder.java38 private static RilMessageDecoder sInstance = null; field in RilMessageDecoder
55 if (sInstance == null) { in getInstance()
56 sInstance = new RilMessageDecoder(caller, fh); in getInstance()
57 sInstance.start(); in getInstance()
59 return sInstance; in getInstance()
DStkService.java120 private static StkService sInstance; field in StkService
460 if (sInstance == null) { in getInstance()
467 sInstance = new StkService(ci, sr, context, fh, sc); in getInstance()
468 StkLog.d(sInstance, "NEW sInstance"); in getInstance()
470 StkLog.d(sInstance, "Reinitialize the Service with SIMRecords"); in getInstance()
474 mSimRecords.registerForRecordsLoaded(sInstance, MSG_ID_SIM_LOADED, null); in getInstance()
475 StkLog.d(sInstance, "sr changed reinitialize and return current sInstance"); in getInstance()
477 StkLog.d(sInstance, "Return current sInstance"); in getInstance()
479 return sInstance; in getInstance()
/frameworks/base/services/java/com/android/server/
DAttributeCache.java36 private static AttributeCache sInstance = null; field in AttributeCache
64 if (sInstance == null) { in init()
65 sInstance = new AttributeCache(context); in init()
70 return sInstance; in instance()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java53 private static AccessibilityManager sInstance; field in AccessibilityManager
96 if (sInstance == null) { in getInstance()
97 sInstance = new AccessibilityManager(context); in getInstance()
100 return sInstance; in getInstance()
/frameworks/base/core/java/android/text/
DSpannable.java53 private static Spannable.Factory sInstance = new Spannable.Factory(); field in Spannable.Factory
59 return sInstance; in getInstance()
DEditable.java124 private static Editable.Factory sInstance = new Editable.Factory(); field in Editable.Factory
130 return sInstance; in getInstance()
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
DAccessibilityManager.java38 private static AccessibilityManager sInstance = new AccessibilityManager(); field in AccessibilityManager
46 return sInstance; in getInstance()
/frameworks/base/core/java/com/android/internal/view/
DInputConnectionWrapper.java45 private static InputContextCallback sInstance = new InputContextCallback(); field in InputConnectionWrapper.InputContextCallback
58 if (sInstance != null) { in getInstance()
59 callback = sInstance; in getInstance()
60 sInstance = null; in getInstance()
80 if (sInstance == null) { in dispose()
85 sInstance = this; in dispose()
/frameworks/base/core/java/android/webkit/
DGeolocationPermissions.java60 private static GeolocationPermissions sInstance; field in GeolocationPermissions
88 if (sInstance == null) { in getInstance()
89 sInstance = new GeolocationPermissions(); in getInstance()
91 return sInstance; in getInstance()
/frameworks/base/telephony/java/android/telephony/
DSmsManager.java44 private static SmsManager sInstance; field in SmsManager
226 if (sInstance == null) { in getDefault()
227 sInstance = new SmsManager(); in getDefault()
229 return sInstance; in getDefault()
/frameworks/base/core/java/com/google/android/mms/util/
DPduCache.java51 private static PduCache sInstance; field in PduCache
84 if (sInstance == null) { in getInstance()
88 sInstance = new PduCache(); in getInstance()
90 return sInstance; in getInstance()

12