Home | History | Annotate | Download | only in gatt

Lines Matching refs:handle

39         public int handle = 0;
48 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) {
51 this.handle = handle;
57 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance,
61 this.handle = handle;
68 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) {
71 this.handle = handle;
76 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) {
79 this.handle = handle;
100 void addService(int serverIf, int handle, UUID uuid, int serviceType, int instance,
102 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred));
105 void addCharacteristic(int serverIf, int handle, UUID uuid, int serviceHandle) {
106 mLastCharacteristic = handle;
107 mEntries.add(new Entry(serverIf, TYPE_CHARACTERISTIC, handle, uuid, serviceHandle));
110 void addDescriptor(int serverIf, int handle, UUID uuid, int serviceHandle) {
111 mEntries.add(new Entry(serverIf, TYPE_DESCRIPTOR, handle, uuid, serviceHandle,
115 void setStarted(int serverIf, int handle, boolean started) {
118 || entry.handle != handle) {
127 Entry getByHandle(int handle) {
129 if (entry.handle == handle) {
133 Log.e(TAG, "getByHandle() - Handle " + handle + " not found!");
137 boolean checkServiceExists(UUID uuid, int handle) {
139 if (entry.type == TYPE_SERVICE && entry.handle == handle && entry.uuid.equals(uuid)) {
153 if (entry.handle == serviceHandle || entry.serviceHandle == serviceHandle) {
163 void addRequest(int requestId, int handle) {
164 mRequestMap.put(requestId, handle);
172 Integer handle = mRequestMap.get(requestId);
173 if (handle == null) {
177 return getByHandle(handle);
189 sb.append(" " + entry.serverIf + ": [" + entry.handle + "] ");