Searched defs:device (Results 1 - 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/p2p/
H A DWifiP2pPeer.java35 public WifiP2pDevice device; field in class:WifiP2pPeer
44 device = dev;
51 if (TextUtils.isEmpty(device.deviceName)) {
52 setTitle(device.deviceAddress);
54 setTitle(device.deviceName);
75 if (device.status != other.device.status) {
76 return device.status < other.device.status ? -1 : 1;
80 if (device
[all...]
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDeviceFilter.java36 boolean matches(BluetoothDevice device); argument
72 Log.w(TAG, "Invalid filter type " + filterType + " for device picker");
79 public boolean matches(BluetoothDevice device) { argument
86 public boolean matches(BluetoothDevice device) { argument
87 return device.getBondState() == BluetoothDevice.BOND_BONDED;
93 public boolean matches(BluetoothDevice device) { argument
94 return device.getBondState() != BluetoothDevice.BOND_BONDED;
102 public boolean matches(BluetoothDevice device) { argument
103 return matches(device.getUuids(), device
[all...]
H A DCachedBluetoothDeviceManager.java51 public void onDeviceNameUpdated(BluetoothDevice device) { argument
52 CachedBluetoothDevice cachedDevice = findDevice(device);
60 * if this device isn't in the cache. Use {@link #addDevice}
64 * @param device the address of the Bluetooth device
65 * @return the cached device object for this device, or null if it has
68 CachedBluetoothDevice findDevice(BluetoothDevice device) { argument
70 if (cachedDevice.getDevice().equals(device)) {
80 * @param device th
83 addDevice(LocalBluetoothAdapter adapter, LocalBluetoothProfileManager profileManager, BluetoothDevice device) argument
98 getName(BluetoothDevice device) argument
123 onBtClassChanged(BluetoothDevice device) argument
130 onUuidChanged(BluetoothDevice device) argument
[all...]
H A DDevicePickerFragment.java84 BluetoothDevice device = cachedDevice.getDevice();
85 if (device.equals(mSelectedDevice)) {
86 sendDevicePickedIntent(device);
101 private void sendDevicePickedIntent(BluetoothDevice device) { argument
103 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
H A DLocalBluetoothProfile.java38 boolean connect(BluetoothDevice device); argument
40 boolean disconnect(BluetoothDevice device); argument
42 int getConnectionStatus(BluetoothDevice device); argument
44 boolean isPreferred(BluetoothDevice device); argument
46 int getPreferred(BluetoothDevice device); argument
48 void setPreferred(BluetoothDevice device, boolean preferred); argument
52 /** Display order for device profile settings. */
57 * @param device the Bluetooth device (to distinguish between PAN roles)
59 int getNameResource(BluetoothDevice device); argument
68 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DOppProfile.java32 // Order of this profile in device profiles list
43 public boolean connect(BluetoothDevice device) { argument
47 public boolean disconnect(BluetoothDevice device) { argument
51 public int getConnectionStatus(BluetoothDevice device) { argument
55 public boolean isPreferred(BluetoothDevice device) { argument
59 public int getPreferred(BluetoothDevice device) { argument
63 public void setPreferred(BluetoothDevice device, boolean preferred) { argument
78 public int getNameResource(BluetoothDevice device) { argument
82 public int getSummaryResourceForDevice(BluetoothDevice device) { argument
H A DA2dpProfile.java46 // Order of this profile in device profiles list
83 public boolean connect(BluetoothDevice device) { argument
90 return mService.connect(device);
93 public boolean disconnect(BluetoothDevice device) { argument
94 return mService.disconnect(device);
97 public int getConnectionStatus(BluetoothDevice device) { argument
98 return mService.getConnectionState(device);
101 public boolean isPreferred(BluetoothDevice device) { argument
102 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
105 public int getPreferred(BluetoothDevice device) { argument
109 setPreferred(BluetoothDevice device, boolean preferred) argument
141 getNameResource(BluetoothDevice device) argument
145 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DHeadsetProfile.java52 // Order of this profile in device profiles list
63 // headset device.
69 CachedBluetoothDevice device = mDeviceManager.findDevice(firstDevice);
70 // we may add a new device here, but generally this should not happen
71 if (device == null) {
72 Log.w(TAG, "HeadsetProfile found new device: " + firstDevice);
73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, firstDevice);
75 device.onProfileStateChanged(HeadsetProfile.this,
110 public boolean connect(BluetoothDevice device) { argument
117 return mService.connect(device);
120 disconnect(BluetoothDevice device) argument
133 getConnectionStatus(BluetoothDevice device) argument
143 isPreferred(BluetoothDevice device) argument
147 getPreferred(BluetoothDevice device) argument
151 setPreferred(BluetoothDevice device, boolean preferred) argument
173 getNameResource(BluetoothDevice device) argument
177 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DHidProfile.java38 // Order of this profile in device profiles list
69 public boolean connect(BluetoothDevice device) { argument
70 return mService.connect(device);
73 public boolean disconnect(BluetoothDevice device) { argument
74 return mService.disconnect(device);
77 public int getConnectionStatus(BluetoothDevice device) { argument
80 return !deviceList.isEmpty() && deviceList.get(0).equals(device)
81 ? mService.getConnectionState(device)
85 public boolean isPreferred(BluetoothDevice device) { argument
86 return mService.getPriority(device) > BluetoothProfil
89 getPreferred(BluetoothDevice device) argument
93 setPreferred(BluetoothDevice device, boolean preferred) argument
115 getNameResource(BluetoothDevice device) argument
120 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DPanProfile.java37 // Tethering direction for each device
43 // Order of this profile in device profiles list
73 public boolean connect(BluetoothDevice device) { argument
80 return mService.connect(device);
83 public boolean disconnect(BluetoothDevice device) { argument
84 return mService.disconnect(device);
87 public int getConnectionStatus(BluetoothDevice device) { argument
88 return mService.getConnectionState(device);
91 public boolean isPreferred(BluetoothDevice device) { argument
95 public int getPreferred(BluetoothDevice device) { argument
99 setPreferred(BluetoothDevice device, boolean preferred) argument
115 getNameResource(BluetoothDevice device) argument
123 getSummaryResourceForDevice(BluetoothDevice device) argument
146 setLocalRole(BluetoothDevice device, int role) argument
150 isLocalRoleNap(BluetoothDevice device) argument
[all...]
H A DBluetoothEventManager.java55 void onReceive(Context context, Intent intent, BluetoothDevice device); argument
130 BluetoothDevice device = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
131 if (device != null) {
132 return device.getAddress();
143 BluetoothDevice device = intent
148 handler.onReceive(context, intent, device);
155 BluetoothDevice device) {
176 BluetoothDevice device) {
189 BluetoothDevice device) {
195 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
154 onReceive(Context context, Intent intent, BluetoothDevice device) argument
175 onReceive(Context context, Intent intent, BluetoothDevice device) argument
188 onReceive(Context context, Intent intent, BluetoothDevice device) argument
219 onReceive(Context context, Intent intent, BluetoothDevice device) argument
237 onReceive(Context context, Intent intent, BluetoothDevice device) argument
244 onReceive(Context context, Intent intent, BluetoothDevice device) argument
328 onReceive(Context context, Intent intent, BluetoothDevice device) argument
335 onReceive(Context context, Intent intent, BluetoothDevice device) argument
342 onReceive(Context context, Intent intent, BluetoothDevice device) argument
354 onReceive(Context context, Intent intent, BluetoothDevice device) argument
[all...]
H A DLocalBluetoothProfileManager.java208 public void onReceive(Context context, Intent intent, BluetoothDevice device) { argument
209 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
211 Log.w(TAG, "StateChangedHandler found new device: " + device);
213 LocalBluetoothProfileManager.this, device);
219 Log.i(TAG, "Failed to connect " + mProfile + " device");
235 public void onReceive(Context context, Intent intent, BluetoothDevice device) { argument
238 panProfile.setLocalRole(device, role);
239 super.onReceive(context, intent, device);
292 * the local device an
[all...]
H A DDockService.java56 // Time allowed for the device to be undocked and redocked without severing
60 // Time allowed for the device to be undocked and redocked without turning
67 // Msg for device docked event
70 // Msg for device undocked event
258 BluetoothDevice device = null;
260 device = (BluetoothDevice) msg.obj;
263 if(DEBUG) Log.d(TAG, "processMessage: " + msgType + " state: " + state + " device = "
264 + (device == null ? "null" : device.toString()));
270 createDialog(device, stat
317 msgTypeUndockedTemporary(BluetoothDevice device, int state, int startId) argument
325 msgTypeUndockedPermanent(BluetoothDevice device, int startId) argument
355 msgTypeDocked(BluetoothDevice device, final int state, final int startId) argument
457 createDialog(BluetoothDevice device, int state, int startId) argument
579 initBtSettings(BluetoothDevice device, int state, boolean firstTime) argument
744 connectIfEnabled(BluetoothDevice device) argument
756 applyBtSettings(BluetoothDevice device, int startId) argument
824 handleDocked(BluetoothDevice device, int state, int startId) argument
835 handleUndocked(BluetoothDevice device) argument
848 getCachedBluetoothDevice(BluetoothDevice device) argument
[all...]
H A DCachedBluetoothDevice.java36 * CachedBluetoothDevice represents a remote Bluetooth device. It contains
37 * attributes of the device (such as the address, name, RSSI, etc.) and
38 * functionality that can be performed on the device (connect, pair, disconnect,
61 // Device supports PANU but not NAP: remove PanProfile after device disconnects from NAP
101 * Describes the current device and profile for logging.
104 * @return Description of the device and profile
136 Log.d(TAG, "Removing PanProfile from device after NAP disconnect");
146 BluetoothDevice device) {
150 mDevice = device;
230 * Connect this device t
143 CachedBluetoothDevice(Context context, LocalBluetoothAdapter adapter, LocalBluetoothProfileManager profileManager, BluetoothDevice device) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMtpContext.java81 public void deviceAdded(android.mtp.MtpDevice device) { argument
86 public void deviceRemoved(android.mtp.MtpDevice device) { argument
H A DMtpClient.java41 * and notifies the application when the MTP device list changes.
54 // so we can inform when the device has been detached.
62 // unable to open the device.
124 * Called when a new device has been added
126 * @param device the new device that was added
128 public void deviceAdded(MtpDevice device); argument
131 * Called when a new device has been removed
133 * @param device the device tha
135 deviceRemoved(MtpDevice device) argument
145 isCamera(UsbDevice device) argument
[all...]
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothOppHandover.java55 public BluetoothOppHandover(Context context, BluetoothDevice device, Uri[] uris, argument
58 mDevice = device;
H A DBluetoothHeadsetHandover.java39 * Connects / Disconnects from a Bluetooth headset (or any device that
93 public BluetoothHeadsetHandover(Context context, BluetoothDevice device, String name, argument
98 mDevice = device;
271 // Everything else requires the device to match...
272 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
273 if (!mDevice.equals(device)) return;
H A DHandoverManager.java153 public BluetoothDevice device; field in class:HandoverManager.BluetoothHandoverData
267 final BluetoothDevice device; field in class:HandoverManager.HandoverTransfer
302 this.device = mBluetoothAdapter.getRemoteDevice(sourceAddress);
314 // We're still receiving data from this device - keep it in
316 if (incoming) whitelistOppDevice(device);
760 bluetoothData.device.getAddress(), true, true);
765 whitelistOppDevice(bluetoothData.device);
771 void whitelistOppDevice(BluetoothDevice device) { argument
772 if (DBG) Log.d(TAG, "Whitelisting " + device + " for BT OPP");
774 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
[all...]
/packages/experimental/procstatlog/
H A Dprocstatlog.c50 // /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/opp/
H A DBluetoothOppManager.java113 // A list of devices that may send files over OPP to this device
301 * Get device name per bluetooth address.
303 public String getDeviceName(BluetoothDevice device) { argument
306 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device);
309 deviceName = device.getName();
328 public void startTransfer(BluetoothDevice device) { argument
344 insertThread = new InsertShareInfoThread(device, mMultipleFlag, mMimeTypeOfSendingFile,
360 * share to one device (say device 1), and then right away share to second
361 * device (devic
378 InsertShareInfoThread(BluetoothDevice device, boolean multiple, String typeOfSingleFile, String uri, String typeOfMultipleFiles, ArrayList<Uri> uris, boolean handoverInitiated) argument
[all...]
H A DBluetoothOppTransfer.java65 * This class run an actual Opp transfer session (from connect target device to
368 * 3) new a thread to connect to target device
369 * 3.1) Try a few times to do SDP query for target device OPUSH channel
563 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 class:BluetoothOppTransfer.SocketConnectThread
613 SocketConnectThread(BluetoothDevice device, int channel, boolean retry) argument
[all...]
/packages/apps/Nfc/src/com/android/nfc/nxp/
H A DNativeNfcManager.java343 private void notifyLlcpLinkActivation(NativeP2pDevice device) { argument
344 mListener.onLlcpLinkActivated(device);
350 private void notifyLlcpLinkDeactivated(NativeP2pDevice device) { argument
351 mListener.onLlcpLinkDeactivated(device);
/packages/apps/Phone/src/com/android/phone/
H A DBluetoothHeadsetService.java124 for (BluetoothDevice device : mRemoteHeadsets.keySet()) {
125 int state = mRemoteHeadsets.get(device).mState;
128 return device;
137 Log.w(TAG, "Stopping BluetoothHeadsetService: device does not have BT");
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
341 private BluetoothDevice device; field in class:BluetoothHeadsetService.RfcommConnectThread
348 RfcommConnectThread(BluetoothDevice device, int channel, int type) argument
470 setState(BluetoothDevice device, int state) argument
514 setPriority(BluetoothDevice device, int priority) argument
522 getPriority(BluetoothDevice device) argument
531 getSdpRecordsAndConnect(BluetoothDevice device) argument
[all...]
/packages/apps/Nfc/src/com/android/nfc/
H A DDeviceHost.java41 public void onLlcpLinkActivated(NfcDepEndpoint device); argument
46 public void onLlcpLinkDeactivated(NfcDepEndpoint device); argument
164 * Called at boot if NFC is disabled to give the device host an opportunity

Completed in 429 milliseconds

12