Searched refs:device (Results 1 - 25 of 42) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/bluetooth/
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 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 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 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 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 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 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 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 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 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 DDeviceProfilesSettings.java46 * for a particular device, and allows them to be individually connected
57 public static final String EXTRA_DEVICE = "device";
95 BluetoothDevice device;
97 device = savedInstanceState.getParcelable(EXTRA_DEVICE);
100 device = args.getParcelable(EXTRA_DEVICE);
108 if (device == null) {
109 Log.w(TAG, "Activity started without a remote Bluetooth device");
118 mCachedDevice = deviceManager.findDevice(device);
254 BluetoothDevice device = mCachedDevice.getDevice();
256 int status = profile.getConnectionStatus(device);
[all...]
H A DBluetoothPairingRequest.java47 BluetoothDevice device =
53 pairingIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
67 String deviceAddress = device != null ? device.getAddress() : null;
85 name = device != null ? device.getAliasName() :
H A DDockEventReceiver.java53 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
57 + (device == null ? "null" : device.getAliasName()));
62 if (device == null) {
94 if (device == null) {
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...]
/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/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...]
H A DWifiP2pSettings.java126 if (DBG) Log.d(TAG, "Update device info: " + mThisDevice);
165 WifiP2pDevice device = savedInstanceState.getParcelable(SAVE_DIALOG_PEER);
166 mSelectedWifiPeer = new WifiP2pPeer(getActivity(), device);
181 if (DBG) Log.d(TAG, " device rename success");
310 if (mSelectedWifiPeer.device.status == WifiP2pDevice.CONNECTED) {
312 } else if (mSelectedWifiPeer.device.status == WifiP2pDevice.INVITED) {
316 config.deviceAddress = mSelectedWifiPeer.device.deviceAddress;
323 if (mSelectedWifiPeer.device.wpsPbcSupported()) {
325 } else if (mSelectedWifiPeer.device.wpsKeypadSupported()) {
352 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
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...]
H A DMtpDeviceSet.java74 MtpDevice device = (MtpDevice) dataManager.peekMediaObject(childPath);
75 if (device == null) {
76 device = new MtpDevice(childPath, mApplication, deviceId, mMtpContext);
78 Log.d(TAG, "add device " + device);
79 result.add(device);
88 android.mtp.MtpDevice device = mtpContext.getMtpClient().getDevice(deviceId);
89 if (device == null) {
92 MtpDeviceInfo info = device.getDeviceInfo();
131 for (MediaSet device
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppHandoverReceiver.java40 BluetoothDevice device =
42 if (device == null) {
43 if (D) Log.d(TAG, "No device attached to handover intent.");
70 BluetoothOppManager.getInstance(context).startTransfer(device);
72 BluetoothDevice device =
74 if (D) Log.d(TAG, "Adding " + device + " to whitelist");
75 if (device == null) return;
76 BluetoothOppManager.getInstance(context).addToWhitelist(device.getAddress());
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/
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
/packages/experimental/procstatlog/
H A Dprocstatreport.py116 <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...]
/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);

Completed in 513 milliseconds

12