Home
last modified time | relevance | path

Searched refs:sSingletonInstance (Results 1 – 6 of 6) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/security/
DKeyAttestation.java46 private static volatile KeyAttestation sSingletonInstance; field in KeyAttestation
72 if (sSingletonInstance == null) { in getInstance()
74 if (sSingletonInstance == null) { in getInstance()
78 sSingletonInstance = new KeyAttestation(useStrongBox, new Injector()); in getInstance()
82 return sSingletonInstance; in getInstance()
91 if (sSingletonInstance == null) { in getInstanceForTest()
93 if (sSingletonInstance == null) { in getInstanceForTest()
101 return sSingletonInstance; in getInstanceForTest()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/
DFederatedComputeEncryptionKeyDao.java46 private static volatile FederatedComputeEncryptionKeyDao sSingletonInstance; field in FederatedComputeEncryptionKeyDao
58 if (sSingletonInstance == null) { in getInstance()
60 if (sSingletonInstance == null) { in getInstance()
61 sSingletonInstance = in getInstance()
68 return sSingletonInstance; in getInstance()
74 if (sSingletonInstance == null) { in getInstanceForTest()
76 if (sSingletonInstance == null) { in getInstanceForTest()
80 sSingletonInstance = new FederatedComputeEncryptionKeyDao(dbHelper, clk); in getInstanceForTest()
84 return sSingletonInstance; in getInstanceForTest()
DODPAuthorizationTokenDao.java42 private static volatile ODPAuthorizationTokenDao sSingletonInstance; field in ODPAuthorizationTokenDao
54 if (sSingletonInstance == null) { in getInstance()
56 if (sSingletonInstance == null) { in getInstance()
57 sSingletonInstance = new ODPAuthorizationTokenDao( in getInstance()
64 return sSingletonInstance; in getInstance()
70 if (sSingletonInstance == null) { in getInstanceForTest()
72 if (sSingletonInstance == null) { in getInstanceForTest()
73 sSingletonInstance = new ODPAuthorizationTokenDao( in getInstanceForTest()
80 return sSingletonInstance; in getInstanceForTest()
DFederatedTrainingTaskDao.java48 private static volatile FederatedTrainingTaskDao sSingletonInstance; field in FederatedTrainingTaskDao
57 if (sSingletonInstance == null) { in getInstance()
59 if (sSingletonInstance == null) { in getInstance()
60 sSingletonInstance = in getInstance()
66 return sSingletonInstance; in getInstance()
73 if (sSingletonInstance == null) { in getInstanceForTest()
76 sSingletonInstance = new FederatedTrainingTaskDao(dbHelper); in getInstanceForTest()
78 return sSingletonInstance; in getInstanceForTest()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/util/
DTrainingConditionsChecker.java50 private static volatile TrainingConditionsChecker sSingletonInstance; field in TrainingConditionsChecker
78 if (sSingletonInstance == null) { in getInstance()
80 if (sSingletonInstance == null) { in getInstance()
82 sSingletonInstance = in getInstance()
91 return sSingletonInstance; in getInstance()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManager.java63 private static volatile FederatedComputeJobManager sSingletonInstance; field in FederatedComputeJobManager
90 if (sSingletonInstance == null) { in getInstance()
92 if (sSingletonInstance == null) { in getInstance()
94 sSingletonInstance = in getInstance()
105 return sSingletonInstance; in getInstance()