Home
last modified time | relevance | path

Searched refs:TransactionManager (Results 1 – 25 of 58) sorted by relevance

123

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDatabaseStatsCollector.java21 import com.android.server.healthconnect.storage.TransactionManager;
33 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getDatabaseSize()
39 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getNumberOfIntervalRecordRows()
54 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getNumberOfSeriesRecordRows()
68 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getNumberOfInstantRecordRows()
82 return TransactionManager.getInitialisedInstance() in getNumberOfChangeLogs()
DActivityDateHelper.java32 import com.android.server.healthconnect.storage.TransactionManager;
80 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in insertRecordDate()
119 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in reSyncByRecordTypeIds()
156 List<Integer> recordTypeIds, TransactionManager transactionManager) { in fetchUpdatedDates()
196 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in readDates()
DPreferenceHelper.java29 import com.android.server.healthconnect.storage.TransactionManager;
66 TransactionManager.getInitialisedInstance() in insertOrReplacePreference()
75 TransactionManager.getInitialisedInstance() in removeKey()
91 TransactionManager.getInitialisedInstance().insertOrReplaceAll(requests); in insertOrReplacePreferencesTransaction()
142 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in populatePreferences()
DAccessLogsHelper.java36 import com.android.server.healthconnect.storage.TransactionManager;
76 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in queryAccessLogs()
109 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getLatestAccessLogTimeStamp()
126 TransactionManager.getInitialisedInstance().insert(request); in addAccessLog()
DDatabaseHelper.java22 import com.android.server.healthconnect.storage.TransactionManager;
52 public static void clearAllData(@NonNull TransactionManager transactionManager) { in clearAllData()
65 protected void clearData(@NonNull TransactionManager transactionManager) { in clearData()
DChangeLogsRequestHelper.java37 import com.android.server.healthconnect.storage.TransactionManager;
99 TransactionManager.getInitialisedInstance() in getToken()
135 TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getRequest()
163 TransactionManager.getInitialisedInstance() in getNextPageToken()
DDeriveTotalCaloriesBurnedHelper.java33 import com.android.server.healthconnect.storage.TransactionManager;
82 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in inititalizeCursors()
DDeviceInfoHelper.java35 import com.android.server.healthconnect.storage.TransactionManager;
130 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in populateDeviceInfoMap()
169 TransactionManager.getInitialisedInstance() in insertIfNotPresent()
DDeriveBasalCaloriesBurnedHelper.java36 import com.android.server.healthconnect.storage.TransactionManager;
146 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in derivedBasalCaloriesViaReadBack()
318 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in getReadCursorForDerivingBMR()
DHealthDataCategoryPriorityHelper.java45 import com.android.server.healthconnect.storage.TransactionManager;
289 protected synchronized void clearData(@NonNull TransactionManager transactionManager) { in clearData()
325 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in populateDataCategoryToAppIdPriorityMap()
346 TransactionManager.getInitialisedInstance().insertOrReplace(request); in safelyUpdateDBAndUpdateCache()
357 TransactionManager.getInitialisedInstance().delete(request); in safelyUpdateDBAndUpdateCache()
459 UserHandle user = TransactionManager.getInitialisedInstance().getCurrentUserHandle(); in getValidHealthApps()
DAppInfoHelper.java57 import com.android.server.healthconnect.storage.TransactionManager;
301 final TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in populateAppInfoMap()
412 TransactionManager.getInitialisedInstance() in syncAppInfoRecordTypesUsed()
544 TransactionManager.getInitialisedInstance().update(upsertRequestForAppInfoUpdate); in updateAppInfoRecordTypesUsedSync()
620 TransactionManager.getInitialisedInstance() in insertIfNotPresent()
642 TransactionManager.getInitialisedInstance().updateTable(upsertTableRequest); in updateIfPresent()
DMigrationEntityHelper.java29 import com.android.server.healthconnect.storage.TransactionManager;
50 public void clearData(@NonNull TransactionManager transactionManager) { in clearData()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthConnectDatabaseTestRule.java30 import com.android.server.healthconnect.storage.TransactionManager;
43 private TransactionManager mTransactionManager;
58 TransactionManager.cleanUpForTest(); in before()
59 mTransactionManager = TransactionManager.getInstance(mContext); in before()
66 TransactionManager.cleanUpForTest(); in after()
76 public TransactionManager getTransactionManager() { in getTransactionManager()
DTransactionTestUtils.java46 import com.android.server.healthconnect.storage.TransactionManager;
66 private final TransactionManager mTransactionManager;
69 public TransactionTestUtils(Context context, TransactionManager transactionManager) { in TransactionTestUtils()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DPriorityMigrationHelper.java31 import com.android.server.healthconnect.storage.TransactionManager;
80 if (TransactionManager.getInitialisedInstance() in populatePreMigrationPriority()
108 TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in cachePreMigrationTable()
124 public void clearData(@NonNull TransactionManager transactionManager) { in clearData()
151 TransactionManager transactionManager = TransactionManager.getInitialisedInstance(); in populatePreMigrationTable()
DMigrationCleaner.java23 import com.android.server.healthconnect.storage.TransactionManager;
36 private final TransactionManager mTransactionManager;
40 @NonNull TransactionManager transactionManager, in MigrationCleaner()
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DTransactionManager.java36 public class TransactionManager { class
39 private static TransactionManager INSTANCE = null;
50 private TransactionManager() { in TransactionManager() method in TransactionManager
59 public static TransactionManager getInstance() { in getInstance()
62 INSTANCE = new TransactionManager(); in getInstance()
69 public static TransactionManager getTestInstance() { in getTestInstance()
70 return new TransactionManager(); in getTestInstance()
DParallelTransaction.java43 TransactionManager.TransactionCompleteListener subTransactionListener = in processTransactions()
44 new TransactionManager.TransactionCompleteListener() { in processTransactions()
DSerialTransaction.java47 TransactionManager.TransactionCompleteListener subTransactionListener = in processTransactions()
48 new TransactionManager.TransactionCompleteListener() { in processTransactions()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/
DDailyLoggingServiceTest.java44 import com.android.server.healthconnect.storage.TransactionManager;
74 .mockStatic(TransactionManager.class)
122 TransactionManager transactionManager = mock(TransactionManager.class); in testDatabaseLogsStats()
125 .when(TransactionManager::getInitialisedInstance); in testDatabaseLogsStats()
164 TransactionManager transactionManager = mock(TransactionManager.class); in testDatabaseLogsStats_userDoesNotUseHealthConnect()
167 .when(TransactionManager::getInitialisedInstance); in testDatabaseLogsStats_userDoesNotUseHealthConnect()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DPermissionPackageChangesOrchestratorTest.java39 import com.android.server.healthconnect.storage.TransactionManager;
55 .mockStatic(TransactionManager.class)
68 @Mock private TransactionManager mTransactionManager;
78 when(TransactionManager.getInitialisedInstance()).thenReturn(mTransactionManager); in setUp()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DAutoDeleteService.java102 TransactionManager.getInitialisedInstance() in deleteStaleRecordEntries()
113 TransactionManager.getInitialisedInstance() in deleteStaleChangeLogEntries()
126 TransactionManager.getInitialisedInstance() in deleteStaleAccessLogEntries()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DPriorityMigrationHelperTest.java39 import com.android.server.healthconnect.storage.TransactionManager;
63 .mockStatic(TransactionManager.class)
76 @Mock private TransactionManager mTransactionManager;
84 when(TransactionManager.getInitialisedInstance()).thenReturn(mTransactionManager); in setUp()
DMigrationCleanerTest.java29 import com.android.server.healthconnect.storage.TransactionManager;
42 @Mock private TransactionManager mTransactionManager;
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DAutoDeleteServiceTest.java33 import com.android.server.healthconnect.storage.TransactionManager;
107 .mockStatic(TransactionManager.class)
115 @Mock private TransactionManager mTransactionManager;
135 when(TransactionManager.getInitialisedInstance()).thenReturn(mTransactionManager); in testStartAutoDelete_getPreferenceReturnNull()
158 when(TransactionManager.getInitialisedInstance()).thenReturn(mTransactionManager); in testStartAutoDelete_getPreferenceReturnNonNull()

123