Home
last modified time | relevance | path

Searched refs:toDatastoreKey (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java166 mDatastore.put(toDatastoreKey(packageName), isConsentRevoked); in setConsentForApp()
183 return mDatastore.putIfNew(toDatastoreKey(packageName), isConsentRevoked); in setConsentForAppIfNew()
200 return Boolean.TRUE.equals(mDatastore.get(toDatastoreKey(packageName))); in isConsentRevokedForApp()
235 mDatastore.remove(toDatastoreKey(packageName, packageUid)); in clearConsentForUninstalledApp()
271 String toDatastoreKey(@NonNull String packageName, int packageUid) in toDatastoreKey() method in AppConsentDao
289 String toDatastoreKey(@NonNull String packageName) throws IllegalArgumentException { in toDatastoreKey() method in AppConsentDao
294 return toDatastoreKey(packageName, packageUid); in toDatastoreKey()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DAppConsentManager.java135 mDatastore.put(toDatastoreKey(packageName, packageUid), isConsentRevoked); in setConsentForApp()
152 return mDatastore.putIfNew(toDatastoreKey(packageName, packageUid), isConsentRevoked); in setConsentForAppIfNew()
168 return Boolean.TRUE.equals(mDatastore.get(toDatastoreKey(packageName, packageUid))); in isConsentRevokedForApp()
200 mDatastore.remove(toDatastoreKey(packageName, packageUid)); in clearConsentForUninstalledApp()
212 String toDatastoreKey(@NonNull String packageName, int packageUid) in toDatastoreKey() method in AppConsentManager
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DAppConsentManagerTest.java92 mAppConsentManager.toDatastoreKey( in testPackageNameToDatastoreKeySuccess()
101 mAppConsentManager.toDatastoreKey( in testPackageNameAndUidToDatastoreKeySuccess()
111 mAppConsentManager.toDatastoreKey( in testPackageNameAndInvalidUidToDatastoreKeyThrows()
116 mAppConsentManager.toDatastoreKey( in testPackageNameAndInvalidUidToDatastoreKeyThrows()
155 mAppConsentManager.toDatastoreKey( in testDatastoreKeyConversion()
169 mAppConsentManager.toDatastoreKey( in testDatastoreKeyConversion()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/consent/
DAppConsentDaoTest.java119 mAppConsentDao.toDatastoreKey(AppConsentDaoFixture.APP10_PACKAGE_NAME)); in testPackageNameToDatastoreKeySuccess()
128 mAppConsentDao.toDatastoreKey( in testNotFoundPackageNameToDatastoreKeyThrows()
136 mAppConsentDao.toDatastoreKey( in testPackageNameAndUidToDatastoreKeySuccess()
144 () -> mAppConsentDao.toDatastoreKey(AppConsentDaoFixture.APP10_PACKAGE_NAME, -10)); in testPackageNameAndInvalidUidToDatastoreKeyThrows()
147 () -> mAppConsentDao.toDatastoreKey(AppConsentDaoFixture.APP10_PACKAGE_NAME, 0)); in testPackageNameAndInvalidUidToDatastoreKeyThrows()
186 mAppConsentDao.toDatastoreKey(AppConsentDaoFixture.APP10_PACKAGE_NAME); in testDatastoreKeyConversion()
196 convertedDatastoreKey = mAppConsentDao.toDatastoreKey(convertedPackageName); in testDatastoreKeyConversion()