Home
last modified time | relevance | path

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

1234

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DProvisioningParamsTest.java117 ProvisioningParams provisioningParams = ProvisioningParams.Builder.builder() in testFailToConstructProvisioningParamsWithoutPackageNameOrComponentName()
130 ProvisioningParams provisioningParams = ProvisioningParams.Builder.builder() in testFailToConstructProvisioningParamsWithoutProvisioningAction()
142 ProvisioningParams provisioningParams1 = getCompleteProvisioningParams(); in testEquals()
143 ProvisioningParams provisioningParams2 = getCompleteProvisioningParams(); in testEquals()
153 ProvisioningParams provisioningParams1 = ProvisioningParams.Builder.builder() in testNotEquals()
171 ProvisioningParams provisioningParams2 = ProvisioningParams.Builder.builder() in testNotEquals()
203 testSaveAndRestore(ProvisioningParams.Builder.builder() in testSaveAndRestoreMinimalist()
209 private void testSaveAndRestore(ProvisioningParams original) { in testSaveAndRestore()
214 ProvisioningParams copy = ProvisioningParams.load(file); in testSaveAndRestore()
222 ProvisioningParams expectedProvisioningParams = getCompleteProvisioningParams(); in testParceable()
[all …]
DCustomizationParamsTest.java65 ProvisioningParams params = createParams(ACTION_PROVISION_MANAGED_PROFILE, null, null, in defaultColorManagedProfile()
79 ProvisioningParams params = createParams(ACTION_PROVISION_MANAGED_DEVICE, null, null, null); in defaultColorDeviceOwner()
92 ProvisioningParams params = createParams(null, SAMPLE_COLOR, null, null); in respectsMainColor()
105 ProvisioningParams params = createParams(null, null, null, null); in orgNameDefaultsToNull()
117 ProvisioningParams params = createParams(null, null, null, SAMPLE_ORG_NAME); in respectsOrgName()
129 ProvisioningParams params = createParams(null, null, SAMPLE_URL, null); in respectsUrl()
141 ProvisioningParams params = createParams(null, null, null, null); in urlDefaultsToNull()
153 ProvisioningParams params = createParams(null, null, "not a valid web url", null); in ignoresInvalidUrl()
162 private CustomizationParams createInstance(ProvisioningParams params) { in createInstance()
166 private ProvisioningParams createParams(String provisioningAction, Integer mainColor, in createParams()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java39 import com.android.managedprovisioning.model.ProvisioningParams;
84 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testDeviceOwner()
97 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testProfileOwnerAfterSuw()
108 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testProfileOwnerDuringSuw()
121 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE); in testDeviceNotEncrypted()
141 ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE); in testCancelProvisioningReminder()
151 private ProvisioningParams createProvisioningParams(String action) { in createProvisioningParams()
152 return new ProvisioningParams.Builder() in createProvisioningParams()
179 private void setReminder(ProvisioningParams params) { in setReminder()
183 private void verifyStartPreProvisioningActivity(ProvisioningParams params) throws Exception { in verifyStartPreProvisioningActivity()
[all …]
DEncryptDeviceActivityTest.java47 import com.android.managedprovisioning.model.ProvisioningParams;
66 private static final ProvisioningParams PROFILE_OWNER_PARAMS = new ProvisioningParams.Builder()
71 private static final ProvisioningParams DEVICE_OWNER_PARAMS = new ProvisioningParams.Builder()
77 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, PROFILE_OWNER_PARAMS);
79 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, DEVICE_OWNER_PARAMS);
DPreProvisioningControllerTest.java68 import com.android.managedprovisioning.model.ProvisioningParams;
127 private ProvisioningParams mParams;
326 ProvisioningParams provisioningParams = createParams(true, false, null, in testCheckFactoryResetProtection_skipFrp()
347 verify(mUi, never()).requestEncryption(any(ProvisioningParams.class)); in testManagedProfile_skipEncryption()
397 verify(mUi, never()).requestEncryption(any(ProvisioningParams.class)); in testNfc_skipEncryption()
652 final ProvisioningParams params = createProvisioningParamsBuilder() in testInitiateProvisioning_doWithDownloadInfoAndUseMobileDataFalse_showsWifiPicker()
663 final ProvisioningParams params = createProvisioningParamsBuilder() in testInitiateProvisioning_doWithNoDownloadInfoAndUseMobileDataFalse_noWifiPicker()
673 final ProvisioningParams params = createProvisioningParamsBuilder() in testInitiateProvisioning_doWithDownloadInfoAndUseMobileDataTrue_noWifiPicker()
688 mParams = ProvisioningParams.Builder.builder() in prepareMocksForMaybeStartProvisioning()
756 private ProvisioningParams createParams(boolean startedByTrustedSource, boolean skipEncryption, in createParams()
[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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DLandingActivityTest.java27 import static com.android.managedprovisioning.model.ProvisioningParams.EXTRA_PROVISIONING_PARAMS;
36 import com.android.managedprovisioning.model.ProvisioningParams;
61 ProvisioningParams params = generateProvisioningParamsThatShouldRunPrepareActivity(); in onNextButtonClicked_shouldRunPrepareActivity_runsPrepareActivity()
72 ProvisioningParams params = generateProvisioningParamsThatShouldNotRunPrepareActivity(); in onNextButtonClicked_shouldNotRunPrepareActivity_doesNotRunPrepareActivity()
81 private void launchProvisioningActivityWithParams(ProvisioningParams params) { in launchProvisioningActivityWithParams()
88 private ProvisioningParams generateProvisioningParamsThatShouldRunPrepareActivity() { in generateProvisioningParamsThatShouldRunPrepareActivity()
99 private ProvisioningParams generateProvisioningParamsThatShouldNotRunPrepareActivity() { in generateProvisioningParamsThatShouldNotRunPrepareActivity()
103 private static ProvisioningParams.Builder createDefaultProvisioningParamsBuilder() { in createDefaultProvisioningParamsBuilder()
104 return new ProvisioningParams.Builder() in createDefaultProvisioningParamsBuilder()
DProvisioningActivityTest.java83 import com.android.managedprovisioning.model.ProvisioningParams;
115 public static final ProvisioningParams PROFILE_OWNER_PARAMS = new ProvisioningParams.Builder()
119 public static final ProvisioningParams DEVICE_OWNER_PARAMS = new ProvisioningParams.Builder()
123 private static final ProvisioningParams NFC_PARAMS = new ProvisioningParams.Builder()
130 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, PROFILE_OWNER_PARAMS);
132 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, DEVICE_OWNER_PARAMS);
134 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, NFC_PARAMS);
261 ProvisioningParams provisioningParams = new ProvisioningParams.Builder() in testColors()
267 intent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, provisioningParams); in testColors()
465 ProvisioningParams params = new ProvisioningParams.Builder() in testCancelProfileOwner_CompProvisioningWithSkipConsent()
[all …]
DProvisioningControllerFactoryTest.java29 import com.android.managedprovisioning.model.ProvisioningParams;
42 private static final ProvisioningParams PROFILE_OWNER_PARAMS = new ProvisioningParams.Builder()
46 private static final ProvisioningParams DEVICE_OWNER_PARAMS = new ProvisioningParams.Builder()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationControllerTest.java49 import com.android.managedprovisioning.model.ProvisioningParams;
100 final ProvisioningParams params = createProvisioningParams( in testInitiallyDone_alreadyCalled()
116 final ProvisioningParams params = createProvisioningParams( in testFinalized_alreadyCalled()
145 .markUserProvisioningStateInitiallyDone(any(ProvisioningParams.class)); in testFinalized_noParamsStored()
146 verify(mHelper, never()).markUserProvisioningStateFinalized(any(ProvisioningParams.class)); in testFinalized_noParamsStored()
154 final ProvisioningParams params = createProvisioningParams( in testManagedProfileAfterSuw()
178 final ProvisioningParams params = createProvisioningParams( in testManagedProfileDuringSuw()
214 final ProvisioningParams params = createProvisioningParams( in testDeviceOwner()
283 final ProvisioningParams expectedParams = in assertSendDpcBroadcastServiceParams()
285 final ProvisioningParams actualParams = in assertSendDpcBroadcastServiceParams()
[all …]
DUserProvisioningStateHelperTest.java38 import com.android.managedprovisioning.model.ProvisioningParams;
75 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE, in testInitiallyDone_ProfileAfterSuw()
91 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE, in testInitiallyDone_ProfileDuringSuw()
110 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE, in testInitiallyDone_DeviceOwnerSkipUserSetup()
125 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE, in testInitiallyDone_DeviceOwnerDontSkipUserSetup()
140 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE, in testFinalized_ManagedProfile()
158 final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE, in testFinalized_DeviceOwner()
183 private ProvisioningParams createProvisioningParams(String action, boolean skipUserSetup) { in createProvisioningParams()
184 return new ProvisioningParams.Builder() in createProvisioningParams()
DProvisioningIntentProviderTest.java35 import com.android.managedprovisioning.model.ProvisioningParams;
53 private ProvisioningParams mParams;
61 mParams = new ProvisioningParams.Builder() in setUp()
100 ProvisioningParams provisioningParams = new ProvisioningParams.Builder() in createProvisioningIntent_cannotFindAdmin()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java44 import static com.android.managedprovisioning.model.ProvisioningParams.PROVISIONING_MODE_FULLY_MANA…
45 import static com.android.managedprovisioning.model.ProvisioningParams.PROVISIONING_MODE_MANAGED_PR…
81 import com.android.managedprovisioning.model.ProvisioningParams;
82 import com.android.managedprovisioning.model.ProvisioningParams.ProvisioningMode;
110 private ProvisioningParams mParams;
166 void requestEncryption(ProvisioningParams params); in requestEncryption()
178 void startProvisioning(int userId, ProvisioningParams params); in startProvisioning()
195 void prepareAdminIntegratedFlow(ProvisioningParams params); in prepareAdminIntegratedFlow()
256 public void initiateProvisioning(Intent intent, ProvisioningParams params, in initiateProvisioning()
371 final ProvisioningParams.Builder builder = mParams.toBuilder(); in updateProvisioningParamsFromIntent()
[all …]
DPreProvisioningActivity.java22 import static com.android.managedprovisioning.model.ProvisioningParams.PROVISIONING_MODE_FULLY_MANA…
49 import com.android.managedprovisioning.model.ProvisioningParams;
131 ProvisioningParams params = savedInstanceState == null ? null in onCreate()
141 ProvisioningParams params = mController.getParams(); in finish()
281 public void requestEncryption(ProvisioningParams params) { in requestEncryption()
284 encryptIntent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, params); in requestEncryption()
312 public void startProvisioning(int userId, ProvisioningParams params) { in startProvisioning()
316 intent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, params); in startProvisioning()
361 public void prepareAdminIntegratedFlow(ProvisioningParams params) { in prepareAdminIntegratedFlow()
364 intent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, params); in prepareAdminIntegratedFlow()
DEncryptionController.java34 import com.android.managedprovisioning.model.ProvisioningParams;
103 public void setEncryptionReminder(ProvisioningParams params) { in setEncryptionReminder()
148 ProvisioningParams params = ProvisioningParams.load(getProvisioningParamsFile(mContext)); in resumeProvisioning()
152 resumeIntent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, params); in resumeProvisioning()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParserTest.java134 import com.android.managedprovisioning.model.ProvisioningParams;
275 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_trustedSourceProvisioningIntent()
279 ProvisioningParams.Builder.builder() in testParse_trustedSourceProvisioningIntent()
290 .setMainColor(ProvisioningParams.DEFAULT_MAIN_COLOR) in testParse_trustedSourceProvisioningIntent()
311 ProvisioningParams expected = ProvisioningParams.Builder.builder() in testParse_resumeProvisioningIntent()
316 .putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, expected); in testParse_resumeProvisioningIntent()
318 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_resumeProvisioningIntent()
344 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_managedProfileIntent()
348 ProvisioningParams.Builder.builder() in testParse_managedProfileIntent()
383 ProvisioningParams params = mExtrasProvisioningDataParser.parse(intent); in testParse_managedProfileIntent_CompProvisioning()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DFinalizationController.java39 import com.android.managedprovisioning.model.ProvisioningParams;
114 public void provisioningInitiallyDone(ProvisioningParams params) { in provisioningInitiallyDone()
161 ProvisioningParams params) { in getPrimaryProfileFinalizationHelper()
185 final ProvisioningParams params = loadProvisioningParamsAndClearFile(); in provisioningFinalized()
234 private void notifyDpcManagedProfile(ProvisioningParams params) { in notifyDpcManagedProfile()
240 private void storeProvisioningParams(ProvisioningParams params) { in storeProvisioningParams()
249 ProvisioningParams loadProvisioningParamsAndClearFile() { in loadProvisioningParamsAndClearFile()
251 ProvisioningParams result = ProvisioningParams.load(file); in loadProvisioningParamsAndClearFile()
DProvisioningIntentProvider.java32 import com.android.managedprovisioning.model.ProvisioningParams;
39 void maybeLaunchDpc(ProvisioningParams params, int userId, Utils utils, Context context) { in maybeLaunchDpc()
48 @NonNull ProvisioningParams params, int userId, Utils utils, Context context) { in createProvisioningCompleteIntent()
61 private Intent createDpcLaunchIntent(@NonNull ProvisioningParams params) { in createDpcLaunchIntent()
74 private void addExtrasToIntent(Intent intent, ProvisioningParams params) { in addExtrasToIntent()
78 void launchFinalizationScreen(Context context, ProvisioningParams params) { in launchFinalizationScreen()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java71 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_S…
72 import static com.android.managedprovisioning.model.ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_U…
73 import static com.android.managedprovisioning.model.ProvisioningParams.inferStaticDeviceAdminPackag…
95 import com.android.managedprovisioning.model.ProvisioningParams;
381 public ProvisioningParams parse(Intent provisioningIntent) in parse()
386 ProvisioningParams.EXTRA_PROVISIONING_PARAMS); in parse()
506 private ProvisioningParams.Builder parseMinimalistSupportedProvisioningDataInternal( in parseMinimalistSupportedProvisioningDataInternal()
546 boolean skipUserSetup = ProvisioningParams.DEFAULT_SKIP_USER_SETUP; in parseMinimalistSupportedProvisioningDataInternal()
552 ProvisioningParams.DEFAULT_SKIP_USER_SETUP); in parseMinimalistSupportedProvisioningDataInternal()
560 ProvisioningParams.DEFAULT_EXTRA_PROVISIONING_SKIP_USER_CONSENT) in parseMinimalistSupportedProvisioningDataInternal()
[all …]
/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()
71 final ProvisioningParams params = createDefaultProvisioningParamsBuilder() in run_alreadyInstalled_doesNotSetManagedProvisioningDpcDownloaded()
90 final ProvisioningParams params = createDefaultProvisioningParamsBuilder() in run_installsUpdate_doesSetManagedProvisioningDpcDownloaded()
110 final ProvisioningParams params = createDefaultProvisioningParamsBuilder().build(); in run_notConnected_doesNotSetManagedProvisioningDpcDownloaded()
137 private static ProvisioningParams.Builder createDefaultProvisioningParamsBuilder() { in createDefaultProvisioningParamsBuilder()
138 return new ProvisioningParams.Builder() in createDefaultProvisioningParamsBuilder()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java85 public final class ProvisioningParams extends PersistableBundlable { class
130 public static final Parcelable.Creator<ProvisioningParams> CREATOR
131 = new Parcelable.Creator<ProvisioningParams>() {
133 public ProvisioningParams createFromParcel(Parcel in) {
134 return new ProvisioningParams(in);
138 public ProvisioningParams[] newArray(int size) {
139 return new ProvisioningParams[size];
286 private ProvisioningParams(Builder builder) { in ProvisioningParams() method in ProvisioningParams
326 private ProvisioningParams(Parcel in) { in ProvisioningParams() method in ProvisioningParams
376 /* package */ static ProvisioningParams fromPersistableBundle(PersistableBundle bundle) { in fromPersistableBundle()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DLandingActivity.java30 import com.android.managedprovisioning.model.ProvisioningParams;
56 final ProvisioningParams params = in onCreate()
57 getIntent().getParcelableExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS); in onCreate()
61 private void initializeUi(ProvisioningParams params) { in initializeUi()
79 private void onNextButtonClicked(ProvisioningParams params) { in onNextButtonClicked()
83 intent.putExtra(ProvisioningParams.EXTRA_PROVISIONING_PARAMS, params); in onNextButtonClicked()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DOtaController.java44 import com.android.managedprovisioning.model.ProvisioningParams;
137 ProvisioningParams fakeParams = new ProvisioningParams.Builder() in addDeviceOwnerTasks()
166 ProvisioningParams fakeParams = new ProvisioningParams.Builder() in addManagedProfileTasks()
192 ProvisioningParams fakeParams = new ProvisioningParams.Builder() in addManagedUserTasks()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DManagedProfileSettingsTaskTest.java42 import com.android.managedprovisioning.model.ProvisioningParams;
57 private static final ProvisioningParams NO_COLOR_PARAMS = new ProvisioningParams.Builder()
61 private static final ProvisioningParams COLOR_PARAMS = new ProvisioningParams.Builder()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAbstractProvisioningTask.java33 import com.android.managedprovisioning.model.ProvisioningParams;
40 protected final ProvisioningParams mProvisioningParams;
53 ProvisioningParams provisioningParams, in AbstractProvisioningTask()
64 ProvisioningParams provisioningParams, in AbstractProvisioningTask()

1234