/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 138 final int clientId; in connect() local 140 clientId = mNextClientId++; in connect() 144 Log.v(TAG, "connect: uid=" + uid + ", clientId=" + clientId + ", configRequest" in connect() 151 if (DBG) Log.d(TAG, "binderDied: clientId=" + clientId); in connect() 155 mDeathRecipientsByClientId.delete(clientId); in connect() 156 mUidByClientId.delete(clientId); in connect() 159 mStateManager.disconnect(clientId); in connect() 176 mDeathRecipientsByClientId.put(clientId, dr); in connect() 177 mUidByClientId.put(clientId, uid); in connect() 180 mStateManager.connect(clientId, uid, pid, callingPackage, callback, configRequest, in connect() [all …]
|
D | WifiAwareStateManager.java | 237 /* package */ WifiAwareClientState getClient(int clientId) { in getClient() argument 238 return mClients.get(clientId); in getClient() 266 public void connect(int clientId, int uid, int pid, String callingPackage, in connect() argument 271 msg.arg2 = clientId; in connect() 286 public void disconnect(int clientId) { in disconnect() argument 289 msg.arg2 = clientId; in disconnect() 296 public void terminateSession(int clientId, int sessionId) { in terminateSession() argument 299 msg.arg2 = clientId; in terminateSession() 308 public void publish(int clientId, PublishConfig publishConfig, in publish() argument 312 msg.arg2 = clientId; in publish() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 162 int clientId = doConnect(); in testDisconnect() local 164 mDut.disconnect(clientId, mBinderMock); in testDisconnect() 166 verify(mAwareStateManagerMock).disconnect(clientId); in testDisconnect() 167 validateInternalStateCleanedUp(clientId); in testDisconnect() 185 int clientId = doConnect(); in testFailOnClearedUpClientId() local 187 mDut.disconnect(clientId, mBinderMock); in testFailOnClearedUpClientId() 189 verify(mAwareStateManagerMock).disconnect(clientId); in testFailOnClearedUpClientId() 190 validateInternalStateCleanedUp(clientId); in testFailOnClearedUpClientId() 192 mDut.disconnect(clientId, mBinderMock); in testFailOnClearedUpClientId() 203 int clientId = doConnect(); in testFailOnAccessClientIdFromWrongUid() local [all …]
|
D | WifiAwareStateManagerTest.java | 179 final int clientId = 12314; in testDisableUsageDisablesApis() local 208 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageDisablesApis() 221 final int clientId = 12341; in testDisableUsageFlow() local 242 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageFlow() 248 inOrder.verify(mockCallback).onConnectSuccess(clientId); in testDisableUsageFlow() 256 validateInternalClientInfoCleanedUp(clientId); in testDisableUsageFlow() 259 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageFlow() 274 mDut.connect(clientId, uid, pid, callingPackage, mockCallback, configRequest, false); in testDisableUsageFlow() 280 inOrder.verify(mockCallback).onConnectSuccess(clientId); in testDisableUsageFlow() 290 final int clientId = 12341; in testHalFailureEnableAndConfigure() local [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 403 final int clientId = 123; in testDataPathInitiatorResponderMismatchUtility() local 413 Pair<Integer, Messenger> res = initDataPathEndPoint(clientId, pubSubId, peerHandle, in testDataPathInitiatorResponderMismatchUtility() 417 NetworkRequest nr = getSessionNetworkRequest(clientId, res.first, peerHandle, pmk, in testDataPathInitiatorResponderMismatchUtility() 426 ns.clientId, in testDataPathInitiatorResponderMismatchUtility() 459 final int clientId = 123; in testDataPathInitiatorUtility() local 479 Pair<Integer, Messenger> res = initDataPathEndPoint(clientId, pubSubId, peerHandle, in testDataPathInitiatorUtility() 485 nr = getDirectNetworkRequest(clientId, in testDataPathInitiatorUtility() 489 nr = getSessionNetworkRequest(clientId, res.first, provideMac ? peerHandle : null, in testDataPathInitiatorUtility() 550 final int clientId = 123; in testDataPathResponderUtility() local 564 Pair<Integer, Messenger> res = initDataPathEndPoint(clientId, pubSubId, peerHandle, in testDataPathResponderUtility() [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 | IWifiAwareManager.aidl | 43 void disconnect(int clientId, in IBinder binder); in disconnect() argument 45 void publish(int clientId, in PublishConfig publishConfig, in publish() argument 47 void subscribe(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 56 int startRanging(int clientId, int discoverySessionId, in RttManager.ParcelableRttParams parms); in startRanging() argument
|
D | WifiAwareManager.java | 295 public void disconnect(int clientId, Binder binder) { in disconnect() argument 299 mService.disconnect(clientId, binder); in disconnect() 306 public void publish(int clientId, Looper looper, PublishConfig publishConfig, in publish() argument 308 if (VDBG) Log.v(TAG, "publish(): clientId=" + clientId + ", config=" + publishConfig); in publish() 311 mService.publish(clientId, publishConfig, in publish() 313 clientId)); in publish() 320 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 322 Log.v(TAG, "updatePublish(): clientId=" + clientId + ",sessionId=" + sessionId in updatePublish() 327 mService.updatePublish(clientId, sessionId, publishConfig); in updatePublish() 334 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument [all …]
|
D | WifiAwareNetworkSpecifier.java | 82 public final int clientId; field in WifiAwareNetworkSpecifier 119 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument 123 this.clientId = clientId; in WifiAwareNetworkSpecifier() 161 dest.writeInt(clientId); in writeToParcel() 183 result = 31 * result + clientId; in hashCode() 208 && clientId == lhs.clientId in equals() 222 .append(", clientId=").append(clientId) in toString()
|
D | SubscribeDiscoverySession.java | 38 public SubscribeDiscoverySession(WifiAwareManager manager, int clientId, in SubscribeDiscoverySession() argument 40 super(manager, clientId, sessionId); in SubscribeDiscoverySession()
|
D | PublishDiscoverySession.java | 35 public PublishDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) { in PublishDiscoverySession() argument 36 super(manager, clientId, sessionId); in PublishDiscoverySession()
|
D | WifiAwareSession.java | 49 public WifiAwareSession(WifiAwareManager manager, Binder binder, int clientId) { in WifiAwareSession() argument 50 if (VDBG) Log.v(TAG, "New session created: manager=" + manager + ", clientId=" + clientId); in WifiAwareSession() 54 mClientId = clientId; in WifiAwareSession()
|
D | DiscoverySession.java | 75 public DiscoverySession(WifiAwareManager manager, int clientId, int sessionId) { in DiscoverySession() argument 78 + clientId + ", sessionId=" + sessionId); in DiscoverySession() 82 mClientId = clientId; in DiscoverySession()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 129 final int clientId = 4565; in testConnectFlow() local 142 clientProxyCallback.getValue().onConnectSuccess(clientId); in testConnectFlow() 150 inOrder.verify(mockAwareService).publish(eq(clientId), eq(publishConfig), any()); in testConnectFlow() 154 inOrder.verify(mockAwareService).disconnect(eq(clientId), eq(binder.getValue())); in testConnectFlow() 173 final int clientId = 4565; in testConnectFailure() local 194 clientProxyCallback.getValue().onConnectSuccess(clientId); in testConnectFailure() 202 inOrder.verify(mockAwareService).subscribe(eq(clientId), eq(subscribeConfig), any()); in testConnectFailure() 213 final int clientId = 4565; in testInvalidConnectSequence() local 223 clientProxyCallback.getValue().onConnectSuccess(clientId); in testInvalidConnectSequence() 231 clientProxyCallback.getValue().onConnectSuccess(clientId + 1); in testInvalidConnectSequence() [all …]
|
/frameworks/av/media/libmedia/ |
D | IResourceManagerService.cpp | 75 int64_t clientId, in addResource() argument 81 data.writeInt64(clientId); in addResource() 88 virtual void removeResource(int pid, int64_t clientId) { in removeResource() argument 92 data.writeInt64(clientId); in removeResource() 132 int64_t clientId = data.readInt64(); in onTransact() local 140 addResource(pid, clientId, client, resources); in onTransact() 147 int64_t clientId = data.readInt64(); in onTransact() local 148 removeResource(pid, clientId); in onTransact()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 41 DeathNotifier(const wp<ResourceManagerService> &service, int pid, int64_t clientId) in DeathNotifier() argument 42 : mService(service), mPid(pid), mClientId(clientId) {} in DeathNotifier() 103 int64_t clientId, in getResourceInfoForEdit() argument 107 if (infos[i].clientId == clientId) { in getResourceInfoForEdit() 112 info.clientId = clientId; in getResourceInfoForEdit() 176 snprintf(buffer, SIZE, " Id: %lld\n", (long long)infos[j].clientId); in dump() 226 int64_t clientId, in addResource() argument 230 pid, (long long) clientId, getString(resources).string()); in addResource() 239 ResourceInfo& info = getResourceInfoForEdit(clientId, client, infos); in addResource() 243 info.deathNotifier = new DeathNotifier(this, pid, clientId); in addResource() [all …]
|
D | ResourceManagerService.h | 37 int64_t clientId; member 63 int64_t clientId, 67 virtual void removeResource(int pid, int64_t clientId); 74 void removeResource(int pid, int64_t clientId, bool checkValid);
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 240 … private void storeRequestMap(int clientId, int globalId, ClientInfo clientInfo, int what) { in storeRequestMap() argument 241 clientInfo.mClientIds.put(clientId, globalId); in storeRequestMap() 242 clientInfo.mClientRequests.put(clientId, what); in storeRequestMap() 246 private void removeRequestMap(int clientId, int globalId, ClientInfo clientInfo) { in removeRequestMap() argument 247 clientInfo.mClientIds.remove(clientId); in removeRequestMap() 248 clientInfo.mClientRequests.remove(clientId); in removeRequestMap() 397 int clientId = clientInfo.getClientId(id); in handleNativeEvent() local 398 if (clientId < 0) { in handleNativeEvent() 417 clientId, servInfo); in handleNativeEvent() 423 clientId, servInfo); in handleNativeEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 644 IAudioFocusDispatcher fd, String clientId, String callingPackageName, int flags, in requestAudioFocus() argument 648 + " clientId=" + clientId in requestAudioFocus() 664 & (AudioSystem.IN_VOICE_COMM_FOCUS_ID.compareTo(clientId) == 0); in requestAudioFocus() 671 clientId, callingPackageName, focusChangeHint, 0 /*lossReceived*/, in requestAudioFocus() 713 if (!mFocusStack.empty() && mFocusStack.peek().hasSameClient(clientId)) { in requestAudioFocus() 735 removeFocusStackEntry(clientId, false /* signal */, false /*notifyFocusFollowers*/); in requestAudioFocus() 738 clientId, afdh, callingPackageName, Binder.getCallingUid(), this, sdk); in requestAudioFocus() 771 protected int abandonAudioFocus(IAudioFocusDispatcher fl, String clientId, AudioAttributes aa, in abandonAudioFocus() argument 776 + " clientId=" + clientId); in abandonAudioFocus() 783 clientId, callingPackageName, 0 /*gainRequest*/, 0 /*lossReceived*/, in abandonAudioFocus() [all …]
|
/frameworks/av/include/media/ |
D | IResourceManagerService.h | 42 int64_t clientId, 46 virtual void removeResource(int pid, int64_t clientId) = 0;
|
/frameworks/av/media/libmedia/include/media/ |
D | IResourceManagerService.h | 42 int64_t clientId, 46 virtual void removeResource(int pid, int64_t clientId) = 0;
|
/frameworks/base/media/java/android/media/ |
D | AudioFocusInfo.java | 52 public AudioFocusInfo(AudioAttributes aa, int clientUid, String clientId, String packageName, in AudioFocusInfo() argument 56 mClientId = clientId == null ? "" : clientId; in AudioFocusInfo()
|
D | IAudioService.aidl | 123 IAudioFocusDispatcher fd, String clientId, String callingPackageName, int flags, in requestAudioFocus() argument 126 int abandonAudioFocus(IAudioFocusDispatcher fd, String clientId, in AudioAttributes aa, in abandonAudioFocus() argument 129 void unregisterAudioFocusClient(String clientId); in unregisterAudioFocusClient() argument
|
D | IAudioFocusDispatcher.aidl | 26 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 444 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 447 return mBinder.getKeyCharacteristics(alias, clientId, appId, uid, outCharacteristics); in getKeyCharacteristics() 454 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 456 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics() 475 public ExportResult exportKey(String alias, int format, KeymasterBlob clientId, in exportKey() argument 478 return mBinder.exportKey(alias, format, clientId, appId, uid); in exportKey() 484 public ExportResult exportKey(String alias, int format, KeymasterBlob clientId, in exportKey() argument 486 return exportKey(alias, format, clientId, appId, UID_SELF); in exportKey()
|