Searched refs:sInstance (Results 26 - 50 of 84) sorted by relevance

1234

/frameworks/opt/telephony/src/java/android/telephony/gsm/
H A DSmsManager.java30 private static SmsManager sInstance; field in class:SmsManager
40 if (sInstance == null) {
41 sInstance = new SmsManager();
43 return sInstance;
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DTwilightCalculator.java28 private static TwilightCalculator sInstance; field in class:TwilightCalculator
31 if (sInstance == null) {
32 sInstance = new TwilightCalculator();
34 return sInstance;
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java69 private static CharacterTextSegmentIterator sInstance; field in class:AccessibilityIterators.CharacterTextSegmentIterator
76 if (sInstance == null) {
77 sInstance = new CharacterTextSegmentIterator(locale);
79 return sInstance;
166 private static WordTextSegmentIterator sInstance; field in class:AccessibilityIterators.WordTextSegmentIterator
169 if (sInstance == null) {
170 sInstance = new WordTextSegmentIterator(locale);
172 return sInstance;
256 private static ParagraphTextSegmentIterator sInstance; field in class:AccessibilityIterators.ParagraphTextSegmentIterator
259 if (sInstance
[all...]
/frameworks/base/services/core/java/com/android/server/power/
H A DShutdownThread.java100 private static final ShutdownThread sInstance = new ShutdownThread(); field in class:ShutdownThread
291 sInstance.mProgressDialog = pd;
292 sInstance.mContext = context;
293 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
296 sInstance.mCpuWakeLock = null;
298 sInstance.mCpuWakeLock = sInstance.mPowerManager.newWakeLock(
300 sInstance.mCpuWakeLock.setReferenceCounted(false);
301 sInstance.mCpuWakeLock.acquire();
304 sInstance
[all...]
/frameworks/base/core/java/android/text/method/
H A DDigitsKeyListener.java103 if (sInstance[kind] != null)
104 return sInstance[kind];
106 sInstance[kind] = new DigitsKeyListener(sign, decimal);
107 return sInstance[kind];
230 private static DigitsKeyListener[] sInstance = new DigitsKeyListener[4]; field in class:DigitsKeyListener
H A DScrollingMovementMethod.java113 if (sInstance == null)
114 sInstance = new ScrollingMovementMethod();
116 return sInstance;
119 private static ScrollingMovementMethod sInstance; field in class:ScrollingMovementMethod
H A DTextKeyListener.java42 private static TextKeyListener[] sInstance = field in class:TextKeyListener
86 if (sInstance[off] == null) {
87 sInstance[off] = new TextKeyListener(cap, autotext);
90 return sInstance[off];
235 if (sInstance != null)
236 return sInstance;
238 sInstance = new NullKeyListener();
239 return sInstance;
242 private static NullKeyListener sInstance; field in class:TextKeyListener.NullKeyListener
H A DPasswordTransformationMethod.java63 if (sInstance != null)
64 return sInstance;
66 sInstance = new PasswordTransformationMethod();
67 return sInstance;
264 private static PasswordTransformationMethod sInstance; field in class:PasswordTransformationMethod
H A DLinkMovementMethod.java251 if (sInstance == null)
252 sInstance = new LinkMovementMethod();
254 return sInstance;
257 private static LinkMovementMethod sInstance; field in class:LinkMovementMethod
H A DMultiTapKeyListener.java38 private static MultiTapKeyListener[] sInstance = field in class:MultiTapKeyListener
74 if (sInstance[off] == null) {
75 sInstance[off] = new MultiTapKeyListener(cap, autotext);
78 return sInstance[off];
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSubscriptionSourceManager.java49 private static CdmaSubscriptionSourceManager sInstance; field in class:CdmaSubscriptionSourceManager
81 if (null == sInstance) {
82 sInstance = new CdmaSubscriptionSourceManager(context, ci);
86 sInstance.registerForCdmaSubscriptionSourceChanged(h, what, obj);
87 return sInstance;
101 sInstance = null;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothAdapter.java45 private static LocalBluetoothAdapter sInstance; field in class:LocalBluetoothAdapter
68 if (sInstance == null) {
71 sInstance = new LocalBluetoothAdapter(adapter);
75 return sInstance;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DUnlockMethodCache.java34 private static UnlockMethodCache sInstance; field in class:UnlockMethodCache
55 if (sInstance == null) {
56 sInstance = new UnlockMethodCache(context);
58 return sInstance;
/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java37 private static AttributeCache sInstance = null; field in class:AttributeCache
65 if (sInstance == null) {
66 sInstance = new AttributeCache(context);
71 return sInstance;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/
H A DSettings.java45 static private Settings sInstance; field in class:Settings
53 if (sInstance == null) {
54 sInstance = new Settings(context);
56 return sInstance;
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java43 private static AccessibilityManager sInstance = new AccessibilityManager(null, null, 0); field in class:AccessibilityManager
102 return sInstance;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStaticShadowHelper.java28 final static StaticShadowHelper sInstance = new StaticShadowHelper(); field in class:StaticShadowHelper
97 return sInstance;
H A DShadowHelper.java26 final static ShadowHelper sInstance = new ShadowHelper(); field in class:ShadowHelper
97 return sInstance;
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java68 private static TextServicesManager sInstance; field in class:TextServicesManager
84 if (sInstance != null) {
85 return sInstance;
87 sInstance = new TextServicesManager();
89 return sInstance;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DTunerService.java149 private static TunerService sInstance; field in class:TunerService
162 if (sInstance == null) {
163 sInstance = new TunerService();
164 sInstance.mContext = context.getApplicationContext();
165 sInstance.mComponents = new HashMap<>();
166 sInstance.start();
168 return sInstance;
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java47 private static InputContextCallback sInstance = new InputContextCallback(); field in class:InputConnectionWrapper.InputContextCallback
58 // Return sInstance if it's non-null, otherwise construct a new callback
60 if (sInstance != null) {
61 callback = sInstance;
62 sInstance = null;
81 // If sInstance is non-null, just let this object be garbage-collected
82 if (sInstance == null) {
87 sInstance = this;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsConfiguration.java38 static RecentsConfiguration sInstance; field in class:RecentsConfiguration
161 if (sInstance == null) {
162 sInstance = new RecentsConfiguration(context);
166 sInstance.update(context);
169 sInstance.updateOnReinitialize(context, ssp);
170 return sInstance;
175 return sInstance;
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java48 private static NotificationColorUtil sInstance; field in class:NotificationColorUtil
58 if (sInstance == null) {
59 sInstance = new NotificationColorUtil(context);
61 return sInstance;
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DPduCache.java50 private static PduCache sInstance; field in class:PduCache
85 if (sInstance == null) {
89 sInstance = new PduCache();
91 return sInstance;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCatService.java86 private static CatService[] sInstance = null; field in class:CatService
205 if (sInstance == null) {
207 sInstance = new CatService[simCount];
209 sInstance[i] = null;
212 if (sInstance[slotId] == null) {
218 sInstance[slotId] = new CatService(ci, ca, ir, context, fh, ic, slotId);
221 mIccRecords.unregisterForRecordsLoaded(sInstance[slotId]);
227 mIccRecords.registerForRecordsLoaded(sInstance[slotId],
229 CatLog.d(sInstance[slotId], "registerForRecordsLoaded slotid=" + slotId
230 + " instance:" + sInstance[slotI
[all...]

Completed in 835 milliseconds

1234