/frameworks/base/core/java/android/view/ |
D | InsetsAnimationThread.java | 29 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()
|
D | AccessibilityIterators.java | 75 private static CharacterTextSegmentIterator sInstance; field in AccessibilityIterators.CharacterTextSegmentIterator 82 if (sInstance == null) { in getInstance() 83 sInstance = new CharacterTextSegmentIterator(locale); 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() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnimationThread.java | 31 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 = new Handler(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()
|
D | DisplayThread.java | 32 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 = new Handler(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()
|
D | UiThread.java | 34 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 = new Handler(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()
|
D | SystemServerInitThreadPool.java | 56 private static SystemServerInitThreadPool sInstance; field in SystemServerInitThreadPool 85 Preconditions.checkState(sInstance != null, "Cannot get " + TAG in submit() 87 instance = sInstance; in submit() 132 Preconditions.checkState(sInstance == null, TAG + " already started"); in start() 133 instance = sInstance = new SystemServerInitThreadPool(); in start() 149 if (sInstance == null) { in shutdown() 154 synchronized (sInstance.mPendingTasks) { in shutdown() 155 sInstance.mShutDown = true; in shutdown() 157 sInstance.mService.shutdown(); in shutdown() 160 terminated = sInstance.mService.awaitTermination(SHUTDOWN_TIMEOUT_MILLIS, in shutdown() [all …]
|
D | IoThread.java | 31 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 = new Handler(sInstance.getLooper()); in ensureThreadLocked() 52 return sInstance; in get()
|
D | FgThread.java | 38 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 = new Handler(sInstance.getLooper()); in ensureThreadLocked() 62 return sInstance; in get()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimationThread.java | 31 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 = new Handler(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()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/ |
D | TareHandlerThread.java | 34 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()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BackgroundThread.java | 33 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()); in ensureThreadLocked() 57 return sInstance; in get()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | JobSchedulerBackgroundThread.java | 35 private static JobSchedulerBackgroundThread sInstance; field in JobSchedulerBackgroundThread 44 if (sInstance == null) { in ensureThreadLocked() 45 sInstance = new JobSchedulerBackgroundThread(); in ensureThreadLocked() 46 sInstance.start(); in ensureThreadLocked() 47 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() 51 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 60 return sInstance; in get()
|
/frameworks/base/core/java/android/text/method/ |
D | SingleLineTransformationMethod.java | 45 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
|
D | HideReturnsTransformationMethod.java | 47 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
|
D | DialerKeyListener.java | 40 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
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/ |
D | BackgroundThread.java | 42 private static BackgroundThread sInstance; field in BackgroundThread 54 if (sInstance == null) { in ensureThreadLocked() 55 sInstance = new BackgroundThread(); in ensureThreadLocked() 56 sInstance.start(); in ensureThreadLocked() 57 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 71 return sInstance; in get()
|
/frameworks/native/libs/gui/ |
D | TransactionTracing.cpp | 24 sp<TransactionTraceListener> TransactionTraceListener::sInstance = nullptr; member in android::TransactionTraceListener 32 if (sInstance == nullptr) { in getInstance() 33 sInstance = new TransactionTraceListener; in getInstance() 36 sf->addTransactionTraceListener(sInstance); in getInstance() 39 return sInstance; in getInstance()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 99 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread 376 sInstance.mProgressDialog = showShutdownDialog(context); in beginShutdownSequence() 377 sInstance.mContext = context; in beginShutdownSequence() 378 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence() 381 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 383 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence() 385 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence() 386 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence() 389 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 393 sInstance.mScreenWakeLock = null; in beginShutdownSequence() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyLocalConnection.java | 31 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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RadioInterfaceCapabilityController.java | 41 private static RadioInterfaceCapabilityController sInstance; field in RadioInterfaceCapabilityController 55 if (sInstance == null) { in init() 58 sInstance = new RadioInterfaceCapabilityController(radioConfig, commandsInterface, in init() 61 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance); in init() 63 return sInstance; in init() 71 if (sInstance == null) { in getInstance() 75 return sInstance; in getInstance()
|
/frameworks/av/media/libmediaplayerservice/datasource/ |
D | PlayerServiceDataSourceFactory.cpp | 29 sp<PlayerServiceDataSourceFactory> PlayerServiceDataSourceFactory::sInstance; member in android::PlayerServiceDataSourceFactory 36 if (!sInstance) { in getInstance() 37 sInstance = new PlayerServiceDataSourceFactory(); in getInstance() 39 return sInstance; in getInstance()
|
/frameworks/base/core/java/android/timezone/ |
D | ZoneInfoDb.java | 35 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()
|
D | TelephonyLookup.java | 35 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()
|
D | TimeZoneFinder.java | 35 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | ConnectionRecordManager.java | 29 private static ConnectionRecordManager sInstance; field in ConnectionRecordManager 38 if (sInstance == null) { in getInstance() 39 sInstance = new ConnectionRecordManager(); in getInstance() 42 return sInstance; in getInstance()
|