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.java1235 int callbackIdentifier) { in registerSoftApCallback() argument
1252 if (!mRegisteredSoftApCallbacks.add(binder, callback, callbackIdentifier)) { in registerSoftApCallback()
1275 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
1284 mRegisteredSoftApCallbacks.remove(callbackIdentifier); in unregisterSoftApCallback()
3211 int callbackIdentifier) { in registerTrafficStateCallback() argument
3225 mWifiTrafficPoller.addCallback(binder, callback, callbackIdentifier); in registerTrafficStateCallback()
3238 public void unregisterTrafficStateCallback(int callbackIdentifier) { in unregisterTrafficStateCallback() argument
3245 mWifiTrafficPoller.removeCallback(callbackIdentifier); in unregisterTrafficStateCallback()
3284 int callbackIdentifier) { in registerNetworkRequestMatchCallback() argument
3299 mClientModeImpl.addNetworkRequestMatchCallback(binder, callback, callbackIdentifier); in registerNetworkRequestMatchCallback()
[all …]
DWifiNetworkFactory.java408 int callbackIdentifier) { in addCallback() argument
418 if (!mRegisteredCallbacks.add(binder, callback, callbackIdentifier)) { in addCallback()
442 public void removeCallback(int callbackIdentifier) { in removeCallback() argument
443 mRegisteredCallbacks.remove(callbackIdentifier); in removeCallback()
DClientModeImpl.java6413 int callbackIdentifier) { in addNetworkRequestMatchCallback() argument
6414 mNetworkFactory.addCallback(binder, callback, callbackIdentifier); in addNetworkRequestMatchCallback()
6420 public void removeNetworkRequestMatchCallback(int callbackIdentifier) { in removeNetworkRequestMatchCallback() argument
6421 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.java1818 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
1820 mAppBinder, mClientSoftApCallback, callbackIdentifier); in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
1830 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments() local
1831 mWifiServiceImpl.registerSoftApCallback(mAppBinder, null, callbackIdentifier); in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments()
1847 final int callbackIdentifier = 1; in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
1848 mWifiServiceImpl.unregisterSoftApCallback(callbackIdentifier); in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
1872 private void registerSoftApCallbackAndVerify(ISoftApCallback callback, int callbackIdentifier) in registerSoftApCallbackAndVerify() argument
1874 registerSoftApCallbackAndVerify(mAppBinder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
1882 int callbackIdentifier) throws Exception { in registerSoftApCallbackAndVerify() argument
1883 mWifiServiceImpl.registerSoftApCallback(binder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java734 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterSoftApCallbackCallGoesToWifiServiceImpl() local
737 any(ISoftApCallback.Stub.class), callbackIdentifier.capture()); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
740 verify(mWifiService).unregisterSoftApCallback(eq((int) callbackIdentifier.getValue())); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
1149 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl() local
1152 any(ITrafficStateCallback.Stub.class), callbackIdentifier.capture()); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1156 eq((int) callbackIdentifier.getValue())); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1247 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl() local
1251 callbackIdentifier.capture()); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()
1255 eq((int) callbackIdentifier.getValue())); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()