/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | ProvisioningIntentProviderTest.java | 94 @Mock private SettingsFacade mSettingsFacade; field in ProvisioningIntentProviderTest 114 mContext, mProvisioningAnalyticsTracker, policyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 128 mProvisioningAnalyticsTracker, policyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() 139 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(false); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 143 mProvisioningAnalyticsTracker, policyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 155 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched() 160 mProvisioningAnalyticsTracker, policyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched() 172 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched() 178 mProvisioningAnalyticsTracker, policyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched() 191 mProvisioningAnalyticsTracker, mPolicyComplianceUtils, mSettingsFacade); in maybeLaunchDpc_cannotResolveIntent()
|
D | FinalizationInsideSuwControllerTest.java | 88 @Mock private SettingsFacade mSettingsFacade; field in FinalizationInsideSuwControllerTest 129 mActivity, mUtils, mSettingsFacade, mHelper, in setUp() 139 mUtils, mSettingsFacade, mHelper, mNotificationHelper, mDeferredMetricsReader, in setUp() 191 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testManagedProfileFinalizationDuringSuw() 192 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testManagedProfileFinalizationDuringSuw() 275 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testDeviceOwnerFinalizationDuringSuw() 276 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testDeviceOwnerFinalizationDuringSuw() 367 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testCorpOwnedManagedProfileDuringSuw() 368 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testCorpOwnedManagedProfileDuringSuw()
|
D | UserProvisioningStateHelperTest.java | 61 @Mock private SettingsFacade mSettingsFacade; field in UserProvisioningStateHelperTest 75 mSettingsFacade, in setUp() 197 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(completed); in markUserSetupCompleted()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/ |
D | ParserUtilsTest.java | 71 private final SettingsFacade mSettingsFacade = new SettingsFacade(); field in ParserUtilsTest 131 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_provisionManagedDeviceIntent_returnsProvisionManagedDevice() 141 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_provisionManagedProfileIntent_returnsProvisionManagedProfile() 151 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_provisionFinancedDeviceIntent_returnsProvisionFinancedDevice() 161 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_provisionManagedDeviceSilentlyIntent_returnsProvisionManagedDevice() 171 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_nfcIntent_returnsProvisionManagedDevice() 180 mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext); in testExtractProvisioningAction_nfcIntentWithNoMimeType_throwsException() 189 mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext); in extractProvisioningAction_nfcIntentWithWrongMimeType_throwsException() 199 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_trustedSourceDuringSetupWizard_returnsProvisionManagedDevice() 210 assertThat(mParserUtils.extractProvisioningAction(intent, mSettingsFacade, mContext)) in extractProvisioningAction_trustedSourceAfterSetupWizard_returnsProvisionManagedProfile()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | DownloadRoleHolderViewModel.java | 53 private final SettingsFacade mSettingsFacade; field in DownloadRoleHolderViewModel 64 mSettingsFacade = requireNonNull(settingsFacade); in DownloadRoleHolderViewModel() 86 mSettingsFacade, in connectToNetworkAndDownloadRoleHolder() 140 private final SettingsFacade mSettingsFacade; field in DownloadRoleHolderViewModel.DownloadRoleHolderViewModelFactory 151 mSettingsFacade = requireNonNull(settingsFacade); in DownloadRoleHolderViewModelFactory() 162 mParams, mUtils, mSettingsFacade, mRoleHolderPackageName); in create()
|
D | EncryptionController.java | 54 private final SettingsFacade mSettingsFacade; field in EncryptionController 104 mSettingsFacade = checkNotNull(settingsFacade); in EncryptionController() 126 if (!mSettingsFacade.isUserSetupCompleted(mContext)) { in setEncryptionReminder() 197 if (mSettingsFacade.isUserSetupCompleted(mContext)) { in resumeProvisioningInternal()
|
D | WebActivity.java | 59 private final SettingsFacade mSettingsFacade = new SettingsFacade(); field in WebActivity 93 if (!mSettingsFacade.isUserSetupCompleted(this)) { in onCreate()
|
D | PreProvisioningActivityController.java | 136 private final SettingsFacade mSettingsFacade; field in PreProvisioningActivityController 198 mSettingsFacade = requireNonNull(settingsFacade); in PreProvisioningActivityController() 214 MetricsWriterFactory.getMetricsWriter(mContext, mSettingsFacade), in PreProvisioningActivityController() 416 mProvisioningAnalyticsTracker.logEntryPoint(mContext, intent, mSettingsFacade); in initiateProvisioning() 1016 if (mSettingsFacade.isDeviceProvisioned(mContext)) { in factoryResetProtected() 1093 return mSettingsFacade; in getSettingsFacade()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionViewModel.java | 59 private final SettingsFacade mSettingsFacade; field in EstablishNetworkConnectionViewModel 68 mSettingsFacade = requireNonNull(settingsFacade); in EstablishNetworkConnectionViewModel() 119 mSettingsFacade, in connectToNetwork() 169 private final SettingsFacade mSettingsFacade; field in EstablishNetworkConnectionViewModel.EstablishNetworkConnectionViewModelFactory 177 mSettingsFacade = requireNonNull(settingsFacade); in EstablishNetworkConnectionViewModelFactory() 190 mUtils, mSettingsFacade, mSharedPreferences); in create()
|
D | EstablishNetworkConnectionController.java | 39 private final SettingsFacade mSettingsFacade; field in EstablishNetworkConnectionController 71 mSettingsFacade = requireNonNull(settingsFacade); in EstablishNetworkConnectionController()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | EncryptionControllerTest.java | 60 @Mock private SettingsFacade mSettingsFacade; field in EncryptionControllerTest 85 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false); in testDeviceOwner() 98 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(true); in testProfileOwnerAfterSuw() 109 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false); in testProfileOwnerDuringSuw() 142 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(true); in testCancelProvisioningReminder() 177 return new EncryptionController(mContext, mUtils, mSettingsFacade, TEST_HOME_RECEIVER, in createEncryptionController()
|
D | PreProvisioningActivityControllerTest.java | 279 private SettingsFacade mSettingsFacade; field in PreProvisioningActivityControllerTest 355 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(false); in setUp() 374 mSettingsFacade, in createControllerWithRoleHolderHelpers() 443 when(mSettingsFacade.isDuringSetupWizard(any())).thenReturn(false); in testTrustedSource_roleHolderDownloadExtra_downloadsRoleHolder() 466 when(mSettingsFacade.isDuringSetupWizard(any())).thenReturn(false); in testManagedProfile_roleHolderDownloadExtraAndAllowOffline_startsPlatformProvidedProvisioning() 490 when(mSettingsFacade.isDuringSetupWizard(any())).thenReturn(false); in testManagedProfile_noRoleHolderAndRoleHolderDownloadExtra_failsProvisioning() 869 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(false); in testManagedProfile_frp() 889 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(false); in testCheckFactoryResetProtection_skipFrp() 2026 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(true); in prepareMocksForManagedProfileIntent() 2037 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(true); in prepareMocksForManagedProfileIntent()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsActivity.java | 58 private final SettingsFacade mSettingsFacade; field in TermsActivity 90 mSettingsFacade = requireNonNull(settingsFacade); in TermsActivity() 111 MetricsWriterFactory.getMetricsWriter(this, mSettingsFacade), in initAnalyticsTracker() 172 return !mSettingsFacade.isDeferredSetup(context) in shouldSetupDynamicColors() 173 && !mSettingsFacade.isDuringSetupWizard(context); in shouldSetupDynamicColors()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | MessageParser.java | 41 private final SettingsFacade mSettingsFacade; field in MessageParser 54 mSettingsFacade = checkNotNull(settingsFacade); in MessageParser() 65 return new ExtrasProvisioningDataParser(mContext, mUtils, mParserUtils, mSettingsFacade); in getParser()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | SendDpcBroadcastService.java | 46 private SettingsFacade mSettingsFacade = new SettingsFacade(); field in SendDpcBroadcastService 73 MetricsWriterFactory.getMetricsWriter(context, mSettingsFacade), in maybeLaunchDpc() 80 mSettingsFacade); in maybeLaunchDpc()
|
D | UserProvisioningStateHelper.java | 52 private final SettingsFacade mSettingsFacade; field in UserProvisioningStateHelper 68 mSettingsFacade = checkNotNull(settingsFacade); in UserProvisioningStateHelper() 85 final boolean userSetupCompleted = mSettingsFacade.isUserSetupCompleted(mContext); in markUserProvisioningStateInitiallyDone()
|
D | PreFinalizationController.java | 43 private final SettingsFacade mSettingsFacade; field in PreFinalizationController 80 mSettingsFacade = checkNotNull(settingsFacade); in PreFinalizationController()
|
D | FinalizationController.java | 72 private final SettingsFacade mSettingsFacade; field in FinalizationController 123 mSettingsFacade = checkNotNull(settingsFacade); in FinalizationController()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | AdminIntegratedFlowPrepareController.java | 41 private final SettingsFacade mSettingsFacade; field in AdminIntegratedFlowPrepareController 72 mSettingsFacade = requireNonNull(settingsFacade); in AdminIntegratedFlowPrepareController() 123 return !mSettingsFacade.isDeviceProvisioned(mContext) in getRequireFactoryReset()
|
D | DownloadRoleHolderController.java | 43 private final SettingsFacade mSettingsFacade; field in DownloadRoleHolderController 75 mSettingsFacade = requireNonNull(settingsFacade); in DownloadRoleHolderController() 140 return !mSettingsFacade.isDeviceProvisioned(mContext) in getRequireFactoryReset()
|
D | AdminIntegratedFlowPrepareManager.java | 60 private final SettingsFacade mSettingsFacade; field in AdminIntegratedFlowPrepareManager 101 mSettingsFacade = requireNonNull(settingsFacade); in AdminIntegratedFlowPrepareManager() 185 mSettingsFacade); in getController()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | AdminIntegratedFlowPrepareControllerTest.java | 76 private SettingsFacade mSettingsFacade; field in AdminIntegratedFlowPrepareControllerTest 155 mSettingsFacade); in createController() 156 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(isDeviceProvisioned); in createController()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | SetupLayoutActivity.java | 56 protected final SettingsFacade mSettingsFacade; field in SetupLayoutActivity 70 mSettingsFacade = settingsFacade; in SetupLayoutActivity()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsActivityTest.java | 87 private SettingsFacade mSettingsFacade; field in TermsActivityTest 100 when(mSettingsFacade.isDuringSetupWizard(any(Context.class))).thenReturn(false); in setUp() 105 mSettingsFacade, in setUp()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionControllerTest.java | 85 private SettingsFacade mSettingsFacade; field in EstablishNetworkConnectionControllerTest 182 mSettingsFacade, in createController()
|