/frameworks/base/services/core/java/com/android/server/ |
D | SystemServerInitThreadPool.java | 47 private static SystemServerInitThreadPool sInstance; field in SystemServerInitThreadPool 56 if (sInstance == null) { in get() 57 sInstance = new SystemServerInitThreadPool(); in get() 59 Preconditions.checkState(sInstance.mService != null, "Cannot get " + TAG in get() 61 return sInstance; in get() 88 if (sInstance != null && sInstance.mService != null) { 89 sInstance.mService.shutdown(); 92 terminated = sInstance.mService.awaitTermination(SHUTDOWN_TIMEOUT_MILLIS, 104 List<Runnable> unstartedRunnables = sInstance.mService.shutdownNow(); 107 synchronized (sInstance.mPendingTasks) { [all …]
|
D | DisplayThread.java | 30 private static DisplayThread sInstance; field in DisplayThread 40 if (sInstance == null) { in ensureThreadLocked() 41 sInstance = new DisplayThread(); 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() 51 return sInstance; in get()
|
D | AnimationThread.java | 29 private static AnimationThread sInstance; field in AnimationThread 37 if (sInstance == null) { in ensureThreadLocked() 38 sInstance = new AnimationThread(); in ensureThreadLocked() 39 sInstance.start(); in ensureThreadLocked() 40 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked() 41 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 48 return sInstance; in get()
|
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 | UiThread.java | 32 private static UiThread sInstance; field in UiThread 47 if (sInstance == null) { in ensureThreadLocked() 48 sInstance = new UiThread(); in ensureThreadLocked() 49 sInstance.start(); in ensureThreadLocked() 50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() 54 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 61 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 | 30 private static SurfaceAnimationThread sInstance; field in SurfaceAnimationThread 38 if (sInstance == null) { in ensureThreadLocked() 39 sInstance = new SurfaceAnimationThread(); in ensureThreadLocked() 40 sInstance.start(); in ensureThreadLocked() 41 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked() 42 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 49 return sInstance; in get()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | ForegroundThread.java | 27 private static ForegroundThread sInstance; field in ForegroundThread 35 if (sInstance == null) { in ensureThreadLocked() 36 sInstance = new ForegroundThread(); in ensureThreadLocked() 37 sInstance.start(); in ensureThreadLocked() 38 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 45 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/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
|
D | TextKeyListener.java | 47 private static TextKeyListener[] sInstance = field in TextKeyListener 91 if (sInstance[off] == null) { in getInstance() 92 sInstance[off] = new TextKeyListener(cap, autotext); in getInstance() 95 return sInstance[off]; in getInstance() 240 if (sInstance != null) in getInstance() 241 return sInstance; in getInstance() 243 sInstance = new NullKeyListener(); in getInstance() 244 return sInstance; in getInstance() 247 private static NullKeyListener sInstance; field in TextKeyListener.NullKeyListener
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingLog.java | 63 private static FalsingLog sInstance; field in FalsingLog 108 if (sInstance == null) { in log() 109 sInstance = new FalsingLog(); in log() 112 if (sInstance.mLog.size() >= MAX_SIZE) { in log() 113 sInstance.mLog.removeFirst(); in log() 115 String entry = new StringBuilder().append(sInstance.mFormat.format(new Date())) in log() 118 sInstance.mLog.add(entry); in log() 128 if (sInstance == null || sInstance.mLog.isEmpty()) { in dump() 133 for (String s : sInstance.mLog) { in dump()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 98 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread 366 sInstance.mProgressDialog = showShutdownDialog(context); in beginShutdownSequence() 367 sInstance.mContext = context; in beginShutdownSequence() 368 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence() 371 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 373 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence() 375 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence() 376 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence() 379 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 383 sInstance.mScreenWakeLock = null; in beginShutdownSequence() [all …]
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 74 private static CharacterTextSegmentIterator sInstance; field in AccessibilityIterators.CharacterTextSegmentIterator 81 if (sInstance == null) { in getInstance() 82 sInstance = new CharacterTextSegmentIterator(locale); in getInstance() 84 return sInstance; in getInstance() 169 private static WordTextSegmentIterator sInstance; field in AccessibilityIterators.WordTextSegmentIterator 172 if (sInstance == null) { in getInstance() 173 sInstance = new WordTextSegmentIterator(locale); in getInstance() 175 return sInstance; in getInstance() 259 private static ParagraphTextSegmentIterator sInstance; field in AccessibilityIterators.ParagraphTextSegmentIterator 262 if (sInstance == null) { in getInstance() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolProvider.java | 25 private static ImagePool sInstance; field in ImagePoolProvider 29 if (sInstance == null) { in get() 36 sInstance = new ImagePoolImpl(policy); in get() 38 return sInstance; in get()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/ |
D | VendorSubscriptionInfoUpdater.java | 47 protected static VendorSubscriptionInfoUpdater sInstance = null; field in VendorSubscriptionInfoUpdater 54 if (sInstance == null) { in init() 55 sInstance = new VendorSubscriptionInfoUpdater(looper, context, ci); in init() 57 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance); in init() 59 return sInstance; in init() 64 if (sInstance == null) { in getInstance() 67 return sInstance; in getInstance()
|
D | VendorMultiSimSettingController.java | 43 if (sInstance == null) { in init() 44 sInstance = new VendorMultiSimSettingController(context, in init() 47 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance); in init() 50 return sInstance; in init() 58 return (VendorMultiSimSettingController)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/inputmethod/ |
D | InputMethodSettingValuesWrapper.java | 42 private static volatile InputMethodSettingValuesWrapper sInstance; field in InputMethodSettingValuesWrapper 48 if (sInstance == null) { in getInstance() 50 if (sInstance == null) { in getInstance() 51 sInstance = new InputMethodSettingValuesWrapper(context); in getInstance() 55 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()
|