Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddPrintersFragment.java58 private P2pPermissionManager mP2pPermissionManager; field in AddPrintersFragment
91 mP2pPermissionManager = new P2pPermissionManager(getActivity()); in onStart()
96 mP2pPermissionManager.request(false, approve -> { in onStart()
100 mP2pPermissionManager.setState(P2pPermissionManager.State.DISABLED); in onStart()
108 if (mP2pPermissionManager.getState() == P2pPermissionManager.State.DISABLED) { in onStart()
110 mP2pPermissionManager.setState(P2pPermissionManager.State.DENIED); in onStart()
112 mP2pPermissionManager.reset(); in onStart()
113 mP2pPermissionManager.request(true, approve -> updateP2pPreferences()); in onStart()
116 mP2pPermissionManager.setState(P2pPermissionManager.State.DISABLED); in onStart()
149 if (mP2pPermissionManager.isP2pEnabled()) { in updateP2pPreferences()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java92 private P2pPermissionManager mP2pPermissionManager; field in BuiltInPrintService
113 mP2pPermissionManager = new P2pPermissionManager(this); in onCreate()
114 mP2pPermissionManager.reset(); in onCreate()
147 mP2pPermissionManager.closeNotification(); in onDestroy()
221 return mP2pPermissionManager; in getP2pPermissionManager()
379 mP2pPermissionManager.applyPermissionChange(false); in onStartCommand()