Home
last modified time | relevance | path

Searched refs:hasRoute (Results 1 – 17 of 17) sorted by relevance

/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteWriteTest.java78 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 …]
DExerciseRouteReadTest.java80 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 …]
DExerciseRouteBackgroundReadTest.java87 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 …]
DReadExerciseRoutesPermissionTest.java77 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 …]
DExerciseRouteNoReadWritePermissionTest.java106 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()
DExerciseRouteReadAllFeatureOffTest.java80 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()
DExerciseRouteManageHealthDataTest.java81 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()
DReadExerciseRoutePermissionTest.java81 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/
DTransactionManagerExerciseRoutesTest.java116 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/
DExerciseSessionRecord.java96 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/
DExerciseSessionRecordInternal.java116 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/
DExerciseRouteDisabledFeatureTest.java77 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/
DBundleHelper.java561 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/
DExerciseSessionRecordTest.java109 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/
DLoadExerciseRouteUseCase.kt52 if (records.isEmpty() || !records[0].hasRoute()) { in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DExerciseSessionRecordHelper.java182 exerciseSessionRecord.hasRoute() ? BOOLEAN_TRUE_VALUE : BOOLEAN_FALSE_VALUE); in populateSpecificContentValues()
564 if (((ExerciseSessionRecordInternal) recordInternal).hasRoute()) { in getNumberOfRecordsWithExerciseRoutes()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt884 method @NonNull public boolean hasRoute();