Home
last modified time | relevance | path

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

123

/frameworks/av/media/codecs/mp3dec/src/
Dpvmp3_mdct_18.cpp133 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) in pvmp3_mdct_18() argument
195 tmp = history[ i]; in pvmp3_mdct_18()
201 history[i ] = -(tmp2 + tmp1); in pvmp3_mdct_18()
205 tmp = history[ 6]; in pvmp3_mdct_18()
210 tmp = history[ 7]; in pvmp3_mdct_18()
211 history[6] = -(tmp2 + tmp1); in pvmp3_mdct_18()
212 history[7] = -(tmp1 + vec[8]); in pvmp3_mdct_18()
214 tmp1 = history[ 8]; in pvmp3_mdct_18()
217 history[8] = -(vec[8] + vec[9]); in pvmp3_mdct_18()
220 tmp = history[9]; in pvmp3_mdct_18()
[all …]
Dpvmp3_imdct_synth.cpp244 int32 * history = overlap + (band * FILTERBANK_BANDS); in pvmp3_imdct_synth() local
250 pvmp3_mdct_18(out, history, normal_win); in pvmp3_imdct_synth()
256 pvmp3_mdct_18(out, history, start_win); in pvmp3_imdct_synth()
262 pvmp3_mdct_18(out, history, stop_win); in pvmp3_imdct_synth()
284 int32 temp = history[i]; in pvmp3_imdct_synth()
286 history[i] = fxp_mul32_Q32(tmp_prev_ovr[ 6+i] << 1, short_win[6+i]); in pvmp3_imdct_synth()
287 history[i] += fxp_mul32_Q32(Scratch_mem[12+i] << 1, short_win[ i]); in pvmp3_imdct_synth()
294 out[i+6] += history[i+6]; in pvmp3_imdct_synth()
296 history[i+6] = fxp_mul32_Q32(tmp_prev_ovr[12+i] << 1, short_win[6+i]); in pvmp3_imdct_synth()
303 out[i+12] += history[i+12]; in pvmp3_imdct_synth()
[all …]
Dpvmp3_mdct_6.cpp122 void pvmp3_mdct_6(int32 vec[], int32 *history) in pvmp3_mdct_6() argument
148 history[3] = tmp; in pvmp3_mdct_6()
149 history[2] = tmp; in pvmp3_mdct_6()
153 history[4] = tmp; in pvmp3_mdct_6()
154 history[1] = tmp; in pvmp3_mdct_6()
157 history[5] = tmp; in pvmp3_mdct_6()
158 history[0] = tmp; in pvmp3_mdct_6()
Dpvmp3_mdct_18.h92 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window);
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java114 NotificationHistory history = new NotificationHistory(); in testAddNotificationToWrite() local
118 history.addNotificationToWrite(n2); in testAddNotificationToWrite()
119 history.addNotificationToWrite(n); in testAddNotificationToWrite()
121 assertThat(history.getNotificationsToWrite().size()).isEqualTo(2); in testAddNotificationToWrite()
122 assertThat(history.getNotificationsToWrite().get(0)).isSameInstanceAs(n2); in testAddNotificationToWrite()
123 assertThat(history.getNotificationsToWrite().get(1)).isSameInstanceAs(n); in testAddNotificationToWrite()
124 assertThat(history.getHistoryCount()).isEqualTo(2); in testAddNotificationToWrite()
129 NotificationHistory history = new NotificationHistory(); in testAddNotificationsToWrite() local
133 history.addNotificationToWrite(n2); in testAddNotificationsToWrite()
134 history.addNotificationToWrite(n); in testAddNotificationsToWrite()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHistoryTest.java70 BatteryStatsHistory history = in testConstruct() local
72 createActiveFile(history); in testConstruct()
73 verifyFileNumbers(history, Arrays.asList(0)); in testConstruct()
74 verifyActiveFile(history, "0.bin"); in testConstruct()
79 BatteryStatsHistory history = in testStartNextFile() local
84 createActiveFile(history); in testStartNextFile()
89 history.startNextFile(); in testStartNextFile()
90 createActiveFile(history); in testStartNextFile()
91 verifyFileNumbers(history, fileList); in testStartNextFile()
92 verifyActiveFile(history, i + ".bin"); in testStartNextFile()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHistoryTest.cpp62 LayerHistory& history() { return *mScheduler->mutableLayerHistory(); } in history() function in android::scheduler::LayerHistoryTest
63 const LayerHistory& history() const { return *mScheduler->mutableLayerHistory(); } in history() function in android::scheduler::LayerHistoryTest
66 size_t activeLayerCount() const NO_THREAD_SAFETY_ANALYSIS { return history().mActiveLayersEnd; } in activeLayerCount()
69 const auto& infos = history().mLayerInfos; in frequentLayerCount()
71 infos.begin() + static_cast<long>(history().mActiveLayersEnd), in frequentLayerCount()
76 const auto& infos = history().mLayerInfos; in animatingLayerCount()
78 infos.begin() + static_cast<long>(history().mActiveLayersEnd), in animatingLayerCount()
84 for (auto& [layerUnsafe, info] : history().mLayerInfos) { in setDefaultLayerVote()
101 history().record(layer.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in recordFramesAndExpect()
104 summary = history().summarize(time); in recordFramesAndExpect()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryProtoHelperTest.java82 NotificationHistory history = new NotificationHistory(); in testReadWriteNotifications() local
89 history.addNotificationToWrite(n); in testReadWriteNotifications()
91 history.poolStringsFromNotifications(); in testReadWriteNotifications()
94 NotificationHistoryProtoHelper.write(baos, history, 1); in testReadWriteNotifications()
102 assertThat(actualHistory.getHistoryCount()).isEqualTo(history.getHistoryCount()); in testReadWriteNotifications()
109 NotificationHistory history = new NotificationHistory(); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() local
116 history.addNotificationToWrite(n); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
120 NotificationHistoryProtoHelper.write(baos, history, 1); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
128 assertThat(actualHistory.getHistoryCount()).isEqualTo(history.getHistoryCount()); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
135 NotificationHistory history = new NotificationHistory(); in testReadNotificationsWithPkgFilter() local
[all …]
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 …]
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt42 val history = ArrayTrackRecord<CallbackType>().newReadHead() constant in com.android.testutils.TestableNetworkStatsProvider
44 val mark get() = history.mark
47 history.add(CallbackType.OnRequestStatsUpdate(token)) in onRequestStatsUpdate()
51 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
55 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
59 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
63 val event = history.poll(timeout) in expectOnRequestStatsUpdate()
72 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
76 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(timeout)) in expectOnSetAlert()
80 history.poll(timeout) ?: fail("Did not receive callback after ${timeout}ms") in pollForNextCallback()
[all …]
DTestableNetworkStatsProviderCbBinder.kt39 private val history = ArrayTrackRecord<CallbackType>().ReadHead() constant in com.android.testutils.TestableNetworkStatsProviderCbBinder
42 history.add(CallbackType.NotifyStatsUpdated(token, ifaceStats, uidStats)) in notifyStatsUpdated()
46 history.add(CallbackType.NotifyWarningOrLimitReached) in notifyWarningOrLimitReached()
50 history.add(CallbackType.NotifyAlertReached) in notifyAlertReached()
54 history.add(CallbackType.Unregister) in unregister()
58 val event = history.poll(DEFAULT_TIMEOUT_MS) in expectNotifyStatsUpdated()
63 val event = history.poll(DEFAULT_TIMEOUT_MS)!! in expectNotifyStatsUpdated()
73 assertEquals(CallbackType.NotifyWarningOrLimitReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningOrLimitReached()
76 assertEquals(CallbackType.NotifyAlertReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningOrLimitReached()
80 val cb = history.poll(0) in expectNotifyWarningOrLimitReached()
DTestableNetworkStatsProviderBinder.kt36 private val history = ArrayTrackRecord<CallbackType>().ReadHead() constant
39 history.add(CallbackType.OnRequestStatsUpdate(token)) in onRequestStatsUpdate()
43 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
47 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
51 assertEquals(CallbackType.OnRequestStatsUpdate(token), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnRequestStatsUpdate()
56 history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetWarningAndLimit()
60 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetAlert()
65 val cb = history.poll(timeout) in assertNoCallback()
DTestableNetworkCallback.kt115 val history = backingRecord.newReadHead() constant
116 val mark get() = history.mark
119 history.add(Available(network)) in onAvailable()
127 history.add(CapabilitiesChanged(network, caps)) in onCapabilitiesChanged()
132 history.add(LinkPropertiesChanged(network, lp)) in onLinkPropertiesChanged()
137 history.add(BlockedStatus(network, blocked)) in onBlockedStatusChanged()
145 history.add(Suspended(network)) in onNetworkSuspended()
150 history.add(Resumed(network)) in onNetworkResumed()
155 history.add(Losing(network, maxMsToLive)) in onLosing()
160 history.add(Lost(network)) in onLost()
[all …]
DTestableNetworkOfferCallback.kt29 val history = ArrayTrackRecord<CallbackEntry>().newReadHead() constant
42 history.add(CallbackEntry.OnNetworkNeeded(request)) in onNetworkNeeded()
50 history.add(CallbackEntry.OnNetworkUnneeded(request)) in onNetworkUnneeded()
56 val event = history.poll(timeoutMs) in expectCallbackThat()
72 val cb = history.poll(noCallbackTimeoutMs) in assertNoCallback()
/frameworks/base/telephony/java/android/telephony/ims/
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()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java387 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag); in recordData() local
388 history.recordData(start, end, entry); in recordData()
389 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
395 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory() argument
396 if (history.size() == 0) return; in recordHistory()
397 noteRecordedHistory(history.getStart(), history.getEnd(), history.getTotalBytes()); in recordHistory()
401 target = new NetworkStatsHistory(history.getBucketDuration()); in recordHistory()
404 target.recordEntireHistory(history); in recordHistory()
468 final NetworkStatsHistory history = new NetworkStatsHistory(in); in read() local
469 recordHistory(key, history); in read()
[all …]
/frameworks/base/core/proto/android/service/
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).
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java322 AppUsageHistory history = getPackageHistory(userHistory, packageName, nowElapsed, true); in reportUsage() local
323 return reportUsage(history, packageName, userId, newBucket, usageReason, nowElapsed, in reportUsage()
712 AppUsageHistory history = userHistory.valueAt(i); in writeAppIdleTimes() local
716 Long.toString(history.lastUsedElapsedTime)); in writeAppIdleTimes()
718 Long.toString(history.lastUsedByUserElapsedTime)); in writeAppIdleTimes()
720 Long.toString(history.lastUsedScreenTime)); in writeAppIdleTimes()
722 Long.toString(history.lastPredictedTime)); in writeAppIdleTimes()
724 Integer.toString(history.currentBucket)); in writeAppIdleTimes()
726 Integer.toHexString(history.bucketingReason)); in writeAppIdleTimes()
727 if (history.bucketActiveTimeoutTime > 0) { in writeAppIdleTimes()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSuppServiceNotification.java39 public String[] history; field in SuppServiceNotification
203 + " history: " + history in toString()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java138 final NetworkStatsHistory history = mSession.getHistoryForUid( in collectHistoryForUid() local
142 existing.recordEntireHistory(history); in collectHistoryForUid()
145 return history; in collectHistoryForUid()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp1026 ProducerFrameEventHistory history; in TEST_F() local
1034 history.applyDelta(qbOutput.frameTimestamps); in TEST_F()
1037 events = history.getFrame(1); in TEST_F()
1049 history.applyDelta(qbOutput.frameTimestamps); in TEST_F()
1050 events = history.getFrame(1); in TEST_F()
1065 events = history.getFrame(2); in TEST_F()
1080 ProducerFrameEventHistory history; in TEST_F() local
1089 history.applyDelta(qbOutput.frameTimestamps); in TEST_F()
1092 events = history.getFrame(1); in TEST_F()
1105 history.applyDelta(qbOutput.frameTimestamps); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1127 final NetworkStatsHistory history = new NetworkStatsHistory(TimeUnit.HOURS.toMillis(1));
1133 final NetworkStatsHistory.Entry entry = history.getValues(
1163 history.clear();
1164 history.recordData(start, end,
1180 history.clear();
1181 history.recordData(start, end,
1198 history.clear();
1199 history.recordData(start, end,
1217 history.clear();
1218 history.recordData(start, end,
[all …]
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java574 NetworkStatsHistory history = mSession.getHistoryIntervalForUid(mTemplate, uid, in startUserUidEnumeration() local
577 if (history != null && history.size() > 0) { in startUserUidEnumeration()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java346 LongArrayQueue history = mPackageHistory.get(packageUser); in recordAlarmForPackage() local
347 if (history == null) { in recordAlarmForPackage()
348 history = new LongArrayQueue(); in recordAlarmForPackage()
349 mPackageHistory.put(packageUser, history); in recordAlarmForPackage()
351 if (history.size() == 0 || history.peekLast() < nowElapsed) { in recordAlarmForPackage()
352 history.addLast(nowElapsed); in recordAlarmForPackage()
354 snapToWindow(history); in recordAlarmForPackage()
371 private void snapToWindow(LongArrayQueue history) { in snapToWindow() argument
372 while (history.peekFirst() + mWindowSize < history.peekLast()) { in snapToWindow()
373 history.removeFirst(); in snapToWindow()
[all …]
/frameworks/base/tests/DataIdleTest/
DAndroid.bp35 // We need to sign it to get access to the network usage history.

123