Home
last modified time | relevance | path

Searched refs:callerType (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DNetworkWatchlistServiceTests.java98 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/
DNetdEventListenerService.java126 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()
DIpConnectivityMetrics.java323 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument
328 return mNetdListener.addNetdEventCallback(callerType, callback); in addNetdEventCallback()
332 public boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument
338 return mNetdListener.removeNetdEventCallback(callerType); in removeNetdEventCallback()
/frameworks/base/core/java/android/net/
DIIpConnectivityMetrics.aidl38 boolean addNetdEventCallback(in int callerType, in INetdEventCallback callback); in addNetdEventCallback() argument
39 boolean removeNetdEventCallback(in int callerType); in removeNetdEventCallback() argument