Home
last modified time | relevance | path

Searched refs:dayIndex (Results 1 – 20 of 20) sorted by relevance

/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DDaoBuildingBlocks.java89 Void insertLastSentDayIndex(ReportKey reportKey, int dayIndex) { in insertLastSentDayIndex() argument
90 return insertLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in insertLastSentDayIndex()
128 Void updateLastSentDayIndex(ReportKey reportKey, int dayIndex) { in updateLastSentDayIndex() argument
129 return updateLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in updateLastSentDayIndex()
151 int dayIndex, in updateAggregateValue() argument
160 dayIndex, in updateAggregateValue()
193 int dayIndex, in updateAggregateValue() argument
225 int dayIndex, in updateSystemProfileHash() argument
259 int dayIndex, in updateSystemProfileHashAndAggregateValue() argument
290 int dayIndex, in queryOneSystemProfileAndAggregateValue() argument
[all …]
DDataService.java190 int dayIndex, in aggregateCount() argument
201 dayIndex, in aggregateCount()
229 int dayIndex, in aggregateString() argument
241 dayIndex, in aggregateString()
296 int dayIndex, in aggregateCountSync() argument
303 dayIndex, in aggregateCountSync()
313 int dayIndex, in aggregateStringSync() argument
321 mDaoBuildingBlocks.queryStringListIndex(reportKey, dayIndex, stringBufferMax, hash); in aggregateStringSync()
326 StringHashEntity stringHash = StringHashEntity.create(reportKey, dayIndex, index, hash); in aggregateStringSync()
329 dayIndex, in aggregateStringSync()
[all …]
DStringHashEntity.java73 abstract int dayIndex(); in dayIndex() method in StringHashEntity
94 ReportKey reportKey, int dayIndex, int listIndex, HashCode stringHash) { in create() argument
95 return new AutoValue_StringHashEntity(reportKey, dayIndex, listIndex, stringHash); in create()
103 ReportKey reportKey, int dayIndex, int listIndex, String string) { in create() argument
104 return new AutoValue_StringHashEntity(reportKey, dayIndex, listIndex, getHash(string)); in create()
DTestOnlyDao.java81 int dayIndex, in create() argument
87 .setDayIndex(dayIndex) in create()
115 public abstract int dayIndex(); in dayIndex() method in TestOnlyDao.AggregateStoreTableRow
145 aggregateStoreTableRow.dayIndex(), in insertAggregateValue()
158 public Void insertLastSentDayIndex(ReportKey reportKey, int dayIndex) { in insertLastSentDayIndex() argument
159 return insertLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in insertLastSentDayIndex()
DAggregateStoreEntity.java71 abstract int dayIndex(); in dayIndex() method in AggregateStoreEntity
99 int dayIndex, in create() argument
104 reportKey, dayIndex, eventVector, systemProfileHash, aggregateValue); in create()
DObservationGenerator.java35 int dayIndex, in generateObservations() argument
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/data/
DDaoBuildingBlocksTest.java103 int dayIndex, in insertAggregateValue() argument
109 reportKey, dayIndex, eventVector, systemProfileHash, aggregateValue)); in insertAggregateValue()
113 ReportKey reportKey, int dayIndex, int listIndex, HashCode stringHashHint) { in insertStringHash() argument
115 StringHashEntity.create(reportKey, dayIndex, listIndex, stringHashHint)); in insertStringHash()
122 private void insertLastSentDayIndex(ReportKey reportKey, int dayIndex) { in insertLastSentDayIndex() argument
123 mDaoBuildingBlocks.insertLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in insertLastSentDayIndex()
126 private void updateLastSentDayIndex(ReportKey reportKey, int dayIndex) { in updateLastSentDayIndex() argument
127 mDaoBuildingBlocks.updateLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in updateLastSentDayIndex()
132 int dayIndex, in updateAggregateValue() argument
141 dayIndex, in updateAggregateValue() local
[all …]
DCobaltDatabaseMigrationTest.java51 int dayIndex = 5; in migrate1To2() local
70 dayIndex, in migrate1To2()
93 dayIndex, in migrate1To2()
112 reportKey, dayIndex, eventVector, systemProfileHash)) in migrate1To2()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/system/
DCobaltClockTest.java57 assertThat(mClock.dayIndex("America/Los_Angeles")).isEqualTo(DAY_INDEX_UTC - 1); in dayIndex_mtv_succeeds()
63 assertThat(mClock.dayIndex("Europe/Lisbon")).isEqualTo(DAY_INDEX_UTC); in dayIndex_eu_succeeds()
68 assertThrows(ZoneRulesException.class, () -> mClock.dayIndex("Pacific")); in dayIndex_invalidTimeZone_throwsException()
74 mClock.dayIndex( in dayIndex_metricInUtc_succeeds()
85 mClock.dayIndex( in dayIndex_metricLocal_succeeds()
95 mClock.dayIndex( in dayIndex_metricInMtv_succeeds()
108 mClock.dayIndex( in dayIndex_unrecognizedPolicy_throwsException()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DPrivateObservationGenerator.java100 int dayIndex, in generateObservations() argument
105 dayIndex, in generateObservations()
114 generateObservations(dayIndex, systemProfile, allEventData.get(systemProfile))); in generateObservations()
129 int dayIndex, in generateObservations() argument
186 .setDayIndex(dayIndex) in generateObservations()
DObservationGeneratorFactory.java74 MetricDefinition metric, ReportDefinition report, int dayIndex) { in getObservationGenerator() argument
77 return getNonPrivateObservationGenerator(metric, report, dayIndex); in getObservationGenerator()
87 MetricDefinition metric, ReportDefinition report, int dayIndex) { in getNonPrivateObservationGenerator() argument
106 dayIndex)); in getNonPrivateObservationGenerator()
DNonPrivateObservationGenerator.java85 int dayIndex, in generateObservations() argument
114 .setDayIndex(dayIndex) in generateObservations()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/system/
DCobaltClock.java45 public int dayIndex(String timeZone) { in dayIndex() method in CobaltClock
50 public int dayIndex(MetricDefinition metric) { in dayIndex() method in CobaltClock
57 return dayIndex(metric.getOtherTimeZone()); in dayIndex()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/impl/
DCobaltLoggerImpl.java193 int dayIndex = clock.dayIndex(metric); in logNumberToReports() local
213 dayIndex, in logNumberToReports()
230 int dayIndex = clock.dayIndex(metric); in logStringToReports() local
250 dayIndex, in logStringToReports()
DCobaltPeriodicJobImpl.java177 int dayIndexToGenerate = currentClock.dayIndex(metric) - 1; in generateAndSaveObservations()
178 int dayIndexLoggerEnabled = initialEnabledClock.dayIndex(metric); in generateAndSaveObservations()
197 (dayIndex) -> in generateAndSaveObservations()
199 metric, report, dayIndex); in generateAndSaveObservations()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryLevelData.java179 for (int dayIndex = 0; dayIndex < multiDaysData.size(); dayIndex++) { in combine()
180 PeriodBatteryLevelData oneDayData = multiDaysData.get(dayIndex); in combine()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DObservationGeneratorFactoryTest.java135 int dayIndex = 10; in getObservationGenerator_nonPrivateStringsCounts_queriesStringHashList() local
137 when(mDaoBuildingBlocks.queryStringHashList(reportKey, dayIndex)) in getObservationGenerator_nonPrivateStringsCounts_queriesStringHashList()
151 dayIndex); in getObservationGenerator_nonPrivateStringsCounts_queriesStringHashList()
153 verify(mDaoBuildingBlocks).queryStringHashList(reportKey, dayIndex); in getObservationGenerator_nonPrivateStringsCounts_queriesStringHashList()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.kt290 val dayIndex: Int = mDayInfos.size in buildFromCursor() constant
292 mRowInfos.add(RowInfo(RowInfo.TYPE_DAY, dayIndex)) in buildFromCursor()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.kt1099 val dayIndex = segment.day - firstJulianDay in weaveDNAStrands() constant
1105 val x = dayXs[dayIndex] in weaveDNAStrands()
DDayView.kt2339 private fun drawEvents(date: Int, dayIndex: Int, top: Int, canvas: Canvas, p: Paint) { in drawEvents()
2341 val left = computeDayLeftPosition(dayIndex) + 1 in drawEvents()
2342 val cellWidth = computeDayLeftPosition(dayIndex + 1) - left + 1 in drawEvents()