Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Phone/src/com/android/phone/
DBluetoothHeadsetService.java124 for (BluetoothDevice device : mRemoteHeadsets.keySet()) { in getCurrentDevice()
125 int state = mRemoteHeadsets.get(device).mState; in getCurrentDevice()
128 return device; in getCurrentDevice()
191 BluetoothDevice device = getCurrentDevice();
194 if (device != null) {
195 state = mRemoteHeadsets.get(device).mState;
212 if (!info.mRemoteDevice.equals(device)) {
214 Log.i(TAG, "Already attempting connect to " + device +
239 Log.i(TAG, "Already connected to " + device + ", disconnecting " +
260 BluetoothDevice device =
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DHeadsetProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(firstDevice); in onServiceConnected() local
71 if (device == null) { in onServiceConnected()
73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, firstDevice); in onServiceConnected()
75 device.onProfileStateChanged(HeadsetProfile.this, in onServiceConnected()
110 public boolean connect(BluetoothDevice device) { in connect() argument
117 return mService.connect(device); in connect()
120 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
122 if (!deviceList.isEmpty() && deviceList.get(0).equals(device)) { in disconnect()
124 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
125 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DPanProfile.java73 public boolean connect(BluetoothDevice device) { in connect() argument
80 return mService.connect(device); in connect()
83 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
84 return mService.disconnect(device); in disconnect()
87 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
88 return mService.getConnectionState(device); in getConnectionStatus()
91 public boolean isPreferred(BluetoothDevice device) { in isPreferred() argument
95 public int getPreferred(BluetoothDevice device) { in getPreferred() argument
99 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() argument
115 public int getNameResource(BluetoothDevice device) { in getNameResource() argument
[all …]
DHidProfile.java69 public boolean connect(BluetoothDevice device) { in connect() argument
70 return mService.connect(device); in connect()
73 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
74 return mService.disconnect(device); in disconnect()
77 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
80 return !deviceList.isEmpty() && deviceList.get(0).equals(device) in getConnectionStatus()
81 ? mService.getConnectionState(device) in getConnectionStatus()
85 public boolean isPreferred(BluetoothDevice device) { in isPreferred() argument
86 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred()
89 public int getPreferred(BluetoothDevice device) { in getPreferred() argument
[all …]
DBluetoothEventManager.java55 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive() argument
130 BluetoothDevice device = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in getDockedDeviceAddress() local
131 if (device != null) { in getDockedDeviceAddress()
132 return device.getAddress(); in getDockedDeviceAddress()
143 BluetoothDevice device = intent
148 handler.onReceive(context, intent, device);
155 BluetoothDevice device) { in onReceive() argument
176 BluetoothDevice device) { in onReceive() argument
189 BluetoothDevice device) { in onReceive() argument
195 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
[all …]
DA2dpProfile.java83 public boolean connect(BluetoothDevice device) { in connect() argument
90 return mService.connect(device); in connect()
93 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
94 return mService.disconnect(device); in disconnect()
97 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
98 return mService.getConnectionState(device); in getConnectionStatus()
101 public boolean isPreferred(BluetoothDevice device) { in isPreferred() argument
102 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred()
105 public int getPreferred(BluetoothDevice device) { in getPreferred() argument
106 return mService.getPriority(device); in getPreferred()
[all …]
DCachedBluetoothDeviceManager.java51 public void onDeviceNameUpdated(BluetoothDevice device) { in onDeviceNameUpdated() argument
52 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated()
68 CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice() argument
70 if (cachedDevice.getDevice().equals(device)) { in findDevice()
85 BluetoothDevice device) { in addDevice() argument
87 profileManager, device); in addDevice()
98 public String getName(BluetoothDevice device) { in getName() argument
99 CachedBluetoothDevice cachedDevice = findDevice(device); in getName()
104 String name = device.getAliasName(); in getName()
109 return device.getAddress(); in getName()
[all …]
DDockService.java258 BluetoothDevice device = null; in processMessage() local
260 device = (BluetoothDevice) msg.obj; in processMessage()
264 + (device == null ? "null" : device.toString())); in processMessage()
270 createDialog(device, state, startId); in processMessage()
274 deferFinishCall = msgTypeDocked(device, state, startId); in processMessage()
278 deferFinishCall = msgTypeUndockedPermanent(device, startId); in processMessage()
282 msgTypeUndockedTemporary(device, state, startId); in processMessage()
317 private void msgTypeUndockedTemporary(BluetoothDevice device, int state, in msgTypeUndockedTemporary() argument
321 startId, device); in msgTypeUndockedTemporary()
325 private boolean msgTypeUndockedPermanent(BluetoothDevice device, int startId) { in msgTypeUndockedPermanent() argument
[all …]
DLocalBluetoothProfile.java38 boolean connect(BluetoothDevice device); in connect() argument
40 boolean disconnect(BluetoothDevice device); in disconnect() argument
42 int getConnectionStatus(BluetoothDevice device); in getConnectionStatus() argument
44 boolean isPreferred(BluetoothDevice device); in isPreferred() argument
46 int getPreferred(BluetoothDevice device); in getPreferred() argument
48 void setPreferred(BluetoothDevice device, boolean preferred); in setPreferred() argument
59 int getNameResource(BluetoothDevice device); in getNameResource() argument
68 int getSummaryResourceForDevice(BluetoothDevice device); in getSummaryResourceForDevice() argument
DOppProfile.java43 public boolean connect(BluetoothDevice device) { in connect() argument
47 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
51 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
55 public boolean isPreferred(BluetoothDevice device) { in isPreferred() argument
59 public int getPreferred(BluetoothDevice device) { in getPreferred() argument
63 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() argument
78 public int getNameResource(BluetoothDevice device) { in getNameResource() argument
82 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice() argument
DBluetoothDeviceFilter.java36 boolean matches(BluetoothDevice device); in matches() argument
79 public boolean matches(BluetoothDevice device) { in matches() argument
86 public boolean matches(BluetoothDevice device) { in matches() argument
87 return device.getBondState() == BluetoothDevice.BOND_BONDED; in matches()
93 public boolean matches(BluetoothDevice device) { in matches() argument
94 return device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
102 public boolean matches(BluetoothDevice device) { in matches() argument
103 return matches(device.getUuids(), device.getBluetoothClass()); in matches()
DDeviceProfilesSettings.java95 BluetoothDevice device; in onCreate() local
97 device = savedInstanceState.getParcelable(EXTRA_DEVICE); in onCreate()
100 device = args.getParcelable(EXTRA_DEVICE); in onCreate()
108 if (device == null) { in onCreate()
118 mCachedDevice = deviceManager.findDevice(device); in onCreate()
254 BluetoothDevice device = mCachedDevice.getDevice(); in onProfileClicked() local
256 int status = profile.getConnectionStatus(device); in onProfileClicked()
263 profile.setPreferred(device, true); in onProfileClicked()
271 final CachedBluetoothDevice device = mCachedDevice; in askDisconnect() local
272 String name = device.getName(); in askDisconnect()
[all …]
DDevicePickerFragment.java84 BluetoothDevice device = cachedDevice.getDevice(); in onDeviceBondStateChanged() local
85 if (device.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
86 sendDevicePickedIntent(device); in onDeviceBondStateChanged()
101 private void sendDevicePickedIntent(BluetoothDevice device) { in sendDevicePickedIntent() argument
103 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendDevicePickedIntent()
DBluetoothPairingRequest.java47 BluetoothDevice device = in onReceive() local
53 pairingIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in onReceive()
67 String deviceAddress = device != null ? device.getAddress() : null; in onReceive()
85 name = device != null ? device.getAliasName() : in onReceive()
DDockEventReceiver.java53 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local
57 + (device == null ? "null" : device.getAliasName())); in onReceive()
62 if (device == null) { in onReceive()
94 if (device == null) { in onReceive()
DLocalBluetoothProfileManager.java208 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() argument
209 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
211 Log.w(TAG, "StateChangedHandler found new device: " + device); in onReceive()
213 LocalBluetoothProfileManager.this, device); in onReceive()
235 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() argument
238 panProfile.setLocalRole(device, role); in onReceive()
239 super.onReceive(context, intent, device); in onReceive()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java35 public WifiP2pDevice device; field in WifiP2pPeer
44 device = dev; in WifiP2pPeer()
51 if (TextUtils.isEmpty(device.deviceName)) { in onBindView()
52 setTitle(device.deviceAddress); in onBindView()
54 setTitle(device.deviceName); in onBindView()
75 if (device.status != other.device.status) { in compareTo()
76 return device.status < other.device.status ? -1 : 1; in compareTo()
80 if (device.deviceName != null) { in compareTo()
81 return device.deviceName.compareToIgnoreCase(other.device.deviceName); in compareTo()
84 return device.deviceAddress.compareToIgnoreCase(other.device.deviceAddress); in compareTo()
[all …]
DWifiP2pSettings.java165 WifiP2pDevice device = savedInstanceState.getParcelable(SAVE_DIALOG_PEER); in onActivityCreated() local
166 mSelectedWifiPeer = new WifiP2pPeer(getActivity(), device); in onActivityCreated()
310 if (mSelectedWifiPeer.device.status == WifiP2pDevice.CONNECTED) { in onPreferenceTreeClick()
312 } else if (mSelectedWifiPeer.device.status == WifiP2pDevice.INVITED) { in onPreferenceTreeClick()
316 config.deviceAddress = mSelectedWifiPeer.device.deviceAddress; in onPreferenceTreeClick()
323 if (mSelectedWifiPeer.device.wpsPbcSupported()) { in onPreferenceTreeClick()
325 } else if (mSelectedWifiPeer.device.wpsKeypadSupported()) { in onPreferenceTreeClick()
352 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog()
353 mSelectedWifiPeer.device.deviceAddress : in onCreateDialog()
354 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java128 public void deviceAdded(MtpDevice device); in deviceAdded() argument
135 public void deviceRemoved(MtpDevice device); in deviceRemoved() argument
145 static public boolean isCamera(UsbDevice device) { in isCamera() argument
146 int count = device.getInterfaceCount(); in isCamera()
148 UsbInterface intf = device.getInterface(i); in isCamera()
296 MtpDevice device = getDevice(deviceName); in getStorageList() local
297 if (device == null) { in getStorageList()
300 int[] storageIds = device.getStorageIds(); in getStorageList()
308 MtpStorageInfo info = device.getStorageInfo(storageIds[i]); in getStorageList()
328 MtpDevice device = getDevice(deviceName); in getObjectInfo() local
[all …]
DMtpDeviceSet.java74 MtpDevice device = (MtpDevice) dataManager.peekMediaObject(childPath); in run() local
75 if (device == null) { in run()
76 device = new MtpDevice(childPath, mApplication, deviceId, mMtpContext); in run()
78 Log.d(TAG, "add device " + device); in run()
79 result.add(device); in run()
88 android.mtp.MtpDevice device = mtpContext.getMtpClient().getDevice(deviceId); in getDeviceName() local
89 if (device == null) { in getDeviceName()
92 MtpDeviceInfo info = device.getDeviceInfo(); in getDeviceName()
131 for (MediaSet device : mDeviceSet) { in reload()
132 device.reload(); in reload()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppHandoverReceiver.java40 BluetoothDevice device = in onReceive() local
42 if (device == null) { in onReceive()
70 BluetoothOppManager.getInstance(context).startTransfer(device); in onReceive()
72 BluetoothDevice device = in onReceive() local
74 if (D) Log.d(TAG, "Adding " + device + " to whitelist"); in onReceive()
75 if (device == null) return; in onReceive()
76 BluetoothOppManager.getInstance(context).addToWhitelist(device.getAddress()); in onReceive()
DBluetoothOppTransfer.java563 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
564 if (V) Log.v(TAG, "ACTION_UUID for device " + device);
565 if (device.equals(mBatch.mDestination)) {
574 if (V) Log.v(TAG, "SDP get OPP result for device " + device);
591 private final BluetoothDevice device; field in BluetoothOppTransfer.SocketConnectThread
608 this.device = null; in SocketConnectThread()
613 public SocketConnectThread(BluetoothDevice device, int channel, boolean in SocketConnectThread() argument
616 this.device = device; in SocketConnectThread()
697 btSocket = device.createInsecureRfcommSocket(channel); in run()
711 BluetoothOppPreference.getInstance(mContext).setChannel(device, OPUSH_UUID16, in run()
[all …]
/packages/experimental/procstatlog/
Dprocstatreport.py514 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]
538 "device": cgi.escape(device),
552 msec = disk_msec[device]
Dprocstatlog.c175 char *line, *device = NULL; in read_proc_yaffs() local
180 device = strchr(line, '"'); in read_proc_yaffs()
181 if (device != NULL) { in read_proc_yaffs()
182 char *end = strchr(++device, '"'); in read_proc_yaffs()
184 device_len = strlen(device); in read_proc_yaffs()
188 if (device == NULL) continue; in read_proc_yaffs()
196 unspace(data->name + 12, device, device_len); in read_proc_yaffs()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java267 public void onLlcpLinkActivated(NfcDepEndpoint device) { in onLlcpLinkActivated() argument
268 sendMessage(NfcService.MSG_LLCP_LINK_ACTIVATION, device); in onLlcpLinkActivated()
275 public void onLlcpLinkDeactivated(NfcDepEndpoint device) { in onLlcpLinkDeactivated() argument
276 sendMessage(NfcService.MSG_LLCP_LINK_DEACTIVATED, device); in onLlcpLinkDeactivated()
1498 NfcDepEndpoint device = (NfcDepEndpoint) o; in maybeDisconnectTarget() local
1499 if (device.getMode() == NfcDepEndpoint.MODE_P2P_TARGET) { in maybeDisconnectTarget()
1501 device.disconnect(); in maybeDisconnectTarget()
1512 Object device = mObjectMap.get(key); in findObject() local
1513 if (device == null) { in findObject()
1516 return device; in findObject()
[all …]

12