Searched defs:sInstance (Results 101 - 125 of 127) sorted by relevance

123456

/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityManager.java115 private static AccessibilityManager sInstance; field in class:AccessibilityManager
265 if (sInstance == null) {
278 sInstance = new AccessibilityManager(context, null, userId);
281 return sInstance;
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java61 private static InputContextCallback sInstance = new InputContextCallback(); field in class:InputConnectionWrapper.InputContextCallback
72 // Return sInstance if it's non-null, otherwise construct a new callback
74 if (sInstance != null) {
75 callback = sInstance;
76 sInstance = null;
95 // If sInstance is non-null, just let this object be garbage-collected
96 if (sInstance == null) {
101 sInstance = this;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingManager.java72 private static FalsingManager sInstance = null; field in class:FalsingManager
107 if (sInstance == null) {
108 sInstance = new FalsingManager(context);
110 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...]
/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DEmojiCompat.java155 private static volatile EmojiCompat sInstance; field in class:EmojiCompat
225 if (sInstance == null) {
227 if (sInstance == null) {
228 sInstance = new EmojiCompat(config);
232 return sInstance;
245 sInstance = new EmojiCompat(config);
247 return sInstance;
259 sInstance = emojiCompat;
261 return sInstance;
285 Preconditions.checkState(sInstance !
[all...]
/frameworks/av/include/media/
H A DMediaProfiles.h451 static MediaProfiles *sInstance; member in class:android::MediaProfiles
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp37 MediaProfiles *MediaProfiles::sInstance = NULL; member in class:android::MediaProfiles
608 sInstance = createDefaultInstance();
610 sInstance = createInstanceFromXmlFile(xmlFile);
613 sInstance = createInstanceFromXmlFile(value);
615 CHECK(sInstance != NULL);
616 sInstance->checkAndAddRequiredProfilesIfNecessary();
620 return sInstance;
/frameworks/av/media/libmedia/include/media/
H A DMediaProfiles.h451 static MediaProfiles *sInstance; member in class:android::MediaProfiles
/frameworks/base/core/java/android/hardware/input/
H A DInputManager.java68 private static InputManager sInstance; field in class:InputManager
227 if (sInstance == null) {
229 sInstance = new InputManager(IInputManager.Stub
235 return sInstance;
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareImpl.java47 private static GeofenceHardwareImpl sInstance; field in class:GeofenceHardwareImpl
99 if (sInstance == null) {
100 sInstance = new GeofenceHardwareImpl(context);
102 return sInstance;
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java57 private static NotificationColorUtil sInstance; field in class:NotificationColorUtil
67 if (sInstance == null) {
68 sInstance = new NotificationColorUtil(context);
70 return sInstance;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerService.java106 private static PrintSpoolerService sInstance; field in class:PrintSpoolerService
121 return sInstance;
141 sInstance = this;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSubscriptionController.java147 private static SubscriptionController sInstance = null; field in class:SubscriptionController
165 if (sInstance == null) {
166 sInstance = new SubscriptionController(phone);
168 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance);
170 return sInstance;
176 if (sInstance == null) {
177 sInstance = new SubscriptionController(c);
179 Log.wtf(LOG_TAG, "init() called multiple times! sInstance = " + sInstance);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java113 private static TelephonyMetrics sInstance; field in class:TelephonyMetrics
173 if (sInstance == null) {
174 sInstance = new TelephonyMetrics();
177 return sInstance;
/frameworks/base/core/java/android/view/
H A DThreadedRenderer.java384 ProcessInitializer.sInstance.init(context, mNativeProxy);
928 static ProcessInitializer sInstance = new ProcessInitializer(); field in class:ThreadedRenderer.ProcessInitializer
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java220 static InputMethodManager sInstance; field in class:InputMethodManager
662 if (sInstance == null) {
664 sInstance = new InputMethodManager(Looper.getMainLooper());
669 return sInstance;
679 return sInstance;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java86 static ApplicationsState sInstance; field in class:ApplicationsState
90 if (sInstance == null) {
91 sInstance = new ApplicationsState(app);
93 return sInstance;
/frameworks/base/telephony/java/android/telephony/
H A DSmsManager.java68 private static final SmsManager sInstance = new SmsManager(DEFAULT_SUBSCRIPTION_ID); field in class:SmsManager
630 return sInstance;
H A DTelephonyManager.java187 private static TelephonyManager sInstance = new TelephonyManager(); field in class:TelephonyManager
192 return sInstance;
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java180 private static KeyguardUpdateMonitor sInstance; field in class:KeyguardUpdateMonitor
998 if (sInstance == null) {
999 sInstance = new KeyguardUpdateMonitor(context);
1001 return sInstance;
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java629 private static ConnectivityManager sInstance; field in class:ConnectivityManager
1877 sInstance = this;
1929 return sInstance;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DRefactoredBackupManagerService.java296 static Trampoline sInstance; field in class:RefactoredBackupManagerService
300 return sInstance;
538 sInstance = new Trampoline(context);
543 publishBinderService(Context.BACKUP_SERVICE, sInstance);
549 sInstance.initialize(userId);
556 final ContentResolver r = sInstance.mContext.getContentResolver();
574 sInstance.setBackupEnabled(readBackupEnableState(userId));
2741 final ContentResolver r = sInstance.mContext.getContentResolver();
H A DBackupManagerService.java381 static Trampoline sInstance; field in class:BackupManagerService
384 return sInstance;
391 sInstance = new Trampoline(context);
396 publishBinderService(Context.BACKUP_SERVICE, sInstance);
403 sInstance.initialize(userId);
412 final ContentResolver r = sInstance.mContext.getContentResolver();
432 sInstance.setBackupEnabled(readBackupEnableState(userId));
10364 final ContentResolver r = sInstance.mContext.getContentResolver();
/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerService.java405 private static UserManagerService sInstance; field in class:UserManagerService
409 return sInstance;
473 sInstance = this;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedCommandsVerifier.java35 private static SimulatedCommandsVerifier sInstance; field in class:SimulatedCommandsVerifier
42 if (sInstance == null) {
43 sInstance = new SimulatedCommandsVerifier();
45 return sInstance;

Completed in 2406 milliseconds

123456