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

12

/frameworks/base/core/java/android/text/method/
H A DDateKeyListener.java43 if (sInstance != null)
44 return sInstance;
46 sInstance = new DateKeyListener();
47 return sInstance;
61 private static DateKeyListener sInstance; field in class:DateKeyListener
H A DDateTimeKeyListener.java43 if (sInstance != null)
44 return sInstance;
46 sInstance = new DateTimeKeyListener();
47 return sInstance;
61 private static DateTimeKeyListener sInstance; field in class:DateTimeKeyListener
H A DTimeKeyListener.java43 if (sInstance != null)
44 return sInstance;
46 sInstance = new TimeKeyListener();
47 return sInstance;
61 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.java40 if (sInstance != null)
41 return sInstance;
43 sInstance = new DialerKeyListener();
44 return sInstance;
116 private static DialerKeyListener sInstance; field in class:DialerKeyListener
H A DDigitsKeyListener.java94 if (sInstance[kind] != null)
95 return sInstance[kind];
97 sInstance[kind] = new DigitsKeyListener(sign, decimal);
98 return sInstance[kind];
221 private static DigitsKeyListener[] sInstance = new DigitsKeyListener[4]; field in class:DigitsKeyListener
H A DScrollingMovementMethod.java113 if (sInstance == null)
114 sInstance = new ScrollingMovementMethod();
116 return sInstance;
119 private static ScrollingMovementMethod sInstance; field in class:ScrollingMovementMethod
H A DTextKeyListener.java42 private static TextKeyListener[] sInstance = field in class:TextKeyListener
86 if (sInstance[off] == null) {
87 sInstance[off] = new TextKeyListener(cap, autotext);
90 return sInstance[off];
235 if (sInstance != null)
236 return sInstance;
238 sInstance = new NullKeyListener();
239 return sInstance;
242 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
/frameworks/base/core/java/android/os/
H A DNullVibrator.java27 private static final NullVibrator sInstance = new NullVibrator(); field in class:NullVibrator
33 return sInstance;
/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/native/include/utils/
H A DSingleton.h34 TYPE* instance = sInstance;
37 sInstance = instance;
44 return sInstance != 0;
55 static TYPE* sInstance; member in class:android::Singleton
69 template<> TYPE* Singleton< TYPE >::sInstance(0); \
/frameworks/base/core/java/android/webkit/
H A DWebCoreThreadWatchdog.java64 private static WebCoreThreadWatchdog sInstance; field in class:WebCoreThreadWatchdog
67 if (sInstance == null) {
68 sInstance = new WebCoreThreadWatchdog(webCoreThreadHandler);
69 new Thread(sInstance, "WebCoreThreadWatchdog").start();
71 return sInstance;
75 if (sInstance != null) {
76 sInstance.addWebView(w);
81 if (sInstance != null) {
82 sInstance.removeWebView(w);
87 if (sInstance !
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java41 private static AccessibilityManager sInstance = new AccessibilityManager(); field in class:AccessibilityManager
62 return sInstance;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DAccessibilityManagerServiceTest.java191 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
221 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
251 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
281 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
332 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance;
338 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance;
376 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance;
380 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance;
415 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance;
421 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance;
709 static MyFirstMockAccessibilityService sInstance; field in class:AccessibilityManagerServiceTest.MyFirstMockAccessibilityService
732 static MySecondMockAccessibilityService sInstance; field in class:AccessibilityManagerServiceTest.MySecondMockAccessibilityService
[all...]
/frameworks/opt/telephony/src/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/
H A DAccessibilityIterators.java71 private static CharacterTextSegmentIterator sInstance; field in class:AccessibilityIterators.CharacterTextSegmentIterator
78 if (sInstance == null) {
79 sInstance = new CharacterTextSegmentIterator(locale);
81 return sInstance;
168 private static WordTextSegmentIterator sInstance; field in class:AccessibilityIterators.WordTextSegmentIterator
171 if (sInstance == null) {
172 sInstance = new WordTextSegmentIterator(locale);
174 return sInstance;
258 private static ParagraphTextSegmentIterator sInstance; field in class:AccessibilityIterators.ParagraphTextSegmentIterator
261 if (sInstance
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSubscriptionSourceManager.java47 private static CdmaSubscriptionSourceManager sInstance; field in class:CdmaSubscriptionSourceManager
77 if (null == sInstance) {
78 sInstance = new CdmaSubscriptionSourceManager(context, ci);
80 sInstance.sReferenceCount++;
82 sInstance.registerForCdmaSubscriptionSourceChanged(h, what, obj);
83 return sInstance;
96 sInstance = null;
/frameworks/base/services/java/com/android/server/power/
H A DShutdownThread.java78 private static final ShutdownThread sInstance = new ShutdownThread(); field in class:ShutdownThread
224 sInstance.mContext = context;
225 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
228 sInstance.mCpuWakeLock = null;
230 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock(
232 sInstance.mCpuWakeLock.setReferenceCounted(false);
233 sInstance.mCpuWakeLock.acquire();
236 sInstance.mCpuWakeLock = null;
240 sInstance
[all...]
/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/android/view/textservice/
H A DTextServicesManager.java68 private static TextServicesManager sInstance; field in class:TextServicesManager
84 if (sInstance != null) {
85 return sInstance;
87 sInstance = new TextServicesManager();
89 return sInstance;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
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;
/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;

Completed in 2365 milliseconds

12