Home
last modified time | relevance | path

Searched refs:callbackIdentifier (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DExternalCallbackTracker.java125 public boolean add(@NonNull IBinder binder, @NonNull T callbackObject, int callbackIdentifier) { in add() argument
129 Log.d(TAG, "Remove external callback on death " + callbackIdentifier); in add()
130 remove(callbackIdentifier); in add()
134 if (mCallbacks.containsKey(callbackIdentifier) && remove(callbackIdentifier)) { in add()
135 Log.d(TAG, "Replacing callback " + callbackIdentifier); in add()
137 mCallbacks.put(callbackIdentifier, externalCallback); in add()
150 public boolean remove(int callbackIdentifier) { in remove() argument
151 ExternalCallbackHolder<T> externalCallback = mCallbacks.remove(callbackIdentifier); in remove()
153 Log.w(TAG, "Unknown external callback " + callbackIdentifier); in remove()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiTrafficPoller.java56 int callbackIdentifier) { in addCallback() argument
57 if (!mRegisteredCallbacks.add(binder, callback, callbackIdentifier)) { in addCallback()
66 public void removeCallback(int callbackIdentifier) { in removeCallback() argument
67 mRegisteredCallbacks.remove(callbackIdentifier); in removeCallback()
DWifiServiceImpl.java1193 int callbackIdentifier) { in registerSoftApCallback() argument
1209 if (!mRegisteredSoftApCallbacks.add(binder, callback, callbackIdentifier)) { in registerSoftApCallback()
1232 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
1241 mRegisteredSoftApCallbacks.remove(callbackIdentifier); in unregisterSoftApCallback()
3152 int callbackIdentifier) { in registerTrafficStateCallback() argument
3166 mWifiTrafficPoller.addCallback(binder, callback, callbackIdentifier); in registerTrafficStateCallback()
3179 public void unregisterTrafficStateCallback(int callbackIdentifier) { in unregisterTrafficStateCallback() argument
3186 mWifiTrafficPoller.removeCallback(callbackIdentifier); in unregisterTrafficStateCallback()
3225 int callbackIdentifier) { in registerNetworkRequestMatchCallback() argument
3240 mClientModeImpl.addNetworkRequestMatchCallback(binder, callback, callbackIdentifier); in registerNetworkRequestMatchCallback()
[all …]
DWifiNetworkFactory.java427 int callbackIdentifier) { in addCallback() argument
437 if (!mRegisteredCallbacks.add(binder, callback, callbackIdentifier)) { in addCallback()
456 public void removeCallback(int callbackIdentifier) { in removeCallback() argument
457 mRegisteredCallbacks.remove(callbackIdentifier); in removeCallback()
DClientModeImpl.java6321 int callbackIdentifier) { in addNetworkRequestMatchCallback() argument
6322 mNetworkFactory.addCallback(binder, callback, callbackIdentifier); in addNetworkRequestMatchCallback()
6328 public void removeNetworkRequestMatchCallback(int callbackIdentifier) { in removeNetworkRequestMatchCallback() argument
6329 mNetworkFactory.removeCallback(callbackIdentifier); in removeNetworkRequestMatchCallback()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl189 …oid registerSoftApCallback(in IBinder binder, in ISoftApCallback callback, int callbackIdentifier); in registerSoftApCallback() argument
191 void unregisterSoftApCallback(int callbackIdentifier); in unregisterSoftApCallback() argument
197 …TrafficStateCallback(in IBinder binder, in ITrafficStateCallback callback, int callbackIdentifier); in registerTrafficStateCallback() argument
199 void unregisterTrafficStateCallback(int callbackIdentifier); in unregisterTrafficStateCallback() argument
201 …MatchCallback(in IBinder binder, in INetworkRequestMatchCallback callback, int callbackIdentifier); in registerNetworkRequestMatchCallback() argument
203 void unregisterNetworkRequestMatchCallback(int callbackIdentifier); in unregisterNetworkRequestMatchCallback() argument
/frameworks/base/wifi/java/com/android/server/wifi/
DBaseWifiService.java399 IBinder binder, ISoftApCallback callback, int callbackIdentifier) { in registerSoftApCallback() argument
404 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
410 IBinder binder, ITrafficStateCallback callback, int callbackIdentifier) { in registerTrafficStateCallback() argument
415 public void unregisterTrafficStateCallback(int callbackIdentifier) { in unregisterTrafficStateCallback() argument
421 IBinder binder, INetworkRequestMatchCallback callback, int callbackIdentifier) { in registerNetworkRequestMatchCallback() argument
426 public void unregisterNetworkRequestMatchCallback(int callbackIdentifier) { in unregisterNetworkRequestMatchCallback() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java1667 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
1669 callbackIdentifier); in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
1682 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments() local
1683 mWifiServiceImpl.registerSoftApCallback(mAppBinder, null, callbackIdentifier); in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments()
1699 final int callbackIdentifier = 1; in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
1700 mWifiServiceImpl.unregisterSoftApCallback(callbackIdentifier); in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
1727 private void registerSoftApCallbackAndVerify(ISoftApCallback callback, int callbackIdentifier) in registerSoftApCallbackAndVerify() argument
1729 registerSoftApCallbackAndVerify(mAppBinder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
1737 int callbackIdentifier) throws Exception { in registerSoftApCallbackAndVerify() argument
1738 mWifiServiceImpl.registerSoftApCallback(binder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java731 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterSoftApCallbackCallGoesToWifiServiceImpl() local
734 any(ISoftApCallback.Stub.class), callbackIdentifier.capture()); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
737 verify(mWifiService).unregisterSoftApCallback(eq((int) callbackIdentifier.getValue())); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
1146 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl() local
1149 any(ITrafficStateCallback.Stub.class), callbackIdentifier.capture()); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1153 eq((int) callbackIdentifier.getValue())); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1244 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl() local
1248 callbackIdentifier.capture()); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()
1252 eq((int) callbackIdentifier.getValue())); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()