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

1234567

/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/layoutlib/bridge/src/android/view/inputmethod/
H A DInputMethodManager_Accessor.java25 InputMethodManager.sInstance = null;
/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_SYSTEM_SERVER);
44 sHandler = new Handler(sInstance.getLooper());
51 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_SYSTEM_SERVER);
40 sHandler = new Handler(sInstance.getLooper());
47 return sInstance;
H A DFgThread.java35 private static FgThread sInstance; field in class:FgThread
43 if (sInstance == null) {
44 sInstance = new FgThread();
45 sInstance.start();
46 final Looper looper = sInstance.getLooper();
50 sHandler = new Handler(sInstance.getLooper());
57 return sInstance;
H A DUiThread.java32 private static UiThread sInstance; field in class:UiThread
47 if (sInstance == null) {
48 sInstance = new UiThread();
49 sInstance.start();
50 final Looper looper = sInstance.getLooper();
54 sHandler = new Handler(sInstance.getLooper());
61 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/base/services/core/java/com/android/server/wm/
H A DSurfaceAnimationThread.java30 private static SurfaceAnimationThread sInstance; field in class:SurfaceAnimationThread
38 if (sInstance == null) {
39 sInstance = new SurfaceAnimationThread();
40 sInstance.start();
41 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER);
42 sHandler = new Handler(sInstance.getLooper());
49 return sInstance;
/frameworks/base/core/java/com/android/internal/os/
H A DBackgroundThread.java30 private static BackgroundThread sInstance; field in class:BackgroundThread
38 if (sInstance == null) {
39 sInstance = new BackgroundThread();
40 sInstance.start();
41 final Looper looper = sInstance.getLooper();
45 sHandler = new Handler(sInstance.getLooper());
52 return sInstance;
/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/src/main/java/androidx/core/content/
H A DSharedPreferencesCompat.java37 private static EditorCompat sInstance; field in class:SharedPreferencesCompat.EditorCompat
66 if (sInstance == null) {
67 sInstance = new EditorCompat();
69 return sInstance;
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/db/
H A DTestDatabase.java29 private static TestDatabase sInstance; field in class:TestDatabase
38 if (sInstance == null) {
39 sInstance = Room.databaseBuilder(
42 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/support/emoji/core/src/main/java/androidx/emoji/widget/
H A DEmojiEditableFactory.java45 private static volatile Editable.Factory sInstance; field in class:EmojiEditableFactory
61 if (sInstance == null) {
63 if (sInstance == null) {
64 sInstance = new EmojiEditableFactory();
68 return sInstance;
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/taskexecutor/
H A DWorkManagerTaskExecutor.java31 private static WorkManagerTaskExecutor sInstance; field in class:WorkManagerTaskExecutor
40 if (sInstance == null) {
41 sInstance = new WorkManagerTaskExecutor();
43 return sInstance;
/frameworks/base/core/java/android/text/
H A DSpannable.java68 private static Spannable.Factory sInstance = new Spannable.Factory(); field in class:Spannable.Factory
74 return sInstance;
/frameworks/support/app-toolkit/runtime/src/main/java/androidx/arch/core/executor/
H A DArchTaskExecutor.java33 private static volatile ArchTaskExecutor sInstance; field in class:ArchTaskExecutor
69 if (sInstance != null) {
70 return sInstance;
73 if (sInstance == null) {
74 sInstance = new ArchTaskExecutor();
77 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/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
H A DTrackers.java30 private static Trackers sInstance; field in class:Trackers
39 if (sInstance == null) {
40 sInstance = new Trackers(context);
42 return sInstance;
50 sInstance = trackers;
/frameworks/base/libs/hwui/hwui/
H A DAnimatedImageThread.cpp25 static AnimatedImageThread* sInstance = new AnimatedImageThread(); local
26 return *sInstance;
/frameworks/layoutlib/bridge/src/android/view/textservice/
H A DTextServicesManager.java28 private static final TextServicesManager sInstance = new TextServicesManager(); field in class:TextServicesManager
36 return sInstance;

Completed in 661 milliseconds

1234567