Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsController.java47 void addCallback(int[] opsCodes, Callback cb); in addCallback() argument
58 void removeCallback(int[] opsCodes, Callback cb); in removeCallback() argument
DAppOpsControllerImpl.java189 public void addCallback(int[] opsCodes, AppOpsController.Callback callback) { in addCallback() argument
191 final int numCodes = opsCodes.length; in addCallback()
193 if (mCallbacksByCode.contains(opsCodes[i])) { in addCallback()
194 mCallbacksByCode.get(opsCodes[i]).add(callback); in addCallback()
197 if (DEBUG) Log.wtf(TAG, "APP_OP " + opsCodes[i] + " not supported"); in addCallback()
214 public void removeCallback(int[] opsCodes, AppOpsController.Callback callback) { in removeCallback() argument
215 final int numCodes = opsCodes.length; in removeCallback()
217 if (mCallbacksByCode.contains(opsCodes[i])) { in removeCallback()
218 mCallbacksByCode.get(opsCodes[i]).remove(callback); in removeCallback()