/frameworks/base/services/core/java/com/android/server/ |
D | IoThread.java | 28 private static IoThread sInstance; field in IoThread 36 if (sInstance == null) { in ensureThreadLocked() 37 sInstance = new IoThread(); in ensureThreadLocked() 38 sInstance.start(); in ensureThreadLocked() 39 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER); in ensureThreadLocked() 40 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 47 return sInstance; in get()
|
D | FgThread.java | 31 private static FgThread sInstance; field in FgThread 39 if (sInstance == null) { in ensureThreadLocked() 40 sInstance = new FgThread(); in ensureThreadLocked() 41 sInstance.start(); in ensureThreadLocked() 42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER); in ensureThreadLocked() 43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 50 return sInstance; in get()
|
D | DisplayThread.java | 29 private static DisplayThread sInstance; field in DisplayThread 37 if (sInstance == null) { in ensureThreadLocked() 38 sInstance = new DisplayThread(); in ensureThreadLocked() 39 sInstance.start(); in ensureThreadLocked() 40 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER); in ensureThreadLocked() 41 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 48 return sInstance; in get()
|
D | UiThread.java | 29 private static UiThread sInstance; field in UiThread 39 if (sInstance == null) { in ensureThreadLocked() 40 sInstance = new UiThread(); in ensureThreadLocked() 41 sInstance.start(); in ensureThreadLocked() 42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER); in ensureThreadLocked() 43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 50 return sInstance; in get()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BackgroundThread.java | 27 private static BackgroundThread sInstance; field in BackgroundThread 35 if (sInstance == null) { in ensureThreadLocked() 36 sInstance = new BackgroundThread(); in ensureThreadLocked() 37 sInstance.start(); in ensureThreadLocked() 38 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER); in ensureThreadLocked() 39 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 46 return sInstance; in get()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
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/android/text/method/ |
D | HideReturnsTransformationMethod.java | 44 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
|
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 | DateKeyListener.java | 43 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
|
D | DateTimeKeyListener.java | 43 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
|
D | TimeKeyListener.java | 43 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
|
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 | 42 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
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingLog.java | 65 private static FalsingLog sInstance; field in FalsingLog 110 if (sInstance == null) { in log() 111 sInstance = new FalsingLog(); in log() 114 if (sInstance.mLog.size() >= MAX_SIZE) { in log() 115 sInstance.mLog.removeFirst(); in log() 117 String entry = new StringBuilder().append(sInstance.mFormat.format(new Date())) in log() 120 sInstance.mLog.add(entry); in log() 130 if (sInstance == null || sInstance.mLog.isEmpty()) { in dump() 135 for (String s : sInstance.mLog) { in dump()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityThread.java | 30 private static ConnectivityThread sInstance; field in ConnectivityThread 37 if (sInstance == null) { in getInstance() 38 sInstance = new ConnectivityThread(); in getInstance() 39 sInstance.start(); in getInstance() 41 return sInstance; in getInstance()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 102 private static final ShutdownThread sInstance = new ShutdownThread(); field in ShutdownThread 311 sInstance.mProgressDialog = pd; in beginShutdownSequence() 312 sInstance.mContext = context; in beginShutdownSequence() 313 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginShutdownSequence() 316 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 318 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock( in beginShutdownSequence() 320 sInstance.mCpuWakeLock.setReferenceCounted(false); in beginShutdownSequence() 321 sInstance.mCpuWakeLock.acquire(); in beginShutdownSequence() 324 sInstance.mCpuWakeLock = null; in beginShutdownSequence() 328 sInstance.mScreenWakeLock = null; in beginShutdownSequence() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AccessibilityManagerServiceTest.java | 206 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType() 236 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingPackage() 266 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingEventType() 296 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotifivationAfterTimeout() 347 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_DiffFeedback() 353 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_DiffFeedback() 391 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType() 395 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType() 430 MockAccessibilityService firstService = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_OneDefault() 436 MockAccessibilityService secondService = MySecondMockAccessibilityService.sInstance; in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_OneDefault() [all …]
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 69 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/ |
D | Caches.h | 66 LOG_ALWAYS_FATAL_IF(sInstance, "double create of Caches attempted"); in createInstance() 67 sInstance = new Caches(renderState); in createInstance() 68 return *sInstance; in createInstance() 72 LOG_ALWAYS_FATAL_IF(!sInstance, "instance not yet created"); in getInstance() 73 return *sInstance; in getInstance() 77 return sInstance != nullptr; in hasInstance() 81 static Caches* sInstance; variable
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/ |
D | TypeUtil.java | 45 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/support/compat/java/android/support/v4/content/ |
D | SharedPreferencesCompat.java | 27 private static EditorCompat sInstance; field in SharedPreferencesCompat.EditorCompat 52 if (sInstance == null) { in getInstance() 53 sInstance = new EditorCompat(); in getInstance() 55 return sInstance; in getInstance()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothManager.java | 32 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/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/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/ |
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/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSubscriptionSourceManager.java | 49 private static CdmaSubscriptionSourceManager sInstance; field in CdmaSubscriptionSourceManager 79 if (null == sInstance) { in getInstance() 80 sInstance = new CdmaSubscriptionSourceManager(context, ci); in getInstance() 84 sInstance.registerForCdmaSubscriptionSourceChanged(h, what, obj); in getInstance() 85 return sInstance; in getInstance() 99 sInstance = null; in dispose()
|