/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 199 int clientId = doConnect(); in testDisconnect() local 201 mDut.disconnect(clientId, mBinderMock); in testDisconnect() 203 verify(mAwareStateManagerMock).disconnect(clientId); in testDisconnect() 204 validateInternalStateCleanedUp(clientId); in testDisconnect() 222 int clientId = doConnect(); in testFailOnClearedUpClientId() local 224 mDut.disconnect(clientId, mBinderMock); in testFailOnClearedUpClientId() 226 verify(mAwareStateManagerMock).disconnect(clientId); in testFailOnClearedUpClientId() 227 validateInternalStateCleanedUp(clientId); in testFailOnClearedUpClientId() 229 mDut.disconnect(clientId, mBinderMock); in testFailOnClearedUpClientId() 240 int clientId = doConnect(); in testFailOnAccessClientIdFromWrongUid() local [all …]
|
D | WifiAwareStateManagerTest.java | 346 final int clientId = 12341; in testAwareDataPathInterfaceUpDown() local 367 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testAwareDataPathInterfaceUpDown() 373 inOrder.verify(mockCallback).onConnectSuccess(clientId); in testAwareDataPathInterfaceUpDown() 377 mDut.disconnect(clientId); in testAwareDataPathInterfaceUpDown() 392 final int clientId = 12314; in testDisableUsageDisablesApis() local 422 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageDisablesApis() 436 final int clientId = 12341; in testDisableUsageFlow() local 460 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageFlow() 466 inOrder.verify(mockCallback).onConnectSuccess(clientId); in testDisableUsageFlow() 480 validateInternalClientInfoCleanedUp(clientId); in testDisableUsageFlow() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 282 final int clientId = 123; in testDataPathPmkWithoutPermission() local 295 DataPathEndPointInfo res = initDataPathEndPoint(true, clientId, pubSubId, requestorId, in testDataPathPmkWithoutPermission() 299 NetworkRequest nr = getSessionNetworkRequest(clientId, res.mSessionId, res.mPeerHandle, pmk, in testDataPathPmkWithoutPermission() 319 final int clientId = 123; in testDataPathWithPortInfoOnPublisher() local 330 DataPathEndPointInfo res = initDataPathEndPoint(true, clientId, pubSubId, requestorId, in testDataPathWithPortInfoOnPublisher() 334 NetworkRequest nr = getSessionNetworkRequestMore(clientId, res.mSessionId, res.mPeerHandle, in testDataPathWithPortInfoOnPublisher() 358 final int clientId = 123; in testDataPathWithPortInfoInvalidPort() local 368 DataPathEndPointInfo res = initDataPathEndPoint(true, clientId, pubSubId, requestorId, in testDataPathWithPortInfoInvalidPort() 372 NetworkRequest nr = getSessionNetworkRequestMore(clientId, res.mSessionId, res.mPeerHandle, in testDataPathWithPortInfoInvalidPort() 392 final int clientId = 123; in testDataPathWithPortInfoButNoSecurityOnSubscriber() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 206 final int clientId; in connect() local 208 clientId = mNextClientId++; in connect() 212 Log.v(TAG, "connect: uid=" + uid + ", clientId=" + clientId + ", configRequest" in connect() 219 if (mDbg) Log.v(TAG, "binderDied: clientId=" + clientId); in connect() 223 mDeathRecipientsByClientId.delete(clientId); in connect() 224 mUidByClientId.delete(clientId); in connect() 227 mStateManager.disconnect(clientId); in connect() 244 mDeathRecipientsByClientId.put(clientId, dr); in connect() 245 mUidByClientId.put(clientId, uid); in connect() 248 mStateManager.connect(clientId, uid, pid, callingPackage, callback, configRequest, in connect() [all …]
|
D | WifiAwareStateManager.java | 469 /* package */ WifiAwareClientState getClient(int clientId) { in getClient() argument 470 return mClients.get(clientId); in getClient() 569 public void connect(int clientId, int uid, int pid, String callingPackage, in connect() argument 574 msg.arg2 = clientId; in connect() 589 public void disconnect(int clientId) { in disconnect() argument 592 msg.arg2 = clientId; in disconnect() 610 public void terminateSession(int clientId, int sessionId) { in terminateSession() argument 613 msg.arg2 = clientId; in terminateSession() 622 public void publish(int clientId, PublishConfig publishConfig, in publish() argument 626 msg.arg2 = clientId; in publish() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 38 public void startTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in startTracking() argument 39 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in startTracking() 51 public void stopTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in stopTracking() argument 52 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in stopTracking() 88 private ClientWakelockAccountant getClientWakelockAccountant(String clientId) { in getClientWakelockAccountant() argument 91 if (mClients.containsKey(clientId)) { in getClientWakelockAccountant() 92 client = mClients.get(clientId); in getClientWakelockAccountant() 94 client = new ClientWakelockAccountant(clientId); in getClientWakelockAccountant() 95 mClients.put(clientId, client); in getClientWakelockAccountant() 111 public boolean isClientActive(String clientId) { in isClientActive() argument [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 282 public void disconnect(int clientId, Binder binder) { in disconnect() argument 286 mService.disconnect(clientId, binder); in disconnect() 293 public void publish(int clientId, Looper looper, PublishConfig publishConfig, in publish() argument 295 if (VDBG) Log.v(TAG, "publish(): clientId=" + clientId + ", config=" + publishConfig); in publish() 302 mService.publish(mContext.getOpPackageName(), clientId, publishConfig, in publish() local 304 clientId)); in publish() 311 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 313 Log.v(TAG, "updatePublish(): clientId=" + clientId + ",sessionId=" + sessionId in updatePublish() 318 mService.updatePublish(clientId, sessionId, publishConfig); in updatePublish() 325 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument [all …]
|
D | IWifiAwareManager.aidl | 43 void disconnect(int clientId, in IBinder binder); in disconnect() argument 45 void publish(in String callingPackage, int clientId, in PublishConfig publishConfig, in publish() argument 47 void subscribe(in String callingPackage, int clientId, in SubscribeConfig subscribeConfig, in subscribe() argument 51 void updatePublish(int clientId, int discoverySessionId, in PublishConfig publishConfig); in updatePublish() argument 52 void updateSubscribe(int clientId, int discoverySessionId, in SubscribeConfig subscribeConfig); in updateSubscribe() argument 53 void sendMessage(int clientId, int discoverySessionId, int peerId, in byte[] message, in sendMessage() argument 55 void terminateSession(int clientId, int discoverySessionId); in terminateSession() argument
|
D | WifiAwareNetworkSpecifier.java | 84 public final int clientId; field in WifiAwareNetworkSpecifier 158 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument 163 this.clientId = clientId; in WifiAwareNetworkSpecifier() 217 dest.writeInt(clientId); in writeToParcel() 241 return Objects.hash(type, role, clientId, sessionId, peerId, Arrays.hashCode(peerMac), in hashCode() 260 && clientId == lhs.clientId in equals() 277 .append(", clientId=").append(clientId) in toString()
|
D | PublishDiscoverySession.java | 35 public PublishDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) { in PublishDiscoverySession() argument 36 super(manager, clientId, sessionId); in PublishDiscoverySession()
|
D | SubscribeDiscoverySession.java | 38 public SubscribeDiscoverySession(WifiAwareManager manager, int clientId, in SubscribeDiscoverySession() argument 40 super(manager, clientId, sessionId); in SubscribeDiscoverySession()
|
/frameworks/av/media/libmedia/ |
D | IResourceManagerService.cpp | 77 int64_t clientId, in addResource() argument 84 data.writeInt64(clientId); in addResource() 91 virtual void removeResource(int pid, int64_t clientId, const Vector<MediaResource> &resources) { in removeResource() argument 95 data.writeInt64(clientId); in removeResource() 101 virtual void removeClient(int pid, int64_t clientId) { in removeClient() argument 105 data.writeInt64(clientId); in removeClient() 146 int64_t clientId = data.readInt64(); in onTransact() local 154 addResource(pid, uid, clientId, client, resources); in onTransact() 161 int64_t clientId = data.readInt64(); in onTransact() local 164 removeResource(pid, clientId, resources); in onTransact() [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | MultiClientInputMethodServiceDelegateImpl.java | 117 public void addClient(int clientId, int uid, int pid, int selfReportedDisplayId) { in addClient() argument 122 service.mServiceCallback.addClient(clientId, uid, pid, selfReportedDisplayId); in addClient() 126 public void removeClient(int clientId) { in removeClient() argument 131 service.mServiceCallback.removeClient(clientId); in removeClient() 169 void acceptClient(int clientId, in acceptClient() argument 179 mPrivOps.acceptClient(clientId, callbackAdaptor.createIInputMethodSession(), in acceptClient() 186 void reportImeWindowTarget(int clientId, int targetWindowHandle, IBinder imeWindowToken) { in reportImeWindowTarget() argument 187 mPrivOps.reportImeWindowTarget(clientId, targetWindowHandle, imeWindowToken); in reportImeWindowTarget() 194 void setActive(int clientId, boolean active) { in setActive() argument 195 mPrivOps.setActive(clientId, active); in setActive()
|
D | MultiClientInputMethodServiceDelegate.java | 89 void addClient(int clientId, int uid, int pid, int selfReportedDisplayId); in addClient() argument 96 void removeClient(int clientId); in removeClient() argument 345 public void acceptClient(int clientId, ClientCallback clientCallback, in acceptClient() argument 347 mImpl.acceptClient(clientId, clientCallback, dispatcherState, looper); in acceptClient() 361 public void reportImeWindowTarget(int clientId, int targetWindowHandle, in reportImeWindowTarget() argument 363 mImpl.reportImeWindowTarget(clientId, targetWindowHandle, imeWindowToken); in reportImeWindowTarget() 385 public void setActive(int clientId, boolean active) { in setActive() argument 386 mImpl.setActive(clientId, active); in setActive()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 44 DeathNotifier(const wp<ResourceManagerService> &service, int pid, int64_t clientId) in DeathNotifier() argument 45 : mService(service), mPid(pid), mClientId(clientId) {} in DeathNotifier() 107 int64_t clientId, in getResourceInfoForEdit() argument 110 ssize_t index = infos.indexOfKey(clientId); in getResourceInfoForEdit() 115 info.clientId = clientId; in getResourceInfoForEdit() 118 index = infos.add(clientId, info); in getResourceInfoForEdit() 182 snprintf(buffer, SIZE, " Id: %lld\n", (long long)infos[j].clientId); in dump() 308 int64_t clientId, in addResource() argument 312 pid, (long long) clientId, getString(resources).string()); in addResource() 321 ResourceInfo& info = getResourceInfoForEdit(uid, clientId, client, infos); in addResource() [all …]
|
D | ResourceManagerService.h | 38 int64_t clientId; member 77 int64_t clientId, 81 virtual void removeResource(int pid, int64_t clientId, 84 virtual void removeClient(int pid, int64_t clientId); 91 void removeResource(int pid, int64_t clientId, bool checkValid);
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 160 final int clientId = 4565; in testConnectFlow() local 173 clientProxyCallback.getValue().onConnectSuccess(clientId); in testConnectFlow() 181 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), any()); in testConnectFlow() 185 inOrder.verify(mockAwareService).disconnect(eq(clientId), eq(binder.getValue())); in testConnectFlow() 204 final int clientId = 4565; in testConnectFailure() local 225 clientProxyCallback.getValue().onConnectSuccess(clientId); in testConnectFailure() 233 inOrder.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), any()); in testConnectFailure() 244 final int clientId = 4565; in testInvalidConnectSequence() local 254 clientProxyCallback.getValue().onConnectSuccess(clientId); in testInvalidConnectSequence() 262 clientProxyCallback.getValue().onConnectSuccess(clientId + 1); in testInvalidConnectSequence() [all …]
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | MultiClientInputMethodPrivilegedOperations.java | 160 public void acceptClient(int clientId, IInputMethodSession session, in acceptClient() argument 167 ops.acceptClient(clientId, session, multiClientSession, writeChannel); in acceptClient() 182 public void reportImeWindowTarget(int clientId, int targetWindowHandle, in reportImeWindowTarget() argument 189 ops.reportImeWindowTarget(clientId, targetWindowHandle, imeWindowToken); in reportImeWindowTarget() 221 public void setActive(int clientId, boolean active) { in setActive() argument 227 ops.setActive(clientId, active); in setActive()
|
D | IMultiClientInputMethodPrivilegedOperations.aidl | 30 void acceptClient(int clientId, in IInputMethodSession session, in acceptClient() argument 32 void reportImeWindowTarget(int clientId, int targetWindowHandle, in IBinder imeWindowToken); in reportImeWindowTarget() argument 34 void setActive(int clientId, boolean active); in setActive() argument
|
D | IMultiClientInputMethod.aidl | 24 void addClient(int clientId, int uid, int pid, int selfReportedDisplayId); in addClient() argument 25 void removeClient(int clientId); in removeClient() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 235 … private void storeRequestMap(int clientId, int globalId, ClientInfo clientInfo, int what) { in storeRequestMap() argument 236 clientInfo.mClientIds.put(clientId, globalId); in storeRequestMap() 237 clientInfo.mClientRequests.put(clientId, what); in storeRequestMap() 241 private void removeRequestMap(int clientId, int globalId, ClientInfo clientInfo) { in removeRequestMap() argument 242 clientInfo.mClientIds.delete(clientId); in removeRequestMap() 243 clientInfo.mClientRequests.delete(clientId); in removeRequestMap() 392 int clientId = clientInfo.getClientId(id); in handleNativeEvent() local 393 if (clientId < 0) { in handleNativeEvent() 412 clientId, servInfo); in handleNativeEvent() 418 clientId, servInfo); in handleNativeEvent() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | IResourceManagerService.h | 43 int64_t clientId, 47 virtual void removeResource(int pid, int64_t clientId, 50 virtual void removeClient(int pid, int64_t clientId) = 0;
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 766 IAudioFocusDispatcher fd, @NonNull String clientId, @NonNull String callingPackageName, in requestAudioFocus() argument 771 + " clientId=" + clientId + " callingPack=" + callingPackageName in requestAudioFocus() 794 & (AudioSystem.IN_VOICE_COMM_FOCUS_ID.compareTo(clientId) == 0); in requestAudioFocus() 801 clientId, callingPackageName, focusChangeHint, 0 /*lossReceived*/, in requestAudioFocus() 845 if (!mFocusStack.empty() && mFocusStack.peek().hasSameClient(clientId)) { in requestAudioFocus() 867 removeFocusStackEntry(clientId, false /* signal */, false /*notifyFocusFollowers*/); in requestAudioFocus() 870 clientId, afdh, callingPackageName, Binder.getCallingUid(), this, sdk); in requestAudioFocus() 903 protected int abandonAudioFocus(IAudioFocusDispatcher fl, String clientId, AudioAttributes aa, in abandonAudioFocus() argument 909 + " clientId=" + clientId)) in abandonAudioFocus() 917 clientId, callingPackageName, 0 /*gainRequest*/, 0 /*lossReceived*/, in abandonAudioFocus() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 132 int64_t clientId = toClientId(drm); in addSession() local 133 mSessionMap[toStdVec(sessionId)] = (SessionInfo){pid, uid, clientId}; in addSession() 134 mService->addResource(pid, uid, clientId, drm, toResourceVec(sessionId)); in addSession() 147 mService->addResource(info.pid, info.uid, info.clientId, NULL, toResourceVec(sessionId)); in useSession() 160 mService->removeResource(info.pid, info.clientId, toResourceVec(sessionId)); in removeSession()
|
/frameworks/base/media/java/android/media/ |
D | IAudioFocusDispatcher.aidl | 27 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument 29 void dispatchFocusResultFromExtPolicy(int requestResult, String clientId); in dispatchFocusResultFromExtPolicy() argument
|