/packages/apps/Camera2/src/android/util/ |
D | CameraPerformanceTracker.java | 37 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/ |
D | Config.java | 28 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/ |
D | UserManagerCompat.java | 31 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()
|
D | AppWidgetManagerCompat.java | 41 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()
|
D | LauncherAppsCompat.java | 57 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()
|
D | PackageInstallerCompat.java | 30 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/ |
D | ImeUtil.java | 37 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()
|
D | VersionUtil.java | 27 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/ |
D | StkDigitsKeyListener.java | 37 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/ |
D | AndroidContext.java | 27 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/ |
D | WallpaperManagerCompat.java | 13 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/ |
D | ResolveCache.java | 67 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/ |
D | FiltersManager.java | 30 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/ |
D | UiBluetoothMonitor.java | 33 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/ |
D | Analytics.java | 84 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/ |
D | ContactPhotoManager.java | 68 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/ |
D | VendorPolicyLoader.java | 60 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/ |
D | BuiltInPrintService.java | 45 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/ |
D | Clock.java | 22 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/ |
D | PdfRender.java | 46 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/ |
D | SessionStatsCollector.java | 6 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/ |
D | Flags.java | 27 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/ |
D | TelephonyGlobals.java | 37 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/ |
D | SearchManagerHelper.java | 34 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/ |
D | ResourceHelper.java | 30 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()
|