Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/
DFgThread.java30 private static FgThread sInstance; field in FgThread
38 if (sInstance == null) { in ensureThreadLocked()
39 sInstance = new FgThread(); in ensureThreadLocked()
40 sInstance.start(); in ensureThreadLocked()
41 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
48 return sInstance; in get()
DUiThread.java27 private static UiThread sInstance; field in UiThread
35 if (sInstance == null) { in ensureThreadLocked()
36 sInstance = new UiThread(); in ensureThreadLocked()
37 sInstance.start(); in ensureThreadLocked()
38 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
45 return sInstance; in get()
DDisplayThread.java28 private static DisplayThread sInstance; field in DisplayThread
36 if (sInstance == null) { in ensureThreadLocked()
37 sInstance = new DisplayThread(); in ensureThreadLocked()
38 sInstance.start(); in ensureThreadLocked()
39 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
46 return sInstance; in get()
DIoThread.java27 private static IoThread sInstance; field in IoThread
35 if (sInstance == null) { in ensureThreadLocked()
36 sInstance = new IoThread(); in ensureThreadLocked()
37 sInstance.start(); in ensureThreadLocked()
38 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
45 return sInstance; in get()
DAttributeCache.java37 private static AttributeCache sInstance = null; field in AttributeCache
65 if (sInstance == null) { in init()
66 sInstance = new AttributeCache(context); in init()
71 return sInstance; in instance()
/frameworks/base/core/java/com/android/internal/os/
DBackgroundThread.java26 private static BackgroundThread sInstance; field in BackgroundThread
34 if (sInstance == null) { in ensureThreadLocked()
35 sInstance = new BackgroundThread(); in ensureThreadLocked()
36 sInstance.start(); in ensureThreadLocked()
37 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
44 return sInstance; in get()
/frameworks/base/core/java/android/text/method/
DHideReturnsTransformationMethod.java44 if (sInstance != null) in getInstance()
45 return sInstance; in getInstance()
47 sInstance = new HideReturnsTransformationMethod(); in getInstance()
48 return sInstance; in getInstance()
51 private static HideReturnsTransformationMethod sInstance; field in HideReturnsTransformationMethod
DSingleLineTransformationMethod.java45 if (sInstance != null) in getInstance()
46 return sInstance; in getInstance()
48 sInstance = new SingleLineTransformationMethod(); in getInstance()
49 return sInstance; in getInstance()
52 private static SingleLineTransformationMethod sInstance; field in SingleLineTransformationMethod
DTimeKeyListener.java43 if (sInstance != null) in getInstance()
44 return sInstance; in getInstance()
46 sInstance = new TimeKeyListener(); in getInstance()
47 return sInstance; in getInstance()
61 private static TimeKeyListener sInstance; field in TimeKeyListener
DDateTimeKeyListener.java43 if (sInstance != null) in getInstance()
44 return sInstance; in getInstance()
46 sInstance = new DateTimeKeyListener(); in getInstance()
47 return sInstance; in getInstance()
61 private static DateTimeKeyListener sInstance; field in DateTimeKeyListener
DDateKeyListener.java43 if (sInstance != null) in getInstance()
44 return sInstance; in getInstance()
46 sInstance = new DateKeyListener(); in getInstance()
47 return sInstance; in getInstance()
61 private static DateKeyListener sInstance; field in DateKeyListener
DDialerKeyListener.java40 if (sInstance != null) in getInstance()
41 return sInstance; in getInstance()
43 sInstance = new DialerKeyListener(); in getInstance()
44 return sInstance; in getInstance()
116 private static DialerKeyListener sInstance; field in DialerKeyListener
DTextKeyListener.java42 private static TextKeyListener[] sInstance = field in TextKeyListener
86 if (sInstance[off] == null) { in getInstance()
87 sInstance[off] = new TextKeyListener(cap, autotext); in getInstance()
90 return sInstance[off]; in getInstance()
235 if (sInstance != null) in getInstance()
236 return sInstance; in getInstance()
238 sInstance = new NullKeyListener(); in getInstance()
239 return sInstance; in getInstance()
242 private static NullKeyListener sInstance; field in TextKeyListener.NullKeyListener
DDigitsKeyListener.java103 if (sInstance[kind] != null) in getInstance()
104 return sInstance[kind]; in getInstance()
106 sInstance[kind] = new DigitsKeyListener(sign, decimal); in getInstance()
107 return sInstance[kind]; in getInstance()
230 private static DigitsKeyListener[] sInstance = new DigitsKeyListener[4]; field in DigitsKeyListener
DScrollingMovementMethod.java113 if (sInstance == null) in getInstance()
114 sInstance = new ScrollingMovementMethod(); in getInstance()
116 return sInstance; in getInstance()
119 private static ScrollingMovementMethod sInstance; field in ScrollingMovementMethod
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerServiceTest.java191 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
221 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingPackage()
251 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingEventType()
281 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotifivationAfterTimeout()
332 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_DiffFeedback()
338 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_DiffFeedback()
376 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType()
380 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType()
415 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_OneDefault()
421 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_OneDefault()
[all …]
/frameworks/base/core/java/android/view/
DAccessibilityIterators.java69 private static CharacterTextSegmentIterator sInstance; field in AccessibilityIterators.CharacterTextSegmentIterator
76 if (sInstance == null) { in getInstance()
77 sInstance = new CharacterTextSegmentIterator(locale); in getInstance()
79 return sInstance; in getInstance()
166 private static WordTextSegmentIterator sInstance; field in AccessibilityIterators.WordTextSegmentIterator
169 if (sInstance == null) { in getInstance()
170 sInstance = new WordTextSegmentIterator(locale); in getInstance()
172 return sInstance; in getInstance()
256 private static ParagraphTextSegmentIterator sInstance; field in AccessibilityIterators.ParagraphTextSegmentIterator
259 if (sInstance == null) { in getInstance()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java80 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread
231 sInstance.mContext = context; in beginShutdownSequence()
232 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence()
235 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
237 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence()
239 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence()
240 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence()
243 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
247 sInstance.mScreenWakeLock = null; in beginShutdownSequence()
248 if (sInstance.mPowerManager.isScreenOn()) { in beginShutdownSequence()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DMultiUserAvatarCache.java25 private static MultiUserAvatarCache sInstance; field in MultiUserAvatarCache
34 if (sInstance == null) { in getInstance()
35 sInstance = new MultiUserAvatarCache(); in getInstance()
37 return sInstance; in getInstance()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSubscriptionSourceManager.java49 private static CdmaSubscriptionSourceManager sInstance; field in CdmaSubscriptionSourceManager
81 if (null == sInstance) { in getInstance()
82 sInstance = new CdmaSubscriptionSourceManager(context, ci); in getInstance()
86 sInstance.registerForCdmaSubscriptionSourceChanged(h, what, obj); in getInstance()
87 return sInstance; in getInstance()
101 sInstance = null; in dispose()
/frameworks/opt/bitmap/src/com/android/bitmap/
DReusableBitmap.java124 private static NullReusableBitmap sInstance; field in ReusableBitmap.NullReusableBitmap
130 if (sInstance == null) { in getInstance()
131 sInstance = new NullReusableBitmap(); in getInstance()
133 return sInstance; in getInstance()
/frameworks/opt/telephony/src/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java34 private static UnlockMethodCache sInstance; field in UnlockMethodCache
54 if (sInstance == null) { in getInstance()
55 sInstance = new UnlockMethodCache(context); in getInstance()
57 return sInstance; in getInstance()
/frameworks/base/core/java/android/view/textservice/
DTextServicesManager.java68 private static TextServicesManager sInstance; field in TextServicesManager
84 if (sInstance != null) { in getInstance()
85 return sInstance; in getInstance()
87 sInstance = new TextServicesManager(); in getInstance()
89 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()

123