Home
last modified time | relevance | path

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

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastoreTest.java163 assertThrows(NullPointerException.class, () -> mDatastore.putIfNew(null, true)); in testNullOrEmptyKeyFails()
165 assertThrows(IllegalArgumentException.class, () -> mDatastore.putIfNew("", true)); in testNullOrEmptyKeyFails()
247 .that(mDatastore.putIfNew(TEST_KEY, false)) in testPutIfNew()
261 .that(mDatastore.putIfNew(TEST_KEY, false)) in testPutIfNew()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DAppConsentManager.java152 return mDatastore.putIfNew(toDatastoreKey(packageName, packageUid), isConsentRevoked); in setConsentForAppIfNew()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java183 return mDatastore.putIfNew(toDatastoreKey(packageName), isConsentRevoked); in setConsentForAppIfNew()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastore.java201 public final boolean putIfNew(String key, boolean value) throws IOException { in putIfNew() method in BooleanFileDatastore