Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/
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()
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()
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()
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()
/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/services/core/java/com/android/server/power/
DShutdownThread.java100 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread
291 sInstance.mProgressDialog = pd; in beginShutdownSequence()
292 sInstance.mContext = context; in beginShutdownSequence()
293 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence()
296 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
298 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence()
300 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence()
301 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence()
304 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
308 sInstance.mScreenWakeLock = null; in beginShutdownSequence()
[all …]
/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
/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/libs/hwui/
DCaches.h72 LOG_ALWAYS_FATAL_IF(sInstance, "double create of Caches attempted"); in createInstance()
73 sInstance = new Caches(renderState); in createInstance()
74 return *sInstance; in createInstance()
78 LOG_ALWAYS_FATAL_IF(!sInstance, "instance not yet created"); in getInstance()
79 return *sInstance; in getInstance()
83 return sInstance != nullptr; in hasInstance()
87 static Caches* sInstance; variable
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DTypeUtil.java45 private static TypeUtil sInstance; field in TypeUtil
52 if (sInstance == null) { in getInstance()
53 sInstance = ModelAnalyzer.getInstance().createTypeUtil(); in getInstance()
55 return sInstance; in getInstance()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothManager.java32 private static LocalBluetoothManager sInstance; field in LocalBluetoothManager
51 if (sInstance == null) { in getInstance()
58 sInstance = new LocalBluetoothManager(adapter, appContext); in getInstance()
60 onInitCallback.onBluetoothManagerInitialized(appContext, sInstance); in getInstance()
64 return sInstance; in getInstance()
/frameworks/support/v4/java/android/support/v4/content/
DSharedPreferencesCompat.java27 private static EditorCompat sInstance; field in SharedPreferencesCompat.EditorCompat
60 if (sInstance == null) { in getInstance()
61 sInstance = new EditorCompat(); in getInstance()
63 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/base/services/core/java/com/android/server/fingerprint/
DFingerprintUtils.java37 private static FingerprintUtils sInstance; field in FingerprintUtils
44 if (sInstance == null) { in getInstance()
45 sInstance = new FingerprintUtils(); in getInstance()
48 return sInstance; in getInstance()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightCalculator.java28 private static TwilightCalculator sInstance; field in TwilightCalculator
31 if (sInstance == null) { in getInstance()
32 sInstance = new TwilightCalculator(); in getInstance()
34 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()

1234