/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | ExportImportSettingsStorage.java | 29 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 68 PreferenceHelper.getInstance() in configureNonNull() 75 PreferenceHelper.getInstance() in configureNonNull() 82 PreferenceHelper.getInstance().removeKey(EXPORT_URI_PREFERENCE_KEY); in clear() 83 PreferenceHelper.getInstance().removeKey(EXPORT_PERIOD_PREFERENCE_KEY); in clear() 88 String result = PreferenceHelper.getInstance().getPreference(EXPORT_URI_PREFERENCE_KEY); in getUri() 95 String result = PreferenceHelper.getInstance().getPreference(EXPORT_PERIOD_PREFERENCE_KEY); in getScheduledExportPeriodInDays() 103 PreferenceHelper.getInstance() in setLastSuccessfulExport() 107 PreferenceHelper.getInstance().removeKey(LAST_EXPORT_ERROR_PREFERENCE_KEY); in setLastSuccessfulExport() 112 PreferenceHelper.getInstance() in setLastExportError() [all …]
|
D | AutoDeleteService.java | 29 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 50 PreferenceHelper.getInstance().getPreference(AUTO_DELETE_DURATION_RECORDS_KEY); in getRecordRetentionPeriodInDays() 58 PreferenceHelper.getInstance() in setRecordRetentionPeriodInDays() 84 PreferenceHelper.getInstance().getPreference(AUTO_DELETE_DURATION_RECORDS_KEY); in deleteStaleRecordEntries()
|
D | DatabaseUpgradeHelper.java | 43 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 160 requests.add(PreferenceHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/ |
D | MigrationStateManager.java | 61 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 170 PreferenceHelper.getInstance() in setMinDataMigrationSdkExtensionVersion() 188 PreferenceHelper.getInstance().getPreference(MIGRATION_STATE_PREFERENCE_KEY); in getMigrationState() 283 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in clearCaches() 318 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in getMigrationStartsCount() 472 PreferenceHelper.getInstance().insertOrReplacePreferencesTransaction(preferences); in updateMigrationStatePreference() 518 PreferenceHelper.getInstance().getPreference(IN_PROGRESS_TIMEOUT_REACHED_KEY); in hasInProgressStateTimedOut() 531 PreferenceHelper.getInstance().getPreference(IDLE_TIMEOUT_REACHED_KEY); in hasIdleStateTimedOut() 607 PreferenceHelper.getInstance() in handleIsUpgradeStillRequired() 621 PreferenceHelper.getInstance().getPreference(ALLOWED_STATE_START_TIME_KEY); in getAllowedStateTimeout() [all …]
|
D | MigrationStateChangeJob.java | 40 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 109 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in executeMigrationCompletionJob() 165 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in executeMigrationPauseJob()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/backuprestore/ |
D | BackupRestore.java | 75 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 424 PreferenceHelper.getInstance().getPreference(DATA_RESTORE_ERROR_KEY); in getDataRestoreError() 498 PreferenceHelper.getInstance() in setInternalRestoreState() 518 PreferenceHelper.getInstance().getPreference(DATA_RESTORE_STATE_KEY); in getInternalRestoreState() 646 PreferenceHelper.getInstance().getPreference(DATA_DOWNLOAD_STATE_KEY); in getDataDownloadState() 672 PreferenceHelper.getInstance() in setDataDownloadState() 677 PreferenceHelper.getInstance() in setDataDownloadState() 692 PreferenceHelper.getInstance() in setDataRestoreError() 734 PreferenceHelper.getInstance() in scheduleDownloadStateTimeoutJob() 747 PreferenceHelper.getInstance().insertOrReplacePreference(DATA_DOWNLOAD_TIMEOUT_KEY, ""); in executeDownloadStateTimeoutJob() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/logging/ |
D | UsageStatsCollector.java | 30 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 96 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in isUserMonthlyActive() 113 PreferenceHelper preferenceHelper = PreferenceHelper.getInstance(); in upsertLastAccessLogTimeStamp()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | PreferenceHelper.java | 49 public class PreferenceHelper extends DatabaseHelper { class 57 private static volatile PreferenceHelper sPreferenceHelper; 62 protected PreferenceHelper() {} in PreferenceHelper() method in PreferenceHelper 161 public static synchronized PreferenceHelper getInstance() { in getInstance() 163 sPreferenceHelper = new PreferenceHelper(); in getInstance()
|
D | DatabaseHelper.java | 42 PreferenceHelper.getInstance(), in getDatabaseHelpers()
|
D | HealthDataCategoryPriorityHelper.java | 607 PreferenceHelper.getInstance() in maybeAddContributingAppsToPriorityList() 629 PreferenceHelper.getInstance().getPreference(INACTIVE_APPS_ADDED); in shouldAddContributingApps()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/ |
D | ExportImportSettingsStorageTest.java | 33 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 50 new ExtendedMockitoRule.Builder(this).mockStatic(PreferenceHelper.class).build(); 52 private final PreferenceHelper mFakePreferenceHelper = new FakePreferenceHelper(); 56 when(PreferenceHelper.getInstance()).thenReturn(mFakePreferenceHelper); in setUp()
|
D | AutoDeleteServiceTest.java | 67 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 106 .mockStatic(PreferenceHelper.class) 114 @Mock private PreferenceHelper mPreferenceHelper; 123 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in testSetRecordRetentionPeriodInDays() 134 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in testStartAutoDelete_getPreferenceReturnNull() 157 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in testStartAutoDelete_getPreferenceReturnNonNull()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/ |
D | ExportImportJobsTest.java | 36 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 52 new ExtendedMockitoRule.Builder(this).mockStatic(PreferenceHelper.class).build(); 59 private final PreferenceHelper mFakePreferenceHelper = new FakePreferenceHelper(); 65 when(PreferenceHelper.getInstance()).thenReturn(mFakePreferenceHelper); in setUp()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigratorPackageChangesReceiverTest.java | 42 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 59 .mockStatic(PreferenceHelper.class) 65 @Mock PreferenceHelper mPreferenceHelper; 77 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
D | MigrationBroadcastSchedulingTest.java | 46 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 69 .mockStatic(PreferenceHelper.class) 78 @Mock private PreferenceHelper mPreferenceHelper; 117 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in testPrescheduleNewJobs_updateMigrationState_newJobsScheduled()
|
D | MigrationUiStateManagerTest.java | 38 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 56 .mockStatic(PreferenceHelper.class) 63 @Mock private PreferenceHelper mPreferenceHelper; 73 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
D | MigrationStateChangeJobTest.java | 61 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 82 .mockStatic(PreferenceHelper.class) 89 @Mock PreferenceHelper mPreferenceHelper; 126 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
D | MigrationStateManagerTest.java | 78 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 105 .mockStatic(PreferenceHelper.class) 114 @Mock private PreferenceHelper mPreferenceHelper; 140 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | FakePreferenceHelper.java | 19 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 28 public class FakePreferenceHelper extends PreferenceHelper {
|
D | HealthConnectManagerServiceTest.java | 49 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 69 .mockStatic(PreferenceHelper.class) 82 @Mock private PreferenceHelper mPreferenceHelper; 128 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
D | HealthConnectServiceImplTest.java | 82 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 180 .mockStatic(PreferenceHelper.class) 195 @Mock private PreferenceHelper mPreferenceHelper; 225 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/ |
D | DailyLoggingServiceTest.java | 50 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 77 .mockStatic(PreferenceHelper.class) 87 @Mock private PreferenceHelper mPreferenceHelper; 116 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in mockStatsLog()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectManagerService.java | 45 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 224 PreferenceHelper.getInstance().initializePreferences(); in switchToSetupForUser()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/ |
D | BackupRestoreTest.java | 89 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper; 118 .mockStatic(PreferenceHelper.class) 136 private final PreferenceHelper mFakePreferenceHelper = new FakePreferenceHelper(); 150 when(PreferenceHelper.getInstance()).thenReturn(mFakePreferenceHelper); in setUp()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HealthDataCategoryPriorityHelperTest.java | 100 .mockStatic(PreferenceHelper.class) 114 @Mock private PreferenceHelper mPreferenceHelper; 147 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
|