Searched refs:sInstance (Results 1 - 25 of 123) sorted by relevance

12345

/frameworks/base/core/java/android/text/method/
H A DHideReturnsTransformationMethod.java44 if (sInstance != null)
45 return sInstance;
47 sInstance = new HideReturnsTransformationMethod();
48 return sInstance;
51 private static HideReturnsTransformationMethod sInstance; field in class:HideReturnsTransformationMethod
H A DSingleLineTransformationMethod.java45 if (sInstance != null)
46 return sInstance;
48 sInstance = new SingleLineTransformationMethod();
49 return sInstance;
52 private static SingleLineTransformationMethod sInstance; field in class:SingleLineTransformationMethod
H A DDialerKeyListener.java40 if (sInstance != null)
41 return sInstance;
43 sInstance = new DialerKeyListener();
44 return sInstance;
116 private static DialerKeyListener sInstance; field in class:DialerKeyListener
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DForegroundThread.java27 private static ForegroundThread sInstance; field in class:ForegroundThread
35 if (sInstance == null) {
36 sInstance = new ForegroundThread();
37 sInstance.start();
38 sHandler = new Handler(sInstance.getLooper());
45 return sInstance;
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
H A DInputMethodManager_Accessor.java25 InputMethodManager.sInstance = null;
/frameworks/base/core/java/com/android/internal/os/
H A DBackgroundThread.java27 private static BackgroundThread sInstance; field in class:BackgroundThread
35 if (sInstance == null) {
36 sInstance = new BackgroundThread();
37 sInstance.start();
38 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER);
39 sHandler = new Handler(sInstance.getLooper());
46 return sInstance;
/frameworks/base/services/core/java/com/android/server/
H A DAnimationThread.java29 private static AnimationThread sInstance; field in class:AnimationThread
37 if (sInstance == null) {
38 sInstance = new AnimationThread();
39 sInstance.start();
40 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER);
41 sHandler = new Handler(sInstance.getLooper());
48 return sInstance;
H A DDisplayThread.java30 private static DisplayThread sInstance; field in class:DisplayThread
40 if (sInstance == null) {
41 sInstance = new DisplayThread();
42 sInstance.start();
43 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER);
44 sHandler = new Handler(sInstance.getLooper());
51 return sInstance;
H A DFgThread.java31 private static FgThread sInstance; field in class:FgThread
39 if (sInstance == null) {
40 sInstance = new FgThread();
41 sInstance.start();
42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER);
43 sHandler = new Handler(sInstance.getLooper());
50 return sInstance;
H A DIoThread.java28 private static IoThread sInstance; field in class:IoThread
36 if (sInstance == null) {
37 sInstance = new IoThread();
38 sInstance.start();
39 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER);
40 sHandler = new Handler(sInstance.getLooper());
47 return sInstance;
H A DUiThread.java31 private static UiThread sInstance; field in class:UiThread
46 if (sInstance == null) {
47 sInstance = new UiThread();
48 sInstance.start();
49 final Looper looper = sInstance.getLooper();
52 sHandler = new Handler(sInstance.getLooper());
59 return sInstance;
H A DSystemServerInitThreadPool.java45 private static SystemServerInitThreadPool sInstance; field in class:SystemServerInitThreadPool
51 if (sInstance == null) {
52 sInstance = new SystemServerInitThreadPool();
54 Preconditions.checkState(sInstance.mService != null, "Cannot get " + TAG
56 return sInstance;
76 if (sInstance != null && sInstance.mService != null) {
77 sInstance.mService.shutdown();
80 terminated = sInstance.mService.awaitTermination(SHUTDOWN_TIMEOUT_MILLIS,
86 List<Runnable> unstartedRunnables = sInstance
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
H A DTypeUtil.java45 private static TypeUtil sInstance; field in class:TypeUtil
52 if (sInstance == null) {
53 sInstance = ModelAnalyzer.getInstance().createTypeUtil();
55 return sInstance;
/frameworks/support/compat/java/android/support/v4/content/
H A DSharedPreferencesCompat.java26 private static EditorCompat sInstance; field in class:SharedPreferencesCompat.EditorCompat
51 if (sInstance == null) {
52 sInstance = new EditorCompat();
54 return sInstance;
/frameworks/base/core/java/android/os/
H A DNullVibrator.java27 private static final NullVibrator sInstance = new NullVibrator(); field in class:NullVibrator
33 return sInstance;
/frameworks/base/core/java/android/text/
H A DSpannable.java55 private static Spannable.Factory sInstance = new Spannable.Factory(); field in class:Spannable.Factory
61 return sInstance;
H A DEditable.java130 private static Editable.Factory sInstance = new Editable.Factory(); field in class:Editable.Factory
136 return sInstance;
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
H A DEmojiEditableFactory.java44 private static volatile Editable.Factory sInstance; field in class:EmojiEditableFactory
59 if (sInstance == null) {
61 if (sInstance == null) {
62 sInstance = new EmojiEditableFactory();
66 return sInstance;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothManager.java32 private static LocalBluetoothManager sInstance; field in class:LocalBluetoothManager
51 if (sInstance == null) {
58 sInstance = new LocalBluetoothManager(adapter, appContext);
60 onInitCallback.onBluetoothManagerInitialized(appContext, sInstance);
64 return sInstance;
/frameworks/base/tools/layoutlib/bridge/src/android/view/textservice/
H A DTextServicesManager.java28 private static final TextServicesManager sInstance = new TextServicesManager(); field in class:TextServicesManager
36 return sInstance;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileColorPicker.java29 private static TileColorPicker sInstance; field in class:TileColorPicker
39 if (sInstance == null) {
40 sInstance = new TileColorPicker(context);
42 return sInstance;
/frameworks/base/libs/hwui/
H A DCaches.h62 LOG_ALWAYS_FATAL_IF(sInstance, "double create of Caches attempted");
63 sInstance = new Caches(renderState);
64 return *sInstance;
68 LOG_ALWAYS_FATAL_IF(!sInstance, "instance not yet created");
69 return *sInstance;
73 return sInstance != nullptr;
77 static Caches* sInstance; member in class:android::uirenderer::Caches
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingLog.java65 private static FalsingLog sInstance; field in class:FalsingLog
110 if (sInstance == null) {
111 sInstance = new FalsingLog();
114 if (sInstance.mLog.size() >= MAX_SIZE) {
115 sInstance.mLog.removeFirst();
117 String entry = new StringBuilder().append(sInstance.mFormat.format(new Date()))
120 sInstance.mLog.add(entry);
130 if (sInstance == null || sInstance.mLog.isEmpty()) {
135 for (String s : sInstance
[all...]
/frameworks/support/media-compat/tests/src/android/support/v4/media/
H A DStubMediaBrowserServiceCompatWithDelayedMediaSession.java35 static StubMediaBrowserServiceCompatWithDelayedMediaSession sInstance; field in class:StubMediaBrowserServiceCompatWithDelayedMediaSession
41 sInstance = this;
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
H A DNsdResolveQueue.java31 /** Lock for {@link #sInstance} */
36 private static NsdResolveQueue sInstance; field in class:NsdResolveQueue
47 if (sInstance == null) {
48 sInstance = new NsdResolveQueue();
51 return sInstance;

Completed in 443 milliseconds

12345