Home
last modified time | relevance | path

Searched refs:BubbleEntity (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/storage/
DBubbleVolatileRepository.kt38 private var entities = mutableSetOf<BubbleEntity>() in <lambda>()
49 val bubbles: List<BubbleEntity> in <lambda>()
58 fun addBubbles(bubbles: List<BubbleEntity>) { in <lambda>()
63 val uniqueBubbles = bubblesInRange.filterNot { b: BubbleEntity -> in <lambda>()
64 entities.removeIf { e: BubbleEntity -> b.key == e.key } } in <lambda>()
76 fun removeBubbles(bubbles: List<BubbleEntity>) = in <lambda>()
77 uncache(bubbles.filter { b: BubbleEntity -> in <lambda>()
78 entities.removeIf { e: BubbleEntity -> b.key == e.key } }) in <lambda>()
80 private fun cache(bubbles: List<BubbleEntity>) { in <lambda>()
87 private fun uncache(bubbles: List<BubbleEntity>) { in <lambda>()
DBubbleXmlHelper.kt46 fun writeXml(stream: OutputStream, bubbles: List<BubbleEntity>) { in <lambda>()
63 private fun writeXmlEntry(serializer: XmlSerializer, bubble: BubbleEntity) { in writeXmlEntry()
82 fun readXml(stream: InputStream): List<BubbleEntity> { in readXml()
83 val bubbles = mutableListOf<BubbleEntity>() in readXml()
97 private fun readXmlEntry(parser: XmlPullParser): BubbleEntity? { in readXmlEntry()
99 return BubbleEntity( in readXmlEntry()
DBubblePersistentRepository.kt35 fun persistsToDisk(bubbles: List<BubbleEntity>): Boolean { in persistsToDisk()
55 fun readFromDisk(): List<BubbleEntity> { in readFromDisk()
DBubbleEntity.kt21 data class BubbleEntity( class
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/storage/
DBubbleXmlHelperTest.kt34 BubbleEntity(0, "com.example.messenger", "shortcut-1", "k1", 120, 0),
35 BubbleEntity(10, "com.example.chat", "alice and bob", "k2", 0, 16537428, "title"),
36 BubbleEntity(0, "com.example.messenger", "shortcut-2", "k3", 120, 0)
80 assertEquals("failed parsing bubbles from xml\n$src", emptyList<BubbleEntity>(), actual) in testUpgradeDropsPreviousData()
DBubblePersistentRepositoryTest.kt34 BubbleEntity(0, "com.example.messenger", "shortcut-1", "key-1", 120, 0),
35 BubbleEntity(10, "com.example.chat", "alice and bob", "key-2", 0, 16537428, "title"),
36 BubbleEntity(0, "com.example.messenger", "shortcut-2", "key-3", 120, 0)
DBubbleVolatileRepositoryTest.kt40 private val bubble1 = BubbleEntity(0, "com.example.messenger", "shortcut-1", "key-1", 120, 0)
41 private val bubble2 = BubbleEntity(10, "com.example.chat", "alice and bob",
43 private val bubble3 = BubbleEntity(0, "com.example.messenger", "shortcut-2", "key-3", 120, 0)
108 val bubble = BubbleEntity(0, "com.example.pkg", "shortcut-id", "key", 120, 0, "title") in testAddBubbleMatchesByKey()
113 val bubbleModified = BubbleEntity(0, "com.example.pkg", "shortcut-id", "key", 120, 0, in testAddBubbleMatchesByKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleDataRepository.kt26 import com.android.systemui.bubbles.storage.BubbleEntity in <lambda>()
75 private fun transform(userId: Int, bubbles: List<Bubble>): List<BubbleEntity> { in <lambda>()
77 BubbleEntity( in <lambda>()