/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/ |
D | HealthConnectServiceLogsTests.java | 81 private final HealthConnectManager mHealthConnectManager = field in HealthConnectServiceLogsTests 88 deleteAllRecordsAddedByTestApp(mHealthConnectManager); in before() 93 deleteAllRecordsAddedByTestApp(mHealthConnectManager); in after() 99 List.of(getBloodPressureRecord(), getHeartRateRecord()), mHealthConnectManager); in testHealthConnectInsertRecords() local 105 insertRecords(List.of(getBloodPressureRecord(), getHeightRecord()), mHealthConnectManager); in testHealthConnectInsertRecordsError() local 113 mHealthConnectManager); in testHealthConnectUpdateRecords() 120 insertRecords(List.of(getBloodPressureRecord()), mHealthConnectManager); in testHealthConnectUpdateRecordsError() 133 insertRecords(List.of(getBloodPressureRecord(), getStepsRecord()), mHealthConnectManager); in testHealthConnectDeleteRecords() local 141 assertThat(mHealthConnectManager).isNotNull(); in testHealthConnectDeleteRecords() 142 deleteRecords(deleteUsingFiltersRequest, mHealthConnectManager); in testHealthConnectDeleteRecords() [all …]
|
D | DailyLogsTests.java | 49 private final HealthConnectManager mHealthConnectManager = field in DailyLogsTests 60 mHealthConnectManager)) in testInsertRecordsSucceed() 68 assertThat(queryAccessLogs(mHealthConnectManager)).hasSize(0); in testHealthConnectAccessLogsEqualsZero() 77 assertThat(queryAccessLogs(mHealthConnectManager)).hasSize(1); in testHealthConnectAccessLogsEqualsOne() 86 assertThat(queryAccessLogs(mHealthConnectManager)).hasSize(2); in testHealthConnectAccessLogsEqualsTwo() 99 deleteAllRecordsAddedByTestApp(mHealthConnectManager); in deleteAllRecordsAddedForTest()
|
D | HealthConnectUiTestHelper.kt | 43 private val mHealthConnectManager: HealthConnectManager? = constant in android.healthconnect.cts.testhelper.HealthConnectUiTestHelper 58 TestHelperUtils.deleteAllRecordsAddedByTestApp(mHealthConnectManager) in before() 63 TestHelperUtils.deleteAllRecordsAddedByTestApp(mHealthConnectManager) in after() 93 mHealthConnectManager) in openHomeFragment()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/ |
D | HealthConnectWithoutManagePermissionsTest.java | 54 private HealthConnectManager mHealthConnectManager; field in HealthConnectWithoutManagePermissionsTest 64 mHealthConnectManager = mContext.getSystemService(HealthConnectManager.class); in setUp() 70 mHealthConnectManager.grantHealthPermission(DEFAULT_APP_PACKAGE, DEFAULT_PERM); in testGrantHealthPermission_noManageHealthPermissions_throwsSecurityException() 79 mHealthConnectManager.revokeHealthPermission( in testRevokeHealthPermission_noManageHealthPermissions_throwsSecurityException() 89 mHealthConnectManager.getGrantedHealthPermissions(DEFAULT_APP_PACKAGE); in testGetGrantedHealthPermissions_noManageHealthPermissions_throwsSecurityException() 98 mHealthConnectManager.revokeAllHealthPermissions(DEFAULT_APP_PACKAGE, /* reason= */ null); in testRevokeAllHealthPermissions_noManageHealthPermissions_throwsSecurityException() 109 mHealthConnectManager.getHealthPermissionsFlags( in testGetHealthPermissionsFlags_noManageHealthPermissions_throwsSecurityException() 119 mHealthConnectManager.setHealthPermissionsUserFixedFlagValue( in setHealthPermissionsUserFixedFlagValue_noManageHealthPermissions_securityException()
|
D | GrantTimeIntegrationTest.java | 62 private HealthConnectManager mHealthConnectManager; field in GrantTimeIntegrationTest 72 mHealthConnectManager = mContext.getSystemService(HealthConnectManager.class); in setUp() 192 mHealthConnectManager.grantHealthPermission(packageName, permName); in grantHealthPermission() 206 () -> mHealthConnectManager.getHealthDataHistoricalAccessStartDate(packageName), in getHealthDataHistoricalAccessStartDate() 220 mHealthConnectManager.revokeHealthPermission(packageName, permName, ""); in revokePermissionWithDelay()
|
D | HealthConnectWithManagePermissionsTest.java | 82 private HealthConnectManager mHealthConnectManager; field in HealthConnectWithManagePermissionsTest 92 mHealthConnectManager = mContext.getSystemService(HealthConnectManager.class); in setUp() 680 mHealthConnectManager.grantHealthPermission(packageName, permissionName); in grantHealthPermission() 695 mHealthConnectManager.revokeHealthPermission( in revokeHealthPermission() 711 mHealthConnectManager.revokeAllHealthPermissions(packageName, reason); in revokeAllHealthPermissions() 726 return mHealthConnectManager.getGrantedHealthPermissions(packageName); in getGrantedHealthPermissions() 741 () -> mHealthConnectManager.getHealthPermissionsFlags(packageName, permissions), in getHealthPermissionsFlags() 756 mHealthConnectManager.setHealthPermissionsUserFixedFlagValue( in setHealthPermissionsUserFixedFlagValue()
|
/packages/modules/HealthFitness/backuprestore/tests/src/com/android/health/connect/backuprestore/ |
D | HealthConnectBackupAgentTest.java | 64 @Mock private HealthConnectManager mHealthConnectManager; field in HealthConnectBackupAgentTest 100 verify(mHealthConnectManager, times(1)) in testOnRestoreFinished_stagingAll_sendsAllDataForStaging() 119 verify(mHealthConnectManager, times(1)) in testOnRestoreFinished_afterStagingSuccess_deletesLocalData() 138 verify(mHealthConnectManager, times(1)) in testOnRestoreFinished_afterStagingFailure_deletesLocalData() 165 verify(mHealthConnectManager, times(1)).getAllBackupFileNames(true); in testOnFullBackup_deviceToDeviceFlag_callsBackupFileNamesWithTrue() 177 verify(mHealthConnectManager, times(1)).getAllBackupFileNames(false); in testOnFullBackup_noDeviceToDeviceFlag_callsBackupFileNamesWithFalse() 192 verify(mHealthConnectManager, never()) in testOnRestore_doesNotStageAnything() 219 return mHealthConnectManager; in getHealthConnectService()
|
/packages/modules/HealthFitness/backuprestore/src/com/android/health/connect/backuprestore/ |
D | HealthConnectBackupAgent.java | 49 private HealthConnectManager mHealthConnectManager; field in HealthConnectBackupAgent 57 mHealthConnectManager = getHealthConnectService(); in onCreate() 64 mHealthConnectManager.getAllBackupFileNames( in onFullBackup() 81 mHealthConnectManager.getAllDataForBackup(pfdsByFileName); in onFullBackup() 108 mHealthConnectManager.stageAllHealthConnectRemoteData( in onRestoreFinished()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/migration/ |
D | HealthConnectPermissionsMigrationTest.java | 61 private HealthConnectManager mHealthConnectManager; field in HealthConnectPermissionsMigrationTest 71 mHealthConnectManager = mContext.getSystemService(HealthConnectManager.class); in setUp() 108 mHealthConnectManager.getHealthDataHistoricalAccessStartDate( in readDataHistoricalAccessStartDate() 138 mHealthConnectManager.revokeAllHealthPermissions(packageName, reason); in revokeAllHealthPermissions()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/ |
D | InsertRecordFragment.kt | 90 private lateinit var mHealthConnectManager: HealthConnectManager in <lambda>() variable in com.android.healthconnect.testapps.toolbox.ui.InsertRecordFragment 143 mHealthConnectManager = in <lambda>() 359 listOf(record), mHealthConnectManager) in <lambda>() 388 listOf(record), mHealthConnectManager) in <lambda>()
|