Searched refs:device (Results 1 - 25 of 39) 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();
145 BluetoothDevice device = intent
150 handler.onReceive(context, intent, device);
157 BluetoothDevice device) {
178 BluetoothDevice device) {
191 BluetoothDevice device) {
197 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
156 onReceive(Context context, Intent intent, BluetoothDevice device) argument
177 onReceive(Context context, Intent intent, BluetoothDevice device) argument
190 onReceive(Context context, Intent intent, BluetoothDevice device) argument
221 onReceive(Context context, Intent intent, BluetoothDevice device) argument
239 onReceive(Context context, Intent intent, BluetoothDevice device) argument
246 onReceive(Context context, Intent intent, BluetoothDevice device) argument
330 onReceive(Context context, Intent intent, BluetoothDevice device) argument
337 onReceive(Context context, Intent intent, BluetoothDevice device) argument
344 onReceive(Context context, Intent intent, BluetoothDevice device) argument
356 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...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMtpClient.java44 * and notifies the application when the MTP device list changes.
57 // so we can inform when the device has been detached.
65 // unable to open the device.
127 * Called when a new device has been added
129 * @param device the new device that was added
131 public void deviceAdded(MtpDevice device); argument
134 * Called when a new device has been removed
136 * @param device the device tha
138 deviceRemoved(MtpDevice device) argument
148 isCamera(UsbDevice device) argument
[all...]
H A DMtpDeviceSet.java58 MtpDevice device = (MtpDevice) dataManager.peekMediaObject(childPath);
59 if (device == null) {
60 device = new MtpDevice(childPath, mApplication, deviceId, mMtpContext);
62 Log.d(TAG, "add device " + device);
63 mDeviceSet.add(device);
73 android.mtp.MtpDevice device = mtpContext.getMtpClient().getDevice(deviceId);
74 if (device == null) {
77 MtpDeviceInfo info = device.getDeviceInfo();
/packages/apps/Nfc/src/com/android/nfc/
H A DDeviceHost.java41 public void onLlcpLinkActivated(NfcDepEndpoint device); argument
46 public void onLlcpLinkDeactivated(NfcDepEndpoint device); argument
152 * Called at boot if NFC is disabled to give the device host an opportunity
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
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
560 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
561 if (V) Log.v(TAG, "ACTION_UUID for device " + device);
562 if (device.equals(mBatch.mDestination)) {
571 if (V) Log.v(TAG, "SDP get OPP result for device " + device);
588 private final BluetoothDevice device; field in class:BluetoothOppTransfer.SocketConnectThread
610 SocketConnectThread(BluetoothDevice device, int channel, boolean retry) argument
[all...]
H A DBluetoothOppManager.java253 * Get device name per bluetooth address.
255 public String getDeviceName(BluetoothDevice device) { argument
258 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device);
261 deviceName = device.getName();
280 public void startTransfer(BluetoothDevice device) { argument
296 insertThread = new InsertShareInfoThread(device, mMultipleFlag, mMimeTypeOfSendingFile,
311 * share to one device (say device 1), and then right away share to second
312 * device (device
327 InsertShareInfoThread(BluetoothDevice device, boolean multiple, String typeOfSingleFile, String uri, String typeOfMultipleFiles, ArrayList<Uri> uris) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DSuddenJumpingTouchEventHandler.java58 for (String device : deviceList) {
59 if (device.equalsIgnoreCase(deviceName)) {
/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.java277 private void notifyLlcpLinkActivation(NativeP2pDevice device) { argument
278 mListener.onLlcpLinkActivated(device);
284 private void notifyLlcpLinkDeactivated(NativeP2pDevice device) { argument
285 mListener.onLlcpLinkDeactivated(device);

Completed in 345 milliseconds

12