Home
last modified time | relevance | path

Searched refs:ProvisioningParams (Results 1 – 25 of 127) sorted by relevance

123456

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DProvisioningParamsTest.java27 import static com.android.managedprovisioning.model.ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED;
28 import static com.android.managedprovisioning.model.ProvisioningParams.FLOW_TYPE_LEGACY;
29 import static com.android.managedprovisioning.model.ProvisioningParams.FLOW_TYPE_UNSPECIFIED;
139 ProvisioningParams provisioningParams = ProvisioningParams.Builder.builder() in testFailToConstructProvisioningParamsWithoutPackageNameOrComponentName()
152 ProvisioningParams provisioningParams = ProvisioningParams.Builder.builder() in testFailToConstructProvisioningParamsWithoutProvisioningAction()
164 ProvisioningParams provisioningParams1 = getCompleteProvisioningParams(); in testEquals()
165 ProvisioningParams provisioningParams2 = getCompleteProvisioningParams(); in testEquals()
175 ProvisioningParams provisioningParams1 = ProvisioningParams.Builder.builder() in testNotEquals()
191 ProvisioningParams provisioningParams2 = ProvisioningParams.Builder.builder() in testNotEquals()
221 testSaveAndRestore(ProvisioningParams.Builder.builder() in testSaveAndRestoreMinimalist()
[all …]
DCustomizationParamsTest.java60 ProvisioningParams params = createParams(null, SAMPLE_URL, null); in respectsUrl()
72 ProvisioningParams params = createParams(null, null, null); in urlDefaultsToNull()
84 ProvisioningParams params = createParams(null, "not a valid web url", null); in ignoresInvalidUrl()
93 private CustomizationParams createInstance(ProvisioningParams params) { in createInstance()
97 private ProvisioningParams createParams( in createParams()
99 ProvisioningParams.Builder builder = in createParams()
100 new ProvisioningParams.Builder().setDeviceAdminComponentName(COMPONENT_NAME); in createParams()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/contracts/
DProvisioningArgumentsSerializer.kt6 import com.android.managedprovisioning.model.ProvisioningParams
16 override val provisioningParams: ProvisioningParams
21 val provisioningParams: ProvisioningParams?
43 provisioningParams: ProvisioningParams, in invoke()
66 provisioningParams: ProvisioningParams in invoke()
101 val params = parcelable<ProvisioningParams>(EXTRAS.EXTRA_PROVISIONING_PARAMS).required in invoke()
104 … override val flowType by params.map(ProvisioningParams::flowType).map(FlowType.entries::get) in invoke()
105 … override val deviceAdminDownloadInfo by params.map(ProvisioningParams::deviceAdminDownloadInfo) in invoke()
106 … override val deviceAdminComponentName by params.map(ProvisioningParams::deviceAdminComponentName) in invoke()
107 override val wifiInfo by params.map(ProvisioningParams::wifiInfo) in invoke()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DLandingActivityTest.java33 import static com.android.managedprovisioning.model.ProvisioningParams.EXTRA_PROVISIONING_PARAMS;
45 import com.android.managedprovisioning.model.ProvisioningParams;
77 ProvisioningParams params = generateProvisioningParamsThatShouldRunPrepareActivity(); in onNextButtonClicked_shouldRunPrepareActivity_runsPrepareActivity()
89 ProvisioningParams params = generateProvisioningParamsThatShouldNotRunPrepareActivity(); in onNextButtonClicked_shouldNotRunPrepareActivity_doesNotRunPrepareActivity()
101 ProvisioningParams params = generateProvisioningParamsWithRequestedProvisioningModes( in onCreate_personallyOwned_showsAccountManagementDisclaimer()
111 ProvisioningParams params = generateProvisioningParamsWithRequestedProvisioningModes( in onCreate_organizationAndPersonallyOwned_showsAccountManagementDisclaimer()
121 ProvisioningParams params = generateProvisioningParamsWithRequestedProvisioningModes( in onCreate_organizationOwned_showsOwnershipDisclaimer()
131 ProvisioningParams params = generateProvisioningParamsWithRequestedProvisioningModes( in onCreate_deviceOwner_showsOwnershipDisclaimer()
150 private void launchLandingActivityWithParams(ProvisioningParams params) { in launchLandingActivityWithParams()
156 private ProvisioningParams generateProvisioningParamsWithRequestedProvisioningModes( in generateProvisioningParamsWithRequestedProvisioningModes()
[all …]
DProvisioningControllerFactoryTest.java30 import com.android.managedprovisioning.model.ProvisioningParams;
43 private static final ProvisioningParams PROFILE_OWNER_PARAMS = new ProvisioningParams.Builder()
47 private static final ProvisioningParams DEVICE_OWNER_PARAMS = new ProvisioningParams.Builder()
51 private static final ProvisioningParams FINANCED_DEVICE_PARAMS =
52 new ProvisioningParams.Builder()
DProvisioningModeWrapperProviderTest.java34 import com.android.managedprovisioning.model.ProvisioningParams;
48 private static final ProvisioningParams SIMPLE_PARAMS = new ProvisioningParams.Builder()
87 ProvisioningParams params = new ProvisioningParams.Builder() in testGetProvisioningModeWrapper_fullyManagedDevice_withoutSensorPermission()
105 ProvisioningParams params = new ProvisioningParams.Builder() in testGetProvisioningModeWrapper_fullyManagedDevice_withSensorPermission()
DFinancedDeviceLandingActivityTest.java24 import static com.android.managedprovisioning.model.ProvisioningParams.EXTRA_PROVISIONING_PARAMS;
38 import com.android.managedprovisioning.model.ProvisioningParams;
70 ProvisioningParams params = generateProvisioningParams(); in onAcceptAndContinueButtonClicked()
80 private ProvisioningParams generateProvisioningParams() { in generateProvisioningParams()
81 return new ProvisioningParams.Builder() in generateProvisioningParams()
87 private void launchActivityWithParams(ProvisioningParams params) { in launchActivityWithParams()
DAdminIntegratedFlowPrepareControllerTest.java40 import com.android.managedprovisioning.model.ProvisioningParams;
58 private static final ProvisioningParams ORG_OWNED_PARAMS = new ProvisioningParams.Builder()
63 private static final ProvisioningParams PERSONALLY_OWNED_PARAMS =
64 new ProvisioningParams.Builder()
68 private static final ProvisioningParams PARAMS = PERSONALLY_OWNED_PARAMS;
141 ProvisioningParams params) { in createController()
146 ProvisioningParams params, in createController()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DUtilsRoboTest.java42 import com.android.managedprovisioning.model.ProvisioningParams;
54 private static final ProvisioningParams PARAMS_ORG_OWNED = createTrustedSourceParamsBuilder()
57 private static final ProvisioningParams PARAMS_PROVISION_MANAGED_PROFILE =
58 ProvisioningParams.Builder.builder()
63 private static final ProvisioningParams PARAMS_PROVISION_FINANCED_DEVICE =
64 ProvisioningParams.Builder.builder()
69 private static final ProvisioningParams PARAMS_NON_TRUSTED_SOURCE =
127 ProvisioningParams params = createTrustedSourceParamsBuilder() in isOrganizationOwnedAllowed_personallyOwnedProvisioning_returnsFalse()
137 ProvisioningParams params = createTrustedSourceParamsBuilder() in isOrganizationOwnedAllowed_organizationOwnedProvisioning_returnsTrue()
148 ProvisioningParams params = createTrustedSourceParamsBuilder() in isOrganizationOwnedAllowed_organizationAndPersonallyOwnedProvisioning_returnsTrue()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityControllerTest.java52 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_LOCAL_TIME;
115 import com.android.managedprovisioning.model.ProvisioningParams;
150 public static final ProvisioningParams DOWNLOAD_ROLE_HOLDER_PARAMS_WITH_ALLOW_OFFLINE =
151 ProvisioningParams.Builder.builder()
157 public static final ProvisioningParams DOWNLOAD_ROLE_HOLDER_PARAMS =
158 ProvisioningParams.Builder.builder()
163 public static final ProvisioningParams ALLOW_OFFLINE_PARAMS =
164 ProvisioningParams.Builder.builder()
293 private ProvisioningParams mParams;
593 verify(mUi).prepareFinancedDeviceFlow(any(ProvisioningParams.class)); in testFinancedDevice_provisioningStarted()
[all …]
DEncryptionControllerTest.java40 import com.android.managedprovisioning.model.ProvisioningParams;
86 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testDeviceOwner()
99 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testProfileOwnerAfterSuw()
110 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testProfileOwnerDuringSuw()
123 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testDeviceNotEncrypted()
143 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testCancelProvisioningReminder()
153 private ProvisioningParams createProvisioningParams(String action) { in createProvisioningParams()
154 return new ProvisioningParams.Builder() in createProvisioningParams()
181 private void setReminder(ProvisioningParams params) { in setReminder()
185 private void verifyStartPreProvisioningActivity(ProvisioningParams params) throws Exception { in verifyStartPreProvisioningActivity()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParserTest.java78 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_S…
147 import com.android.managedprovisioning.model.ProvisioningParams;
292 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_trustedSourceProvisioningIntent()
296 ProvisioningParams.Builder.builder() in testParse_trustedSourceProvisioningIntent()
343 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_financedDeviceProvisioningIntent()
347 ProvisioningParams.Builder.builder() in testParse_financedDeviceProvisioningIntent()
366 ProvisioningParams expected = ProvisioningParams.Builder.builder() in testParse_resumeProvisioningIntent()
371 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, expected); in testParse_resumeProvisioningIntent()
373 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_resumeProvisioningIntent()
397 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_managedProfileIntent()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
DAdminIntegratedFlowPrepareActivityTest.java30 import com.android.managedprovisioning.model.ProvisioningParams;
55 ProvisioningParams params = createDefaultProvisioningParamsBuilder().build(); in shouldRunPrepareActivity_returnsFalse()
66 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_wifi_returnsTrue()
81 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_mobileData_returnsTrue()
94 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_download_notSideloaded_returnsTrue()
112 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_download_noMinimum_sideloaded_returnsTrue()
131 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_download_minimum_sideloaded_meetsMinimum_returnsFalse()
150 ProvisioningParams params = createDefaultProvisioningParamsBuilder() in shouldRunPrepareActivity_download_minimum_sideloaded_doesNotMeetMinimum_returnsFalse()
174 private static ProvisioningParams.Builder createDefaultProvisioningParamsBuilder() { in createDefaultProvisioningParamsBuilder()
175 return new ProvisioningParams.Builder() in createDefaultProvisioningParamsBuilder()
DProvisioningActivityRoboTest.java57 import com.android.managedprovisioning.model.ProvisioningParams;
80 private static final ProvisioningParams DEVICE_OWNER_PARAMS = new ProvisioningParams.Builder()
84 private static final ProvisioningParams PROFILE_OWNER_PARAMS = new ProvisioningParams.Builder()
88 …private static final ProvisioningParams QR_PROVISIONING_PARAMS_DO = new ProvisioningParams.Builder…
92 .setFlowType(ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED)
94 …private static final ProvisioningParams QR_PROVISIONING_PARAMS_PO = new ProvisioningParams.Builder…
98 .setFlowType(ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED)
101 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, PROFILE_OWNER_PARAMS);
103 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, DEVICE_OWNER_PARAMS);
105 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, QR_PROVISIONING_PARAMS_PO);
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityController.java54 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_K…
55 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_P…
56 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_S…
57 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_LEAVE_ALL_SYSTEM_APP…
58 import static com.android.managedprovisioning.model.ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED;
110 import com.android.managedprovisioning.model.ProvisioningParams;
111 import com.android.managedprovisioning.model.ProvisioningParams.FlowType;
321 void requestEncryption(ProvisioningParams params); in requestEncryption()
333 void startProvisioning(ProvisioningParams params); in startProvisioning()
341 void showOwnershipDisclaimerScreen(ProvisioningParams params); in showOwnershipDisclaimerScreen()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelperTest.java44 import com.android.managedprovisioning.model.ProvisioningParams;
82 final ProvisioningParams params = in testInitiallyDone_ProfileAfterSuw()
97 final ProvisioningParams params = in testInitiallyDone_ProfileDuringSuw()
113 final ProvisioningParams params = in testInitiallyDone_DeviceAfterSuw()
124 final ProvisioningParams params = in testInitiallyDone_DeviceAfterSuw_allowedByParams()
139 final ProvisioningParams params = in testFinalized_ManagedProfile()
155 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testFinalized_DeviceOwner()
171 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testFinalized_DeviceOwner_HeadlessSystemUser()
205 private ProvisioningParams createProvisioningParams(String action) { in createProvisioningParams()
206 return new ProvisioningParams.Builder() in createProvisioningParams()
DProvisioningIntentProviderTest.java50 import com.android.managedprovisioning.model.ProvisioningParams;
69 private static final ProvisioningParams ADMIN_INTEGRATED_FLOW_PARAMS =
70 new ProvisioningParams.Builder()
75 .setFlowType(ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED)
77 private static final ProvisioningParams LEGACY_FLOW_PARAMS = new ProvisioningParams.Builder()
82 private static final ProvisioningParams LEGACY_FLOW_PARAMS_WITH_PROVISIONING_TRIGGER =
83 new ProvisioningParams.Builder()
211 ProvisioningParams provisioningParams = new ProvisioningParams.Builder() in createProvisioningIntent_cannotFindAdmin()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DProvisioningIntentProvider.java24 import static com.android.managedprovisioning.model.ProvisioningParams.FLOW_TYPE_ADMIN_INTEGRATED;
40 import com.android.managedprovisioning.model.ProvisioningParams;
48 void maybeLaunchDpc(ProvisioningParams params, int userId, Utils utils, Context context, in maybeLaunchDpc()
66 Context context, SettingsFacade settingsFacade, ProvisioningParams params, in shouldLaunchPolicyCompliance()
85 Context context, ProvisioningParams params, Utils utils, in launchPolicyComplianceDpcHandler()
92 private void launchProvisioningSuccessfulDpcHandler(ProvisioningParams params, int userId, in launchProvisioningSuccessfulDpcHandler()
104 boolean canLaunchDpc(ProvisioningParams params, int userId, Utils utils, Context context) { in canLaunchDpc()
110 @NonNull ProvisioningParams params, int userId, Utils utils, Context context) { in createProvisioningCompleteIntent()
124 @NonNull ProvisioningParams params, Context context, Utils utils) { in createDpcLaunchIntent()
137 private void addExtrasToIntent(Intent intent, ProvisioningParams params, in addExtrasToIntent()
DFinalizationControllerLogic.java23 import com.android.managedprovisioning.model.ProvisioningParams;
39 ProvisioningParams params, int requestCode); in notifyDpcManagedProfile()
48 ProvisioningParams params, int requestCode); in notifyDpcManagedDeviceOrUser()
57 boolean shouldFinalizePrimaryProfile(ProvisioningParams params); in shouldFinalizePrimaryProfile()
68 void restoreInstanceState(Bundle savedInstanceState, ProvisioningParams params); in restoreInstanceState()
DFinalizationInsideSuwControllerLogic.java36 import com.android.managedprovisioning.model.ProvisioningParams;
74 ProvisioningParams params, int requestCode) { in notifyDpcManagedProfile()
80 ProvisioningParams params, int requestCode) { in notifyDpcManagedDeviceOrUser()
85 public boolean shouldFinalizePrimaryProfile(ProvisioningParams params) { in shouldFinalizePrimaryProfile()
101 public void restoreInstanceState(Bundle savedInstanceState, ProvisioningParams params) { in restoreInstanceState()
131 ProvisioningParams params, int requestCode) { in startPolicyComplianceActivityForResultIfResolved()
152 private Runnable getDpcIntentSender(ProvisioningParams params, int requestCode) { in getDpcIntentSender()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DPolicyComplianceUtils.java30 import com.android.managedprovisioning.model.ProvisioningParams;
46 Context context, ProvisioningParams params, Utils utils) { in isPolicyComplianceActivityResolvableForManagedUser()
55 Context context, ProvisioningParams params, Utils utils, UserHandle userHandle) { in isPolicyComplianceActivityResolvableForUser()
64 ProvisioningParams params, int requestCode, Utils utils, in startPolicyComplianceActivityForResultIfResolved()
83 ProvisioningParams params, Utils utils,
94 Context context, ProvisioningParams params, Utils utils,
114 ProvisioningParams params, Utils utils, UserHandle userHandle) {
127 ProvisioningParams params, Context context) {
146 ProvisioningParams params, Utils utils) {
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/
DEstablishNetworkConnectionControllerTest.java34 import com.android.managedprovisioning.model.ProvisioningParams;
61 private static final ProvisioningParams PARAMS =
62 new ProvisioningParams.Builder(/* skipValidation= */ false)
67 private static final ProvisioningParams PARAMS_WITH_WIFI_INFO =
68 new ProvisioningParams.Builder(/* skipValidation= */ false)
76 private static final ProvisioningParams PARAMS_WITH_MOBILE_DATA_ENABLED =
77 new ProvisioningParams.Builder(/* skipValidation= */ false)
175 ProvisioningParams params) { in createController()
189 ProvisioningParams provisioningParams, AbstractProvisioningTask.Callback callback) { in createConnectMobileNetworkTask()
199 ProvisioningParams provisioningParams, AbstractProvisioningTask.Callback callback) { in createAddWifiNetworkTask()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DDownloadPackageTaskRoboTest.java34 import com.android.managedprovisioning.model.ProvisioningParams;
60 final ProvisioningParams params = createDefaultProvisioningParamsBuilder().build(); in run_doesSetManagedProvisioningDpcDownloaded()
72 final ProvisioningParams params = createDefaultProvisioningParamsBuilder() in run_alreadyInstalled_doesNotSetManagedProvisioningDpcDownloaded()
92 final ProvisioningParams params = createDefaultProvisioningParamsBuilder() in run_installsUpdate_doesSetManagedProvisioningDpcDownloaded()
113 final ProvisioningParams params = createDefaultProvisioningParamsBuilder().build(); in run_notConnected_doesNotSetManagedProvisioningDpcDownloaded()
141 private static ProvisioningParams.Builder createDefaultProvisioningParamsBuilder() { in createDefaultProvisioningParamsBuilder()
142 return new ProvisioningParams.Builder() in createDefaultProvisioningParamsBuilder()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsViewModelTest.java37 import com.android.managedprovisioning.model.ProvisioningParams;
67 private static final ProvisioningParams PARAMS_MANAGED_DEVICE =
68 ProvisioningParams.Builder.builder()
72 private static final ProvisioningParams PARAMS_MANAGED_PROFILE =
73 ProvisioningParams.Builder.builder()
77 private static final ProvisioningParams PARAMS_MANAGED_DEVICE_WITH_DISCLAIMERS =
78 ProvisioningParams.Builder.builder()
187 private TermsViewModel createViewModel(ProvisioningParams params) { in createViewModel()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java77 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_S…
78 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_U…
99 import com.android.managedprovisioning.model.ProvisioningParams;
362 public ProvisioningParams parse(Intent provisioningIntent) in parse()
367 ProvisioningParams.EXTRA_PROVISIONING_PARAMS); in parse()
482 private ProvisioningParams.Builder parseMinimalistSupportedProvisioningDataInternal( in parseMinimalistSupportedProvisioningDataInternal()
527 ProvisioningParams in parseMinimalistSupportedProvisioningDataInternal()
546 ProvisioningParams.DEFAULT_LEAVE_ALL_SYSTEM_APPS_ENABLED)); in parseMinimalistSupportedProvisioningDataInternal()
555 ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT); in parseMinimalistSupportedProvisioningDataInternal()
556 return ProvisioningParams.Builder.builder() in parseMinimalistSupportedProvisioningDataInternal()
[all …]

123456