Home
last modified time | relevance | path

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

123456

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/location/contexthub/
H A DContextHubEventLoggerTest.java46 sInstance.clear(); in testLogNanoappLoad()
49 String sInstanceDump = sInstance.toString(); in testLogNanoappLoad()
66 sInstance.clear(); in testLogNanoappUnload()
67 sInstance.logNanoappUnload(-1, 47, false); in testLogNanoappUnload()
69 String sInstanceDump = sInstance.toString(); in testLogNanoappUnload()
90 sInstance.clear(); in testLogMessageFromNanoapp()
93 String sInstanceDump = sInstance.toString(); in testLogMessageFromNanoapp()
114 sInstance.clear(); in testLogMessageToNanoapp()
134 sInstance.clear(); in testLogContextHubRestart()
135 sInstance.logContextHubRestart(1); in testLogContextHubRestart()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DInsetsAnimationThread.java29 private static InsetsAnimationThread sInstance; field in InsetsAnimationThread
38 if (sInstance == null) { in ensureThreadLocked()
39 sInstance = new InsetsAnimationThread(); in ensureThreadLocked()
40 sInstance.start(); in ensureThreadLocked()
41 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_VIEW); in ensureThreadLocked()
42 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
48 if (sInstance == null) { in release()
51 sInstance.getLooper().quitSafely(); in release()
52 sInstance = null; in release()
60 return sInstance; in get()
H A DAccessibilityIterators.java75 private static CharacterTextSegmentIterator sInstance; field in AccessibilityIterators.CharacterTextSegmentIterator
82 if (sInstance == null) { in getInstance()
85 return sInstance; in getInstance()
170 private static WordTextSegmentIterator sInstance; field in AccessibilityIterators.WordTextSegmentIterator
173 if (sInstance == null) { in getInstance()
174 sInstance = new WordTextSegmentIterator(locale); in getInstance()
176 return sInstance; in getInstance()
260 private static ParagraphTextSegmentIterator sInstance; field in AccessibilityIterators.ParagraphTextSegmentIterator
263 if (sInstance == null) { in getInstance()
264 sInstance = new ParagraphTextSegmentIterator(); in getInstance()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DAnimationThread.java31 private static AnimationThread sInstance; field in AnimationThread
39 if (sInstance == null) { in ensureThreadLocked()
40 sInstance = new AnimationThread(); in ensureThreadLocked()
41 sInstance.start(); in ensureThreadLocked()
42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
50 return sInstance; in get()
68 if (sInstance == null) { in dispose()
72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
73 sInstance = null; in dispose()
H A DDisplayThread.java32 private static DisplayThread sInstance; field in DisplayThread
42 if (sInstance == null) { in ensureThreadLocked()
43 sInstance = new DisplayThread(); in ensureThreadLocked()
44 sInstance.start(); in ensureThreadLocked()
45 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
46 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
53 return sInstance; in get()
71 if (sInstance == null) { in dispose()
75 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
76 sInstance = null; in dispose()
H A DUiThread.java34 private static UiThread sInstance; field in UiThread
49 if (sInstance == null) { in ensureThreadLocked()
50 sInstance = new UiThread(); in ensureThreadLocked()
51 sInstance.start(); in ensureThreadLocked()
52 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
56 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
63 return sInstance; in get()
81 if (sInstance == null) { in dispose()
85 getHandler().runWithScissors(sInstance::quit, 0 /* timeout */); in dispose()
86 sInstance = null; in dispose()
H A DSystemServerInitThreadPool.java57 private static SystemServerInitThreadPool sInstance; field in SystemServerInitThreadPool
88 instance = sInstance; in submit()
134 instance = sInstance = new SystemServerInitThreadPool(); in start()
150 if (sInstance == null) { in shutdown()
155 synchronized (sInstance.mPendingTasks) { in shutdown()
156 sInstance.mShutDown = true; in shutdown()
158 sInstance.mService.shutdown(); in shutdown()
177 synchronized (sInstance.mPendingTasks) { in shutdown()
178 copy.addAll(sInstance.mPendingTasks); in shutdown()
184 sInstance = null; // Make eligible for GC in shutdown()
[all …]
H A DIoThread.java31 private static IoThread sInstance; field in IoThread
40 if (sInstance == null) { in ensureThreadLocked()
41 sInstance = new IoThread(); in ensureThreadLocked()
42 sInstance.start(); in ensureThreadLocked()
43 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
44 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
52 return sInstance; in get()
H A DFgThread.java38 private static FgThread sInstance; field in FgThread
47 if (sInstance == null) { in ensureThreadLocked()
48 sInstance = new FgThread(); in ensureThreadLocked()
49 sInstance.start(); in ensureThreadLocked()
50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
54 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
62 return sInstance; in get()
H A DPermissionThread.java40 private static PermissionThread sInstance; field in PermissionThread
50 if (sInstance != null) { in ensureThreadLocked()
54 sInstance = new PermissionThread(); in ensureThreadLocked()
55 sInstance.start(); in ensureThreadLocked()
56 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
60 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
70 return sInstance; in get()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSurfaceAnimationThread.java31 private static SurfaceAnimationThread sInstance; field in SurfaceAnimationThread
39 if (sInstance == null) { in ensureThreadLocked()
40 sInstance = new SurfaceAnimationThread(); in ensureThreadLocked()
41 sInstance.start(); in ensureThreadLocked()
42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = makeSharedHandler(sInstance.getLooper()); in ensureThreadLocked()
50 return sInstance; in get()
68 if (sInstance == null) { in dispose()
72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
73 sInstance = null; in dispose()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
H A DTareHandlerThread.java34 private static TareHandlerThread sInstance; field in TareHandlerThread
43 if (sInstance == null) { in ensureThreadLocked()
44 sInstance = new TareHandlerThread(); in ensureThreadLocked()
45 sInstance.start(); in ensureThreadLocked()
46 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
48 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
57 return sInstance; in get()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/
H A DAppSchedulingModuleThread.java36 private static AppSchedulingModuleThread sInstance; field in AppSchedulingModuleThread
45 if (sInstance == null) { in ensureThreadLocked()
46 sInstance = new AppSchedulingModuleThread(); in ensureThreadLocked()
47 sInstance.start(); in ensureThreadLocked()
48 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
52 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
61 return sInstance; in get()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DBackgroundThread.java33 private static BackgroundThread sInstance; field in BackgroundThread
42 if (sInstance == null) { in ensureThreadLocked()
43 sInstance = new BackgroundThread(); in ensureThreadLocked()
44 sInstance.start(); in ensureThreadLocked()
45 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
49 sHandler = new Handler(sInstance.getLooper(), /*callback=*/ null, /* async=*/ false, in ensureThreadLocked()
58 return sInstance; in get()
/aosp14/frameworks/base/core/java/android/text/method/
H A 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
H A DHideReturnsTransformationMethod.java47 if (sInstance != null) in getInstance()
48 return sInstance; in getInstance()
50 sInstance = new HideReturnsTransformationMethod(); in getInstance()
51 return sInstance; in getInstance()
55 private static HideReturnsTransformationMethod sInstance; field in HideReturnsTransformationMethod
H A 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
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DShutdownThread.java392 sInstance.mContext = context; in beginShutdownSequence()
396 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
398 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence()
401 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence()
404 sInstance.mCpuWakeLock = null; in beginShutdownSequence()
408 sInstance.mScreenWakeLock = null; in beginShutdownSequence()
409 if (sInstance.mPowerManager.isScreenOn()) { in beginShutdownSequence()
411 sInstance.mScreenWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence()
417 sInstance.mScreenWakeLock = null; in beginShutdownSequence()
426 sInstance.mHandler = new Handler() { in beginShutdownSequence()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/config/appcloning/
H A DAppCloningDeviceConfigHelper.java32 private static AppCloningDeviceConfigHelper sInstance; field in AppCloningDeviceConfigHelper
63 if (sInstance == null) { in getInstance()
64 sInstance = new AppCloningDeviceConfigHelper(); in getInstance()
65 sInstance.init(context); in getInstance()
67 return sInstance; in getInstance()
/aosp14/system/core/libutils/include/utils/
H A DSingleton.h53 TYPE* instance = sInstance; in getInstance()
56 sInstance = instance; in getInstance()
63 return sInstance != nullptr; in hasInstance()
74 static TYPE* sInstance; variable
93 template<> TYPE* ::android::Singleton< TYPE >::sInstance(nullptr); /* NOLINT */ \
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DTelephonyLocalConnection.java31 private static ConnectionImpl sInstance; field in TelephonyLocalConnection
35 return sInstance.getCallComposerServerUrlForHandle(subscriptionId, uuid); in getCallComposerServerUrlForHandle()
39 if (sInstance == null) { in checkInstance()
45 sInstance = impl; in setInstance()
/aosp14/frameworks/base/core/java/android/timezone/
H A DZoneInfoDb.java35 private static ZoneInfoDb sInstance; field in ZoneInfoDb
43 if (sInstance == null) { in getInstance()
44 sInstance = new ZoneInfoDb(com.android.i18n.timezone.ZoneInfoDb.getInstance()); in getInstance()
47 return sInstance; in getInstance()
H A DTelephonyLookup.java35 private static TelephonyLookup sInstance; field in TelephonyLookup
43 if (sInstance == null) { in getInstance()
44 sInstance = new TelephonyLookup(com.android.i18n.timezone.TelephonyLookup in getInstance()
47 return sInstance; in getInstance()
H A DTimeZoneFinder.java35 private static TimeZoneFinder sInstance; field in TimeZoneFinder
43 if (sInstance == null) { in getInstance()
44 sInstance = new TimeZoneFinder(com.android.i18n.timezone.TimeZoneFinder in getInstance()
48 return sInstance; in getInstance()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DConnectionRecordManager.java29 private static ConnectionRecordManager sInstance; field in ConnectionRecordManager
38 if (sInstance == null) { in getInstance()
39 sInstance = new ConnectionRecordManager(); in getInstance()
42 return sInstance; in getInstance()

123456