Home
last modified time | relevance | path

Searched refs:datastore (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DGrantTimePersistenceUnitTest.java110 FirstGrantTimeDatastore datastore = FirstGrantTimeDatastore.createInstance(); in testWriteReadData_packageAndSharedUserState_restoredCorrectly() local
111 datastore.writeForUser(DEFAULT_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_packageAndSharedUserState_restoredCorrectly()
112 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_packageAndSharedUserState_restoredCorrectly()
118 FirstGrantTimeDatastore datastore = FirstGrantTimeDatastore.createInstance(); in testWriteReadData_multipleSharedUserState_restoredCorrectly() local
119 datastore.writeForUser(SHARED_USERS_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_multipleSharedUserState_restoredCorrectly()
120 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_multipleSharedUserState_restoredCorrectly()
126 FirstGrantTimeDatastore datastore = FirstGrantTimeDatastore.createInstance(); in testWriteReadData_multiplePackagesState_restoredCorrectly() local
127 datastore.writeForUser(PACKAGES_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_multiplePackagesState_restoredCorrectly()
128 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_multiplePackagesState_restoredCorrectly()
134 FirstGrantTimeDatastore datastore = FirstGrantTimeDatastore.createInstance(); in testWriteReadData_emptyState_restoredCorrectly() local
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/
DRollbackHandlingManager.java80 BooleanFileDatastore datastore = mBooleanFileDatastoreMap.get(deletionApiType); in getOrCreateBooleanFileDatastore() local
81 if (datastore == null) { in getOrCreateBooleanFileDatastore()
83 datastore = in getOrCreateBooleanFileDatastore()
90 mBooleanFileDatastoreMap.put(deletionApiType, datastore); in getOrCreateBooleanFileDatastore()
91 datastore.initialize(); in getOrCreateBooleanFileDatastore()
93 return datastore; in getOrCreateBooleanFileDatastore()
100 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in recordAdServicesDataDeletion() local
103 datastore.put(DELETION_OCCURRED_KEY, /* value */ true); in recordAdServicesDataDeletion()
113 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in wasAdServicesDataDeleted() local
115 return datastore.get(DELETION_OCCURRED_KEY, /* defaultValue */ false); in wasAdServicesDataDeleted()
[all …]
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_callbacks_test.rs78 let datastore = callback_manager.get_datastore(SERVER_ID); in test_read_characteristic_response() localVariable
81 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_read_characteristic_response()
101 let datastore = callback_manager.get_datastore(SERVER_ID); in test_sequential_reads() localVariable
104 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_sequential_reads()
111 let datastore = callback_manager.get_datastore(SERVER_ID); in test_sequential_reads() localVariable
114 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_sequential_reads()
135 let datastore = callback_manager.get_datastore(SERVER_ID); in test_concurrent_reads() localVariable
138 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_concurrent_reads()
142 let datastore = callback_manager.get_datastore(SERVER_ID); in test_concurrent_reads() localVariable
145 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_concurrent_reads()
[all …]
Dgatt_server_test.rs85 let (datastore, data_rx) = MockDatastore::new(); in create_server_and_open_connection()
104 datastore, in create_server_and_open_connection()
385 let (datastore, mut data_rx_2) = MockDatastore::new(); in test_multiple_servers()
399 datastore, in test_multiple_servers()
478 let (datastore, _) = MockDatastore::new(); in test_ignored_service_change_indication()
486 datastore, in test_ignored_service_change_indication()
597 let (datastore, _) = MockDatastore::new(); in test_service_change_indication()
605 datastore, in test_service_change_indication()
/packages/modules/Bluetooth/system/rust/src/gatt/
Dcallbacks.rs229 let (datastore, mut rx) = MockDatastore::new(); in test_regular_read_invoke()
234 &datastore, in test_regular_read_invoke()
256 let (datastore, mut rx) = MockDatastore::new(); in test_regular_read_response()
261 &datastore, in test_regular_read_response()
283 let (datastore, mut rx) = MockDatastore::new(); in test_rejected_read_blob()
287 &datastore, in test_rejected_read_blob()
304 let (datastore, mut rx) = MockDatastore::new(); in test_write_request_invoke()
309 &datastore, in test_write_request_invoke()
338 let (datastore, mut rx) = MockDatastore::new(); in test_write_request_response()
343 &datastore, in test_write_request_response()
[all …]
Dserver.rs122 datastore: impl RawGattDatastore + 'static, in register_gatt_service()
127 .add_service_with_handles(service, Rc::new(datastore)) in register_gatt_service()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java86 private ConsentManager(@NonNull BooleanFileDatastore datastore) { in ConsentManager() argument
87 Objects.requireNonNull(datastore); in ConsentManager()
89 mDatastore = datastore; in ConsentManager()
105 BooleanFileDatastore datastore = createAndInitBooleanFileDatastore(consentDataStoreDir); in createConsentManager() local
107 return new ConsentManager(datastore); in createConsentManager()
115 BooleanFileDatastore datastore = in createAndInitBooleanFileDatastore() local
118 datastore.initialize(); in createAndInitBooleanFileDatastore()
122 if (datastore.get(NOTIFICATION_DISPLAYED_ONCE) == null) { in createAndInitBooleanFileDatastore()
123 datastore.put(NOTIFICATION_DISPLAYED_ONCE, false); in createAndInitBooleanFileDatastore()
125 if (datastore.get(GA_UX_NOTIFICATION_DISPLAYED_ONCE) == null) { in createAndInitBooleanFileDatastore()
[all …]
DAppConsentManager.java61 public AppConsentManager(@NonNull BooleanFileDatastore datastore) { in AppConsentManager() argument
62 Objects.requireNonNull(datastore); in AppConsentManager()
64 mDatastore = datastore; in AppConsentManager()
79 BooleanFileDatastore datastore = in createAppConsentManager() local
82 datastore.initialize(); in createAppConsentManager()
84 return new AppConsentManager(datastore); in createAppConsentManager()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentManagerV2.java238 BooleanFileDatastore datastore = createAndInitializeDataStore(context); in getInstance() local
262 datastore, in getInstance()
293 datastore, in getInstance()
302 datastore, in getInstance()
308 new AppConsentStorageManager(datastore, appConsentDao, uxStatesDao); in getInstance()
321 datastore, in getInstance()
864 @NonNull BooleanFileDatastore datastore, in handleConsentMigrationIfNeeded() argument
879 Objects.requireNonNull(datastore); in handleConsentMigrationIfNeeded()
898 context, datastore, adServicesManager, statsdAdServicesLogger); in handleConsentMigrationIfNeeded()
902 context, datastore, adServicesManager, statsdAdServicesLogger); in handleConsentMigrationIfNeeded()
[all …]
DConsentManager.java227 BooleanFileDatastore datastore = createAndInitializeDataStore(context); in getInstance() local
249 datastore, in getInstance()
281 datastore, in getInstance()
297 datastore, in getInstance()
1521 @UserManualInteraction int interaction, BooleanFileDatastore datastore)
1525 datastore.put(ConsentConstants.MANUAL_INTERACTION_WITH_CONSENT_RECORDED, false);
1528 datastore.remove(ConsentConstants.MANUAL_INTERACTION_WITH_CONSENT_RECORDED);
1531 datastore.put(ConsentConstants.MANUAL_INTERACTION_WITH_CONSENT_RECORDED, true);
1619 @NonNull BooleanFileDatastore datastore,
1634 Objects.requireNonNull(datastore);
[all …]
DAppConsentForRStorageManager.java52 BooleanFileDatastore datastore, in AppConsentForRStorageManager() argument
56 super(datastore, appConsentDao, uxStatesDao); in AppConsentForRStorageManager()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java360 BooleanFileDatastore datastore, in shouldInitConsentDataFromAppSearch() argument
395 && (datastore.get(ConsentConstants.WAS_U18_NOTIFICATION_DISPLAYED) in shouldInitConsentDataFromAppSearch()
398 datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) in shouldInitConsentDataFromAppSearch()
399 || datastore.get(ConsentConstants.GA_UX_NOTIFICATION_DISPLAYED_ONCE) in shouldInitConsentDataFromAppSearch()
433 @NonNull BooleanFileDatastore datastore, in migrateConsentDataIfNeeded() argument
438 Objects.requireNonNull(datastore); in migrateConsentDataIfNeeded()
459 sharedPreferences, datastore, adServicesManager, isU18AppSearchMigrationEnabled)) { in migrateConsentDataIfNeeded()
469 datastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
473 datastore.put(ConsentConstants.GA_UX_NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
477 datastore.put(ConsentConstants.WAS_U18_NOTIFICATION_DISPLAYED, true); in migrateConsentDataIfNeeded()
[all …]
DAppSearchConsentStorageManager.java303 @NonNull BooleanFileDatastore datastore, in migrateConsentDataIfNeeded() argument
308 Objects.requireNonNull(datastore); in migrateConsentDataIfNeeded()
329 sharedPreferences, datastore, adServicesManager, isU18AppSearchMigrationEnabled)) { in migrateConsentDataIfNeeded()
339 datastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
343 datastore.put(ConsentConstants.GA_UX_NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
347 datastore.put(ConsentConstants.WAS_U18_NOTIFICATION_DISPLAYED, true); in migrateConsentDataIfNeeded()
380 datastore.put(featureType.name(), true); in migrateConsentDataIfNeeded()
382 datastore.put(featureType.name(), false); in migrateConsentDataIfNeeded()
691 BooleanFileDatastore datastore, in shouldInitConsentDataFromAppSearch() argument
726 && (datastore.get(ConsentConstants.WAS_U18_NOTIFICATION_DISPLAYED) in shouldInitConsentDataFromAppSearch()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/
DUxStatesDao.java54 public UxStatesDao(@NonNull BooleanFileDatastore datastore) { in UxStatesDao() argument
55 Objects.requireNonNull(datastore); in UxStatesDao()
57 mDatastore = datastore; in UxStatesDao()
66 BooleanFileDatastore datastore = in getInstance() local
68 sUxStatesDao = new UxStatesDao(datastore); in getInstance()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Dgatt_database.rs169 datastore: Rc<dyn RawGattDatastore>, in add_service_with_handles()
244 AttAttributeBackingValue::DynamicCharacteristic(datastore.clone()), in add_service_with_handles()
255 AttAttributeBackingValue::DynamicDescriptor(datastore.clone()), in add_service_with_handles()
368 AttAttributeBackingValue::DynamicCharacteristic(datastore) => { in read_attribute()
369 datastore in read_attribute()
378 AttAttributeBackingValue::DynamicDescriptor(datastore) => { in read_attribute()
379 datastore in read_attribute()
412 AttAttributeBackingValue::DynamicCharacteristic(datastore) => { in write_attribute()
413 datastore in write_attribute()
423 AttAttributeBackingValue::DynamicDescriptor(datastore) => { in write_attribute()
[all …]
Datt_server_bearer.rs328 let (datastore, mut data_rx) = MockDatastore::new(); in test_concurrent_transaction_failure()
329 let datastore = Rc::new(datastore); in test_concurrent_transaction_failure() localVariable
350 datastore, in test_concurrent_transaction_failure()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java73 @NonNull BooleanFileDatastore datastore, @NonNull PackageManager packageManager) { in AppConsentDao()
74 Objects.requireNonNull(datastore); in AppConsentDao()
77 mDatastore = datastore; in AppConsentDao()
88 BooleanFileDatastore datastore = in getInstance() local
91 sAppConsentDao = new AppConsentDao(datastore, packageManager); in getInstance()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/rollback/
DRollbackHandlingManagerTest.java113 BooleanFileDatastore datastore = in testGetOrCreateBooleanFileDatastore() local
118 assertThat(datastore).isNotNull(); in testGetOrCreateBooleanFileDatastore()
154 BooleanFileDatastore datastore = in testDump() local
175 dump(pw -> datastore.dump(pw, prefix + DUMP_PREFIX + DUMP_PREFIX + DUMP_PREFIX)); in testDump()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySettingsStorage.java43 import com.android.settingslib.datastore.BackupCodec;
44 import com.android.settingslib.datastore.BackupContext;
45 import com.android.settingslib.datastore.BackupRestoreEntity;
46 import com.android.settingslib.datastore.BackupRestoreStorageManager;
47 import com.android.settingslib.datastore.EntityBackupResult;
48 import com.android.settingslib.datastore.ObservableBackupRestoreStorage;
49 import com.android.settingslib.datastore.RestoreContext;
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datastore/launcheritem/
DLauncherItemListSource.java17 package com.android.car.carlauncher.datastore.launcheritem;
22 import com.android.car.carlauncher.datastore.ProtoDataSource;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DKitchenSinkBackupTransport.java257 ArrayMap<String, Integer> datastore = new ArrayMap<>(); in performBackupInternal() local
258 int totalSize = parseKeySizes(packageDir, datastore); in performBackupInternal()
274 final Integer curSize = datastore.get(op.mKey); in performBackupInternal()
348 private int parseKeySizes(File packageDir, ArrayMap<String, Integer> datastore) { in parseKeySizes() argument
363 datastore.put(key, size); in parseKeySizes()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datastore/
DDataSourceController.java17 package com.android.car.carlauncher.datastore;
/packages/apps/Car/Launcher/libs/appgrid/lib/
Dbuild.gradle102 implementation "androidx.datastore:datastore:1.0.0"
/packages/apps/Settings/src/com/android/settings/backup/
DSettingsBackupHelper.java26 import com.android.settingslib.datastore.BackupRestoreStorageManager;
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/apporder/
DAppOrderController.java32 import com.android.car.carlauncher.datastore.DataSourceController;
33 import com.android.car.carlauncher.datastore.launcheritem.LauncherItemListSource;

12