Home
last modified time | relevance | path

Searched refs:BooleanFileDatastore (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/
DRollbackHandlingManager.java23 import com.android.adservices.shared.storage.BooleanFileDatastore;
51 private final ArrayMap<Integer, BooleanFileDatastore> mBooleanFileDatastoreMap =
77 BooleanFileDatastore getOrCreateBooleanFileDatastore( in getOrCreateBooleanFileDatastore()
80 BooleanFileDatastore datastore = mBooleanFileDatastoreMap.get(deletionApiType); in getOrCreateBooleanFileDatastore()
84 new BooleanFileDatastore( in getOrCreateBooleanFileDatastore()
100 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in recordAdServicesDataDeletion()
113 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in wasAdServicesDataDeleted()
122 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in getPreviousStoredVersion()
132 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in resetAdServicesDataDeletion()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DBooleanFileDatastoreTest.java38 private final BooleanFileDatastore mDatastore =
39 new BooleanFileDatastore(PPAPI_CONTEXT, FILENAME, DATASTORE_VERSION);
55 .isEqualTo(BooleanFileDatastore.VERSION_KEY); in testGetVersionKey()
63 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
68 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
73 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/
DUxStatesDao.java25 import com.android.adservices.data.common.BooleanFileDatastore;
51 private final BooleanFileDatastore mDatastore;
54 public UxStatesDao(@NonNull BooleanFileDatastore datastore) { in UxStatesDao()
66 BooleanFileDatastore datastore = in getInstance()
67 new BooleanFileDatastore(context, DATASTORE_NAME, DATASTORE_VERSION); in getInstance()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/rollback/
DRollbackHandlingManagerTest.java36 import com.android.adservices.shared.storage.BooleanFileDatastore;
55 private BooleanFileDatastore mDatastore;
60 new BooleanFileDatastore( in setup()
113 BooleanFileDatastore datastore = in testGetOrCreateBooleanFileDatastore()
154 BooleanFileDatastore datastore = in testDump()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastoreTest.java61 private final BooleanFileDatastore mDatastore =
62 new BooleanFileDatastore(VALID_DIR, FILENAME, DATASTORE_VERSION, TEST_VERSION_KEY);
80 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
88 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
96 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
104 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
114 new BooleanFileDatastore( in testConstructor_emptyOrNullArgs()
123 new BooleanFileDatastore( in testConstructor_parentPathDirectoryDoesNotExist()
143 new BooleanFileDatastore( in testConstructor_parentPathDirectoryIsNotAFile()
205 .isEqualTo(BooleanFileDatastore.NO_PREVIOUS_VERSION); in testGetVersionWithNoPreviousWrite()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DBooleanFileDatastore.java34 public final class BooleanFileDatastore class
35 extends com.android.adservices.shared.storage.BooleanFileDatastore {
40 public BooleanFileDatastore(Context adServicesContext, String filename, int datastoreVersion) { in BooleanFileDatastore() method in BooleanFileDatastore
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DAppConsentManager.java21 import com.android.adservices.shared.storage.BooleanFileDatastore;
57 private final BooleanFileDatastore mDatastore;
61 public AppConsentManager(@NonNull BooleanFileDatastore datastore) { in AppConsentManager()
79 BooleanFileDatastore datastore = in createAppConsentManager()
80 new BooleanFileDatastore( in createAppConsentManager()
DConsentManager.java21 import com.android.adservices.shared.storage.BooleanFileDatastore;
67 private final BooleanFileDatastore mDatastore;
86 private ConsentManager(@NonNull BooleanFileDatastore datastore) { in ConsentManager()
105 BooleanFileDatastore datastore = createAndInitBooleanFileDatastore(consentDataStoreDir); in createConsentManager()
112 static BooleanFileDatastore createAndInitBooleanFileDatastore(String consentDataStoreDir) in createAndInitBooleanFileDatastore()
115 BooleanFileDatastore datastore = in createAndInitBooleanFileDatastore()
116 new BooleanFileDatastore( in createAndInitBooleanFileDatastore()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAppConsentForRStorageManagerTest.java30 import com.android.adservices.data.common.BooleanFileDatastore;
51 private BooleanFileDatastore mAppDaoDatastore;
52 private BooleanFileDatastore mConsentDatastore;
62 new BooleanFileDatastore( in setup()
68 new BooleanFileDatastore( in setup()
DAppConsentStorageManagerTest.java41 import com.android.adservices.data.common.BooleanFileDatastore;
72 private BooleanFileDatastore mAppDaoDatastore;
73 private BooleanFileDatastore mConsentDatastore;
82 new BooleanFileDatastore( in setup()
88 new BooleanFileDatastore( in setup()
DConsentManagerV2Test.java109 import com.android.adservices.data.common.BooleanFileDatastore;
214 private BooleanFileDatastore mDatastore;
215 private BooleanFileDatastore mConsentDatastore;
258 new BooleanFileDatastore( in setup()
2851 BooleanFileDatastore mockDatastore = mock(BooleanFileDatastore.class); in testHandleConsentMigrationFromAppSearchIfNeeded_notMigrated()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java25 import com.android.adservices.data.common.BooleanFileDatastore;
66 private final BooleanFileDatastore mDatastore;
73 @NonNull BooleanFileDatastore datastore, @NonNull PackageManager packageManager) { in AppConsentDao()
88 BooleanFileDatastore datastore = in getInstance()
89 new BooleanFileDatastore(context, DATASTORE_NAME, DATASTORE_VERSION); in getInstance()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/
DUxStatesDaoTest.java25 import com.android.adservices.data.common.BooleanFileDatastore;
41 BooleanFileDatastore booleanFileDatastore = new BooleanFileDatastore( in setup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentManagerV2.java43 import com.android.adservices.data.common.BooleanFileDatastore;
121 private final BooleanFileDatastore mDatastore;
151 @NonNull BooleanFileDatastore booleanFileDatastore, in ConsentManagerV2()
238 BooleanFileDatastore datastore = createAndInitializeDataStore(context); in getInstance()
830 static BooleanFileDatastore createAndInitializeDataStore(@NonNull Context context) { in createAndInitializeDataStore()
831 BooleanFileDatastore booleanFileDatastore = in createAndInitializeDataStore()
832 new BooleanFileDatastore( in createAndInitializeDataStore()
864 @NonNull BooleanFileDatastore datastore, in handleConsentMigrationIfNeeded()
942 @NonNull BooleanFileDatastore datastore, in migratePpApiConsentToSystemService()
1039 @NonNull Context context, @NonNull BooleanFileDatastore datastore) { in clearPpApiConsent()
[all …]
DAppConsentForRStorageManager.java23 import com.android.adservices.data.common.BooleanFileDatastore;
52 BooleanFileDatastore datastore, in AppConsentForRStorageManager()
DAppConsentStorageManager.java24 import com.android.adservices.data.common.BooleanFileDatastore;
48 private final BooleanFileDatastore mDatastore;
60 BooleanFileDatastore datastore, AppConsentDao appConsentDao, UxStatesDao uxStatesDao) { in AppConsentStorageManager()
DConsentManager.java52 import com.android.adservices.data.common.BooleanFileDatastore;
132 private final BooleanFileDatastore mDatastore;
160 @NonNull BooleanFileDatastore booleanFileDatastore, in ConsentManager()
227 BooleanFileDatastore datastore = createAndInitializeDataStore(context); in getInstance()
1521 @UserManualInteraction int interaction, BooleanFileDatastore datastore)
1575 static BooleanFileDatastore createAndInitializeDataStore(@NonNull Context context) {
1576 BooleanFileDatastore booleanFileDatastore =
1577 new BooleanFileDatastore(
1619 @NonNull BooleanFileDatastore datastore,
1782 @NonNull BooleanFileDatastore datastore,
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastore.java62 public class BooleanFileDatastore { class
77 public BooleanFileDatastore( in BooleanFileDatastore() method in BooleanFileDatastore
82 public BooleanFileDatastore(File file, int datastoreVersion, String versionKey) { in BooleanFileDatastore() method in BooleanFileDatastore
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java36 import com.android.adservices.shared.storage.BooleanFileDatastore;
58 private BooleanFileDatastore mDatastore;
63 new BooleanFileDatastore( in setup()
94 BooleanFileDatastore datastore = null; in testCreateAndInitBooleanFileDatastore()
DAppConsentManagerTest.java39 import com.android.adservices.shared.storage.BooleanFileDatastore;
62 private BooleanFileDatastore mDatastoreSpy =
63 new BooleanFileDatastore(
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java32 import com.android.adservices.data.common.BooleanFileDatastore;
360 BooleanFileDatastore datastore, in shouldInitConsentDataFromAppSearch()
433 @NonNull BooleanFileDatastore datastore, in migrateConsentDataIfNeeded()
DAppSearchConsentStorageManager.java30 import com.android.adservices.data.common.BooleanFileDatastore;
303 @NonNull BooleanFileDatastore datastore, in migrateConsentDataIfNeeded()
691 BooleanFileDatastore datastore, in shouldInitConsentDataFromAppSearch()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/consent/
DAppConsentDaoTest.java43 import com.android.adservices.data.common.BooleanFileDatastore;
64 private BooleanFileDatastore mDatastoreSpy =
65 new BooleanFileDatastore(mContext, AppConsentDaoFixture.TEST_DATASTORE_NAME, 1);
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java41 import com.android.adservices.data.common.BooleanFileDatastore;
85 @Mock private BooleanFileDatastore mDatastore;
DAppSearchConsentStorageManagerTest.java40 import com.android.adservices.data.common.BooleanFileDatastore;
76 @Mock private BooleanFileDatastore mDatastore;

12