Lines Matching defs:connId
535 void onConnected(int clientIf, int connId, int status, String address)
538 + ", connId=" + connId + ", address=" + address);
540 if (status == 0) mClientMap.addConnection(clientIf, connId, address);
547 void onDisconnected(int clientIf, int connId, int status, String address)
550 + ", connId=" + connId + ", address=" + address);
552 mClientMap.removeConnection(clientIf, connId);
553 mSearchQueue.removeConnId(connId);
560 void onSearchCompleted(int connId, int status) throws RemoteException {
561 if (DBG) Log.d(TAG, "onSearchCompleted() - connId=" + connId+ ", status=" + status);
563 continueSearch(connId, status);
566 void onSearchResult(int connId, int srvcType,
570 String address = mClientMap.addressByConnId(connId);
574 mSearchQueue.add(connId, srvcType, srvcInstId, srvcUuidLsb, srvcUuidMsb);
576 ClientMap.App app = mClientMap.getByConnId(connId);
583 void onGetCharacteristic(int connId, int status, int srvcType,
590 String address = mClientMap.addressByConnId(connId);
596 mSearchQueue.add(connId, srvcType,
600 ClientMap.App app = mClientMap.getByConnId(connId);
608 gattClientGetCharacteristicNative(connId, srvcType,
613 gattClientGetIncludedServiceNative(connId,
619 void onGetDescriptor(int connId, int status, int srvcType,
627 String address = mClientMap.addressByConnId(connId);
633 ClientMap.App app = mClientMap.getByConnId(connId);
642 gattClientGetDescriptorNative(connId, srvcType,
648 continueSearch(connId, 0);
652 void onGetIncludedService(int connId, int status, int srvcType,
658 String address = mClientMap.addressByConnId(connId);
665 ClientMap.App app = mClientMap.getByConnId(connId);
673 gattClientGetIncludedServiceNative(connId,
678 continueSearch(connId, 0);
682 void onRegisterForNotifications(int connId, int status, int registered, int srvcType,
687 String address = mClientMap.addressByConnId(connId);
694 void onNotify(int connId, String address, int srvcType,
704 ClientMap.App app = mClientMap.getByConnId(connId);
713 void onReadCharacteristic(int connId, int status, int srvcType,
720 String address = mClientMap.addressByConnId(connId);
725 ClientMap.App app = mClientMap.getByConnId(connId);
733 void onWriteCharacteristic(int connId, int status, int srvcType,
740 String address = mClientMap.addressByConnId(connId);
745 ClientMap.App app = mClientMap.getByConnId(connId);
753 void onExecuteCompleted(int connId, int status) throws RemoteException {
754 String address = mClientMap.addressByConnId(connId);
758 ClientMap.App app = mClientMap.getByConnId(connId);
764 void onReadDescriptor(int connId, int status, int srvcType,
773 String address = mClientMap.addressByConnId(connId);
778 ClientMap.App app = mClientMap.getByConnId(connId);
787 void onWriteDescriptor(int connId, int status, int srvcType,
795 String address = mClientMap.addressByConnId(connId);
800 ClientMap.App app = mClientMap.getByConnId(connId);
939 Integer connId = mClientMap.connIdByAddress(clientIf, address);
940 if (DBG) Log.d(TAG, "clientDisconnect() - address=" + address + ", connId=" + connId);
942 gattClientDisconnectNative(clientIf, address, connId != null ? connId : 0);
965 Integer connId = mClientMap.connIdByAddress(clientIf, address);
966 if (DBG) Log.d(TAG, "discoverServices() - address=" + address + ", connId=" + connId);
968 if (connId != null)
969 gattClientSearchServiceNative(connId, true, 0, 0);
981 Integer connId = mClientMap.connIdByAddress(clientIf, address);
982 if (connId != null)
983 gattClientReadCharacteristicNative(connId, srvcType,
1002 Integer connId = mClientMap.connIdByAddress(clientIf, address);
1003 if (connId != null)
1004 gattClientWriteCharacteristicNative(connId, srvcType,
1021 Integer connId = mClientMap.connIdByAddress(clientIf, address);
1022 if (connId != null)
1023 gattClientReadDescriptorNative(connId, srvcType,
1042 Integer connId = mClientMap.connIdByAddress(clientIf, address);
1043 if (connId != null)
1044 gattClientWriteDescriptorNative(connId, srvcType,
1068 Integer connId = mClientMap.connIdByAddress(clientIf, address);
1069 if (connId != null) gattClientExecuteWriteNative(connId, execute);
1080 Integer connId = mClientMap.connIdByAddress(clientIf, address);
1081 if (connId != null) {
1181 void onClientConnected(String address, boolean connected, int connId, int serverIf)
1184 if (DBG) Log.d(TAG, "onConnected() connId=" + connId
1191 mServerMap.addConnection(serverIf, connId, address);
1193 mServerMap.removeConnection(serverIf, connId);
1199 void onAttributeRead(String address, int connId, int transId,
1202 if (DBG) Log.d(TAG, "onAttributeRead() connId=" + connId
1246 void onAttributeWrite(String address, int connId, int transId,
1251 if (DBG) Log.d(TAG, "onAttributeWrite() connId=" + connId
1298 void onExecuteWrite(String address, int connId, int transId, int execWrite)
1300 if (DBG) Log.d(TAG, "onExecuteWrite() connId=" + connId
1303 ServerMap.App app = mServerMap.getByConnId(connId);
1347 Integer connId = mServerMap.connIdByAddress(serverIf, address);
1348 if (DBG) Log.d(TAG, "serverDisconnect() - address=" + address + ", connId=" + connId);
1350 gattServerDisconnectNative(serverIf, address, connId != null ? connId : 0);
1427 int connId = mServerMap.connIdByAddress(serverIf, address);
1428 gattServerSendResponseNative(serverIf, connId, requestId, (byte)status,
1447 int connId = mServerMap.connIdByAddress(serverIf, address);
1448 if (connId == 0) return;
1451 gattServerSendIndicationNative(serverIf, charHandle, connId, value);
1453 gattServerSendNotificationNative(serverIf, charHandle, connId, value);
1468 private void continueSearch(int connId, int status) throws RemoteException {
1474 gattClientGetCharacteristicNative(svc.connId, svc.srvcType,
1478 gattClientGetDescriptorNative(svc.connId, svc.srvcType,
1483 ClientMap.App app = mClientMap.getByConnId(connId);
1485 app.callback.onSearchComplete(mClientMap.addressByConnId(connId), status);