/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 | 30 private static UserManagerCompat sInstance; field in UserManagerCompat 34 if (sInstance == null) { in getInstance() 36 sInstance = new UserManagerCompatVN(context.getApplicationContext()); 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 | LauncherAppsCompat.java | 53 private static LauncherAppsCompat sInstance; field in LauncherAppsCompat 58 if (sInstance == null) { in getInstance() 60 sInstance = new LauncherAppsCompatVL(context.getApplicationContext()); in getInstance() 62 sInstance = new LauncherAppsCompatV16(context.getApplicationContext()); in getInstance() 65 return sInstance; in getInstance()
|
D | AppWidgetManagerCompat.java | 40 private static AppWidgetManagerCompat sInstance; field in AppWidgetManagerCompat 45 if (sInstance == null) { in getInstance() 47 sInstance = new AppWidgetManagerCompatVL(context.getApplicationContext()); in getInstance() 49 sInstance = new AppWidgetManagerCompatV16(context.getApplicationContext()); in getInstance() 52 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/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 44 private static ICarImpl sInstance = null; field in ICarImpl 71 if (sInstance == null) { in getInstance() 72 sInstance = new ICarImpl(serviceContext); in getInstance() 73 sInstance.init(); in getInstance() 75 return sInstance; in getInstance() 79 if (sInstance == null) { in releaseInstance() 82 sInstance.release(); in releaseInstance() 83 sInstance = null; in releaseInstance()
|
/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/Dialer/src/com/android/dialer/voicemail/ |
D | VoicemailArchivePlaybackPresenter.java | 36 private static VoicemailPlaybackPresenter sInstance; field in VoicemailArchivePlaybackPresenter 44 if (sInstance == null) { in getInstance() 45 sInstance = new VoicemailArchivePlaybackPresenter(activity); in getInstance() 48 sInstance.init(activity, savedInstanceState); in getInstance() 49 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/apps/ContactsCommon/src/com/android/contacts/commonbind/experiments/ |
D | Flags.java | 26 private static Flags sInstance; field in Flags 29 if (sInstance == null) { in getInstance() 30 sInstance = new Flags(); in getInstance() 32 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/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/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 57 private static VehicleHal sInstance; field in VehicleHal 60 if (sInstance == null) { in getInstance() 63 return sInstance; in getInstance() 67 sInstance = new VehicleHal(); in createInstance() 70 sInstance.init(); in createInstance() 74 if (sInstance != null) { in releaseInstance() 75 sInstance.release(); in releaseInstance() 76 sInstance = null; in releaseInstance()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | SearchManagerHelper.java | 35 private static SearchManagerHelper sInstance; field in SearchManagerHelper 46 if (sInstance == null) { in getInstance() 47 sInstance = new SearchManagerHelper(context.getApplicationContext()); in getInstance() 49 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberDatabaseHelper.java | 31 private static BlockedNumberDatabaseHelper sInstance; field in BlockedNumberDatabaseHelper 88 if (sInstance == null) { in getInstance() 89 sInstance = new BlockedNumberDatabaseHelper( in getInstance() 93 return sInstance; in getInstance()
|