/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteWriteTest.java | 78 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withRoute_routeGetsInserted() 94 assertThat(records.get(0).hasRoute()).isFalse(); in insertRecords_withClientId_withoutRoute_routeGetsDeleted() 110 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withClientId_withUpdatedRoute_routeGetsUpdated() 126 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withClientId_withAddedRoute_routeGetsInserted() 143 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withClientId_withHigherVersionId_routeGetsUpdated() 160 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withClientId_withSameVersionId_routeGetsUpdated() 178 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withClientId_withLowerVersionId_routeDoesNotGetUpdated() 194 assertThat(records.get(0).hasRoute()).isFalse(); in updateRecords_withoutRoute_routeGetsDeleted() 211 assertThat(records.get(0).hasRoute()).isTrue(); in updateRecords_withRoute_routeGetsInserted() 227 assertThat(records.get(0).hasRoute()).isTrue(); in updateRecords_withUpdatedRoute_routeGetsUpdated() [all …]
|
D | ExerciseRouteReadTest.java | 80 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_cannotAccessOtherAppRoute() 95 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOwnRoute() 118 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 120 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 136 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_cannotAccessOtherAppRoute() 152 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOwnRoute() 177 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 179 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 201 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_cannotAccessOtherAppRoute() 223 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOwnRoute() [all …]
|
D | ExerciseRouteBackgroundReadTest.java | 87 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_cannotAccessOtherAppRoute() 102 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOwnRoute() 126 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 128 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 144 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_cannotAccessOtherAppRoute() 161 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOwnRoute() 186 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 188 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 211 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_cannotAccessOtherAppRoute() 234 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOwnRoute() [all …]
|
D | ReadExerciseRoutesPermissionTest.java | 77 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOtherAppRoute() 92 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOwnRoute() 115 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 118 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 134 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOtherAppRoute() 150 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOwnRoute() 175 assertThat(idToRecordMap.get(otherAppSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 178 assertThat(idToRecordMap.get(ownSessionId).hasRoute()).isTrue(); in readRecords_usingIds_mixedOwnAndOtherAppSession() 201 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOtherAppRoute() 224 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOwnRoute() [all …]
|
D | ExerciseRouteNoReadWritePermissionTest.java | 106 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withSameClientId_withoutRoute_routeDoesNotGetDeleted() 133 assertThat(records.get(0).hasRoute()).isTrue(); in insertRecords_withSameClientId_updatedRoute_throws_routeDoesNotGetUpdated() 158 assertThat(records.get(0).hasRoute()).isFalse(); in insertRecords_withSameClientId_addedRoute_throws_routeDoesNotGetAdded() 176 assertThat(records.get(0).hasRoute()).isTrue(); in updateRecords_withoutRoute_routeDoesNotGetDeleted() 201 assertThat(records.get(0).hasRoute()).isTrue(); in updateRecords_withUpdatedRoute_throws_routeDoesNotGetUpdated() 227 assertThat(records.get(0).hasRoute()).isFalse(); in updateRecords_withAddedRoute_throws_routeDoesNotGetAdded() 248 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOwnRoute() 270 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOwnRoute() 298 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOwnRoute()
|
D | ExerciseRouteReadAllFeatureOffTest.java | 80 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canNotAccessOtherAppRoute() 95 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOwnRoute() 111 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canNotAccessOtherAppRoute() 127 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOwnRoute() 150 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canNotAccessOtherAppRoute() 173 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOwnRoute()
|
D | ExerciseRouteManageHealthDataTest.java | 81 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canNotAccessOtherAppRoute() 101 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canNotAccessOtherAppRoute() 126 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canNotAccessOtherAppRoute()
|
D | ReadExerciseRoutePermissionTest.java | 81 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingFilters_canAccessOtherAppRoute() 101 assertThat(records.get(0).hasRoute()).isTrue(); in readRecords_usingIds_canAccessOtherAppRoute() 126 assertThat(records.get(0).hasRoute()).isTrue(); in getChangelogs_canAccessOtherAppRoute()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/ |
D | TransactionManagerExerciseRoutesTest.java | 116 assertThat(idToSessionMap.get(fooUuid).hasRoute()).isTrue(); in readRecordsByIds_doesNotReturnRoutesOfOtherApps() 117 assertThat(idToSessionMap.get(barUuid).hasRoute()).isTrue(); in readRecordsByIds_doesNotReturnRoutesOfOtherApps() 118 assertThat(idToSessionMap.get(ownUuid).hasRoute()).isTrue(); in readRecordsByIds_doesNotReturnRoutesOfOtherApps() 142 assertThat(returnedRecord.hasRoute()).isTrue(); in readRecordsByIds_unknownApp_doesNotReturnRoute() 167 assertThat(returnedRecord.hasRoute()).isTrue(); in readRecordsByIds_nullPackageName_doesNotReturnRoute() 192 assertThat(returnedRecord.hasRoute()).isTrue(); in readRecordsByIds_unknownApp_withReadRoutePermission_returnsRoute() 236 assertThat(idToSessionMap.get(fooUuid).hasRoute()).isTrue(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps() 237 assertThat(idToSessionMap.get(barUuid).hasRoute()).isTrue(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps() 238 assertThat(idToSessionMap.get(ownUuid).hasRoute()).isTrue(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps() 268 assertThat(returnedRecord.hasRoute()).isTrue(); in readRecordsAndPageToken_byFilters_unknownApp_doesNotReturnRoute() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | ExerciseSessionRecord.java | 96 boolean hasRoute, in ExerciseSessionRecord() argument 112 if (route != null && !hasRoute) { in ExerciseSessionRecord() 120 mHasRoute = hasRoute; in ExerciseSessionRecord() 178 public boolean hasRoute() { in hasRoute() method in ExerciseSessionRecord 366 public Builder setHasRoute(boolean hasRoute) { in setHasRoute() argument 367 mHasRoute = hasRoute; in setHasRoute() 452 recordInternal.setHasRoute(hasRoute()); in toRecordInternal()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseSessionRecordInternal.java | 116 public boolean hasRoute() { in hasRoute() method in ExerciseSessionRecordInternal 122 public ExerciseSessionRecordInternal setHasRoute(boolean hasRoute) { in setHasRoute() argument 123 if (mExerciseRoute != null && !hasRoute) { in setHasRoute() 126 this.mHasRoute = hasRoute; in setHasRoute()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | ExerciseRouteDisabledFeatureTest.java | 77 assertThat(insertedRecord.hasRoute()).isTrue(); in testReadRoute_insertAndRead_routeIsNotAvailable() 84 assertThat(readRecord.hasRoute()).isFalse(); in testReadRoute_insertAndRead_routeIsNotAvailable()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | BundleHelper.java | 561 values.putBoolean(EXERCISE_HAS_ROUTE, record.hasRoute()); in getExerciseSessionRecordValues() 673 boolean hasRoute = values.getBoolean(EXERCISE_HAS_ROUTE); in createExerciseSessionRecord() 675 if (hasRoute && locationCount == 0) { in createExerciseSessionRecord() 677 setHasRoute(record, hasRoute); in createExerciseSessionRecord() 955 private static void setHasRoute(ExerciseSessionRecord.Builder record, boolean hasRoute) { in setHasRoute() argument 961 method.invoke(record, hasRoute); in setHasRoute()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseSessionRecordTest.java | 109 assertThat(record.hasRoute()).isFalse(); in testExerciseSession_buildSession_buildCorrectObject() 178 assertThat(record.hasRoute()).isTrue(); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 209 assertThat(insertedRecord.hasRoute()).isTrue(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 218 assertThat(insertedRecord.hasRoute()).isFalse(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 366 assertThat(readRecord.hasRoute()).isEqualTo(insertedRecord.hasRoute()); in testReadById_insertAndReadByIdOne_recordsAreEqual()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/ |
D | LoadExerciseRouteUseCase.kt | 52 if (records.isEmpty() || !records[0].hasRoute()) { in <lambda>()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | ExerciseSessionRecordHelper.java | 182 exerciseSessionRecord.hasRoute() ? BOOLEAN_TRUE_VALUE : BOOLEAN_FALSE_VALUE); in populateSpecificContentValues() 564 if (((ExerciseSessionRecordInternal) recordInternal).hasRoute()) { in getNumberOfRecordsWithExerciseRoutes()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 884 method @NonNull public boolean hasRoute();
|