/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestData.kt | 3 import android.health.connect.datatypes.ExerciseRoute 14 ExerciseRoute.Location.Builder(START.plusSeconds(12), 52.26019, 21.02268).build(), 15 ExerciseRoute.Location.Builder(START.plusSeconds(40), 52.26000, 21.02360).build(), 16 ExerciseRoute.Location.Builder(START.plusSeconds(48), 52.25973, 21.02356).build(), 17 ExerciseRoute.Location.Builder(START.plusSeconds(60), 52.25966, 21.02313).build(), 18 ExerciseRoute.Location.Builder(START.plusSeconds(78), 52.25993, 21.02309).build(), 19 ExerciseRoute.Location.Builder(START.plusSeconds(79), 52.25972, 21.02271).build(), 20 ExerciseRoute.Location.Builder(START.plusSeconds(90), 52.25948, 21.02276).build(), 21 ExerciseRoute.Location.Builder(START.plusSeconds(93), 52.25945, 21.02335).build(), 22 ExerciseRoute.Location.Builder(START.plusSeconds(94), 52.25960, 21.02338).build(), [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseRouteTest.java | 26 import android.health.connect.datatypes.ExerciseRoute; 48 ExerciseRoute.Location point = in testExerciseRouteLocation_buildViaBuilder_buildCorrectObject() 49 new ExerciseRoute.Location.Builder( in testExerciseRouteLocation_buildViaBuilder_buildCorrectObject() 65 ExerciseRoute.Location point = in testExerciseRouteLocation_setExtraFieldsViaBuilder_buildCorrectObject() 66 new ExerciseRoute.Location.Builder( in testExerciseRouteLocation_setExtraFieldsViaBuilder_buildCorrectObject() 83 new ExerciseRoute.Location.Builder(DEFAULT_TIME, /* latitude= */ -120, DEFAULT_LONGITUDE) in testExerciseRouteLocation_latitudeIsInvalid_throwsException() 90 new ExerciseRoute.Location.Builder(DEFAULT_TIME, DEFAULT_LATITUDE, /* longitude= */ 400) in testExerciseRouteLocation_longitudeIsInvalid_throwsException() 97 new ExerciseRoute.Location.Builder(DEFAULT_TIME, DEFAULT_LATITUDE, DEFAULT_LONGITUDE) in testExerciseRouteLocation_horizontalAccuracyIsInvalid_throwsException() 105 new ExerciseRoute.Location.Builder(DEFAULT_TIME, DEFAULT_LATITUDE, DEFAULT_LONGITUDE) in testExerciseRouteLocation_verticalAccuracyIsInvalid_throwsException() 113 ExerciseRoute route = in testExerciseRouteLocation_buildRoute_success() [all …]
|
D | ExerciseSessionRecordTest.java | 53 import android.health.connect.datatypes.ExerciseRoute; 54 import android.health.connect.datatypes.ExerciseRoute.Location; 146 ExerciseRoute route = buildExerciseRoute(); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 193 ExerciseRoute route = buildExerciseRoute(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 230 new ExerciseRoute( in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException() 246 new ExerciseRoute( in testExerciseSessionBuilds_routeTimestampBeforeSessionStart_throwsException() 318 ExerciseRoute route = buildExerciseRoute(); in testExerciseSessionBuilds_zoneOffsets_offsetsAreDefault() 884 ExerciseRoute route = record.getRoute(); in assertRoute() 1071 .setRoute(new ExerciseRoute(List.of(location))) in buildSession()
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 37 import android.health.connect.datatypes.ExerciseRoute; 104 Metadata metadata, Instant startTime, ExerciseRoute route) { in getExerciseSession() 114 static ExerciseRoute getRoute(Instant startTime) { in getRoute() 115 return new ExerciseRoute( in getRoute() 117 new ExerciseRoute.Location.Builder(startTime, 52., 48.).build(), in getRoute() 118 new ExerciseRoute.Location.Builder(startTime.plusSeconds(5), -51., -49.) in getRoute() 125 static ExerciseRoute getAnotherRoute(Instant startTime) { in getAnotherRoute() 126 return new ExerciseRoute( in getAnotherRoute() 128 new ExerciseRoute.Location.Builder(startTime.plusSeconds(10), -53., -47.) in getAnotherRoute()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | ExerciseRoute.java | 34 public final class ExerciseRoute implements Parcelable { class 38 public static final Creator<ExerciseRoute> CREATOR = 42 public ExerciseRoute createFromParcel(Parcel source) { 48 return new ExerciseRoute(locations); 52 public ExerciseRoute[] newArray(int size) { 53 return new ExerciseRoute[size]; 62 public ExerciseRoute(@NonNull List<Location> routeLocations) { in ExerciseRoute() method in ExerciseRoute 75 if (!(o instanceof ExerciseRoute)) return false; in equals() 76 ExerciseRoute that = (ExerciseRoute) o; in equals() 89 for (ExerciseRoute.Location location : getRouteLocations()) { in toRouteInternal()
|
D | ExerciseSessionRecord.java | 64 private final ExerciseRoute mRoute; 95 @Nullable ExerciseRoute route, in ExerciseSessionRecord() 155 public ExerciseRoute getRoute() { in getRoute() 231 private ExerciseRoute mRoute; 326 public Builder setRoute(@Nullable ExerciseRoute route) { in setRoute()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/ |
D | RouteRequestActivityTest.kt | 24 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 95 ExerciseRoute( in <lambda>() 97 ExerciseRoute.Location.Builder(START.plusSeconds(12), 52.26019, 21.02268) in <lambda>() 99 ExerciseRoute.Location.Builder(START.plusSeconds(40), 52.26000, 21.02360) in <lambda>() 101 ExerciseRoute.Location.Builder(START.plusSeconds(48), 52.25973, 21.02356) in <lambda>() 103 ExerciseRoute.Location.Builder(START.plusSeconds(60), 52.25966, 21.02313) in <lambda>() 105 ExerciseRoute.Location.Builder(START.plusSeconds(78), 52.25993, 21.02309) in <lambda>() 107 ExerciseRoute.Location.Builder(START.plusSeconds(79), 52.25972, 21.02271) in <lambda>() 109 ExerciseRoute.Location.Builder(START.plusSeconds(90), 52.25948, 21.02276) in <lambda>() 111 ExerciseRoute.Location.Builder(START.plusSeconds(93), 52.25945, 21.02335) in <lambda>() [all …]
|
D | LoadExerciseRouteUseCaseTest.kt | 21 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 111 ExerciseRoute( in <lambda>() 113 ExerciseRoute.Location.Builder( in <lambda>() 116 ExerciseRoute.Location.Builder( in <lambda>()
|
D | ExerciseRouteViewModelTest.kt | 22 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 151 ExerciseRoute( in <lambda>() 153 ExerciseRoute.Location.Builder( in <lambda>() 156 ExerciseRoute.Location.Builder( in <lambda>()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseRouteInternal.java | 23 import android.health.connect.datatypes.ExerciseRoute; 90 public ExerciseRoute toExternalRoute() { in toExternalRoute() 91 List<ExerciseRoute.Location> routeLocations = in toExternalRoute() 96 return new ExerciseRoute(routeLocations); in toExternalRoute() 238 public ExerciseRoute.Location toExternalExerciseRouteLocation() { in toExternalExerciseRouteLocation() 239 ExerciseRoute.Location.Builder builder = in toExternalExerciseRouteLocation() 240 new ExerciseRoute.Location.Builder( in toExternalExerciseRouteLocation()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | ExerciseRouteRequestTest.kt | 26 import android.health.connect.datatypes.ExerciseRoute 100 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked() 123 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission() 162 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_ownSession_writeRouteGranted_readRoutesDenied_returnsRoute() 187 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog() 233 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_ownSession_writeRouteDenied_readRoutesGranted_returnsRoute() 252 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_readRoutesGranted_doesNotShowDialog_returnsRoute() 317 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_withReadWriteRoutePermissionsRevoked_showsDialog_returnsRoute() 412 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_allowAllFeatureOff_allowAllNotDisplayed() 449 assertThat(extras.getParcelable(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java)) in requestRoute_ownRoute_writeRouteGranted_ignoresAccessTimeLimits() [all …]
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/data/ |
D | ExerciseRoutesTestData.kt | 3 import android.health.connect.datatypes.ExerciseRoute 4 import android.health.connect.datatypes.ExerciseRoute.Location 126 ): ExerciseRoute { in generateExerciseRouteFromLocations() 136 return ExerciseRoute(locations) in generateExerciseRouteFromLocations()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | BundleHelper.java | 31 import android.health.connect.datatypes.ExerciseRoute; 521 ExerciseRoute route = record.getRoute(); in getExerciseSessionRecordValues() 526 .map(ExerciseRoute.Location::getTime) in getExerciseSessionRecordValues() 531 .mapToDouble(ExerciseRoute.Location::getLatitude) in getExerciseSessionRecordValues() 535 .mapToDouble(ExerciseRoute.Location::getLongitude) in getExerciseSessionRecordValues() 539 .map(ExerciseRoute.Location::getAltitude) in getExerciseSessionRecordValues() 544 .map(ExerciseRoute.Location::getHorizontalAccuracy) in getExerciseSessionRecordValues() 549 .map(ExerciseRoute.Location::getVerticalAccuracy) in getExerciseSessionRecordValues() 639 List<ExerciseRoute.Location> locations = in createExerciseSessionRecord() 651 new ExerciseRoute.Location.Builder( in createExerciseSessionRecord() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/ |
D | MapView.kt | 22 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 23 import android.health.connect.datatypes.ExerciseRoute.Location in <lambda>() 79 fun setRoute(route: ExerciseRoute) { in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/ |
D | FormattedDataEntry.kt | 19 import android.health.connect.datatypes.ExerciseRoute 55 val route: ExerciseRoute? = null
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/ |
D | RouteRequestFragment.kt | 22 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 112 val route = data?.getParcelableExtra(EXTRA_EXERCISE_ROUTE, ExerciseRoute::class.java) in <lambda>()
|
D | InsertRecordFragment.kt | 25 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 196 ExerciseRoute::class.java, // Edge case in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 34 import android.health.connect.datatypes.ExerciseRoute; 248 public static ExerciseRoute buildExerciseRoute() { in buildExerciseRoute() 249 return new ExerciseRoute( in buildExerciseRoute() 256 public static ExerciseRoute.Location buildLocationTimePoint(Instant startTime) { in buildLocationTimePoint() 257 return new ExerciseRoute.Location.Builder( in buildLocationTimePoint()
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | ExerciseSessionInternalTest.java | 22 import android.health.connect.datatypes.ExerciseRoute; 97 ExerciseRoute convertedRoute = internal.getRoute().toExternalRoute(); in assertFieldsAreEqual()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/ |
D | ExerciseSessionTypesValidation.java | 114 import android.health.connect.datatypes.ExerciseRoute; 319 Instant sessionStartTime, Instant sessionEndTime, ExerciseRoute route) { in validateExerciseRouteTimestamps() 324 for (ExerciseRoute.Location location : route.getRouteLocations()) { in validateExerciseRouteTimestamps()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/ |
D | RouteRequestActivity.kt | 22 import android.health.connect.datatypes.ExerciseRoute in <lambda>() 302 private fun finishWithResult(route: ExerciseRoute) { in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/entrydetails/ |
D | DataEntryDetailsFragmentTest.kt | 37 import android.health.connect.datatypes.ExerciseRoute 505 ExerciseRoute(WARSAW_ROUTE) in getFormattedExerciseSession()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 764 public final class ExerciseRoute implements android.os.Parcelable { 765 …ctor public ExerciseRoute(@NonNull java.util.List<android.health.connect.datatypes.ExerciseRoute.L… 767 …method @NonNull public java.util.List<android.health.connect.datatypes.ExerciseRoute.Location> get… 769 …static final android.os.Parcelable.Creator<android.health.connect.datatypes.ExerciseRoute> CREATOR; 772 public static final class ExerciseRoute.Location implements android.os.Parcelable { 781 … final android.os.Parcelable.Creator<android.health.connect.datatypes.ExerciseRoute.Location> CREA… 784 public static final class ExerciseRoute.Location.Builder { 785 …ctor public ExerciseRoute.Location.Builder(@NonNull java.time.Instant, @FloatRange(from=-90.0, to=… 786 method @NonNull public android.health.connect.datatypes.ExerciseRoute.Location build(); 787 …method @NonNull public android.health.connect.datatypes.ExerciseRoute.Location.Builder setAltitude… [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthPermissions.java | 70 import android.health.connect.datatypes.ExerciseRoute;
|