/frameworks/base/services/core/java/com/android/server/ |
D | SystemServerInitThreadPool.java | 46 private static SystemServerInitThreadPool sInstance; field in SystemServerInitThreadPool 55 if (sInstance == null) { in get() 56 sInstance = new SystemServerInitThreadPool(); in get() 58 Preconditions.checkState(sInstance.mService != null, "Cannot get " + TAG in get() 60 return sInstance; in get() 87 if (sInstance != null && sInstance.mService != null) { 88 sInstance.mService.shutdown(); 91 terminated = sInstance.mService.awaitTermination(SHUTDOWN_TIMEOUT_MILLIS, 103 List<Runnable> unstartedRunnables = sInstance.mService.shutdownNow(); 106 synchronized (sInstance.mPendingTasks) { [all …]
|
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 | 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 | 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()
|
D | FalsingManagerFactory.java | 33 private static FalsingManager sInstance = null; field in FalsingManagerFactory 38 if (sInstance == null) { in getInstance() 39 sInstance = Dependency.get(FalsingManager.class); in getInstance() 41 return sInstance; in getInstance()
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 70 private static CharacterTextSegmentIterator sInstance; field in AccessibilityIterators.CharacterTextSegmentIterator 77 if (sInstance == null) { in getInstance() 78 sInstance = new CharacterTextSegmentIterator(locale); in getInstance() 80 return sInstance; in getInstance() 165 private static WordTextSegmentIterator sInstance; field in AccessibilityIterators.WordTextSegmentIterator 168 if (sInstance == null) { in getInstance() 169 sInstance = new WordTextSegmentIterator(locale); in getInstance() 171 return sInstance; in getInstance() 255 private static ParagraphTextSegmentIterator sInstance; field in AccessibilityIterators.ParagraphTextSegmentIterator 258 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/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 97 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread 365 sInstance.mProgressDialog = showShutdownDialog(context); in beginShutdownSequence() 366 sInstance.mContext = context; in beginShutdownSequence() 367 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence() 370 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 372 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence() 374 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence() 375 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence() 378 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 382 sInstance.mScreenWakeLock = null; in beginShutdownSequence() [all …]
|
/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()
|
/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/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 31 private static TileColorPicker sInstance; field in TileColorPicker 41 if (sInstance == null) { in getInstance() 42 sInstance = new TileColorPicker(context); in getInstance() 44 return sInstance; in getInstance()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/ |
D | ServiceResolveQueue.java | 33 private static ServiceResolveQueue sInstance = null; field in ServiceResolveQueue 38 if (sInstance == null) sInstance = new ServiceResolveQueue(nsdManager); in createInstance() 44 return sInstance; in getInstance() 49 sInstance = null; in destroyInstance()
|
/frameworks/av/media/libstagefright/ |
D | StagefrightPluginLoader.cpp | 29 /* static */ std::unique_ptr<StagefrightPluginLoader> StagefrightPluginLoader::sInstance; member in android::StagefrightPluginLoader 97 if (!sInstance) { in GetCCodecInstance() 99 sInstance.reset(new StagefrightPluginLoader(kCCodecPluginPath)); in GetCCodecInstance() 101 return sInstance; in GetCCodecInstance()
|
/frameworks/av/media/codec2/vndk/ |
D | C2PlatformStorePluginLoader.cpp | 27 /* static */ std::unique_ptr<C2PlatformStorePluginLoader> C2PlatformStorePluginLoader::sInstance; member in C2PlatformStorePluginLoader 96 if (!sInstance) { in GetInstance() 98 sInstance.reset(new C2PlatformStorePluginLoader(kStorePluginPath)); in GetInstance() 100 return sInstance; in GetInstance()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ReusableBitmap.java | 124 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()
|