Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DExternalCallbackTracker.java126 public boolean add(@NonNull IBinder binder, @NonNull T callbackObject, int callbackIdentifier) { in add() argument
130 Log.d(TAG, "Remove external callback on death " + callbackIdentifier); in add()
131 remove(callbackIdentifier); in add()
135 if (mCallbacks.containsKey(callbackIdentifier)) { in add()
136 Log.d(TAG, "Replacing callback " + callbackIdentifier); in add()
137 remove(callbackIdentifier); in add()
139 mCallbacks.put(callbackIdentifier, externalCallback); in add()
152 public @Nullable T remove(int callbackIdentifier) { in remove() argument
153 ExternalCallbackHolder<T> externalCallback = mCallbacks.remove(callbackIdentifier); in remove()
155 Log.w(TAG, "Unknown external callback " + callbackIdentifier); in remove()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl205 …oid registerSoftApCallback(in IBinder binder, in ISoftApCallback callback, int callbackIdentifier); in registerSoftApCallback() argument
207 void unregisterSoftApCallback(int callbackIdentifier); in unregisterSoftApCallback() argument
213 …TrafficStateCallback(in IBinder binder, in ITrafficStateCallback callback, int callbackIdentifier); in registerTrafficStateCallback() argument
215 void unregisterTrafficStateCallback(int callbackIdentifier); in unregisterTrafficStateCallback() argument
217 …MatchCallback(in IBinder binder, in INetworkRequestMatchCallback callback, int callbackIdentifier); in registerNetworkRequestMatchCallback() argument
219 void unregisterNetworkRequestMatchCallback(int callbackIdentifier); in unregisterNetworkRequestMatchCallback() argument
242 …uration config, int netId, in IBinder binder, in IActionListener listener, int callbackIdentifier); in connect() argument
244 … WifiConfiguration config, in IBinder binder, in IActionListener listener, int callbackIdentifier); in save() argument
246 …way void forget(int netId, in IBinder binder, in IActionListener listener, int callbackIdentifier); in forget() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBaseWifiService.java482 IBinder binder, ISoftApCallback callback, int callbackIdentifier) { in registerSoftApCallback() argument
487 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
493 IBinder binder, ITrafficStateCallback callback, int callbackIdentifier) { in registerTrafficStateCallback() argument
498 public void unregisterTrafficStateCallback(int callbackIdentifier) { in unregisterTrafficStateCallback() argument
504 IBinder binder, INetworkRequestMatchCallback callback, int callbackIdentifier) { in registerNetworkRequestMatchCallback() argument
509 public void unregisterNetworkRequestMatchCallback(int callbackIdentifier) { in unregisterNetworkRequestMatchCallback() argument
576 IActionListener callback, int callbackIdentifier) { in connect() argument
582 int callbackIdentifier) { in save() argument
588 int callbackIdentifier) { in forget() argument
598 ITxPacketCountListener callback, int callbackIdentifier) { in getTxPacketCount() argument
DClientModeImpl.java3387 int callbackIdentifier = -1;
3493 callbackIdentifier = message.arg2;
3494 sendActionListenerFailure(callbackIdentifier, WifiManager.BUSY);
3498 callbackIdentifier = message.arg2;
3499 sendActionListenerSuccess(callbackIdentifier);
3846 int callbackIdentifier = -1;
4140 callbackIdentifier = message.arg2;
4148 sendActionListenerSuccess(callbackIdentifier);
4151 callbackIdentifier = message.arg2;
4195 sendActionListenerSuccess(callbackIdentifier);
[all …]
DWifiServiceImpl.java1123 int callbackIdentifier) { in registerSoftApCallback() argument
1124 return mRegisteredSoftApCallbacks.add(binder, callback, callbackIdentifier); in registerSoftApCallback()
1127 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
1128 mRegisteredSoftApCallbacks.remove(callbackIdentifier); in unregisterSoftApCallback()
1643 int callbackIdentifier) { in registerSoftApCallback() argument
1661 callbackIdentifier)) { in registerSoftApCallback()
1685 public void unregisterSoftApCallback(int callbackIdentifier) { in unregisterSoftApCallback() argument
1694 mTetheredSoftApTracker.unregisterSoftApCallback(callbackIdentifier)); in unregisterSoftApCallback()
3691 int callbackIdentifier) {
3705 mWifiTrafficPoller.addCallback(binder, callback, callbackIdentifier));
[all …]
DWifiNetworkFactory.java407 int callbackIdentifier) { in addCallback() argument
417 if (!mRegisteredCallbacks.add(binder, callback, callbackIdentifier)) { in addCallback()
441 public void removeCallback(int callbackIdentifier) { in removeCallback() argument
442 mRegisteredCallbacks.remove(callbackIdentifier); in removeCallback()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java2459 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
2461 mAppBinder, mClientSoftApCallback, callbackIdentifier); in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
2471 final int callbackIdentifier = 1; in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments() local
2472 mWifiServiceImpl.registerSoftApCallback(mAppBinder, null, callbackIdentifier); in registerSoftApCallbackThrowsIllegalArgumentExceptionOnInvalidArguments()
2488 final int callbackIdentifier = 1; in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() local
2489 mWifiServiceImpl.unregisterSoftApCallback(callbackIdentifier); in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
2513 private void registerSoftApCallbackAndVerify(ISoftApCallback callback, int callbackIdentifier) in registerSoftApCallbackAndVerify() argument
2515 registerSoftApCallbackAndVerify(mAppBinder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
2523 int callbackIdentifier) throws Exception { in registerSoftApCallbackAndVerify() argument
2524 mWifiServiceImpl.registerSoftApCallback(binder, callback, callbackIdentifier); in registerSoftApCallbackAndVerify()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java898 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterSoftApCallbackCallGoesToWifiServiceImpl() local
901 any(ISoftApCallback.Stub.class), callbackIdentifier.capture()); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
904 verify(mWifiService).unregisterSoftApCallback(eq((int) callbackIdentifier.getValue())); in unregisterSoftApCallbackCallGoesToWifiServiceImpl()
1399 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl() local
1403 any(ITrafficStateCallback.Stub.class), callbackIdentifier.capture()); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1407 eq((int) callbackIdentifier.getValue())); in unregisterTrafficStateCallbackCallGoesToWifiServiceImpl()
1502 ArgumentCaptor<Integer> callbackIdentifier = ArgumentCaptor.forClass(Integer.class); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl() local
1507 callbackIdentifier.capture()); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()
1511 eq((int) callbackIdentifier.getValue())); in unregisterNetworkRequestMatchCallbackCallGoesToWifiServiceImpl()