Home
last modified time | relevance | path

Searched refs:profileOwner (Results 1 – 11 of 11) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DOtaController.java167 ComponentName profileOwner = mDevicePolicyManager.getProfileOwnerAsUser(userId); in addManagedProfileTasks() local
168 if (profileOwner == null) { in addManagedProfileTasks()
176 .setDeviceAdminComponentName(profileOwner) in addManagedProfileTasks()
190 ComponentName profileOwner = mDevicePolicyManager.getProfileOwnerAsUser(userId); in addManagedUserTasks() local
191 if (profileOwner == null) { in addManagedUserTasks()
199 .setDeviceAdminComponentName(profileOwner) in addManagedUserTasks()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiHelper.java70 final ComponentName profileOwner = dpm.getProfileOwnerAsUser(profileOwnerUserId); in isNetworkLockedDown() local
71 if (profileOwner != null) { in isNetworkLockedDown()
74 profileOwner.getPackageName(), profileOwnerUserId); in isNetworkLockedDown()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserInfoView.java131 ComponentName profileOwner = dpm.getProfileOwnerAsUser(userId); in setManagedStatus() local
132 if (profileOwner != null) { in setManagedStatus()
133 Log.v(TAG, "User " + userId + " has profile owner: " + profileOwner); in setManagedStatus()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java225 final ComponentName profileOwner = dpm.getProfileOwnerAsUser(profileOwnerUserId); in isNetworkLockedDown() local
226 if (profileOwner != null) { in isNetworkLockedDown()
229 profileOwner.getPackageName(), profileOwnerUserId); in isNetworkLockedDown()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java128 final ComponentName profileOwner = dpm.getProfileOwnerAsUser(profileOwnerUserId); in isNetworkLockedDown() local
129 if (profileOwner != null) { in isNetworkLockedDown()
132 profileOwner.getPackageName(), profileOwnerUserId); in isNetworkLockedDown()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java171 final ComponentName profileOwner = mDpm.getProfileOwnerAsUser(userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile() local
172 if (profileOwner == null) { in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
175 return mDpm.getMaximumFailedPasswordsForWipe(profileOwner, userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java162 final ComponentName profileOwner = mDpm.getProfileOwnerAsUser(userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile() local
163 if (profileOwner == null) { in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
166 return mDpm.getMaximumFailedPasswordsForWipe(profileOwner, userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java165 final ComponentName profileOwner = mDpm.getProfileOwnerAsUser(userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile() local
166 if (profileOwner == null) { in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
169 return mDpm.getMaximumFailedPasswordsForWipe(profileOwner, userId); in getMaximumFailedPasswordsBeforeWipeInManagedProfile()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DEnterpriseContactsTest.java413 try (RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE)) { in testEnterpriseContacts_canAccessWithOnlyContactsAccess()
439 try (RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE)) { in testEnterpriseContacts_canNotAccessWithoutContactsAccess()
466 try (RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE)) { in testEnterpriseContacts_canNotAccessWithOnlyCallerIdAccess()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java444 String packageName, boolean deviceOwner, boolean profileOwner) { in addWorkPolicyInfoIntent() argument
458 if (profileOwner) { in addWorkPolicyInfoIntent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DBaseCarUserServiceTestCase.java462 protected void mockCreateProfile(int profileOwner, String profileName, UserHandle profile) { in mockCreateProfile() argument
465 when(mMockContext.createContextAsUser(UserHandle.of(profileOwner), /* flags= */ 0)) in mockCreateProfile()