Home | History | Annotate | Download | only in gatt

Lines Matching defs:Entry

35     class Entry {
47 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) {
56 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance,
67 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) {
75 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) {
85 List<Entry> mEntries = null;
90 mEntries = new ArrayList<Entry>();
101 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred));
106 mEntries.add(new Entry(serverIf, TYPE_CHARACTERISTIC, handle, uuid, serviceHandle));
110 mEntries.add(new Entry(serverIf, TYPE_DESCRIPTOR, handle, uuid, serviceHandle, mLastCharacteristic));
114 for(Entry entry : mEntries) {
115 if (entry.type != TYPE_SERVICE ||
116 entry.serverIf != serverIf ||
117 entry.handle != handle)
120 entry.started = started;
125 Entry getByHandle(int handle) {
126 for(Entry entry : mEntries) {
127 if (entry.handle == handle)
128 return entry;
135 for(Entry entry : mEntries) {
136 if (entry.type == TYPE_SERVICE &&
137 entry.serviceType == serviceType &&
138 entry.instance == instance &&
139 entry.uuid.equals(uuid)) {
140 return entry.handle;
148 for(Entry entry : mEntries) {
149 if (entry.type == TYPE_CHARACTERISTIC &&
150 entry.serviceHandle == serviceHandle &&
151 entry.instance == instance &&
152 entry.uuid.equals(uuid)) {
153 return entry.handle;
162 for(Iterator <Entry> it = mEntries.iterator(); it.hasNext();) {
163 Entry entry = it.next();
164 if (entry.serverIf != serverIf) continue;
166 if (entry.handle == serviceHandle ||
167 entry.serviceHandle == serviceHandle)
172 List<Entry> getEntries() {
184 Entry getByRequestId(int requestId) {
201 for (Entry entry : mEntries) {
202 sb.append(" " + entry.serverIf + ": [" + entry.handle + "] ");
203 switch(entry.type) {
205 sb.append("Service " + entry.uuid);
206 sb.append(", started " + entry.started);
210 sb.append(" Characteristic " + entry.uuid);
214 sb.append(" Descriptor " + entry.uuid);