1 /* 2 * Copyright (C) 2021 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.settingslib.enterprise; 18 19 /** 20 * A {@code String} provider for the action disabled by admin dialog. 21 */ 22 public interface DeviceAdminStringProvider { 23 24 /** 25 * Returns the default dialog title for the case when an action is disabled by policy on a 26 * managed device. 27 */ getDefaultDisabledByPolicyTitle()28 String getDefaultDisabledByPolicyTitle(); 29 30 /** 31 * Returns the dialog title for the case when volume adjusting is disabled. 32 */ getDisallowAdjustVolumeTitle()33 String getDisallowAdjustVolumeTitle(); 34 35 /** 36 * Returns the dialog title for the case when outgoing calls are disabled. 37 */ getDisallowOutgoingCallsTitle()38 String getDisallowOutgoingCallsTitle(); 39 40 /** 41 * Returns the dialog title for the case when sending SMS is disabled. 42 */ getDisallowSmsTitle()43 String getDisallowSmsTitle(); 44 45 /** 46 * Returns the dialog title for the case when the camera is disabled. 47 */ getDisableCameraTitle()48 String getDisableCameraTitle(); 49 50 /** 51 * Returns the dialog title for the case when screen capturing is disabled. 52 */ getDisableScreenCaptureTitle()53 String getDisableScreenCaptureTitle(); 54 55 /** 56 * Returns the dialog title for the case when suspending apps is disabled. 57 */ getSuspendPackagesTitle()58 String getSuspendPackagesTitle(); 59 60 /** 61 * Returns the default dialog content for the case when an action is disabled by policy. 62 */ getDefaultDisabledByPolicyContent()63 String getDefaultDisabledByPolicyContent(); 64 65 /** 66 * Returns the URL for the page to be shown when the learn more button is chosen. 67 */ getLearnMoreHelpPageUrl()68 String getLearnMoreHelpPageUrl(); 69 70 /** 71 * Returns the default dialog title for the case when an action is disabled by policy on 72 * a financed device. 73 */ getDisabledByPolicyTitleForFinancedDevice()74 String getDisabledByPolicyTitleForFinancedDevice(); 75 76 /** 77 * Returns the dialog title for when biometrics require parental consent. 78 */ getDisabledBiometricsParentConsentTitle()79 String getDisabledBiometricsParentConsentTitle(); 80 81 /** 82 * Returns the dialog contents for when biometrics require parental consent. 83 */ getDisabledBiometricsParentConsentContent()84 String getDisabledBiometricsParentConsentContent(); 85 } 86