Home
last modified time | relevance | path

Searched refs:isDeviceOrProfileOwner (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java1646 private boolean isDeviceOrProfileOwner(int uid, String packageName) { in isDeviceOrProfileOwner() method in NfcService
1661 boolean isDeviceOrProfileOwner = isDeviceOrProfileOwner(Binder.getCallingUid(), pkg); in enable()
1663 && !isDeviceOrProfileOwner) { in enable()
1667 if (!isDeviceOrProfileOwner && mIsNfcUserChangeRestricted) { in enable()
1698 boolean isDeviceOrProfileOwner = isDeviceOrProfileOwner(Binder.getCallingUid(), pkg); in disable()
1700 && !isDeviceOrProfileOwner) { in disable()
1704 if (!isDeviceOrProfileOwner && mIsNfcUserChangeRestricted) { in disable()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1098 private boolean isDeviceOrProfileOwner(int uid, String packageName) { in isDeviceOrProfileOwner() method in WifiServiceImpl
1273 && !isDeviceOrProfileOwner(callingUid, packageName) in setWifiEnabled()
1310 && !isDeviceOrProfileOwner(callingUid, packageName)) { in setWifiEnabled()
3285 boolean isDeviceOrProfileOwner = isDeviceOrProfileOwner(callingUid, packageName); in getConfiguredNetworks()
3292 if (!isDeviceOrProfileOwner && !isCarrierApp && !isPrivileged) { in getConfiguredNetworks()
3311 } else if (isCarrierApp || isDeviceOrProfileOwner) { in getConfiguredNetworks()
3659 || isDeviceOrProfileOwner(uid, packageName); in setSsidsAllowlist()
3682 || isDeviceOrProfileOwner(uid, packageName); in getSsidsAllowlist()
4280 && !isDeviceOrProfileOwner(callingUid, mContext.getOpPackageName())) { in queryAutojoinGlobal()
7601 if (!isDeviceOrProfileOwner(callingUid, packageName)) {