/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | LocalBluetoothProfileManager.java | 139 * Temporary method to fill profiles based on a device's class. 143 * @param uuids of the remote device 172 public abstract boolean connect(BluetoothDevice device); argument 174 public abstract boolean disconnect(BluetoothDevice device); argument 176 public abstract int getConnectionStatus(BluetoothDevice device); argument 178 public abstract int getSummary(BluetoothDevice device); argument 182 public abstract boolean isPreferred(BluetoothDevice device); argument 184 public abstract int getPreferred(BluetoothDevice device); argument 186 public abstract void setPreferred(BluetoothDevice device, boolean preferred); argument 188 public boolean isConnected(BluetoothDevice device) { argument 224 connect(BluetoothDevice device) argument 235 disconnect(BluetoothDevice device) argument 244 getConnectionStatus(BluetoothDevice device) argument 249 getSummary(BluetoothDevice device) argument 260 isPreferred(BluetoothDevice device) argument 265 getPreferred(BluetoothDevice device) argument 270 setPreferred(BluetoothDevice device, boolean preferred) argument 396 connect(BluetoothDevice device) argument 417 disconnect(BluetoothDevice device) argument 441 getConnectionStatus(BluetoothDevice device) argument 449 getSummary(BluetoothDevice device) argument 460 isPreferred(BluetoothDevice device) argument 465 getPreferred(BluetoothDevice device) argument 470 setPreferred(BluetoothDevice device, boolean preferred) argument 510 connect(BluetoothDevice device) argument 515 disconnect(BluetoothDevice device) argument 520 getConnectionStatus(BluetoothDevice device) argument 525 getSummary(BluetoothDevice device) argument 536 isPreferred(BluetoothDevice device) argument 541 getPreferred(BluetoothDevice device) argument 546 setPreferred(BluetoothDevice device, boolean preferred) argument [all...] |
H A D | CachedBluetoothDeviceManager.java | 54 for (BluetoothDevice device : bondedDevices) { 55 CachedBluetoothDevice cachedDevice = findDevice(device); 57 cachedDevice = new CachedBluetoothDevice(mLocalManager.getContext(), device); 77 public synchronized void onDeviceAppeared(BluetoothDevice device, short rssi, argument 81 CachedBluetoothDevice cachedDevice = findDevice(device); 83 cachedDevice = new CachedBluetoothDevice(mLocalManager.getContext(), device); 97 public synchronized void onDeviceDisappeared(BluetoothDevice device) { argument 98 CachedBluetoothDevice cachedDevice = findDevice(device); 108 // If device isn't paired, remove it altogether 114 public synchronized void onDeviceNameUpdated(BluetoothDevice device) { argument 121 findDevice(BluetoothDevice device) argument 140 getName(BluetoothDevice device) argument 168 onBondingStateChanged(BluetoothDevice device, int bondState) argument 194 showUnbondMessage(BluetoothDevice device, int reason) argument 223 onProfileStateChanged(BluetoothDevice device, Profile profile, int newProfileState) argument 232 onConnectingError(BluetoothDevice device) argument 255 onBtClassChanged(BluetoothDevice device) argument 262 onUuidChanged(BluetoothDevice device) argument [all...] |
H A D | BluetoothEventRedirector.java | 50 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 70 mManager.getCachedDeviceManager().onDeviceAppeared(device, rssi, btClass, name); 73 mManager.getCachedDeviceManager().onDeviceDisappeared(device); 76 mManager.getCachedDeviceManager().onDeviceNameUpdated(device); 82 cachedDeviceMgr.onBondingStateChanged(device, bondState); 84 if (device.isBluetoothDock()) { 87 mManager.removeDockAutoConnectSetting(device.getAddress()); 89 // if the device is undocked, remove it from the list as 91 if (!device.getAddress().equals(getDockedDeviceAddress(context))) { 92 cachedDeviceMgr.onDeviceDisappeared(device); [all...] |
H A D | DockService.java | 58 // Time allowed for the device to be undocked and redocked without severing 62 // Time allowed for the device to be undocked and redocked without turning 69 // Msg for device docked event 72 // Msg for device undocked event 238 BluetoothDevice device = null; 240 device = (BluetoothDevice) msg.obj; 243 if(DEBUG) Log.d(TAG, "processMessage: " + msgType + " state: " + state + " device = " 244 + (device == null ? "null" : device.toString())); 253 mDevice = device; 407 createDialog(DockService service, BluetoothDevice device, int state, int startId) argument 495 initBtSettings(DockService service, BluetoothDevice device, int state, boolean firstTime) argument 650 connectIfEnabled(BluetoothDevice device) argument 672 applyBtSettings(final BluetoothDevice device, int startId) argument 742 handleDocked(final BluetoothDevice device, final int state, final int startId) argument 753 handleUndocked(Context context, LocalBluetoothManager localManager, BluetoothDevice device) argument 768 getCachedBluetoothDevice(Context context, LocalBluetoothManager localManager, BluetoothDevice device) argument [all...] |
H A D | ConnectSpecificProfilesActivity.java | 34 * for a particular device, and allows him to choose which should be connected 45 public static final String EXTRA_DEVICE = "device"; 66 BluetoothDevice device; 68 device = savedInstanceState.getParcelable(EXTRA_DEVICE); 71 device = intent.getParcelableExtra(EXTRA_DEVICE); 74 if (device == null) { 75 Log.w(TAG, "Activity started without a remote Bluetooth device"); 80 mCachedDevice = mManager.getCachedDeviceManager().findDevice(device); 232 * If the device is online, show status. Otherwise, show a summary that 253 BluetoothDevice device 281 getProfileSummary(LocalBluetoothProfileManager profileManager, Profile profile, BluetoothDevice device, int connectionStatus, boolean onlineMode) argument [all...] |
H A D | DockEventReceiver.java | 57 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 61 + (device == null ? "null" : device.getName())); 66 if (device == null) { 91 if (device == null) { 116 if (device == null) {
|
H A D | BluetoothPairingRequest.java | 49 BluetoothDevice device = 55 pairingIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 67 String deviceAddress = device != null ? device.getAddress() : null; 88 name = device.getName();
|
H A D | BluetoothSettings.java | 101 BluetoothDevice device = intent 103 if (device.equals(mSelectedDevice)) { 104 sendDevicePickedIntent(device); 120 // If an application wish to show the BT device list, it can send an 235 CachedBluetoothDevice device = btPreference.getCachedDevice(); 237 mSelectedDevice = device.getDevice(); 240 if ((device.getBondState() == BluetoothDevice.BOND_BONDED) || 257 //For device picker, disable Context Menu 362 private void sendDevicePickedIntent(BluetoothDevice device) { argument 367 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); [all...] |
H A D | LocalBluetoothManager.java | 69 // If a device was picked from the device picker or was in discoverable mode 174 * scanning state had really changed (in that case the device 278 public void showError(BluetoothDevice device, int titleResId, int messageResId) { argument 279 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(device); 282 if (device != null) name = device.getName(); 319 // If the device was in discoverABLE mode recently 327 // If the device was discoverING recently 335 // If the device wa [all...] |
H A D | BluetoothPermissionActivity.java | 62 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 63 if (mDevice.equals(device)) dismissDialog();
|
H A D | BluetoothPairingDialog.java | 43 * for pairing with a remote Bluetooth device. It is an activity that appears as a dialog. 69 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 70 if (device == null || device.equals(mDevice)) {
|
H A D | CachedBluetoothDevice.java | 43 * CachedBluetoothDevice represents a remote Bluetooth device. It contains 44 * attributes of the device (such as the address, name, RSSI, etc.) and 45 * functionality that can be performed on the device (connect, pair, disconnect, 93 * Describes the current device and profile for logging. 96 * @return Description of the device and profile 128 CachedBluetoothDevice(Context context, BluetoothDevice device) { argument 135 mDevice = device; 277 private void disconnectConnected(CachedBluetoothDevice device, Profile profile) { argument 286 if (cachedDevice != null && !cachedDevice.equals(device)) { 438 * Checks whether we are connected to this device (an [all...] |
/packages/apps/Phone/src/com/android/phone/ |
H A D | BluetoothHeadsetService.java | 122 for (BluetoothDevice device : mRemoteHeadsets.keySet()) { 123 int state = mRemoteHeadsets.get(device).mState; 126 return device; 135 Log.w(TAG, "Stopping BluetoothHeadsetService: device does not have BT"); 181 BluetoothDevice device = getCurrentDevice(); 184 if (device != null) { 185 state = mRemoteHeadsets.get(device).mState; 202 if (!info.mRemoteDevice.equals(device)) { 204 Log.i(TAG, "Already attempting connect to " + device + 227 Log.i(TAG, "Already connected to " + device 343 private BluetoothDevice device; field in class:BluetoothHeadsetService.RfcommConnectThread 350 RfcommConnectThread(BluetoothDevice device, int channel, int type) argument 473 setState(BluetoothDevice device, int state) argument 477 setState(BluetoothDevice device, int state, int result) argument 481 setState(BluetoothDevice device, int state, int result, int initiator) argument 526 setPriority(BluetoothDevice device, int priority) argument 534 getPriority(BluetoothDevice device) argument 565 getSdpRecordsAndConnect(BluetoothDevice device) argument [all...] |
H A D | BluetoothHandsfree.java | 131 // This flag is just used as a toggle to provide a update to the BT device to specify 543 BluetoothDevice device = 548 if (mA2dpDevice != null && !device.equals(mA2dpDevice)) return; 555 mA2dpDevice = device; 1076 private void broadcastAudioStateIntent(int state, BluetoothDevice device) { argument 1080 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 1190 BluetoothDevice device = null; 1192 device = mHeadset.getRemoteDevice(); 1197 broadcastAudioStateIntent(BluetoothHeadset.AUDIO_STATE_DISCONNECTED, device); 2062 // AT+CGSN - Returns the device IME [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | NativeNfcManager.java | 131 private void notifyLlcpLinkActivation(NativeP2pDevice device) { argument 132 mNfcService.sendMessage(NfcService.MSG_LLCP_LINK_ACTIVATION, device); 138 private void notifyLlcpLinkDeactivated(NativeP2pDevice device) { argument 139 mNfcService.sendMessage(NfcService.MSG_LLCP_LINK_DEACTIVATED, device);
|
H A D | NfcService.java | 1261 /* Remove the device from the hmap */ 1556 NativeP2pDevice device; 1563 /* find the device in the hmap */ 1564 device = (NativeP2pDevice) findObject(nativeHandle); 1565 if (device != null) { 1566 byte[] buff = device.getGeneralBytes(); 1578 NativeP2pDevice device; 1585 /* find the device in the hmap */ 1586 device = (NativeP2pDevice) findObject(nativeHandle); 1587 if (device ! [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppTransfer.java | 65 * This class run an actual Opp transfer session (from connect target device to 365 * 3) new a thread to connect to target device 366 * 3.1) Try a few times to do SDP query for target device OPUSH channel 557 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 558 if (V) Log.v(TAG, "ACTION_UUID for device " + device); 559 if (device.equals(mBatch.mDestination)) { 568 if (V) Log.v(TAG, "SDP get OPP result for device " + device); 585 private final BluetoothDevice device; field in class:BluetoothOppTransfer.SocketConnectThread 605 SocketConnectThread(BluetoothDevice device, int channel) argument [all...] |
H A D | BluetoothOppManager.java | 254 * Get device name per bluetooth address. 256 public String getDeviceName(BluetoothDevice device) { argument 259 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device); 262 deviceName = device.getName(); 281 public void startTransfer(BluetoothDevice device) { argument 297 insertThread = new InsertShareInfoThread(device, mMultipleFlag, mMimeTypeOfSendingFile, 312 * share to one device (say device 1), and then right away share to second 313 * device (device 328 InsertShareInfoThread(BluetoothDevice device, boolean multiple, String typeOfSingleFile, String uri, String typeOfMultipleFiles, ArrayList<Uri> uris) argument [all...] |
/packages/experimental/procstatlog/ |
H A D | procstatreport.py | 116 <span style="font-size: 150%%">disk: %(device)s</span><br> 514 diskstats, device = key.split(":", 1) 515 disk_reads.setdefault(device, {})[when] = reads 516 disk_writes.setdefault(device, {})[when] = writes 517 disk_msec.setdefault(device, {})[when] = msec 522 for num, device in enumerate(sorted(disk_reads.keys())): 524 if d.startswith(device) and d != device]: continue 526 reads, writes = disk_reads[device], disk_writes[device] [all...] |
H A D | procstatlog.c | 50 // /proc/diskstats - per device: "/proc/diskstats:mmcblk0" 53 // /proc/yaffs - per device/line: "/proc/yaffs:userdata:nBlockErasures" 175 char *line, *device = NULL; local 180 device = strchr(line, '"'); 181 if (device != NULL) { 182 char *end = strchr(++device, '"'); 184 device_len = strlen(device); 188 if (device == NULL) continue; 196 unspace(data->name + 12, device, device_len);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapService.java | 229 + "device does not have BT or device is not ready"); 529 + sRemoteDeviceName + " automatically as trusted device"); 712 public boolean isConnected(BluetoothDevice device) { 714 return mState == BluetoothPbap.STATE_CONNECTED && mRemoteDevice.equals(device); 717 public boolean connect(BluetoothDevice device) {
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
H A D | BluetoothVoiceDialerActivity.java | 376 BluetoothDevice device = mBluetoothHeadset.getCurrentHeadset(); 377 if (mBluetoothHeadset.getState(device) == BluetoothHeadset.STATE_CONNECTED) {
|