1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.devicelockcontroller.activities; 18 19 import com.android.devicelockcontroller.R; 20 21 /** 22 * Different stages of the provisioning progress. 23 */ 24 public final class ProvisioningProgress { 25 26 public static final ProvisioningProgress GETTING_DEVICE_READY = new ProvisioningProgress( 27 R.drawable.ic_smartphone_24px, R.string.getting_device_ready, 28 R.string.this_may_take_a_few_minutes); 29 public static final ProvisioningProgress INSTALLING_KIOSK_APP = new ProvisioningProgress( 30 R.drawable.ic_downloading_24px, R.string.installing_kiosk_app); 31 public static final ProvisioningProgress OPENING_KIOSK_APP = new ProvisioningProgress( 32 R.drawable.ic_open_in_new_24px, R.string.opening_kiosk_app); 33 34 final int mIconId; 35 final int mHeaderId; 36 final int mSubheaderId; 37 ProvisioningProgress(int iconId, int headerId)38 ProvisioningProgress(int iconId, int headerId) { 39 this(iconId, headerId, 0); 40 } 41 ProvisioningProgress(int iconId, int headerId, int subheaderId)42 ProvisioningProgress(int iconId, int headerId, int subheaderId) { 43 this.mHeaderId = headerId; 44 this.mIconId = iconId; 45 this.mSubheaderId = subheaderId; 46 } 47 48 } 49