Home
last modified time | relevance | path

Searched refs:eventTag (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryStatsHistoryIteratorTest.java141 assertThat(item.eventTag).isNull(); in tagsLongHistory()
146 assertThat(item.eventTag).isNull(); in tagsLongHistory()
152 assertThat(item.eventTag).isNull(); in tagsLongHistory()
165 assertThat(item.eventTag.string).isEqualTo(name); in tagsLongHistory()
174 assertThat(item.eventTag.string).isEqualTo(name); in tagsLongHistory()
260 assertThat(item.eventTag).isNull(); in assertHistoryItem()
262 assertThat(item.eventTag.string).isEqualTo(tag); in assertHistoryItem()
263 assertThat(item.eventTag.uid).isEqualTo(uid); in assertHistoryItem()
H A DBatteryUsageStatsProviderTest.java321 int uid = item.eventTag.uid; in testWriteAndReadHistoryTags()
325 assertThat(item.eventTag.string).startsWith(uid + " "); in testWriteAndReadHistoryTags()
339 assertThat(item.eventTag).isNull(); in assertHistoryItem()
341 assertThat(item.eventTag.string).isEqualTo(tag); in assertHistoryItem()
342 assertThat(item.eventTag.uid).isEqualTo(uid); in assertHistoryItem()
H A DBatteryStatsNoteTest.java274 assertThat(item.eventTag).isNotNull(); in testNoteLongPartialWakelockStart_isolatedUid()
282 assertThat(item.eventTag).isNotNull(); in testNoteLongPartialWakelockStart_isolatedUid()
330 assertThat(item.eventTag).isNotNull(); in testNoteLongPartialWakelockStart_isolatedUidRace()
338 assertThat(item.eventTag).isNotNull(); in testNoteLongPartialWakelockStart_isolatedUidRace()
945 assertEquals("foo", item.eventTag.string); in testAlarmStartAndFinishLocked()
946 assertEquals(UID, item.eventTag.uid); in testAlarmStartAndFinishLocked()
952 assertEquals(UID, item.eventTag.uid); in testAlarmStartAndFinishLocked()
985 assertEquals(100, item.eventTag.uid); in testAlarmStartAndFinishLocked_workSource()
990 assertEquals(500, item.eventTag.uid); in testAlarmStartAndFinishLocked_workSource()
995 assertEquals(100, item.eventTag.uid); in testAlarmStartAndFinishLocked_workSource()
[all …]
H A DBatteryStatsHistoryTest.java415 if (item.eventTag.poolIdx != BatteryStats.HistoryTag.HISTORY_TAG_POOL_OVERFLOW) { in largeTagPool()
417 assertThat(checkinDump).contains("+Eal=" + item.eventTag.poolIdx); in largeTagPool()
420 assertThat(checkinDump).contains("+Eal=42:\"" + item.eventTag.string + "\""); in largeTagPool()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHistoryIterator.java199 cur.eventTag = cur.localEventTag; in readHistoryDelta()
204 cur.eventTag = cur.localEventTag; in readHistoryDelta()
206 cur.eventTag = null; in readHistoryDelta()
211 + cur.eventTag.poolIdx + " " + cur.eventTag.uid + ":" in readHistoryDelta()
212 + cur.eventTag.string); in readHistoryDelta()
H A DBatteryStatsHistory.java994 mHistoryCur.eventTag = mHistoryCur.localEventTag; in recordEvent()
995 mHistoryCur.eventTag.string = name; in recordEvent()
996 mHistoryCur.eventTag.uid = uid; in recordEvent()
1327 recordTraceEvents(cur.eventCode, cur.eventTag); in writeHistoryItem()
1402 cur.eventTag = cur.localEventTag; in writeHistoryItem()
1403 cur.eventTag.setTo(mHistoryLastWritten.eventTag); in writeHistoryItem()
1456 copy.eventTag = null; in writeHistoryItem()
1485 cur.eventTag = null; in writeHistoryItem()
1730 cur.eventTag.writeToParcel(dest, 0); in writeHistoryDelta()
1735 + cur.eventTag.poolIdx + " " + cur.eventTag.uid + ":" in writeHistoryDelta()
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DBatteryStats.java2097 public HistoryTag eventTag; field in BatteryStats.HistoryItem
2187 eventTag = localEventTag; in readFromParcel()
2191 eventTag = null; in readFromParcel()
2219 eventTag = null; in clear()
2264 if (o.eventTag != null) { in setToCommon()
2266 eventTag.setTo(o.eventTag); in setToCommon()
2268 eventTag = null; in setToCommon()
2312 if (eventTag != o.eventTag) { in same()
2313 if (eventTag == null || o.eventTag == null) { in same()
2316 if (!eventTag.equals(o.eventTag)) { in same()
[all …]
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java13598 final int eventTag = enabled
13601 SecurityLog.writeEvent(eventTag, caller.getPackageName(), caller.getUserId(), key);
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt34821 Landroid/os/BatteryStats$HistoryItem;->eventTag:Landroid/os/BatteryStats$HistoryTag;