Home
last modified time | relevance | path

Searched refs:isPackageStillInstalled (Results 1 – 2 of 2) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DPackageChangedReceiverTest.java722 private void validateConsentWhenPackageUidAbsent(Intent intent, boolean isPackageStillInstalled) in validateConsentWhenPackageUidAbsent() argument
740 doReturn(isPackageStillInstalled) in validateConsentWhenPackageUidAbsent()
742 .isPackageStillInstalled(any(), anyString()); in validateConsentWhenPackageUidAbsent()
753 .isEqualTo(!isPackageStillInstalled); in validateConsentWhenPackageUidAbsent()
975 assertThat(receiver.isPackageStillInstalled(context, packageNamePrefix + 0)).isTrue(); in testIsPackageStillInstalled()
976 assertThat(receiver.isPackageStillInstalled(context, packageNamePrefix + count)).isFalse(); in testIsPackageStillInstalled()
1023 doReturn(false).when(spyReceiver).isPackageStillInstalled(any(), anyString()); in testAppConsentDeletion_onR()
1044 doReturn(false).when(spyReceiver).isPackageStillInstalled(any(), anyString()); in testClearConsentNotCalled_WhenPackageUidInvalid_OnTPlus()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DPackageChangedReceiver.java344 if (!isPackageStillInstalled(context, packageName)) { in consentOnPackageFullyRemoved()
372 boolean isPackageStillInstalled(@NonNull Context context, @NonNull String packageName) { in isPackageStillInstalled() method in PackageChangedReceiver