Lines Matching refs:masId
196 private final void startRfcommSocketListeners(int masId) {
197 if(masId == -1) {
202 BluetoothMapMasInstance masInst = mMasInstances.get(masId); // returns null for -1
206 Log.w(TAG, "startRfcommSocketListeners(): Invalid MasId: " + masId);
266 * @param masId use -1 to stop all instances
268 private void stopObexServerSessions(int masId) {
273 if(masId != -1) {
276 if(masInst.getMasId() != masId && masInst.isStarted()) {
288 BluetoothMapMasInstance masInst = mMasInstances.get(masId); // returns null for -1
398 private void onConnectHandler(int masId) {
403 BluetoothMapMasInstance masInst = mMasInstances.get(masId);
643 int masId = getNextMasId();
648 masId,
650 mMasInstances.append(masId, newInst);
681 * Unless the key 255 is in use, in which case the first free masId
686 /* Find the largest masId in use */
689 int masId = mMasInstances.keyAt(i);
690 if(masId > largestMasId) {
691 largestMasId = masId;
708 int masId = MAS_ID_SMS_MMS;
715 masId,
717 mMasInstances.append(masId, smsMmsInst);
722 masId++; // SMS/MMS is masId=0, increment before adding next
727 masId,
729 mMasInstances.append(masId, newInst);
843 * @param masId the MasID to start. Use -1 to start all listeners.
845 public void sendStartListenerMessage(int masId) {
847 Message msg = mSessionStatusHandler.obtainMessage(START_LISTENER, masId, 0);
855 private void sendConnectMessage(int masId) {
857 Message msg = mSessionStatusHandler.obtainMessage(MSG_MAS_CONNECT, masId, 0);