Home
last modified time | relevance | path

Searched refs:sInstances (Results 1 – 7 of 7) sorted by relevance

/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/entitlement/
DEntitlementConfigurationsDataStore.java33 private static final SparseArray<EntitlementConfigurationsDataStore> sInstances = field in EntitlementConfigurationsDataStore
37 if (sInstances.get(subId) == null) { in getInstance()
38 sInstances.put(subId, new EntitlementConfigurationsDataStore(context, subId)); in getInstance()
40 return sInstances.get(subId); in getInstance()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureManager.java54 private static final SparseArray<CallComposerPictureManager> sInstances = new SparseArray<>(); field in CallComposerPictureManager
58 synchronized (sInstances) { in getInstance()
62 if (!sInstances.contains(subscriptionId)) { in getInstance()
63 sInstances.put(subscriptionId, in getInstance()
66 return sInstances.get(subscriptionId); in getInstance()
72 synchronized (sInstances) { in clearInstances()
73 sInstances.clear(); in clearInstances()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourceViewModel.java46 private static MediaSourceViewModel[] sInstances = new MediaSourceViewModel[2]; field in MediaSourceViewModel
76 if (sInstances[mode] == null) { in get()
77 sInstances[mode] = new MediaSourceViewModel(application, mode); in get()
79 return sInstances[mode]; in get()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DImsUtils.java63 private static SparseArray<ImsUtils> sInstances = new SparseArray<ImsUtils>(); field in ImsUtils
75 ImsUtils instance = sInstances.get(subId); in getInstance()
81 sInstances.put(subId, instance); in getInstance()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/job/
DJobManager.java56 private static final ArrayMap<String, JobManager> sInstances = new ArrayMap<>(); field in JobManager
69 JobManager instance = sInstances.get(key); in getInstance()
75 sInstances.put(key, instance); in getInstance()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/
DMediaItemsRepository.java59 private static MediaItemsRepository[] sInstances = new MediaItemsRepository[2]; field in MediaItemsRepository
63 if (sInstances[mode] == null) { in get()
64 sInstances[mode] = new MediaItemsRepository( in get()
67 return sInstances[mode]; in get()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java80 private static PlaybackViewModel[] sInstances = new PlaybackViewModel[2]; field in PlaybackViewModel
84 if (sInstances[mode] == null) { in get()
85 sInstances[mode] = new PlaybackViewModel(application, mode); in get()
87 return sInstances[mode]; in get()