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

123

/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.java103 if (sInstance[kind] != null)
104 return sInstance[kind];
106 sInstance[kind] = new DigitsKeyListener(sign, decimal);
107 return sInstance[kind];
230 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
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
H A DInputMethodManager_Accessor.java25 InputMethodManager.sInstance = null;
H A DInputMethodManager_Delegate.java44 InputMethodManager.sInstance = imm;
/frameworks/base/core/java/com/android/internal/os/
H A DBackgroundThread.java26 private static BackgroundThread sInstance; field in class:BackgroundThread
34 if (sInstance == null) {
35 sInstance = new BackgroundThread();
36 sInstance.start();
37 sHandler = new Handler(sInstance.getLooper());
44 return sInstance;
/frameworks/base/services/java/com/android/server/
H A DFgThread.java31 private static FgThread sInstance; field in class:FgThread
39 if (sInstance == null) {
40 sInstance = new FgThread();
41 sInstance.start();
42 sHandler = new Handler(sInstance.getLooper());
55 return sInstance;
H A DIoThread.java28 private static IoThread sInstance; field in class:IoThread
36 if (sInstance == null) {
37 sInstance = new IoThread();
38 sInstance.start();
39 sHandler = new Handler(sInstance.getLooper());
52 return sInstance;
H A DUiThread.java30 private static UiThread sInstance; field in class:UiThread
38 if (sInstance == null) {
39 sInstance = new UiThread();
40 sInstance.start();
41 sHandler = new Handler(sInstance.getLooper());
61 return sInstance;
H A DAttributeCache.java37 private static AttributeCache sInstance = null; field in class:AttributeCache
65 if (sInstance == null) {
66 sInstance = new AttributeCache(context);
71 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/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/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/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/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSubscriptionSourceManager.java45 private static CdmaSubscriptionSourceManager sInstance; field in class:CdmaSubscriptionSourceManager
75 if (null == sInstance) {
76 sInstance = new CdmaSubscriptionSourceManager(context, ci);
80 sInstance.registerForCdmaSubscriptionSourceChanged(h, what, obj);
81 return sInstance;
94 sInstance = null;

Completed in 720 milliseconds

123