Lines Matching refs:client

17 package android.bluetooth.client.map;
27 import android.bluetooth.client.map.BluetoothMasRequestSetMessageStatus.StatusIndicator;
28 import android.bluetooth.client.map.utils.ObexTime;
284 /** device associated with client */
287 /** MAS instance associated with client */
313 public SessionHandler(BluetoothMasClient client) {
316 mClient = new WeakReference<BluetoothMasClient>(client);
322 BluetoothMasClient client = mClient.get();
323 if (client == null) {
330 client.mConnectThread = null;
331 client.sendToClient(EVENT_CONNECT, false);
335 client.mConnectThread = null;
337 client.mObexTransport = (ObexTransport) msg.obj;
339 client.mObexSession = new BluetoothMasObexClientSession(client.mObexTransport,
340 client.mSessionHandler);
341 client.mObexSession.start();
345 client.mPath.clear(); // we're in root after connected
346 client.mConnectionState = ConnectionState.CONNECTED;
347 client.sendToClient(EVENT_CONNECT, true);
351 client.mConnectionState = ConnectionState.DISCONNECTED;
352 client.mNotificationEnabled = false;
353 client.mObexSession = null;
354 client.sendToClient(EVENT_CONNECT, false);
365 client.sendToClient(EVENT_UPDATE_INBOX, request.isSuccess());
372 if (client.mPath.size() > 0) {
373 client.mPath.removeLast();
378 client.mPath.clear();
382 client.mPath.addLast(req.mName);
387 client.sendToClient(EVENT_SET_PATH, request.isSuccess(),
388 client.getCurrentPath());
394 client.sendToClient(EVENT_GET_FOLDER_LISTING, request.isSuccess(), folders);
399 client.sendToClient(EVENT_GET_FOLDER_LISTING_SIZE, request.isSuccess(),
406 client.sendToClient(EVENT_GET_MESSAGES_LISTING, request.isSuccess(), msgs);
412 client.sendToClient(EVENT_GET_MESSAGE, request.isSuccess(), bmsg);
415 client.sendToClient(EVENT_SET_MESSAGE_STATUS, request.isSuccess());
421 client.sendToClient(EVENT_PUSH_MESSAGE, request.isSuccess(), handle);
426 client.mNotificationEnabled = req.isSuccess() ? req.getStatus()
427 : client.mNotificationEnabled;
429 client.sendToClient(EVENT_SET_NOTIFICATION_REGISTRATION,
431 client.mNotificationEnabled ? 1 : 0);
434 client.sendToClient(EVENT_GET_MESSAGES_LISTING_SIZE, request.isSuccess(),
441 client.sendToClient(EVENT_EVENT_REPORT, true, msg.obj);
579 * Constructs client object to communicate with single MAS instance on MSE
601 * Retrieves MAS instance data associated with client