Searched refs:SELF_PACKAGE_NAME (Results 1 – 4 of 4) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | PermissionPackageChangesOrchestratorTest.java | 49 private static final String SELF_PACKAGE_NAME = "com.android.healthconnect.unittests"; field in PermissionPackageChangesOrchestratorTest 82 mCurrentUid = mContext.getPackageManager().getPackageUid(SELF_PACKAGE_NAME, 0); in setUp() 93 .updateStateAndGetIfIntentWasRemoved(eq(SELF_PACKAGE_NAME), eq(CURRENT_USER)); in testPackageAdded_callsTrackerToUpdateState_noGrantTimeOrPermsCalls() 95 .revokeAllHealthPermissions(eq(SELF_PACKAGE_NAME), anyString(), eq(CURRENT_USER)); in testPackageAdded_callsTrackerToUpdateState_noGrantTimeOrPermsCalls() 97 .onPackageRemoved(eq(SELF_PACKAGE_NAME), eq(mCurrentUid), eq(CURRENT_USER)); in testPackageAdded_callsTrackerToUpdateState_noGrantTimeOrPermsCalls() 105 .updateStateAndGetIfIntentWasRemoved(eq(SELF_PACKAGE_NAME), eq(CURRENT_USER)); in testPackageChanged_intentWasRemoved_revokesPerms() 107 .revokeAllHealthPermissions(eq(SELF_PACKAGE_NAME), anyString(), eq(CURRENT_USER)); in testPackageChanged_intentWasRemoved_revokesPerms() 116 .onPackageRemoved(eq(SELF_PACKAGE_NAME), eq(mCurrentUid), eq(CURRENT_USER)); in testPackageRemoved_resetsGrantTime() 138 .onPackageRemoved(eq(SELF_PACKAGE_NAME), eq(mCurrentUid), eq(CURRENT_USER)); in testPackageReplaced_noGrantTimeResetsOrPermsRevokes() 140 .revokeAllHealthPermissions(eq(SELF_PACKAGE_NAME), anyString(), eq(CURRENT_USER)); in testPackageReplaced_noGrantTimeResetsOrPermsRevokes() [all …]
|
D | FirstGrantTimeUnitTest.java | 76 private static final String SELF_PACKAGE_NAME = "com.android.healthconnect.unittests"; field in FirstGrantTimeUnitTest 101 when(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in setUp() 128 Arrays.asList(new Pair<>(SELF_PACKAGE_NAME, 0), new Pair<>(anotherPackage, 1)); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 149 currentGrantTimeState.setPackageGrantTime(SELF_PACKAGE_NAME, instant1); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 159 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 164 mGrantTimeManager.setFirstGrantTime(SELF_PACKAGE_NAME, instant3, CURRENT_USER); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 169 assertThat(newUserGrantTimeState.getPackageGrantTimes().get(SELF_PACKAGE_NAME)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 182 when(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in testCurrentPackage_intentNotSupported_grantTimeIsNull() 184 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)).isEmpty(); in testCurrentPackage_intentNotSupported_grantTimeIsNull() 205 currentGrantTimeState.setPackageGrantTime(SELF_PACKAGE_NAME, now); in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock() [all …]
|
D | HealthPermissionIntentAppsTrackerTest.java | 42 private static final String SELF_PACKAGE_NAME = "com.android.healthconnect.unittests"; field in HealthPermissionIntentAppsTrackerTest 64 assertThat(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in testCheckPackage_packageSupportsIntent_returnsTrue() 71 assertThat(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in testCheckPackage_packageDoesntSupportIntent_returnsFalse() 78 assertThat(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in testUpdatePackageState_packageSupportIntentRemoved_returnsRemovedIntentTrue() 81 assertThat(mTracker.updateStateAndGetIfIntentWasRemoved(SELF_PACKAGE_NAME, CURRENT_USER)) in testUpdatePackageState_packageSupportIntentRemoved_returnsRemovedIntentTrue() 83 assertThat(mTracker.supportsPermissionUsageIntent(SELF_PACKAGE_NAME, CURRENT_USER)) in testUpdatePackageState_packageSupportIntentRemoved_returnsRemovedIntentTrue()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectAccessLogsTest.java | 58 private static final String SELF_PACKAGE_NAME = "android.healthconnect.cts"; field in HealthConnectAccessLogsTest 92 assertThat(accessLog.getPackageName()).isEqualTo(SELF_PACKAGE_NAME); in testAccessLogs_read_singleRecordType() 137 assertThat(accessLog.getPackageName()).isEqualTo(SELF_PACKAGE_NAME); in testAccessLogs_update_singleRecordType() 170 assertThat(accessLog.getPackageName()).isEqualTo(SELF_PACKAGE_NAME); in testAccessLogs_update_multipleRecordTypes() 190 assertThat(accessLog.getPackageName()).isEqualTo(SELF_PACKAGE_NAME); in testAccessLogs_insert_singleRecordType() 213 assertThat(accessLog.getPackageName()).isEqualTo(SELF_PACKAGE_NAME); in testAccessLogs_insert_multipleRecordTypes()
|