예제 #1
0
  // JAVADOC COMMENT ELIDED
  public boolean authenticate() throws IOException {
    if (!BCC.getInstance().isConnected(getBluetoothAddress())) {
      throw new IOException(
          "There are no open connections between the " + "local device and this RemoteDevice.");
    }

    return BCC.getInstance().authenticate(getBluetoothAddress());
  }
예제 #2
0
 // JAVADOC COMMENT ELIDED
 public String getFriendlyName(boolean alwaysAsk) throws IOException {
   // contact the remote device if name is not known or alwaysAsk is true
   if (friendlyName == null || alwaysAsk) {
     friendlyName = BCC.getInstance().getFriendlyName(getBluetoothAddress());
   }
   return friendlyName;
 }
예제 #3
0
 // JAVADOC COMMENT ELIDED
 public boolean isTrustedDevice() {
   return BCC.getInstance().isTrusted(getBluetoothAddress());
 }
예제 #4
0
 // JAVADOC COMMENT ELIDED
 public boolean isEncrypted() {
   return BCC.getInstance().isEncrypted(getBluetoothAddress());
 }
예제 #5
0
 // JAVADOC COMMENT ELIDED
 public boolean isAuthenticated() {
   return BCC.getInstance().isAuthenticated(getBluetoothAddress());
 }