Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DExportImportSettingsStorage.java29 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 …]
DAutoDeleteService.java29 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()
DDatabaseUpgradeHelper.java43 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/
DMigrationStateManager.java61 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 …]
DMigrationStateChangeJob.java40 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/
DBackupRestore.java75 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/
DUsageStatsCollector.java30 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/
DPreferenceHelper.java49 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()
DDatabaseHelper.java42 PreferenceHelper.getInstance(), in getDatabaseHelpers()
DHealthDataCategoryPriorityHelper.java607 PreferenceHelper.getInstance() in maybeAddContributingAppsToPriorityList()
629 PreferenceHelper.getInstance().getPreference(INACTIVE_APPS_ADDED); in shouldAddContributingApps()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DExportImportSettingsStorageTest.java33 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()
DAutoDeleteServiceTest.java67 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/
DExportImportJobsTest.java36 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/
DMigratorPackageChangesReceiverTest.java42 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper;
59 .mockStatic(PreferenceHelper.class)
65 @Mock PreferenceHelper mPreferenceHelper;
77 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
DMigrationBroadcastSchedulingTest.java46 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()
DMigrationUiStateManagerTest.java38 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()
DMigrationStateChangeJobTest.java61 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper;
82 .mockStatic(PreferenceHelper.class)
89 @Mock PreferenceHelper mPreferenceHelper;
126 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()
DMigrationStateManagerTest.java78 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/
DFakePreferenceHelper.java19 import com.android.server.healthconnect.storage.datatypehelpers.PreferenceHelper;
28 public class FakePreferenceHelper extends PreferenceHelper {
DHealthConnectManagerServiceTest.java49 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()
DHealthConnectServiceImplTest.java82 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/
DDailyLoggingServiceTest.java50 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/
DHealthConnectManagerService.java45 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/
DBackupRestoreTest.java89 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/
DHealthDataCategoryPriorityHelperTest.java100 .mockStatic(PreferenceHelper.class)
114 @Mock private PreferenceHelper mPreferenceHelper;
147 when(PreferenceHelper.getInstance()).thenReturn(mPreferenceHelper); in setUp()