Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
DBubbleXmlHelperTest.kt37 BubbleEntity(0, "com.example.messenger", "shortcut-1", "0k1", 120, 0, null, 1,
39 BubbleEntity(10, "com.example.chat", "alice and bob", "0k2", 0, 16537428, "title", 2,
41 BubbleEntity(0, "com.example.messenger", "shortcut-2", "0k3", 120, 0, null,
46 BubbleEntity(1, "com.example.messenger", "shortcut-1", "1k1", 120, 0, null, 3,
48 BubbleEntity(12, "com.example.chat", "alice and bob", "1k2", 0, 16537428, "title", 4,
50 BubbleEntity(1, "com.example.messenger", "shortcut-2", "1k3", 120, 0, null,
54 private val bubbles = SparseArray<List<BubbleEntity>>()
127 val expectedBubbles = SparseArray<List<BubbleEntity>>() in testReadXMLWithoutTaskId()
129 BubbleEntity(0, "com.example.messenger", "shortcut-1", "k1", 120, 0, in testReadXMLWithoutTaskId()
131 BubbleEntity(0, "com.example.messenger", "shortcut-2", "k3", 120, 0, in testReadXMLWithoutTaskId()
[all …]
DBubblePersistentRepositoryTest.kt38 BubbleEntity(0, "com.example.messenger", "shortcut-1", "0k1", 120, 0, null, 1, null,
40 BubbleEntity(10, "com.example.chat", "alice and bob", "0k2", 0, 16537428, "title", 2,
42 BubbleEntity(0, "com.example.messenger", "shortcut-2", "0k3", 120, 0, null,
47 BubbleEntity(1, "com.example.messenger", "shortcut-1", "1k1", 120, 0, null, 3, null,
49 BubbleEntity(12, "com.example.chat", "alice and bob", "1k2", 0, 16537428, "title", 4,
51 BubbleEntity(1, "com.example.messenger", "shortcut-2", "1k3", 120, 0, null,
55 private val bubbles = SparseArray<List<BubbleEntity>>()
DBubbleVolatileRepositoryTest.kt47 private val bubble1 = BubbleEntity(user0.identifier,
49 private val bubble2 = BubbleEntity(user10_managed.identifier,
51 private val bubble3 = BubbleEntity(user0.identifier,
54 private val bubble11 = BubbleEntity(user11.identifier,
56 private val bubble12 = BubbleEntity(user11.identifier,
146 val bubble = BubbleEntity(0, "com.example.pkg", "shortcut-id", "key", 120, 0, "title", in testAddBubbleMatchesByKey()
152 val bubbleModified = BubbleEntity(0, "com.example.pkg", "shortcut-id", "key", 120, 0, in testAddBubbleMatchesByKey()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
DBubbleVolatileRepository.kt36 private var entitiesByUser = SparseArray<MutableList<BubbleEntity>>() in <lambda>()
47 val bubbles: SparseArray<List<BubbleEntity>> in <lambda>()
50 val map = SparseArray<List<BubbleEntity>>() in <lambda>()
63 fun getEntities(userId: Int): MutableList<BubbleEntity> { in <lambda>()
66 null -> mutableListOf<BubbleEntity>().also { in <lambda>()
78 fun addBubbles(userId: Int, bubbles: List<BubbleEntity>) { in <lambda>()
85 val uniqueBubbles = bubblesInRange.filterNot { b: BubbleEntity -> in <lambda>()
86 entities.removeIf { e: BubbleEntity -> b.key == e.key } } in <lambda>()
99 fun removeBubbles(@UserIdInt userId: Int, bubbles: List<BubbleEntity>) = in <lambda>()
100 uncache(bubbles.filter { b: BubbleEntity -> in <lambda>()
[all …]
DBubbleXmlHelper.kt52 fun writeXml(stream: OutputStream, bubbles: SparseArray<List<BubbleEntity>>) { in <lambda>()
76 private fun writeXmlEntry(serializer: XmlSerializer, bubble: BubbleEntity) { in writeXmlEntry()
98 fun readXml(stream: InputStream): SparseArray<List<BubbleEntity>> { in readXml()
99 val bubbles = SparseArray<List<BubbleEntity>>() in readXml()
109 val userBubbles = mutableListOf<BubbleEntity>() in readXml()
120 val userBubbles = mutableListOf<BubbleEntity>() in readXml()
136 private fun readXmlEntry(parser: XmlPullParser): BubbleEntity? { in readXmlEntry()
138 return BubbleEntity( in readXmlEntry()
DBubblePersistentRepository.kt31 fun persistsToDisk(bubbles: SparseArray<List<BubbleEntity>>): Boolean { in persistsToDisk()
51 fun readFromDisk(): SparseArray<List<BubbleEntity>> { in readFromDisk()
DBubbleEntity.kt21 data class BubbleEntity( class
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleDataRepositoryTest.kt25 import com.android.wm.shell.bubbles.storage.BubbleEntity
41 BubbleEntity(
53 BubbleEntity(
64 BubbleEntity(
78 BubbleEntity(
90 BubbleEntity(
101 BubbleEntity(
112 BubbleEntity(
129 private val persistedBubbles = SparseArray<List<BubbleEntity>>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleDataRepository.kt30 import com.android.wm.shell.bubbles.storage.BubbleEntity in <lambda>()
109 entitiesByUser: SparseArray<List<BubbleEntity>> in <lambda>()
110 ): SparseArray<List<BubbleEntity>> { in <lambda>()
111 val validEntitiesByUser = SparseArray<List<BubbleEntity>>() in <lambda>()
116 val validEntities = mutableListOf<BubbleEntity>() in <lambda>()
140 private fun transform(bubbles: List<Bubble>): List<BubbleEntity> { in <lambda>()
142 BubbleEntity( in <lambda>()
173 entitiesByUser: SparseArray<List<BubbleEntity>> = volatileRepository.bubbles in <lambda>()