HomeSort by relevance Sort by last modified time
    Searched refs:DevicePolicyManager (Results 51 - 75 of 283) sorted by null

1 23 4 5 6 7 8 91011>>

  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
ManagedProfileTest.java 18 import android.app.admin.DevicePolicyManager;
29 * Test for {@link DevicePolicyManager#addCrossProfileIntentFilter} API.
38 private DevicePolicyManager mDevicePolicyManager;
52 mDevicePolicyManager = (DevicePolicyManager)
66 testIntentFilter, DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED);
85 testIntentFilter, DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED);
100 testIntentFilter, DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED);
115 testIntentFilter, DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
ByodProvisioningTestActivity.java 18 import android.app.admin.DevicePolicyManager;
42 .putExtra(DevicePolicyManager.EXTRA_PROVISIONING_MAIN_COLOR, Color.GREEN);
50 .putExtra(DevicePolicyManager.EXTRA_PROVISIONING_LOGO_URI, logoUri);
74 DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE);
78 DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME,
CrossProfileTestActivity.java 21 import android.app.admin.DevicePolicyManager;
72 DevicePolicyManager dpm = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
  /developers/build/prebuilts/gradle/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/
BasicManagedProfileFragment.java 22 import android.app.admin.DevicePolicyManager;
42 import static android.app.admin.DevicePolicyManager.FLAG_MANAGED_CAN_ACCESS_PARENT;
43 import static android.app.admin.DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED;
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 return !devicePolicyManager.isApplicationHidden(
209 DevicePolicyManager devicePolicyManager =
210 (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE)
    [all...]
EnableProfileActivity.java 20 import android.app.admin.DevicePolicyManager;
47 DevicePolicyManager manager =
48 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
  /developers/samples/android/admin/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/
BasicManagedProfileFragment.java 22 import android.app.admin.DevicePolicyManager;
42 import static android.app.admin.DevicePolicyManager.FLAG_MANAGED_CAN_ACCESS_PARENT;
43 import static android.app.admin.DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED;
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 return !devicePolicyManager.isApplicationHidden(
209 DevicePolicyManager devicePolicyManager =
210 (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE)
    [all...]
EnableProfileActivity.java 20 import android.app.admin.DevicePolicyManager;
47 DevicePolicyManager manager =
48 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
  /development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
BasicManagedProfileFragment.java 22 import android.app.admin.DevicePolicyManager;
42 import static android.app.admin.DevicePolicyManager.FLAG_MANAGED_CAN_ACCESS_PARENT;
43 import static android.app.admin.DevicePolicyManager.FLAG_PARENT_CAN_ACCESS_MANAGED;
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 return !devicePolicyManager.isApplicationHidden(
209 DevicePolicyManager devicePolicyManager =
210 (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE)
    [all...]
EnableProfileActivity.java 20 import android.app.admin.DevicePolicyManager;
47 DevicePolicyManager manager =
48 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
PolicySerializationTestActivity.java 24 import android.app.admin.DevicePolicyManager;
53 * what the {@link DevicePolicyManager} reports.
59 private DevicePolicyManager mDevicePolicyManager;
76 mDevicePolicyManager = (DevicePolicyManager) getSystemService(DEVICE_POLICY_SERVICE);
138 Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);
139 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,
246 void applyExpectedValue(DevicePolicyManager deviceManager, ComponentName admin);
254 void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin);
293 public final void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin) {
297 protected abstract T getDeviceManagerValue(DevicePolicyManager deviceManager
    [all...]
ScreenLockTestActivity.java 25 import android.app.admin.DevicePolicyManager;
43 private DevicePolicyManager mDevicePolicyManager;
54 mDevicePolicyManager = (DevicePolicyManager) getSystemService(DEVICE_POLICY_SERVICE);
74 Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);
75 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/
RestrictedLockUtils.java 20 import android.app.admin.DevicePolicyManager;
71 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
113 * disabled by {@link android.app.admin.DevicePolicyManager#setKeyguardDisabledFeatures}.
121 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
172 DevicePolicyManager parentDpm = dpm.getParentProfileInstance(userInfo);
232 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
266 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
LockConfirmBypassTest.java 20 import android.app.admin.DevicePolicyManager;
53 Intent setPasswordIntent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
62 Intent setPasswordIntent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
BaseDeviceAdminTest.java 19 import android.app.admin.DevicePolicyManager;
42 protected DevicePolicyManager mDevicePolicyManager;
51 mDevicePolicyManager = mContext.getSystemService(DevicePolicyManager.class);
TrustAgentInfoTest.java 19 import android.app.admin.DevicePolicyManager;
46 DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE);
69 DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS);
  /cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
ClearDeviceOwnerTest.java 19 import android.app.admin.DevicePolicyManager;
39 private DevicePolicyManager mDevicePolicyManager;
45 mDevicePolicyManager = (DevicePolicyManager)
  /developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/
MainActivity.java 19 import android.app.admin.DevicePolicyManager;
33 DevicePolicyManager devicePolicyManager =
34 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
36 if (!devicePolicyManager.isProfileOwnerApp(getApplicationContext().getPackageName())) {
47 } else if (devicePolicyManager.isApplicationHidden(
StatusFragment.java 20 import android.app.admin.DevicePolicyManager;
91 DevicePolicyManager devicePolicyManager =
92 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
94 if (!devicePolicyManager.isApplicationHidden(
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 devicePolicyManager.setApplicationHidden(
  /developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/
MainActivity.java 19 import android.app.admin.DevicePolicyManager;
33 DevicePolicyManager devicePolicyManager =
34 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
36 if (!devicePolicyManager.isProfileOwnerApp(getApplicationContext().getPackageName())) {
47 } else if (devicePolicyManager.isApplicationHidden(
StatusFragment.java 20 import android.app.admin.DevicePolicyManager;
91 DevicePolicyManager devicePolicyManager =
92 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
94 if (!devicePolicyManager.isApplicationHidden(
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 devicePolicyManager.setApplicationHidden(
  /development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
MainActivity.java 19 import android.app.admin.DevicePolicyManager;
33 DevicePolicyManager devicePolicyManager =
34 (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
36 if (!devicePolicyManager.isProfileOwnerApp(getApplicationContext().getPackageName())) {
47 } else if (devicePolicyManager.isApplicationHidden(
StatusFragment.java 20 import android.app.admin.DevicePolicyManager;
91 DevicePolicyManager devicePolicyManager =
92 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
94 if (!devicePolicyManager.isApplicationHidden(
123 DevicePolicyManager devicePolicyManager =
124 (DevicePolicyManager) activity.getSystemService(Activity.DEVICE_POLICY_SERVICE);
125 devicePolicyManager.setApplicationHidden(
  /packages/apps/Settings/src/com/android/settings/
ScreenPinningSettings.java 18 import android.app.admin.DevicePolicyManager;
119 if (passwordQuality == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED) {
120 Intent chooseLockIntent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
123 DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
144 != DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
155 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC:
156 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX:
158 case DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC:
159 case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC:
160 case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX
    [all...]
ChooseLockGeneric.java 26 import android.app.admin.DevicePolicyManager;
64 if (DevicePolicyManager.ACTION_SET_NEW_PASSWORD.equals(action)
65 || DevicePolicyManager.ACTION_SET_NEW_PARENT_PROFILE_PASSWORD.equals(action)) {
106 private DevicePolicyManager mDPM;
136 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
171 if (DevicePolicyManager.ACTION_SET_NEW_PARENT_PROFILE_PASSWORD.equals(
183 if (DevicePolicyManager.ACTION_SET_NEW_PASSWORD
246 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(DEVICE_POLICY_SERVICE);
391 case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
UserUtils.java 20 import android.app.admin.DevicePolicyManager;
39 private static DevicePolicyManager getDevicePolicyManager(Context context) {
40 return (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);

Completed in 383 milliseconds

1 23 4 5 6 7 8 91011>>