Home
last modified time | relevance | path

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

12345678

/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthConnectManagerTest.java58 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getNoGrantedHealthPermissions_succeeds()
70 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getSomeGrantedHealthPermissions_succeeds()
90 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getGrantedHealthPermissionsException_rethrows()
102 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_upsertMedicalResources_throws()
116 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_deleteResources_notImplemented()
141 private static HealthConnectManager newHealthConnectManager( in newHealthConnectManager()
147 return HealthConnectManager.class in newHealthConnectManager()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/exportimport/
DScheduledExportStatusTest.java21 import android.health.connect.HealthConnectManager;
38 HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS, in testDeserialize()
49 .isEqualTo(HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS); in testDeserialize()
57 null, HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS, 7); in testDeserialize_noSuccessfulExport()
66 .isEqualTo(HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS); in testDeserialize_noSuccessfulExport()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java25 import static android.health.connect.HealthConnectManager.DATA_DOWNLOAD_COMPLETE;
26 import static android.health.connect.HealthConnectManager.DATA_DOWNLOAD_FAILED;
27 import static android.health.connect.HealthConnectManager.DATA_DOWNLOAD_STARTED;
28 import static android.health.connect.HealthConnectManager.isHealthPermission;
68 import android.health.connect.HealthConnectManager;
182 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testHCManagerIsAccessible_viaHCManager()
189 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testHCManagerIsAccessible_viaContextConstant()
239 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
304 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
375 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testUpdateRecords_recordWithInvalidPackageName_noChangeInDataBase()
[all …]
DGetApplicationInfoTest.java28 import android.health.connect.HealthConnectManager;
70 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testEmptyApplicationInfo()
100 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in testEmptyApplicationInfo_no_perm()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DExportManager.java24 import android.health.connect.HealthConnectManager;
101 HealthConnectManager.DATA_EXPORT_ERROR_UNKNOWN); in runExport()
110 HealthConnectManager.DATA_EXPORT_ERROR_UNKNOWN); in runExport()
119 HealthConnectManager.DATA_EXPORT_ERROR_UNKNOWN); in runExport()
128 HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS); in runExport()
133 HealthConnectManager.DATA_EXPORT_ERROR_UNKNOWN); in runExport()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DUseCaseModule.kt19 import android.health.connect.HealthConnectManager
92 manager: HealthConnectManager, in providesLoadRecentAccessUseCase()
146 healthConnectManager: HealthConnectManager, in providesLoadDataAggregationsUseCase()
205 healthConnectManager: HealthConnectManager, in providesLoadPotentialPriorityListUseCase()
222 healthConnectManager: HealthConnectManager, in providesLoadLastDateWithPriorityDataUseCase()
239 healthConnectManager: HealthConnectManager, in providesPriorityListUseCase()
247 healthConnectManager: HealthConnectManager, in updatePriorityListUseCase()
272 healthConnectManager: HealthConnectManager, in providesLoadPermissionTypeContributorAppsUseCase()
288 healthConnectManager: HealthConnectManager, in providesQueryRecentAccessLogsUseCase()
296 healthConnectManager: HealthConnectManager, in providesGetContributorAppInfoUseCase()
DServicesModule.kt20 import android.health.connect.HealthConnectManager
32 fun provideHealthConnectManager(@ApplicationContext context: Context): HealthConnectManager { in provideHealthConnectManager()
35 return requireNotNull(contextAsUser.getSystemService(HealthConnectManager::class.java)) in provideHealthConnectManager()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DLoadScheduledExportStatusUseCase.kt19 import android.health.connect.HealthConnectManager in <lambda>()
49 HealthConnectManager.DATA_EXPORT_ERROR_UNKNOWN -> in <lambda>()
51 HealthConnectManager.DATA_EXPORT_ERROR_NONE -> in <lambda>()
53 HealthConnectManager.DATA_EXPORT_LOST_FILE_ACCESS -> in <lambda>()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/
DIntegrationTestUtils.java24 import android.health.connect.HealthConnectManager;
70 private static HealthConnectManager getHealthConnectManager() { in getHealthConnectManager()
72 HealthConnectManager service = context.getSystemService(HealthConnectManager.class); in getHealthConnectManager()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/navigation/
DTrampolineActivity.kt23 import android.health.connect.HealthConnectManager
83 HealthConnectManager.ACTION_HEALTH_HOME_SETTINGS -> { in getTargetIntent()
86 HealthConnectManager.ACTION_MANAGE_HEALTH_DATA -> { in getTargetIntent()
89 HealthConnectManager.ACTION_MANAGE_HEALTH_PERMISSIONS -> { in getTargetIntent()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectUiTestHelper.kt21 import android.health.connect.HealthConnectManager
43 private val mHealthConnectManager: HealthConnectManager? =
44 context.getSystemService<HealthConnectManager>(HealthConnectManager::class.java)
DDailyLogsTests.java28 import android.health.connect.HealthConnectManager;
49 private final HealthConnectManager mHealthConnectManager =
50 InstrumentationRegistry.getContext().getSystemService(HealthConnectManager.class);
DTestHelperUtils.java23 import android.health.connect.HealthConnectManager;
115 List<Record> records, HealthConnectManager healthConnectManager) in insertRecords()
143 HealthConnectManager healthConnectManager) in deleteRecords()
178 public static List<AccessLog> queryAccessLogs(HealthConnectManager healthConnectManager) in queryAccessLogs()
204 public static void deleteAllRecordsAddedByTestApp(HealthConnectManager healthConnectManager) in deleteAllRecordsAddedByTestApp()
/packages/modules/HealthFitness/testapps/toolbox/tests/src/com/android/healthconnect/testapps/toolbox/
DPermissionIntegrationTest.kt3 import android.health.connect.HealthConnectManager
14 .isEqualTo(HealthConnectManager.getHealthPermissions(context).sorted()) in toolboxAppShouldRequestAllHealthPermissions()
25 .isEqualTo(HealthConnectManager.getHealthPermissions(context).sorted()) in toolboxAppShouldRequestAllMedicalPermissions()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DGeneralUtils.kt20 import android.health.connect.HealthConnectManager in <lambda>()
65 manager: HealthConnectManager, in <lambda>()
83 manager: HealthConnectManager, in <lambda>()
112 manager: HealthConnectManager, in <lambda>()
129 manager: HealthConnectManager, in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DRouteRequestFragment.kt20 import android.health.connect.HealthConnectManager in <lambda>()
21 import android.health.connect.HealthConnectManager.EXTRA_EXERCISE_ROUTE in <lambda>()
94 Intent(HealthConnectManager.ACTION_REQUEST_EXERCISE_ROUTE).apply { in <lambda>()
95 putExtra(HealthConnectManager.EXTRA_SESSION_ID, record.metadata.id) in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/exportimport/
DScheduledExportStatus.java24 import android.health.connect.HealthConnectManager;
53 @HealthConnectManager.DataExportError private final int mDataExportError;
58 @HealthConnectManager.DataExportError int dataExportError, in ScheduledExportStatus()
/packages/modules/HealthFitness/backuprestore/src/com/android/health/connect/backuprestore/
DHealthConnectBackupAgent.java26 import android.health.connect.HealthConnectManager;
49 private HealthConnectManager mHealthConnectManager;
161 HealthConnectManager getHealthConnectService() { in getHealthConnectService()
162 return this.getSystemService(HealthConnectManager.class); in getHealthConnectService()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DHealthConnectWithoutManagePermissionsTest.java23 import android.health.connect.HealthConnectManager;
54 private HealthConnectManager mHealthConnectManager;
64 mHealthConnectManager = mContext.getSystemService(HealthConnectManager.class); in setUp()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/viewmodels/
DInsertOrUpdateRecordsViewModel.kt19 import android.health.connect.HealthConnectManager
39 fun insertRecordsViaViewModel(records: List<Record>, manager: HealthConnectManager) { in insertRecordsViaViewModel()
54 fun updateRecordsViaViewModel(records: List<Record>, manager: HealthConnectManager) { in updateRecordsViaViewModel()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/api/
DDeleteAllDataUseCaseTest.kt19 import android.health.connect.HealthConnectManager in <lambda>()
44 var manager: HealthConnectManager = mock(HealthConnectManager::class.java) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/api/
DDeleteEntryUseCaseTest.kt18 import android.health.connect.HealthConnectManager in <lambda>()
50 var manager: HealthConnectManager = mock(HealthConnectManager::class.java) in <lambda>()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DPermissionHelper.java30 import android.health.connect.HealthConnectManager;
109 HealthConnectManager service = getHealthConnectManager(); in grantPermission()
126 HealthConnectManager service = getHealthConnectManager(); in revokePermission()
144 HealthConnectManager service = getHealthConnectManager(); in revokeAllPermissions()
206 HealthConnectManager service = getHealthConnectManager(); in getHealthDataHistoricalAccessStartDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/searchindexables/
DHealthConnectSearchIndexablesProvider.kt21 import android.health.connect.HealthConnectManager.ACTION_HEALTH_HOME_SETTINGS
22 import android.health.connect.HealthConnectManager.ACTION_MANAGE_HEALTH_DATA
23 import android.health.connect.HealthConnectManager.ACTION_MANAGE_HEALTH_PERMISSIONS
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/api/
DLoadAutoDeleteUseCaseTest.kt19 import android.health.connect.HealthConnectManager
40 private val healthConnectManager: HealthConnectManager =
41 Mockito.mock(HealthConnectManager::class.java)

12345678