Home
last modified time | relevance | path

Searched refs:FileCompatUtils (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DFileCompatUtilsTest.java61 assertThat(FileCompatUtils.getAdservicesFilename(BASE_FILENAME)) in testShouldPrependAdservices_SMinus()
68 assertThat(FileCompatUtils.getAdservicesFilename(FILENAME_STARTS_WITH_ADSERVICES)) in testShouldNotPrependAdservicesIfNameStartsWithAdservices_Sminus()
70 assertThat(FileCompatUtils.getAdservicesFilename(ANOTHER_FILENAME_STARTS_WITH_ADSERVICES)) in testShouldNotPrependAdservicesIfNameStartsWithAdservices_Sminus()
78 assertThat(FileCompatUtils.getAdservicesFilename(BASE_FILENAME)).isEqualTo(BASE_FILENAME); in testShouldNotPrependAdservices_TPlus()
85 FileCompatUtils.roomDatabaseBuilderHelper(mContext, CacheDatabase.class, BASE_FILENAME); in testRoomDatabaseBuilderHelper_shouldPrependAdservices_SMinus()
100 FileCompatUtils.roomDatabaseBuilderHelper( in testRoomDatabaseBuilderHelper_shouldNotPrependAdservices_TPlus()
116 File file = FileCompatUtils.getDatabasePathHelper(mContext, BASE_FILENAME); in testGetDatabasePathHelper_shouldPrependAdservices_SMinus()
124 File file = FileCompatUtils.getDatabasePathHelper(mContext, BASE_FILENAME); in testGetDatabasePathHelper_shouldNotPrependAdservices_TPlus()
132 File file = FileCompatUtils.newFileHelper(new File("parent", "child"), BASE_FILENAME); in testNewFileHelper_shouldPrependAdservices_SMinus()
140 File file = FileCompatUtils.newFileHelper(new File("parent", "child"), BASE_FILENAME); in testNewFileHelper_shouldNotPrependAdservices_TPlus()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/signals/
DEncoderPersistenceDao.java27 import com.android.adservices.service.common.compat.FileCompatUtils;
118 FileCompatUtils.newFileHelper( in deleteEncoder()
119 FileCompatUtils.newFileHelper(mFilesDir, ENCODERS_DIR), in deleteEncoder()
144 File encodersDir = FileCompatUtils.newFileHelper(mFilesDir, ENCODERS_DIR); in createEncodersDirectoryIfDoesNotExist()
162 File file = FileCompatUtils.newFileHelper(directory, fileName); in createFileInDirectory()
211 File file = FileCompatUtils.newFileHelper(directory, fileName); in readDataFromFile()
DProtectedSignalsDatabase.java25 import com.android.adservices.service.common.compat.FileCompatUtils;
49 FileCompatUtils.getAdservicesFilename("protectedsignals.db");
66 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/
DCobaltDataServiceFactory.java23 import com.android.adservices.service.common.compat.FileCompatUtils;
38 private static final String DB_NAME = FileCompatUtils.getAdservicesFilename("cobalt_db");
46 FileCompatUtils.roomDatabaseBuilderHelper(context, CobaltDatabase.class, DB_NAME) in createDataService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DAdSelectionDebugReportingDatabase.java27 import com.android.adservices.service.common.compat.FileCompatUtils;
41 FileCompatUtils.getAdservicesFilename("adselection_debug_reporting.db");
56 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
DSharedStorageDatabase.java28 import com.android.adservices.service.common.compat.FileCompatUtils;
47 FileCompatUtils.getAdservicesFilename("sharedstorage.db");
63 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
DAdSelectionServerDatabase.java28 import com.android.adservices.service.common.compat.FileCompatUtils;
54 FileCompatUtils.getAdservicesFilename("adselectionserver.db");
67 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
DAdSelectionDatabase.java28 import com.android.adservices.service.common.compat.FileCompatUtils;
65 FileCompatUtils.getAdservicesFilename("adselection.db");
80 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/kanon/
DKAnonDatabase.java27 import com.android.adservices.service.common.compat.FileCompatUtils;
38 public static final String DATABASE_NAME = FileCompatUtils.getAdservicesFilename("kanon.db");
53 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/cache/
DCacheDatabase.java30 import com.android.adservices.service.common.compat.FileCompatUtils;
49 FileCompatUtils.getAdservicesFilename("fledgehttpcache.db");
60 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DCustomAudienceDatabase.java32 import com.android.adservices.service.common.compat.FileCompatUtils;
62 FileCompatUtils.getAdservicesFilename("customaudience.db");
107 FileCompatUtils.roomDatabaseBuilderHelper( in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/
DUxStatesDao.java26 import com.android.adservices.service.common.compat.FileCompatUtils;
41 FileCompatUtils.getAdservicesFilename("adservices.uxstates.xml");
45 FileCompatUtils.getAdservicesFilename("adservices.uxstates.test.xml");
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DBooleanFileDatastore.java21 import com.android.adservices.service.common.compat.FileCompatUtils;
42 FileCompatUtils.newFileHelper( in BooleanFileDatastore()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceDebugProxy.java38 import com.android.adservices.service.common.compat.FileCompatUtils;
63 FileCompatUtils.getSharedPreferencesHelper( in AdServicesExtDataStorageServiceDebugProxy()
65 FileCompatUtils.getAdservicesFilename(KEY_EXT_ADEXT_SERVICE_PROXY_PREFS), in AdServicesExtDataStorageServiceDebugProxy()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentConstants.java19 import com.android.adservices.service.common.compat.FileCompatUtils;
54 FileCompatUtils.getAdservicesFilename("ConsentManagerStorageIdentifier.xml");
DAdExtDataConsentMigrationUtilsV2.java37 import com.android.adservices.service.common.compat.FileCompatUtils;
75 FileCompatUtils.getSharedPreferencesHelper( in handleConsentMigrationFromAdExtDataIfNeededV2()
DAdExtDataConsentMigrationUtils.java38 import com.android.adservices.service.common.compat.FileCompatUtils;
76 FileCompatUtils.getSharedPreferencesHelper( in handleConsentMigrationFromAdExtDataIfNeeded()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DFileCompatUtils.java32 public final class FileCompatUtils { class
35 private FileCompatUtils() { in FileCompatUtils() method in FileCompatUtils
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/
DDbHelper.java44 import com.android.adservices.service.common.compat.FileCompatUtils;
70 FileCompatUtils.getAdservicesFilename("adservices.db");
87 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in DbHelper()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/
DDbHelperTest.java55 import com.android.adservices.service.common.compat.FileCompatUtils;
119 final String databaseName = FileCompatUtils.getAdservicesFilename("testsize.db"); in testGetDbFileSize()
193 String dbName = FileCompatUtils.getAdservicesFilename("test_db"); in testOnUpgrade_topicsV8Migration_loggedTopicColumnExist()
330 String dbName = FileCompatUtils.getAdservicesFilename("test_db"); in testOnUpgrade_measurementMigration_tablesExist()
343 String dbName = FileCompatUtils.getAdservicesFilename("test_db_2"); in testOnUpgrade_measurementMigration_tablesDoNotExist()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchMeasurementRollbackWorker.java32 import com.android.adservices.service.common.compat.FileCompatUtils;
52 FileCompatUtils.getAdservicesFilename("measurement_rollback");
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDbHelper.java63 import com.android.adservices.service.common.compat.FileCompatUtils;
78 FileCompatUtils.getAdservicesFilename("adservices_msmt.db");
91 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in MeasurementDbHelper()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/
DSharedDbHelper.java45 import com.android.adservices.service.common.compat.FileCompatUtils;
69 FileCompatUtils.getAdservicesFilename("adservices_shared.db");
82 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in SharedDbHelper()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppManifestConfigMetricsLogger.java35 import com.android.adservices.service.common.compat.FileCompatUtils;
53 FileCompatUtils.getAdservicesFilename("AppManifestConfigMetricsLogger");
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java26 import com.android.adservices.service.common.compat.FileCompatUtils;
50 FileCompatUtils.getAdservicesFilename("adservices.appconsent.xml");

12