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 | 101 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 108 public boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 148 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in testStartStopWatchlistLogging() 149 super.addNetdEventCallback(callerType, callback); in testStartStopWatchlistLogging() 150 assertEquals(callerType, INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST); in testStartStopWatchlistLogging() 155 public boolean removeNetdEventCallback(int callerType) { in testStartStopWatchlistLogging() 156 super.removeNetdEventCallback(callerType); in testStartStopWatchlistLogging() 157 assertEquals(callerType, INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST); in testStartStopWatchlistLogging()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetdEventListenerService.java | 133 public synchronized boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 134 if (!isValidCallerType(callerType)) { in addNetdEventCallback() 135 Log.e(TAG, "Invalid caller type: " + callerType); in addNetdEventCallback() 138 mNetdEventCallbackList[callerType] = callback; in addNetdEventCallback() 142 public synchronized boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 143 if (!isValidCallerType(callerType)) { in removeNetdEventCallback() 144 Log.e(TAG, "Invalid caller type: " + callerType); in removeNetdEventCallback() 147 mNetdEventCallbackList[callerType] = null; in removeNetdEventCallback() 151 private static boolean isValidCallerType(int callerType) { in isValidCallerType() argument 153 if (callerType == ALLOWED_CALLBACK_TYPES[i]) { in isValidCallerType()
|
D | IpConnectivityMetrics.java | 351 public boolean addNetdEventCallback(int callerType, INetdEventCallback callback) { in addNetdEventCallback() argument 356 return mNetdListener.addNetdEventCallback(callerType, callback); in addNetdEventCallback() 360 public boolean removeNetdEventCallback(int callerType) { in removeNetdEventCallback() argument 366 return mNetdListener.removeNetdEventCallback(callerType); in removeNetdEventCallback()
|
/frameworks/base/core/java/android/net/ |
D | IIpConnectivityMetrics.aidl | 46 boolean addNetdEventCallback(in int callerType, in INetdEventCallback callback); in addNetdEventCallback() argument 47 boolean removeNetdEventCallback(in int callerType); in removeNetdEventCallback() argument
|