Searched refs:putIfNew (Results 1 – 4 of 4) sorted by relevance
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/ |
D | BooleanFileDatastoreTest.java | 163 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/ |
D | AppConsentManager.java | 152 return mDatastore.putIfNew(toDatastoreKey(packageName, packageUid), isConsentRevoked); in setConsentForAppIfNew()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/ |
D | AppConsentDao.java | 183 return mDatastore.putIfNew(toDatastoreKey(packageName), isConsentRevoked); in setConsentForAppIfNew()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/storage/ |
D | BooleanFileDatastore.java | 201 public final boolean putIfNew(String key, boolean value) throws IOException { in putIfNew() method in BooleanFileDatastore
|