Home
last modified time | relevance | path

Searched refs:mSettingsFacade (Results 1 – 22 of 22) sorted by relevance

/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/
DParserUtilsTest.java71 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/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DProvisioningIntentProviderTest.java94 @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()
DFinalizationInsideSuwControllerTest.java88 @Mock private SettingsFacade mSettingsFacade; field in FinalizationInsideSuwControllerTest
122 mActivity, mUtils, mSettingsFacade, mHelper, in setUp()
132 mUtils, mSettingsFacade, mHelper, mNotificationHelper, mDeferredMetricsReader, in setUp()
181 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testManagedProfileFinalizationDuringSuw()
182 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testManagedProfileFinalizationDuringSuw()
265 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testDeviceOwnerFinalizationDuringSuw()
266 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testDeviceOwnerFinalizationDuringSuw()
357 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testCorpOwnedManagedProfileDuringSuw()
358 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testCorpOwnedManagedProfileDuringSuw()
DUserProvisioningStateHelperTest.java59 @Mock private SettingsFacade mSettingsFacade; field in UserProvisioningStateHelperTest
73 mSettingsFacade, in setUp()
192 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(completed); in markUserSetupCompleted()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java58 @Mock private SettingsFacade mSettingsFacade; field in EncryptionControllerTest
83 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false); in testDeviceOwner()
96 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(true); in testProfileOwnerAfterSuw()
107 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false); in testProfileOwnerDuringSuw()
140 when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(true); in testCancelProvisioningReminder()
175 return new EncryptionController(mContext, mUtils, mSettingsFacade, TEST_HOME_RECEIVER, in createEncryptionController()
DPreProvisioningActivityControllerTest.java143 private SettingsFacade mSettingsFacade; field in PreProvisioningActivityControllerTest
210 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(false); in setUp()
221 mSettingsFacade, in setUp()
346 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(false); in testManagedProfile_frp()
359 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(false); in testCheckFactoryResetProtection_skipFrp()
1261 when(mSettingsFacade.isDeviceProvisioned(mContext)).thenReturn(true); in prepareMocksForManagedProfileIntent()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DMessageParser.java43 private final SettingsFacade mSettingsFacade; field in MessageParser
56 mSettingsFacade = checkNotNull(settingsFacade); in MessageParser()
68 return new PropertiesProvisioningDataParser(mContext, mParserUtils, mSettingsFacade); in getParser()
71 mContext, mUtils, mParserUtils, mSettingsFacade); in getParser()
DPropertiesProvisioningDataParser.java99 private final SettingsFacade mSettingsFacade; field in PropertiesProvisioningDataParser
112 mSettingsFacade = checkNotNull(settingsFacade); in PropertiesProvisioningDataParser()
150 nfcIntent, mSettingsFacade, mContext)) in parse()
DExtrasProvisioningDataParser.java343 private final SettingsFacade mSettingsFacade; field in ExtrasProvisioningDataParser
359 mSettingsFacade = checkNotNull(settingsFacade); in ExtrasProvisioningDataParser()
496 intent, mSettingsFacade, mContext); in parseMinimalistSupportedProvisioningDataInternal()
615 return mSettingsFacade.isDuringSetupWizard(mContext); in getReturnBeforePolicyCompliance()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivity.java68 private final SettingsFacade mSettingsFacade; field in TermsActivity
98 mSettingsFacade = requireNonNull(settingsFacade); in TermsActivity()
117 MetricsWriterFactory.getMetricsWriter(this, mSettingsFacade), in onCreate()
221 return !mSettingsFacade.isDeferredSetup(context) in shouldSetupDynamicColors()
222 && !mSettingsFacade.isDuringSetupWizard(context); in shouldSetupDynamicColors()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DEncryptionController.java54 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()
DWebActivity.java59 private final SettingsFacade mSettingsFacade = new SettingsFacade(); field in WebActivity
93 if (!mSettingsFacade.isUserSetupCompleted(this)) { in onCreate()
DPreProvisioningActivityController.java113 private final SettingsFacade mSettingsFacade; field in PreProvisioningActivityController
152 mSettingsFacade = requireNonNull(settingsFacade); in PreProvisioningActivityController()
168 MetricsWriterFactory.getMetricsWriter(mContext, mSettingsFacade), in PreProvisioningActivityController()
780 if (mSettingsFacade.isDeviceProvisioned(mContext)) { in factoryResetProtected()
857 return mSettingsFacade; in getSettingsFacade()
DPreProvisioningActivity.java131 if (mSettingsFacade.isDeferredSetup(getApplicationContext()) || isNfcSetup()) { in onCreate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DSendDpcBroadcastService.java46 private SettingsFacade mSettingsFacade = new SettingsFacade(); field in SendDpcBroadcastService
73 MetricsWriterFactory.getMetricsWriter(context, mSettingsFacade), in maybeLaunchDpc()
80 mSettingsFacade); in maybeLaunchDpc()
DUserProvisioningStateHelper.java50 private final SettingsFacade mSettingsFacade; field in UserProvisioningStateHelper
66 mSettingsFacade = checkNotNull(settingsFacade); in UserProvisioningStateHelper()
83 final boolean userSetupCompleted = mSettingsFacade.isUserSetupCompleted(mContext); in markUserProvisioningStateInitiallyDone()
DPreFinalizationController.java43 private final SettingsFacade mSettingsFacade; field in PreFinalizationController
78 mSettingsFacade = checkNotNull(settingsFacade); in PreFinalizationController()
DFinalizationController.java67 private final SettingsFacade mSettingsFacade; field in FinalizationController
116 mSettingsFacade = checkNotNull(settingsFacade); in FinalizationController()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivityTest.java87 private SettingsFacade mSettingsFacade; field in TermsActivityTest
100 when(mSettingsFacade.isDuringSetupWizard(any(Context.class))).thenReturn(false); in setUp()
105 mSettingsFacade, in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSetupLayoutActivity.java51 protected final SettingsFacade mSettingsFacade; field in SetupLayoutActivity
65 mSettingsFacade = settingsFacade; in SetupLayoutActivity()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParserTest.java240 private SettingsFacade mSettingsFacade; field in ExtrasProvisioningDataParserTest
265 new ParserUtils(), mSettingsFacade, mSharedPreferences); in setUp()
270 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in testParse_trustedSourceProvisioningIntent()
550 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in testParse_illFormedLocaleThrowsException()
608 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in testParse_WifiInfoWithCertificates()
892 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(false); in testParse_managedProfileWithReturnBeforePolicyComplianceTrue_afterSetupWizard_isFalse()
904 when(mSettingsFacade.isDuringSetupWizard(mContext)).thenReturn(true); in testParse_managedProfileWithReturnBeforePolicyComplianceTrue_duringSetupWizard_isTrue()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java181 @Mock private SettingsFacade mSettingsFacade; field in ProvisioningActivityTest
222 mPolicyComplianceUtils, mSettingsFacade, mThemeHelper) { in setUp()