/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/ |
D | AppButtons.kt | 35 packageInfoPresenter: PackageInfoPresenter, in AppButtons() 39 if (remember(packageInfoPresenter) { packageInfoPresenter.isMainlineModule() }) return in AppButtons() 42 packageInfoPresenter, in AppButtons() 54 private val packageInfoPresenter: PackageInfoPresenter, in PackageInfoPresenter() constant in com.android.settings.spa.app.appinfo.AppButtonsPresenter 58 private val appLaunchButton = AppLaunchButton(packageInfoPresenter) in PackageInfoPresenter() 59 private val appInstallButton = AppInstallButton(packageInfoPresenter) in PackageInfoPresenter() 60 private val appDisableButton = AppDisableButton(packageInfoPresenter) in PackageInfoPresenter() 61 private val appUninstallButton = AppUninstallButton(packageInfoPresenter) in PackageInfoPresenter() 62 private val appClearButton = AppClearButton(packageInfoPresenter) in PackageInfoPresenter() 63 private val appForceStopButton = AppForceStopButton(packageInfoPresenter) in PackageInfoPresenter() [all …]
|
D | ClonePageAppButtons.kt | 31 fun ClonePageAppButtons(packageInfoPresenter: PackageInfoPresenter) { in ClonePageAppButtons() 32 val presenter = remember { CloneAppButtonsPresenter(packageInfoPresenter) } in ClonePageAppButtons() 36 private class CloneAppButtonsPresenter(private val packageInfoPresenter: PackageInfoPresenter) { constant in com.android.settings.spa.app.appinfo.CloneAppButtonsPresenter 37 private val appLaunchButton = FakeAppLaunchButton(packageInfoPresenter) 38 private val appCreateButton = AppCreateButton(packageInfoPresenter) 39 private val appForceStopButton = FakeAppForceStopButton(packageInfoPresenter) 43 packageInfoPresenter.flow.collectAsStateWithLifecycle(initialValue = null).value?.let { in getActionButtons() 55 class FakeAppForceStopButton(packageInfoPresenter: PackageInfoPresenter) { in getActionButtons() 56 private val context = packageInfoPresenter.context in getActionButtons() 69 class FakeAppLaunchButton(packageInfoPresenter: PackageInfoPresenter) { [all …]
|
D | CloneAppInfoSettings.kt | 52 val packageInfoPresenter = remember { in Page() constant 55 CloneAppInfoSettings(packageInfoPresenter) in Page() 56 packageInfoPresenter.PackageFullyRemovedEffect() in Page() 71 private fun CloneAppInfoSettings(packageInfoPresenter: PackageInfoPresenter) { in navigator() 72 val packageInfo = packageInfoPresenter.flow.collectAsStateWithLifecycle().value ?: return in navigator() 79 ClonePageAppButtons(packageInfoPresenter) in navigator()
|
D | TopBarAppLaunchButton.kt | 32 fun TopBarAppLaunchButton(packageInfoPresenter: PackageInfoPresenter, app: ApplicationInfo) { in TopBarAppLaunchButton() 33 val intent = packageInfoPresenter.launchIntent(app = app) ?: return in TopBarAppLaunchButton() 34 IconButton({ launchButtonAction(intent, app, packageInfoPresenter) }) { in TopBarAppLaunchButton() 51 packageInfoPresenter: PackageInfoPresenter in launchButtonAction() 54 packageInfoPresenter.context.startActivityAsUser(intent, app.userHandle) in launchButtonAction()
|
D | AppInfoSettings.kt | 74 val packageInfoPresenter = remember { in <lambda>() constant 77 AppInfoSettings(packageInfoPresenter) in <lambda>() 78 packageInfoPresenter.PackageFullyRemovedEffect() in <lambda>() 122 private fun AppInfoSettings(packageInfoPresenter: PackageInfoPresenter) { in AppInfoSettings() 123 val packageInfoState = packageInfoPresenter.flow.collectAsStateWithLifecycle() in AppInfoSettings() 129 … if (isArchivingEnabled(featureFlags)) TopBarAppLaunchButton(packageInfoPresenter, app) in AppInfoSettings() 130 AppInfoSettingsMoreOptions(packageInfoPresenter, app) in AppInfoSettings() 141 AppButtons(packageInfoPresenter, isHibernationSwitchEnabledStateFlow) in AppInfoSettings()
|
D | AppForceStopButton.kt | 41 private val packageInfoPresenter: PackageInfoPresenter, in <lambda>() constant in com.android.settings.spa.app.appinfo.AppForceStopButton 43 AppForceStopRepository(packageInfoPresenter), in <lambda>() 45 private val context = packageInfoPresenter.context in <lambda>() 63 packageInfoPresenter.logAction(SettingsEnums.ACTION_APP_INFO_FORCE_STOP) in <lambda>() 86 onClick = packageInfoPresenter::forceStop, in <lambda>()
|
D | AppArchiveButton.kt | 43 packageInfoPresenter: PackageInfoPresenter, in <lambda>() 51 private val context = packageInfoPresenter.context in <lambda>() 53 private val userPackageManager = packageInfoPresenter.userPackageManager in <lambda>() 55 private val packageName = packageInfoPresenter.packageName in <lambda>() 56 private val userHandle = UserHandle.of(packageInfoPresenter.userId) in <lambda>()
|
D | AppUninstallButton.kt | 38 class AppUninstallButton(private val packageInfoPresenter: PackageInfoPresenter) { constant in com.android.settings.spa.app.appinfo.AppUninstallButton 39 private val context = packageInfoPresenter.context 68 packageInfoPresenter.logAction( in onUninstallClicked() 73 packageInfoPresenter.startUninstallActivity() in onUninstallClicked()
|
D | AppRestoreButton.kt | 43 class AppRestoreButton(packageInfoPresenter: PackageInfoPresenter) { in <lambda>() 49 private val context = packageInfoPresenter.context in <lambda>() 50 private val userPackageManager = packageInfoPresenter.userPackageManager in <lambda>() 52 private val packageName = packageInfoPresenter.packageName in <lambda>() 53 private val userHandle = UserHandle.of(packageInfoPresenter.userId) in <lambda>()
|
D | AppForceStopRepository.kt | 41 private val packageInfoPresenter: PackageInfoPresenter, in <lambda>() constant in com.android.settings.spa.app.appinfo.AppForceStopRepository 43 AppButtonRepository(packageInfoPresenter.context), in <lambda>() 45 private val context = packageInfoPresenter.context in <lambda>() 50 fun canForceStopFlow(): Flow<Boolean> = packageInfoPresenter.flow in <lambda>()
|
D | AppDisableButton.kt | 38 private val packageInfoPresenter: PackageInfoPresenter, constant in com.android.settings.spa.app.appinfo.AppDisableButton 40 private val context = packageInfoPresenter.context 109 ) { packageInfoPresenter.enable() } in enableButton() 115 onClick = packageInfoPresenter::disable, in confirmDialogPresenter()
|
D | AppInstallButton.kt | 28 class AppInstallButton(private val packageInfoPresenter: PackageInfoPresenter) { in <lambda>() constant in com.android.settings.spa.app.appinfo.AppInstallButton 29 private val context = packageInfoPresenter.context in <lambda>() 34 return AppStoreUtil.getAppStoreLink(packageInfoPresenter.userContext, app.packageName) in <lambda>()
|
D | AppLaunchButton.kt | 28 class AppLaunchButton(packageInfoPresenter: PackageInfoPresenter) { in <lambda>() 29 private val context = packageInfoPresenter.context in <lambda>() 30 private val userPackageManager = packageInfoPresenter.userPackageManager in <lambda>()
|
D | AppClearButton.kt | 31 private val packageInfoPresenter: PackageInfoPresenter, constant in com.android.settings.spa.app.appinfo.AppClearButton 33 private val context = packageInfoPresenter.context 56 onClick = packageInfoPresenter::clearInstantApp, in confirmDialogPresenter()
|
D | AppInfoSettingsMoreOptions.kt | 54 packageInfoPresenter: PackageInfoPresenter, in AppInfoSettingsMoreOptions() 72 packageInfoPresenter.startUninstallActivity(forAllUsers = false) in AppInfoSettingsMoreOptions() 80 packageInfoPresenter.startUninstallActivity(forAllUsers = true) in AppInfoSettingsMoreOptions() 85 app.allowRestrictedSettings(packageInfoPresenter.context) { in AppInfoSettingsMoreOptions()
|
D | AppCreateButton.kt | 37 class AppCreateButton(packageInfoPresenter: PackageInfoPresenter) { 38 private val context = packageInfoPresenter.context
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | PackageInfoPresenterTest.kt | 66 private val packageInfoPresenter = constant in com.android.settings.spa.app.appinfo.PackageInfoPresenterTest 75 val isInterestedAppChange = packageInfoPresenter.isInterestedAppChange(intent) in isInterestedAppChange_packageChanged_isInterested() 87 val isInterestedAppChange = packageInfoPresenter.isInterestedAppChange(intent) in isInterestedAppChange_fullyRemoved_notInterested() 99 val isInterestedAppChange = packageInfoPresenter.isInterestedAppChange(intent) in isInterestedAppChange_removedBeforeReplacing_notInterested() 111 val isInterestedAppChange = packageInfoPresenter.isInterestedAppChange(intent) in isInterestedAppChange_archived_interested() 118 packageInfoPresenter.enable() in <lambda>() 129 packageInfoPresenter.disable() in <lambda>() 140 packageInfoPresenter.startUninstallActivity() in <lambda>() 155 packageInfoPresenter.clearInstantApp() in <lambda>() 164 packageInfoPresenter.forceStop() in <lambda>() [all …]
|
D | AppRestoreButtonTest.kt | 50 private val packageInfoPresenter = mock<PackageInfoPresenter>() constant 60 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 61 whenever(packageInfoPresenter.userPackageManager).thenReturn(userPackageManager) in setUp() 63 whenever(packageInfoPresenter.packageName).thenReturn(PACKAGE_NAME) in setUp() 64 appRestoreButton = AppRestoreButton(packageInfoPresenter) in setUp()
|
D | AppButtonsTest.kt | 67 private lateinit var packageInfoPresenter: PackageInfoPresenter variable in com.android.settings.spa.app.appinfo.AppButtonsTest 85 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 86 whenever(packageInfoPresenter.packageName).thenReturn(PACKAGE_NAME) in setUp() 87 whenever(packageInfoPresenter.userPackageManager).thenReturn(packageManager) in setUp() 186 whenever(packageInfoPresenter.flow).thenReturn(MutableStateFlow(packageInfo)) in setContent() 188 AppButtons(packageInfoPresenter, isHibernationSwitchEnabledStateFlow, featureFlags) in setContent()
|
D | AppArchiveButtonTest.kt | 51 private val packageInfoPresenter = mock<PackageInfoPresenter>() constant 63 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 64 whenever(packageInfoPresenter.userPackageManager).thenReturn(userPackageManager) in setUp() 67 whenever(packageInfoPresenter.packageName).thenReturn(PACKAGE_NAME) in setUp() 69 AppArchiveButton(packageInfoPresenter, isHibernationSwitchEnabledStateFlow) in setUp()
|
D | TopBarAppLaunchButtonTest.kt | 60 private lateinit var packageInfoPresenter: PackageInfoPresenter variable in com.android.settings.spa.app.appinfo.TopBarAppLaunchButtonTest 71 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 72 whenever(packageInfoPresenter.userPackageManager).thenReturn(userPackageManager) in setUp() 111 TopBarAppLaunchButton(packageInfoPresenter, app) in setContent()
|
D | AppForceStopRepositoryTest.kt | 75 private val packageInfoPresenter = mock<PackageInfoPresenter> { in <lambda>() constant in com.android.settings.spa.app.appinfo.AppForceStopRepositoryTest 79 private val repository = AppForceStopRepository(packageInfoPresenter) 138 private fun mockApp(builder: ApplicationInfo.() -> Unit = {}) = packageInfoPresenter.stub { in <lambda>()
|
D | AppDisableButtonTest.kt | 57 private lateinit var packageInfoPresenter: PackageInfoPresenter variable in com.android.settings.spa.app.appinfo.AppDisableButtonTest 81 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 91 appDisableButton = AppDisableButton(packageInfoPresenter) in setUp()
|
D | AppForceStopButtonTest.kt | 64 private val packageInfoPresenter = mock<PackageInfoPresenter> { in <lambda>() constant in com.android.settings.spa.app.appinfo.AppForceStopButtonTest 73 packageInfoPresenter = packageInfoPresenter,
|
D | AppInfoSettingsMoreOptionsTest.kt | 79 private lateinit var packageInfoPresenter: PackageInfoPresenter variable in com.android.settings.spa.app.appinfo.AppInfoSettingsMoreOptionsTest 112 whenever(packageInfoPresenter.context).thenReturn(context) in setUp() 271 AppInfoSettingsMoreOptions(packageInfoPresenter, app, packageManagers) in setContent()
|