Home
last modified time | relevance | path

Searched refs:PermissionMigrationPayload (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DPermissionMigrationPayload.java36 public final class PermissionMigrationPayload extends MigrationPayload implements Parcelable { class
39 public static final Creator<PermissionMigrationPayload> CREATOR =
42 public PermissionMigrationPayload createFromParcel(Parcel in) {
44 return new PermissionMigrationPayload(in);
48 public PermissionMigrationPayload[] newArray(int size) {
49 return new PermissionMigrationPayload[size];
57 private PermissionMigrationPayload( in PermissionMigrationPayload() method in PermissionMigrationPayload
66 PermissionMigrationPayload(@NonNull Parcel in) { in PermissionMigrationPayload() method in PermissionMigrationPayload
151 public PermissionMigrationPayload build() { in build()
152 return new PermissionMigrationPayload( in build()
DMigrationPayload.java62 return new PermissionMigrationPayload(source);
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DPermissionMigrationPayloadTest.java20 import android.health.connect.migration.PermissionMigrationPayload;
43 final PermissionMigrationPayload payload = in createdWithoutSetters_validData()
44 new PermissionMigrationPayload.Builder( in createdWithoutSetters_validData()
55 final PermissionMigrationPayload payload = in createdWithSetters_validData()
56 new PermissionMigrationPayload.Builder("", Instant.now()) in createdWithSetters_validData()
DDataMigrationTest.java75 import android.health.connect.migration.PermissionMigrationPayload;
591 new PermissionMigrationPayload.Builder(APP_PACKAGE_NAME, Instant.now()) in migratePermissions_hasValidPermissions_validPermissionsGranted()
614 new PermissionMigrationPayload.Builder(APP_PACKAGE_NAME, Instant.now()) in migratePermissions_allInvalidPermissions_throwsMigrationException()
667 new PermissionMigrationPayload.Builder(APP_PACKAGE_NAME, Instant.now()) in migratePriority_additionalAppsInMigrationPayload_prioritySaved()
673 new PermissionMigrationPayload.Builder(APP_PACKAGE_NAME_2, Instant.now()) in migratePriority_additionalAppsInMigrationPayload_prioritySaved()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java28 import android.health.connect.migration.PermissionMigrationPayload;
122 } else if (payload instanceof PermissionMigrationPayload) { in migrateEntity()
123 migratePermissions((PermissionMigrationPayload) payload); in migrateEntity()
163 private void migratePermissions(@NonNull PermissionMigrationPayload payload) { in migratePermissions()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/migration/
DHealthConnectPermissionsMigrationTest.java35 import android.health.connect.migration.PermissionMigrationPayload;
92 new PermissionMigrationPayload.Builder(DEFAULT_APP_PACKAGE, firstGrantTime) in testMigratePermissions_permissionFirstGrantTimeMigrated()
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt289 …public final class PermissionMigrationPayload extends android.health.connect.migration.MigrationPa…
294 …android.os.Parcelable.Creator<android.health.connect.migration.PermissionMigrationPayload> CREATOR;
297 public static final class PermissionMigrationPayload.Builder {
298 ctor public PermissionMigrationPayload.Builder(@NonNull String, @NonNull java.time.Instant);
299 …method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder addPerm…
300 method @NonNull public android.health.connect.migration.PermissionMigrationPayload build();
301 …method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder setFirs…
302 …method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder setHold…