/system/bt/tools/bdtool/ |
bdtool.c | 42 static bool discoverable = false; variable 55 {"discoverable", no_argument, 0, 0}, {"time", required_argument, 0, 0}, 72 if (bond && discoverable) { 73 fprintf(stderr, "Can only select either bond or discoverable, not both\n"); 83 if (!bond && !discover && !discoverable && !up && !get_name && !set_name && 114 if (discoverable) { 122 fprintf(stdout, "Set rc:%d device as discoverable for %d seconds\n", rc, 287 "[--bond|--discover|--discoverable|--up|--sco_listen|--sco_connect] " 293 " discoverable: Set into a connectable and discoverable mode\n") [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/tests/ |
BluetoothRequestPermissionTest.java | 40 // Discoverable button alternates between 20 second timeout and no timeout. 44 final boolean mEnableOnly; // enable or enable + discoverable 77 Button discoverable = (Button) findViewById(R.id.discoverable); local 78 discoverable.setOnClickListener(new BtOnClickListener(false /* enable & discoverable */));
|
/external/autotest/server/cros/bluetooth/ |
bluetooth_tester.py | 61 def set_discoverable(self, discoverable, timeout=0): 62 """Set the discoverable state of the controller. 64 @param discoverable: Whether controller should be discoverable. 66 ignored when discoverable is False, must not be zero when 67 discoverable is True. 72 return self._proxy.set_discoverable(discoverable, timeout)
|
bluetooth_device.py | 188 def set_discoverable(self, discoverable): 189 """Set the adapter discoverable state. 191 @param discoverable: adapter discoverable state to set (True or False). 196 return self._proxy.set_discoverable(discoverable) 200 """Is the adapter in the discoverable state? 202 @return True if discoverable. False otherwise. 206 return properties.get('Discoverable') == 1 240 u'Discoverable': 0, 709 # Turn off the discoverable flag since it may affect future tests [all...] |
/external/autotest/client/cros/bluetooth/ |
bluetooth_tester_xmlrpc_server.py | 248 def set_discoverable(self, discoverable, timeout=0): 249 """Set the discoverable state of the controller. 251 @param discoverable: Whether controller should be discoverable. 253 ignored when discoverable is False, must not be zero when 254 discoverable is True. 260 discoverable, timeout)
|
bluetooth_device_xmlrpc_server.py | 509 def set_discoverable(self, discoverable): 510 """Set the adapter discoverable state. 512 @param discoverable: adapter discoverable state to set (True or False). 517 if not discoverable and not self._adapter: 523 'Discoverable', discoverable, [all...] |
/developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/ |
BluetoothChatFragment.java | 191 * Makes this device discoverable for 300 seconds (5 minutes). 393 case R.id.discoverable: { 394 // Ensure this device is discoverable by others
|
/developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/ |
BluetoothChatFragment.java | 191 * Makes this device discoverable for 300 seconds (5 minutes). 393 case R.id.discoverable: { 394 // Ensure this device is discoverable by others
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
BluetoothChat.java | 187 if(D) Log.d(TAG, "ensure discoverable"); 350 case R.id.discoverable: 351 // Ensure this device is discoverable by others
|
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/ |
BluetoothChatFragment.java | 191 * Makes this device discoverable for 300 seconds (5 minutes). 393 case R.id.discoverable: { 394 // Ensure this device is discoverable by others
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothStressTest.java | 25 * Includes tests for enabling/disabling bluetooth, enabling/disabling discoverable mode, 78 * Stress test for putting the device in and taking the device out of discoverable mode. 90 mTestUtils.writeOutput("discoverable iteration " + (i + 1) + " of " + iterations); 91 mTestUtils.discoverable(mAdapter);
|
BluetoothTestUtils.java | 45 /** Timeout for discoverable/undiscoverable in ms. */ 508 * Puts the local device into discoverable mode and checks to make sure that the local device 509 * is in discoverable mode and that the correct actions were broadcast. 513 public void discoverable(BluetoothAdapter adapter) { method in class:BluetoothTestUtils 515 fail("discoverable() bluetooth not enabled"); 546 writeOutput(String.format("discoverable() completed in 0 ms")); 552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, [all...] |
/external/autotest/client/common_lib/cros/bluetooth/ |
bluetooth_socket.py | 630 def set_discoverable(self, index, discoverable, timeout=0): 631 """Set the discoverable state of a controller. 634 @param discoverable: Whether controller should be discoverable. 636 ignored when discoverable is False, must not be zero when 637 discoverable is True. 643 msg_data = struct.pack('<BH', bool(discoverable), timeout) 649 if status == MGMT_STATUS_NOT_SUPPORTED and not discoverable: [all...] |