Searched refs:callerType (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | NetworkWatchlistServiceTests.java | 98 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 105 public boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 135 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in testStartStopWatchlistLogging() 136 super.addNetdEventCallback(callerType, callback); in testStartStopWatchlistLogging() 137 assertEquals(callerType, INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST); in testStartStopWatchlistLogging() 142 public boolean removeNetdEventCallback(int callerType) { in testStartStopWatchlistLogging() 143 super.removeNetdEventCallback(callerType); in testStartStopWatchlistLogging() 144 assertEquals(callerType, INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST); in testStartStopWatchlistLogging()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetdEventListenerService.java | 126 public synchronized boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 127 if (!isValidCallerType(callerType)) { in addNetdEventCallback() 128 Log.e(TAG, "Invalid caller type: " + callerType); in addNetdEventCallback() 131 mNetdEventCallbackList[callerType] = callback; in addNetdEventCallback() 135 public synchronized boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 136 if (!isValidCallerType(callerType)) { in removeNetdEventCallback() 137 Log.e(TAG, "Invalid caller type: " + callerType); in removeNetdEventCallback() 140 mNetdEventCallbackList[callerType] = null; in removeNetdEventCallback() 144 private static boolean isValidCallerType(int callerType) { in isValidCallerType() argument 146 if (callerType == ALLOWED_CALLBACK_TYPES[i]) { in isValidCallerType()
|
D | IpConnectivityMetrics.java | 320 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 325 return mNetdListener.addNetdEventCallback(callerType, callback); in addNetdEventCallback() 329 public boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 335 return mNetdListener.removeNetdEventCallback(callerType); in removeNetdEventCallback()
|
/frameworks/base/core/java/android/net/ |
D | IIpConnectivityMetrics.aidl | 38 boolean addNetdEventCallback(in int callerType, in INetdEventCallback callback); in addNetdEventCallback() argument 39 boolean removeNetdEventCallback(in int callerType); in removeNetdEventCallback() argument
|