Home
last modified time | relevance | path

Searched refs:hostPackage (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/data/model/
DMediaProjectionState.kt32 sealed class Projecting(open val hostPackage: String) : MediaProjectionState { constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting
34 data class EntireScreen(override val hostPackage: String) : Projecting(hostPackage) constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting.EntireScreen
37 data class SingleTask(override val hostPackage: String, val task: RunningTaskInfo) : constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting.SingleTask
38 Projecting(hostPackage)
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/data/repository/
DMediaProjectionManagerRepository.kt112 val hostPackage = info.packageName in stateForSession() constant
114 return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()
119 ) ?: return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()
120 return MediaProjectionState.Projecting.SingleTask(hostPackage, matchingTask) in stateForSession()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/data/repository/
DMediaProjectionManagerRepositoryTest.kt137 assertThat((state as MediaProjectionState.Projecting.EntireScreen).hostPackage) in mediaProjectionState_entireScreen_hasHostPackage()
177 assertThat((state as MediaProjectionState.Projecting.SingleTask).hostPackage) in mediaProjectionState_singleTask_hasHostPackage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/mediaprojection/domain/interactor/
DMediaProjectionChipInteractor.kt56 if (isProjectionToOtherDevice(state.hostPackage)) { in <lambda>()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskFragmentTest.java594 final AndroidPackage hostPackage = mock(AndroidPackage.class); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage() local
598 doReturn(signingDetails).when(hostPackage).getSigningDetails(); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
602 activity, hostPackage)); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
607 activity, hostPackage)); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
612 activity, hostPackage)); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
618 activity, hostPackage)); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
625 activity, hostPackage)); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage()
/frameworks/base/core/proto/android/service/
Dappwidget.proto32 optional string hostPackage = 3; field
/frameworks/base/services/core/java/com/android/server/wm/
DTaskFragment.java792 final AndroidPackage hostPackage = mAtmService.getPackageManagerInternalLocked() in isAllowedToEmbedActivityInTrustedMode() local
795 return hostPackage != null in isAllowedToEmbedActivityInTrustedMode()
796 && isAllowedToEmbedActivityInTrustedModeByHostPackage(a, hostPackage); in isAllowedToEmbedActivityInTrustedMode()
801 @NonNull ActivityRecord a, @NonNull AndroidPackage hostPackage) { in isAllowedToEmbedActivityInTrustedModeByHostPackage() argument
815 return hostPackage.getSigningDetails().hasAncestorOrSelfWithDigest( in isAllowedToEmbedActivityInTrustedModeByHostPackage()