Home
last modified time | relevance | path

Searched refs:history (Results 1 – 25 of 40) sorted by relevance

12

/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationHistoryTest.java118 history.addNotificationToWrite(n2); in testAddNotificationToWrite()
119 history.addNotificationToWrite(n); in testAddNotificationToWrite()
133 history.addNotificationToWrite(n2); in testAddNotificationsToWrite()
134 history.addNotificationToWrite(n); in testAddNotificationsToWrite()
135 history.addNotificationToWrite(n5); in testAddNotificationsToWrite()
170 history.addNotificationToWrite(n); in testPoolStringsFromNotifications()
173 history.poolStringsFromNotifications(); in testPoolStringsFromNotifications()
200 history.addNotificationToWrite(n); in testAddPooledStrings()
238 history.addNotificationToWrite(n); in testRemoveNotificationsFromWrite()
275 history.addNotificationToWrite(n); in testRemoveNotificationFromWrite()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/wakeups/
H A DWakingActivityHistoryTest.java69 history.recordActivity(subsystem, timestamp, uids); in recordActivityAppendsUids()
93 history.recordActivity(subsystem, timestamp, uids); in recordActivityAppendsUids()
115 history.recordActivity(subsystem, timestamp, uids); in recordActivityDoesNotDeleteExistingUids()
138 history.recordActivity(subsystem, timestamp, uids); in recordActivityDoesNotDeleteExistingUids()
148 history.recordActivity(subsystem, timestamp, uids); in recordActivityDoesNotDeleteExistingUids()
168 history.recordActivity(subsystem, 123, uids); in removeBetween()
171 history.recordActivity(subsystem, 150, uids); in removeBetween()
175 history.recordActivity(subsystem, 191, uids); in removeBetween()
209 history.recordActivity(subsystem, 23, uids); in removeBetween()
211 history.recordActivity(subsystem, 49, uids); in removeBetween()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptHistoryImplTest.kt32 private lateinit var history: PromptHistoryImpl
36 history = PromptHistoryImpl()
41 assertThat(history.faceFailed).isFalse()
48 history.failure(BiometricModality.None)
49 history.failure(BiometricModality.Face)
51 assertThat(history.faceFailed).isTrue()
58 history.failure(BiometricModality.None)
61 assertThat(history.faceFailed).isFalse()
68 history.failure(BiometricModality.Face)
71 assertThat(history.faceFailed).isTrue()
[all …]
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationHistoryProtoHelperTest.java89 history.addNotificationToWrite(n); in testReadWriteNotifications()
91 history.poolStringsFromNotifications(); in testReadWriteNotifications()
116 history.addNotificationToWrite(n); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
153 history.addNotificationToWrite(n); in testReadNotificationsWithPkgFilter()
155 history.poolStringsFromNotifications(); in testReadNotificationsWithPkgFilter()
195 history.addNotificationToWrite(n); in testReadNotificationsWithNumberFilter()
197 history.poolStringsFromNotifications(); in testReadNotificationsWithNumberFilter()
226 history.addNotificationToWrite(old1); in testReadNotificationsWithNumberFilter_preExistingNotifs()
230 history.addNotificationToWrite(old2); in testReadNotificationsWithNumberFilter_preExistingNotifs()
247 history.addNotificationToWrite(n); in testReadNotificationsWithNumberFilter_preExistingNotifs()
[all …]
H A DNotificationHistoryFilterTest.java86 NotificationHistory history = new NotificationHistory(); in testMatchesCountFilter() local
87 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
88 history.addNotificationToWrite(getHistoricalNotification(1)); in testMatchesCountFilter()
89 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
90 history.addNotificationToWrite(getHistoricalNotification(2)); in testMatchesCountFilter()
91 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
92 history.addNotificationToWrite(getHistoricalNotification(3)); in testMatchesCountFilter()
93 assertThat(filter.matchesCountFilter(history)).isFalse(); in testMatchesCountFilter()
101 NotificationHistory history = new NotificationHistory(); in testMatchesCountFilter_noCountFilter() local
102 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter_noCountFilter()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DSignalController.java200 for (int i = 0; i < history.size(); i++) { in dump()
217 ArrayList<ConnectivityState> history = new ArrayList<>(); in getOrderedHistoryExcludingCurrentState() local
227 history.add(mHistory[i & (HISTORY_SIZE - 1)]); in getOrderedHistoryExcludingCurrentState()
230 return history; in getOrderedHistoryExcludingCurrentState()
241 ArrayList<ConnectivityState> history = new ArrayList<>(); in getOrderedHistory() local
243 history.add(mCurrentState); in getOrderedHistory()
244 history.addAll(getOrderedHistoryExcludingCurrentState()); in getOrderedHistory()
245 return history; in getOrderedHistory()
250 List<ConnectivityState> history = getOrderedHistory(); in dumpTableData() local
251 for (int i = 0; i < history.size(); i++) { in dumpTableData()
[all …]
/aosp14/frameworks/base/telephony/java/android/telephony/ims/
H A DImsSuppServiceNotification.java48 public final String[] history; field in ImsSuppServiceNotification
52 String number, String[] history) { in ImsSuppServiceNotification() argument
58 this.history = history; in ImsSuppServiceNotification()
68 history = in.createStringArray(); in ImsSuppServiceNotification()
79 ", history=" + Arrays.toString(history) + in toString()
95 out.writeStringArray(history); in writeToParcel()
/aosp14/system/core/storaged/tests/
H A Dstoraged_test.cpp408 EXPECT_EQ(history[i++], 4); in TEST()
412 EXPECT_EQ(history[i++], 375); in TEST()
413 EXPECT_EQ(history[i++], 370); in TEST()
414 EXPECT_EQ(history[i++], 365); in TEST()
415 EXPECT_EQ(history[i++], 360); in TEST()
417 EXPECT_EQ(history[i++], 347); in TEST()
426 EXPECT_EQ(history[i++], 83); in TEST()
448 EXPECT_EQ(history[0], 1); in TEST()
449 EXPECT_EQ(history[1], 7); in TEST()
450 EXPECT_EQ(history[2], 52); in TEST()
[all …]
/aosp14/frameworks/base/core/proto/android/service/
H A Dbatterystats.proto33 // Dump of batterystats history data (dumpsys batterystats --proto --history).
53 // Dump of battery history in csv format (equivalent of
54 // 'batterystats -c --history', with the hsp lines extracted).
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
H A DAppIdleHistory.java883 AppUsageHistory history = userHistory.valueAt(i); in writeAppIdleTimes() local
887 Long.toString(history.lastUsedElapsedTime)); in writeAppIdleTimes()
891 Long.toString(history.lastUsedScreenTime)); in writeAppIdleTimes()
893 Long.toString(history.lastPredictedTime)); in writeAppIdleTimes()
895 Integer.toString(history.currentBucket)); in writeAppIdleTimes()
897 Integer.toHexString(history.bucketingReason)); in writeAppIdleTimes()
898 if (history.lastJobRunTime != Long.MIN_VALUE) { in writeAppIdleTimes()
902 if (history.lastRestrictAttemptElapsedTime > 0) { in writeAppIdleTimes()
908 if (history.nextEstimatedLaunchTime > 0) { in writeAppIdleTimes()
912 if (history.bucketExpiryTimesMs != null) { in writeAppIdleTimes()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
H A DInputMethodManagerServiceTests.java103 var history = new InputMethodManagerService.SoftInputShowHideHistory(); in testSoftInputShowHideHistoryDump_withNulls_doesntThrow() local
104 history.addEntry(new InputMethodManagerService.SoftInputShowHideHistory.Entry( in testSoftInputShowHideHistoryDump_withNulls_doesntThrow()
116 history.dump(new PrintWriter(writer), "" /* prefix */); in testSoftInputShowHideHistoryDump_withNulls_doesntThrow()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DChartDataLoader.java143 final List<NetworkStats.Bucket> history = convertToBuckets( in collectHistoryForUid() local
148 existing.addAll(history); in collectHistoryForUid()
151 return history; in collectHistoryForUid()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryStatsHistoryTest.java233 private void verifyActiveFile(BatteryStatsHistory history, String file) { in verifyActiveFile() argument
235 assertEquals(expectedFile.getPath(), history.getActiveFile().getBaseFile().getPath()); in verifyActiveFile()
239 private void verifyFileNumbers(BatteryStatsHistory history, List<Integer> fileList) { in verifyFileNumbers() argument
240 assertEquals(fileList.size(), history.getFilesNumbers().size()); in verifyFileNumbers()
242 assertEquals(fileList.get(i), history.getFilesNumbers().get(i)); in verifyFileNumbers()
253 private void createActiveFile(BatteryStatsHistory history) { in createActiveFile() argument
254 final File file = history.getActiveFile().getBaseFile(); in createActiveFile()
/aosp14/frameworks/base/core/java/android/net/netstats/
H A DNetworkStatsDataMigrationUtils.java293 final NetworkStatsHistory history = readPlatformHistory(in); in readPlatformCollection() local
294 builder.addEntry(key, history); in readPlatformCollection()
575 final NetworkStatsHistory history = readPlatformHistory(in); in readLegacyUid() local
578 builder.addEntry(key, history); in readLegacyUid()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastQueue.java56 @NonNull BroadcastHistory history) { in BroadcastQueue() argument
61 mHistory = Objects.requireNonNull(history); in BroadcastQueue()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
H A DAlarmManagerService.java543 if (history == null) { in recordAlarmForPackage()
547 if (history.size() == 0 || history.peekLast() < nowElapsed) { in recordAlarmForPackage()
548 history.addLast(nowElapsed); in recordAlarmForPackage()
550 snapToWindow(history); in recordAlarmForPackage()
568 while (history.peekFirst() + mWindowSize < history.peekLast()) { in snapToWindow()
569 history.removeFirst(); in snapToWindow()
575 return (history == null) ? 0 : history.size(); in getTotalWakeupsInWindow()
584 if (history == null) { in getNthLastWakeupForPackage()
587 final int i = history.size() - n; in getNthLastWakeupForPackage()
2483 final AppWakeupHistory history; in adjustDeliveryTimeBasedOnBatterySaver() local
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptViewModel.kt259 private val history = PromptHistoryImpl() regex
286 val suppress = suppressIf(_message.value, history)
287 history.failure(failedModality)
/aosp14/frameworks/base/tests/DataIdleTest/
H A DAndroid.bp35 // We need to sign it to get access to the network usage history.
/aosp14/frameworks/base/tests/LegacyRestoreTest/
H A DREADME18 archives from various points in Android's history can be successfully restored.
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHistoryIterator.java49 public BatteryStatsHistoryIterator(@NonNull BatteryStatsHistory history) { in BatteryStatsHistoryIterator() argument
50 mBatteryStatsHistory = history; in BatteryStatsHistoryIterator()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DWatchdog.java985 String history = data.length >= 2 ? data[1] : ""; in readTimeoutHistory() local
986 if (SystemProperties.get("ro.boottime.zygote").equals(boottime) && !history.isEmpty()) { in readTimeoutHistory()
987 return history.split(","); in readTimeoutHistory()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java605 String[] history = passwordHistory.split(PASSWORD_HISTORY_DELIMITER); in checkPasswordHistory() local
607 for (int i = 0; i < Math.min(passwordHistoryLength, history.length); i++) { in checkPasswordHistory()
608 if (history[i].equals(legacyHash) || history[i].equals(passwordHash)) { in checkPasswordHistory()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DLockSettingsServiceTests.java442 String history = mService.getString(LockPatternUtils.PASSWORD_HISTORY_KEY, "", userId); in checkPasswordHistoryLength() local
443 String[] hashes = TextUtils.split(history, LockPatternUtils.PASSWORD_HISTORY_DELIMITER); in checkPasswordHistoryLength()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
H A DBiometricViewBinder.kt538 suppressIf = { currentMessage, history ->
541 (currentMessage.isError || history.faceFailed)
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DInputMethodUtils.java727 final String history = getString(Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY, ""); in getSubtypeHistoryStr() local
729 Slog.d(TAG, "getSubtypeHistoryStr: " + history); in getSubtypeHistoryStr()
731 return history; in getSubtypeHistoryStr()

12