Home
last modified time | relevance | path

Searched refs:isSupport (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DPictureInPictureTest.kt91 assertThat(record.isSupport).isTrue() in <lambda>()
108 assertThat(record.isSupport).isFalse() in <lambda>()
122 assertThat(record.isSupport).isTrue() in transformItem()
136 assertThat(record.isSupport).isFalse() in transformItem_getPackageInfoAsUserThrowsException_treatAsNotSupported()
141 val record = createRecord(isSupport = true) in <lambda>()
151 val record = createRecord(isSupport = false) in <lambda>()
161 val record = createRecord(isSupport = true) in isChangeable_isSupport()
170 val record = createRecord(isSupport = false) in isChangeable_notSupport()
177 private fun createRecord(isSupport: Boolean) = PictureInPictureRecord( in createRecord()
179 isSupport = isSupport, in createRecord()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DPictureInPicture.kt48 val isSupport: Boolean, constant in com.android.settings.spa.app.specialaccess.PictureInPictureRecord
67 isSupport = app.packageName in pictureInPicturePackages, in transform()
74 isSupport = app.installed && in transformItem()
78 private fun createPictureInPictureRecord(app: ApplicationInfo, isSupport: Boolean) = in transformItem()
81 isSupport = isSupport, in transformItem()
86 recordListFlow.map { recordList -> recordList.filter { it.isSupport } } in transformItem()
92 override fun isChangeable(record: PictureInPictureRecord) = record.isSupport in isAllowed()