/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/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/Launcher3/src/com/android/launcher3/compat/ |
D | UserManagerCompat.java | 32 private static UserManagerCompat sInstance; field in UserManagerCompat 36 if (sInstance == null) { in getInstance() 38 sInstance = new UserManagerCompatVL(context.getApplicationContext()); in getInstance() 40 sInstance = new UserManagerCompatV17(context.getApplicationContext()); in getInstance() 42 sInstance = new UserManagerCompatV16(); in getInstance() 45 return sInstance; in getInstance()
|
D | PackageInstallerCompat.java | 32 private static PackageInstallerCompat sInstance; field in PackageInstallerCompat 36 if (sInstance == null) { in getInstance() 38 sInstance = new PackageInstallerCompatVL(context); in getInstance() 40 sInstance = new PackageInstallerCompatV16(); in getInstance() 43 return sInstance; in getInstance()
|
D | AppWidgetManagerCompat.java | 37 private static AppWidgetManagerCompat sInstance; field in AppWidgetManagerCompat 42 if (sInstance == null) { in getInstance() 44 sInstance = new AppWidgetManagerCompatVL(context.getApplicationContext()); in getInstance() 46 sInstance = new AppWidgetManagerCompatV16(context.getApplicationContext()); in getInstance() 49 return sInstance; in getInstance()
|
D | LauncherAppsCompat.java | 50 private static LauncherAppsCompat sInstance; field in LauncherAppsCompat 55 if (sInstance == null) { in getInstance() 57 sInstance = new LauncherAppsCompatVL(context.getApplicationContext()); in getInstance() 59 sInstance = new LauncherAppsCompatV16(context.getApplicationContext()); in getInstance() 62 return sInstance; in getInstance()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ResolveCache.java | 66 private static ResolveCache sInstance; field in ResolveCache 73 if (sInstance == null) { in getInstance() 75 sInstance = new ResolveCache(applicationContext); in getInstance() 83 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter); in getInstance() 85 return sInstance; in getInstance() 89 sInstance = null; in flush()
|
/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/Browser/src/com/android/browser/ |
D | CrashRecoveryHandler.java | 53 private static CrashRecoveryHandler sInstance; field in CrashRecoveryHandler 64 if (sInstance == null) { in initialize() 65 sInstance = new CrashRecoveryHandler(controller); in initialize() 67 sInstance.mController = controller; in initialize() 69 return sInstance; in initialize() 73 return sInstance; in getInstance()
|
D | WebViewTimersControl.java | 32 private static WebViewTimersControl sInstance; field in WebViewTimersControl 44 if (sInstance == null) { in getInstance() 45 sInstance = new WebViewTimersControl(); in getInstance() 47 return sInstance; in getInstance()
|
D | AutoFillProfileDatabase.java | 34 private static AutoFillProfileDatabase sInstance; field in AutoFillProfileDatabase 87 if (sInstance == null) { in getInstance() 88 sInstance = new AutoFillProfileDatabase(context); in getInstance() 90 return sInstance; in getInstance()
|
/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/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/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/apps/Settings/src/com/android/settings/inputmethod/ |
D | InputMethodSettingValuesWrapper.java | 46 private static volatile InputMethodSettingValuesWrapper sInstance; field in InputMethodSettingValuesWrapper 54 if (sInstance == null) { in getInstance() 56 if (sInstance == null) { in getInstance() 57 sInstance = new InputMethodSettingValuesWrapper(context); in getInstance() 61 return sInstance; in getInstance()
|
/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/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()
|
D | UsageStatistics.java | 33 private static UsageStatistics sInstance; field in UsageStatistics 36 if (sInstance == null) { in instance() 37 sInstance = new UsageStatistics(); in instance() 39 return sInstance; in instance()
|
/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/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()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
D | PermissionsManager.java | 43 private static PermissionsManager sInstance; field in PermissionsManager 51 if (sInstance == null) { in get() 52 sInstance = new PermissionsManager(context); in get() 54 return sInstance; in get()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainSettings.java | 36 private static MainSettings sInstance; field in MainSettings 44 return sInstance; in getInstance() 71 sInstance = this; in onResume() 83 sInstance = null; in onPause()
|