/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | E2eUiTestUtils.java | 53 final boolean isProfileOwner = dpm.isProfileOwnerApp(context.getPackageName()); in verifyProfile() 54 Log.i(TAG, "isProfileOwner: " + isProfileOwner); in verifyProfile() 57 return isProfileOwner && verifyProvisioningExtras; in verifyProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddWarningPreferenceController.java | 46 boolean isProfileOwner = admin.equals(mDpm.getProfileOwner()); in updateState() 47 if (isProfileOwner || admin.equals(mDpm.getDeviceOwnerComponentOnCallingUser())) { in updateState() 49 if (isProfileOwner) { in updateState()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsAccess.java | 149 final boolean isProfileOwner; in checkAccessLevel() 152 isProfileOwner = mDpm != null && mDpm.isProfileOwnerApp(callingPackage); in checkAccessLevel() 156 if (isProfileOwner) { in checkAccessLevel()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/ |
D | DeviceAdminAdd.java | 476 final boolean isProfileOwner = in updateInterface() 479 if (isProfileOwner && isManagedProfile) { in updateInterface() 491 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface() 494 if (isProfileOwner) { in updateInterface()
|
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/ |
D | BtPermissionUtils.java | 176 private static boolean isProfileOwner(Context ctx, int uid, String packageName) { in isProfileOwner() method in BtPermissionUtils 353 && !isProfileOwner(ctx, callingUid, packageName)) { in checkCompatChangeRestriction()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 671 final boolean isProfileOwner = in updateInterface() 674 if (isProfileOwner && isManagedProfile) { in updateInterface() 690 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface() 693 if (isProfileOwner) { in updateInterface()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcPermissions.java | 197 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in NfcPermissions
|
D | NfcService.java | 1648 || mNfcPermissions.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 997 assertTrue(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 1002 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 1008 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 1016 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 1077 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in WifiPermissionsUtil 1256 return isDeviceOwner(uid, packageName) || isProfileOwner(uid, packageName) in isAdmin()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 320 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in setUp() 1418 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testUpdateIpConfiguration() 1565 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testAddUpdateRemoveMultipleNetworks() 5773 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())) in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions() 7719 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in testRemoveExcessAppAddedNetworksOnAdd() 7813 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in testFilterAtAppAddedLimit() 7831 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit() 7843 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit() 7854 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit() 7880 when(mWifiPermissionsUtil.isProfileOwner(eq(1), anyString())).thenReturn(true); in testFilterNonAppAddedNetworks() [all …]
|
D | WifiServiceImplTest.java | 1521 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testSetWifiDisabledSuccessForPOAppsTargetingQSdk() 3257 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ThrowExceptionIfNotDoOrPO() 3280 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ReturnsCallerNetworks() 3310 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetConfiguredNetworksAdmin_ReturnsNetworksWithDefaultMac() 7014 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkIsAllowedForPOApp() 7498 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testRemoveNonCallerConfiguredNetworks_CallerIsProfileOwner_ThrowsException() 8065 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in addOrUpdatePasspointConfigIsAllowedSystemAlertPOApp() 8423 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), anyString())).thenReturn(false); in testAllowAutojoinGlobalFailureNoPermission() 9861 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), anyString())).thenReturn(false); in testFlushPasspointAnqpCacheThrowsSecurityExceptionOnMissingPermissions() 9876 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), in testFlushPasspointAnqpCacheWithDoPermissions() [all …]
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 2808 || isProfileOwner(mCreatorUid))) { in startDhcpClient() 2877 private boolean isProfileOwner(int uid) { in isProfileOwner() method in IpClient
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 1787 || mWifiPermissionsUtil.isProfileOwner(uid, packageName) in isDeviceOwnerProfileOwnerOrSystem()
|
D | WifiServiceImpl.java | 1100 || mWifiPermissionsUtil.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()
|