Home
last modified time | relevance | path

Searched refs:KeyValueData (Results 1 – 19 of 19) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DKeyValueData.java32 public class KeyValueData { class
50 private KeyValueData(DataType dataType, String key, String value) { in KeyValueData() method in KeyValueData
71 private KeyValueData() {} in KeyValueData() method in KeyValueData
98 public KeyValueData build() { in build()
101 return new KeyValueData(mDataType, mKey, mValue); in build()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DReportingJobService.java39 import com.android.adservices.service.measurement.KeyValueData;
198 KeyValueData nextScheduledExecution = in getSaveNextExecutionConsumer()
200 JOB_NEXT_EXECUTION_TIME, KeyValueData.DataType.JOB_NEXT_EXECUTION_TIME); in getSaveNextExecutionConsumer()
216 KeyValueData kvData = in getNextScheduledExecution()
222 KeyValueData.DataType.JOB_NEXT_EXECUTION_TIME)) in getNextScheduledExecution()
245 KeyValueData lastExecution = in getSaveExecutionTimeConsumer()
247 JOB_LAST_EXECUTION_TIME, KeyValueData.DataType.JOB_LAST_EXECUTION_TIME); in getSaveExecutionTimeConsumer()
257 KeyValueData lastExecution =
263 KeyValueData.DataType.JOB_LAST_EXECUTION_TIME))
DEventReportingJobHandler.java37 import com.android.adservices.service.measurement.KeyValueData;
174 ? KeyValueData.DataType in performScheduledPendingReportsInWindow()
176 : KeyValueData.DataType in performScheduledPendingReportsInWindow()
DAggregateReportingJobHandler.java38 import com.android.adservices.service.measurement.KeyValueData;
184 ? KeyValueData.DataType in performScheduledPendingReportsInWindow()
186 : KeyValueData.DataType in performScheduledPendingReportsInWindow()
DDebugReportingJobHandler.java34 import com.android.adservices.service.measurement.KeyValueData;
122 KeyValueData.DataType.DEBUG_REPORT_RETRY_COUNT); in performScheduledPendingReports()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DReportingJobServiceTest.java69 import com.android.adservices.service.measurement.KeyValueData;
257 KeyValueData nextExecutionTimeKV = in scheduleIfNeeded_nextReportInFuture_onePendingJobWithSameTime_dontReschedule()
258 new KeyValueData.Builder() in scheduleIfNeeded_nextReportInFuture_onePendingJobWithSameTime_dontReschedule()
260 .setDataType(KeyValueData.DataType.JOB_LAST_EXECUTION_TIME) in scheduleIfNeeded_nextReportInFuture_onePendingJobWithSameTime_dontReschedule()
265 eq(KeyValueData.DataType.JOB_NEXT_EXECUTION_TIME))) in scheduleIfNeeded_nextReportInFuture_onePendingJobWithSameTime_dontReschedule()
625 KeyValueData lastExecutionTimeKV = in mockGettingLastExecutionTime()
626 new KeyValueData.Builder() in mockGettingLastExecutionTime()
628 .setDataType(KeyValueData.DataType.JOB_LAST_EXECUTION_TIME) in mockGettingLastExecutionTime()
633 eq(KeyValueData.DataType.JOB_LAST_EXECUTION_TIME))) in mockGettingLastExecutionTime()
638 KeyValueData nextExecutionTimeKV = in mockGettingNextExecutionTime()
[all …]
DDebugReportingJobHandlerTest.java48 import com.android.adservices.service.measurement.KeyValueData;
317 debugReport1.getId(), KeyValueData.DataType.DEBUG_REPORT_RETRY_COUNT); in testPerformScheduledReports_LogReportNotFound()
DEventReportingJobHandlerTest.java53 import com.android.adservices.service.measurement.KeyValueData;
1109 eventReport1.getId(), KeyValueData.DataType.EVENT_REPORT_RETRY_COUNT); in testPerformScheduledPendingReports_LogReportNotFound()
DAggregateReportingJobHandlerTest.java53 import com.android.adservices.service.measurement.KeyValueData;
877 KeyValueData.DataType.AGGREGATE_REPORT_RETRY_COUNT); in testPerformScheduledPendingReports_LogReportNotFound()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV26.java24 import com.android.adservices.service.measurement.KeyValueData;
61 + KeyValueData.DataType.AGGREGATE_REPORT_RETRY_COUNT in clearReportRetryCounts()
63 + KeyValueData.DataType.EVENT_REPORT_RETRY_COUNT in clearReportRetryCounts()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueRunnerTest.java74 import com.android.adservices.service.measurement.KeyValueData;
345 KeyValueData redirectCount = getKeyValueDataRedirectCount(); in test_runAsyncRegistrationQueueWorker_appSource_success()
359 ArgumentCaptor<KeyValueData> redirectCountCaptor = in test_runAsyncRegistrationQueueWorker_appSource_success()
360 ArgumentCaptor.forClass(KeyValueData.class); in test_runAsyncRegistrationQueueWorker_appSource_success()
397 KeyValueData redirectCount = getKeyValueDataRedirectCount(); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
411 ArgumentCaptor<KeyValueData> redirectCountCaptor = in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
412 ArgumentCaptor.forClass(KeyValueData.class); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
449 KeyValueData redirectCount = getKeyValueDataRedirectCount(); in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
463 ArgumentCaptor<KeyValueData> redirectCountCaptor = in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
464 ArgumentCaptor.forClass(KeyValueData.class); in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DDbState.java28 import com.android.adservices.service.measurement.KeyValueData;
67 List<KeyValueData> mKeyValueDataList;
180 KeyValueData keyValueData = getKeyValueDataFrom(aJSON); in DbState()
309 KeyValueData.Builder builder = new KeyValueData.Builder(); in DbState()
312 builder.setDataType(KeyValueData.DataType.valueOf(keyValueDataCursor.getString(2))); in DbState()
349 mKeyValueDataList.sort(Comparator.comparing(KeyValueData::getKey)); in sortAll()
623 private KeyValueData getKeyValueDataFrom(JSONObject kJSON) throws JSONException { in getKeyValueDataFrom()
624 return new KeyValueData.Builder() in getKeyValueDataFrom()
626 .setDataType(KeyValueData.DataType.valueOf(kJSON.getString("dataType"))) in getKeyValueDataFrom()
DAbstractDbIntegrationTest.java35 import com.android.adservices.service.measurement.KeyValueData;
177 private boolean areEqualKeyValueData(KeyValueData keyValueData, KeyValueData keyValueData1) { in areEqualKeyValueData()
364 for (KeyValueData keyValueData : input.mKeyValueDataList) { in seedTables()
687 public static void insertToDb(KeyValueData keyValueData, SQLiteDatabase db) in insertToDb()
DMeasurementDaoTest.java78 import com.android.adservices.service.measurement.KeyValueData;
79 import com.android.adservices.service.measurement.KeyValueData.DataType;
5449 KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT.toString()); in deleteExpiredRecords_registrationRedirectCount()
5491 KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT.toString(), in deleteExpiredRecords_registrationRedirectCount()
5504 KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT.toString(), in deleteExpiredRecords_registrationRedirectCount()
5908 Optional<KeyValueData> optKeyValueData = in getRegistrationRedirectCount_keyMissing()
5914 KeyValueData keyValueData = optKeyValueData.get(); in getRegistrationRedirectCount_keyMissing()
5915 assertEquals(KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT, keyValueData.getDataType()); in getRegistrationRedirectCount_keyMissing()
5927 KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT.toString()); in getRegistrationRedirectCount_keyExists()
5931 Optional<KeyValueData> optKeyValueData = in getRegistrationRedirectCount_keyExists()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV26Test.java31 import com.android.adservices.service.measurement.KeyValueData;
165 KeyValueData.DataType.AGGREGATE_REPORT_RETRY_COUNT
170 .equals(KeyValueData.DataType.EVENT_REPORT_RETRY_COUNT.toString()));
DContentValueFixtures.java26 import com.android.adservices.service.measurement.KeyValueData;
362 public static final KeyValueData.DataType RR_DATATYPE =
363 KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT;
368 public static final KeyValueData.DataType AR_DATATYPE =
369 KeyValueData.DataType.AGGREGATE_REPORT_RETRY_COUNT;
374 public static final KeyValueData.DataType ER_DATATYPE =
375 KeyValueData.DataType.EVENT_REPORT_RETRY_COUNT;
380 public static final KeyValueData.DataType DR_DATATYPE =
381 KeyValueData.DataType.DEBUG_REPORT_RETRY_COUNT;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DIMeasurementDao.java29 import com.android.adservices.service.measurement.KeyValueData;
30 import com.android.adservices.service.measurement.KeyValueData.DataType;
564 void insertOrUpdateKeyValueData(@NonNull KeyValueData keyValueData) throws DatastoreException; in insertOrUpdateKeyValueData()
573 KeyValueData getKeyValueData(@NonNull String key, @NonNull DataType dataType) in getKeyValueData()
DMeasurementDao.java41 import com.android.adservices.service.measurement.KeyValueData;
42 import com.android.adservices.service.measurement.KeyValueData.DataType;
2086 new String[] {KeyValueData.DataType.REGISTRATION_REDIRECT_COUNT.toString()}); in deleteExpiredRecords()
3199 public KeyValueData getKeyValueData(@NonNull String key, @NonNull DataType dataType)
3222 return new KeyValueData.Builder().setDataType(dataType).setKey(key).setValue(value).build();
3226 public void insertOrUpdateKeyValueData(@NonNull KeyValueData keyValueData)
3269 KeyValueData eventRetry = getKeyValueData(id, reportType);
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueRunner.java42 import com.android.adservices.service.measurement.KeyValueData;
43 import com.android.adservices.service.measurement.KeyValueData.DataType;
900 KeyValueData keyValueData = in handleSuccess()