Home
last modified time | relevance | path

Searched refs:sInstance (Results 1 – 25 of 113) sorted by relevance

12345

/packages/apps/Camera2/src/android/util/
DCameraPerformanceTracker.java37 private static CameraPerformanceTracker sInstance; field in CameraPerformanceTracker
63 if (sInstance == null) { in onEvent()
64 sInstance = new CameraPerformanceTracker(); in onEvent()
69 sInstance.mAppStartTime = currentTime; in onEvent()
72 sInstance.mFirstPreviewFrameLatencyWarmStart = UNSET; in onEvent()
75 sInstance.mAppResumeTime = currentTime; in onEvent()
79 if (sInstance.mFirstPreviewFrameLatencyColdStart == UNSET) { in onEvent()
81 sInstance.mFirstPreviewFrameLatencyColdStart = in onEvent()
82 currentTime - sInstance.mAppStartTime; in onEvent()
85 sInstance.mFirstPreviewFrameLatencyWarmStart = in onEvent()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java28 private static AlbumSetPage sInstance; field in Config.AlbumSetPage
37 if (sInstance == null) { in get()
38 sInstance = new AlbumSetPage(context); in get()
40 return sInstance; in get()
82 private static AlbumPage sInstance; field in Config.AlbumPage
88 if (sInstance == null) { in get()
89 sInstance = new AlbumPage(context); in get()
91 return sInstance; in get()
107 private static ManageCachePage sInstance; field in Config.ManageCachePage
113 if (sInstance == null) { in get()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompat.java31 private static UserManagerCompat sInstance; field in UserManagerCompat
35 if (sInstance == null) { in getInstance()
37 sInstance = new UserManagerCompatVNMr1(context.getApplicationContext()); in getInstance()
39 sInstance = new UserManagerCompatVN(context.getApplicationContext()); in getInstance()
41 sInstance = new UserManagerCompatVM(context.getApplicationContext()); in getInstance()
43 sInstance = new UserManagerCompatVL(context.getApplicationContext()); in getInstance()
46 return sInstance; in getInstance()
DAppWidgetManagerCompat.java41 private static AppWidgetManagerCompat sInstance; field in AppWidgetManagerCompat
45 if (sInstance == null) { in getInstance()
47 sInstance = new AppWidgetManagerCompatVO(context.getApplicationContext()); in getInstance()
49 sInstance = new AppWidgetManagerCompatVL(context.getApplicationContext()); in getInstance()
52 return sInstance; in getInstance()
DLauncherAppsCompat.java57 private static LauncherAppsCompat sInstance; field in LauncherAppsCompat
62 if (sInstance == null) { in getInstance()
64 sInstance = new LauncherAppsCompatVO(context.getApplicationContext()); in getInstance()
66 sInstance = new LauncherAppsCompatVL(context.getApplicationContext()); in getInstance()
69 return sInstance; in getInstance()
DPackageInstallerCompat.java30 private static PackageInstallerCompat sInstance; field in PackageInstallerCompat
34 if (sInstance == null) { in getInstance()
35 sInstance = new PackageInstallerCompatVL(context); in getInstance()
37 return sInstance; in getInstance()
/packages/apps/Messaging/src/com/android/messaging/util/
DImeUtil.java37 private static volatile ImeUtil sInstance; field in ImeUtil
42 sInstance = null; in clearInstance()
45 if (sInstance == null) { in get()
47 if (sInstance == null) { in get()
48 sInstance = new ImeUtil(); in get()
52 return sInstance; in get()
57 sInstance = imeUtil; in set()
DVersionUtil.java27 private static VersionUtil sInstance; field in VersionUtil
33 if (sInstance == null) { in getInstance()
34 sInstance = new VersionUtil(context); in getInstance()
37 return sInstance; in getInstance()
/packages/apps/Stk/src/com/android/stk/
DStkDigitsKeyListener.java37 if (sInstance != null) { in getInstance()
38 return sInstance; in getInstance()
40 sInstance = new StkDigitsKeyListener(); in getInstance()
41 return sInstance; in getInstance()
53 private static StkDigitsKeyListener sInstance; field in StkDigitsKeyListener
/packages/apps/Camera2/src/com/android/camera/util/
DAndroidContext.java27 private static AndroidContext sInstance; field in AndroidContext
35 if (sInstance == null) { in initialize()
36 sInstance = new AndroidContext(context); in initialize()
45 if (sInstance == null) { in instance()
48 return sInstance; in instance()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DWallpaperManagerCompat.java13 private static WallpaperManagerCompat sInstance; field in WallpaperManagerCompat
18 if (sInstance == null) { in getInstance()
20 sInstance = new WallpaperManagerCompatVN(context.getApplicationContext()); in getInstance()
22 sInstance = new WallpaperManagerCompatV16(context.getApplicationContext()); in getInstance()
25 return sInstance; in getInstance()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java67 private static ResolveCache sInstance; field in ResolveCache
74 if (sInstance == null) { in getInstance()
76 sInstance = new ResolveCache(applicationContext); in getInstance()
84 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter); in getInstance()
86 return sInstance; in getInstance()
90 sInstance = null; in flush()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/filtershow/filters/
DFiltersManager.java30 private static FiltersManager sInstance = null; field in FiltersManager
46 if (sInstance == null) { in getManager()
47 sInstance = new FiltersManager(); in getManager()
49 return sInstance; in getManager()
60 sInstance = null; in reset()
/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
DUiBluetoothMonitor.java33 private static UiBluetoothMonitor sInstance; field in UiBluetoothMonitor
41 if (sInstance == null) { in getInstance()
43 if (sInstance == null) { in getInstance()
47 sInstance = ClassFactory.getFactory().createBluetoothMonitor(); in getInstance()
51 return sInstance; in getInstance()
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/
DAnalytics.java84 private static Tracker sInstance; field in Analytics
91 if (sInstance == null) { in getInstance()
92 sInstance = new StubTracker(); in getInstance()
95 return sInstance; in getInstance()
100 sInstance = t; in setTracker()
/packages/apps/Dialer/java/com/android/contacts/common/
DContactPhotoManager.java68 private static ContactPhotoManager sInstance; field in ContactPhotoManager
190 if (sInstance == null) { in getInstance()
192 sInstance = createContactPhotoManager(applicationContext); in getInstance()
193 applicationContext.registerComponentCallbacks(sInstance); in getInstance()
195 sInstance.preloadPhotosInBackground(); in getInstance()
198 return sInstance; in getInstance()
207 sInstance = photoManager; in injectContactPhotoManagerForTesting()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DVendorPolicyLoader.java60 private static VendorPolicyLoader sInstance; field in VendorPolicyLoader
65 if (sInstance == null) { in getInstance()
67 sInstance = new VendorPolicyLoader(context); in getInstance()
69 return sInstance; in getInstance()
81 sInstance = new VendorPolicyLoader(context, apkPackageName, name, true); in injectPolicyForTest()
91 sInstance = null; in clearInstanceForTest()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java45 private static WeakReference<BuiltInPrintService> sInstance; field in BuiltInPrintService
59 return sInstance == null ? null : sInstance.get(); in getInstance()
74 sInstance = new WeakReference<>(this); in onCreate()
94 sInstance = null; in onDestroy()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DClock.java22 private static Clock sInstance = INSTANCE; field in Clock
25 return sInstance; in getInstance()
30 sInstance = clock; in injectInstance()
35 sInstance = INSTANCE; in resetInstance()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java46 private static PdfRender sInstance; field in PdfRender
58 if (sInstance == null && context != null) { in getInstance()
60 sInstance = new PdfRender(context.getApplicationContext()); in getInstance()
63 return sInstance; in getInstance()
89 sInstance = null; in close()
/packages/apps/Camera2/src_pd/com/android/camera/stats/
DSessionStatsCollector.java6 private static SessionStatsCollector sInstance; field in SessionStatsCollector
9 if (sInstance == null) { in instance()
10 sInstance = new SessionStatsCollector(); in instance()
12 return sInstance; in instance()
/packages/apps/Contacts/src-bind/com/android/contactsbind/experiments/
DFlags.java27 private static Flags sInstance; field in Flags
32 if (sInstance == null) { in getInstance()
33 sInstance = new Flags(); in getInstance()
35 return sInstance; in getInstance()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyGlobals.java37 private static TelephonyGlobals sInstance; field in TelephonyGlobals
55 if (sInstance == null) { in getInstance()
56 sInstance = new TelephonyGlobals(context); in getInstance()
58 return sInstance; in getInstance()
/packages/apps/TV/src/com/android/tv/util/
DSearchManagerHelper.java34 private static SearchManagerHelper sInstance; field in SearchManagerHelper
45 if (sInstance == null) { in getInstance()
46 sInstance = new SearchManagerHelper(context.getApplicationContext()); in getInstance()
48 return sInstance; in getInstance()
/packages/apps/Email/provider_src/com/android/email/
DResourceHelper.java30 private static ResourceHelper sInstance; field in ResourceHelper
53 if (sInstance == null) { in getInstance()
54 sInstance = new ResourceHelper(context); in getInstance()
56 return sInstance; in getInstance()

12345