Searched refs:NfcPermissions (Results 1 – 4 of 4) sorted by relevance
53 import com.android.nfc.NfcPermissions;588 NfcPermissions.enforceUserPermissions(mContext); in isDefaultServiceForCategory()589 NfcPermissions.validateUserId(userId); in isDefaultServiceForCategory()605 NfcPermissions.validateUserId(userId); in isDefaultServiceForAid()606 NfcPermissions.enforceUserPermissions(mContext); in isDefaultServiceForAid()616 NfcPermissions.validateUserId(userId); in setDefaultServiceForCategory()617 NfcPermissions.enforceAdminPermissions(mContext); in setDefaultServiceForCategory()627 NfcPermissions.validateProfileId(mContext, userId); in setDefaultForNextTap()628 NfcPermissions.enforceAdminPermissions(mContext); in setDefaultForNextTap()638 NfcPermissions.validateUserId(userId); in setShouldDefaultToObserveModeForService()[all …]
51 import com.android.nfc.NfcPermissions;138 .mockStatic(NfcPermissions.class) in setUp()470 NfcPermissions.validateUserId(USER_ID); in testCardEmulationIsDefaultServiceForCategory_serviceExistsWalletEnabled()473 NfcPermissions.enforceUserPermissions(mContext); in testCardEmulationIsDefaultServiceForCategory_serviceExistsWalletEnabled()490 NfcPermissions.validateUserId(USER_ID); in testCardEmulationIsDefaultServiceForCategory_serviceDoesNotExists()493 NfcPermissions.enforceUserPermissions(mContext); in testCardEmulationIsDefaultServiceForCategory_serviceDoesNotExists()513 NfcPermissions.validateUserId(USER_ID); in testCardEmulationIsDefaultServiceForAid_serviceExists()516 NfcPermissions.validateUserId(USER_ID); in testCardEmulationIsDefaultServiceForAid_serviceExists()534 NfcPermissions.validateUserId(USER_ID); in testCardEmulationIsDefaultServiceForAid_serviceDoesNotExists()537 NfcPermissions.enforceUserPermissions(mContext); in testCardEmulationIsDefaultServiceForAid_serviceDoesNotExists()[all …]
448 private final NfcPermissions mNfcPermissions;911 mNfcPermissions = new NfcPermissions(mContext); in NfcService()1662 if (!NfcPermissions.checkAdminPermissions(mContext) in enable()1699 if (!NfcPermissions.checkAdminPermissions(mContext) in disable()1751 NfcPermissions.enforceUserPermissions(mContext); in isObserveModeEnabled()1765 NfcPermissions.enforceUserPermissions(mContext); in setObserveMode()1831 NfcPermissions.enforceAdminPermissions(mContext); in pausePolling()1848 NfcPermissions.enforceAdminPermissions(mContext); in resumePolling()1871 NfcPermissions.enforceAdminPermissions(mContext); in setNfcSecure()1906 NfcPermissions.enforceUserPermissions(mContext); in setForegroundDispatch()[all …]
19 public class NfcPermissions { class53 public NfcPermissions(Context context) { in NfcPermissions() method in NfcPermissions