Searched refs:hostPackage (Results 1 – 7 of 7) sorted by relevance
32 sealed class Projecting(open val hostPackage: String) : MediaProjectionState { constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting34 data class EntireScreen(override val hostPackage: String) : Projecting(hostPackage) constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting.EntireScreen37 data class SingleTask(override val hostPackage: String, val task: RunningTaskInfo) : constant in com.android.systemui.mediaprojection.data.model.MediaProjectionState.Projecting.SingleTask38 Projecting(hostPackage)
112 val hostPackage = info.packageName in stateForSession() constant114 return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()119 ) ?: return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()120 return MediaProjectionState.Projecting.SingleTask(hostPackage, matchingTask) in stateForSession()
137 assertThat((state as MediaProjectionState.Projecting.EntireScreen).hostPackage) in mediaProjectionState_entireScreen_hasHostPackage()177 assertThat((state as MediaProjectionState.Projecting.SingleTask).hostPackage) in mediaProjectionState_singleTask_hasHostPackage()
56 if (isProjectionToOtherDevice(state.hostPackage)) { in <lambda>()
594 final AndroidPackage hostPackage = mock(AndroidPackage.class); in testIsAllowedToEmbedActivityInTrustedModeByHostPackage() local598 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()
32 optional string hostPackage = 3; field
792 final AndroidPackage hostPackage = mAtmService.getPackageManagerInternalLocked() in isAllowedToEmbedActivityInTrustedMode() local795 return hostPackage != null in isAllowedToEmbedActivityInTrustedMode()796 && isAllowedToEmbedActivityInTrustedModeByHostPackage(a, hostPackage); in isAllowedToEmbedActivityInTrustedMode()801 @NonNull ActivityRecord a, @NonNull AndroidPackage hostPackage) { in isAllowedToEmbedActivityInTrustedModeByHostPackage() argument815 return hostPackage.getSigningDetails().hasAncestorOrSelfWithDigest( in isAllowedToEmbedActivityInTrustedModeByHostPackage()