/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
H A D | WifiP2pPeer.java | 35 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 D | WifiP2pDialog.java | 57 WifiP2pDevice device) { 60 mDevice = device; 56 WifiP2pDialog(Context context, DialogInterface.OnClickListener listener, WifiP2pDevice device) argument
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | BluetoothDeviceFilter.java | 36 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 D | CachedBluetoothDeviceManager.java | 51 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 D | DevicePickerFragment.java | 84 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 D | LocalBluetoothProfile.java | 38 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 D | OppProfile.java | 32 // 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 D | A2dpProfile.java | 46 // 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 D | HeadsetProfile.java | 52 // 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 D | HidProfile.java | 38 // 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 D | PanProfile.java | 37 // 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 D | BluetoothEventManager.java | 55 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 D | LocalBluetoothProfileManager.java | 208 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 D | DockService.java | 56 // 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 D | CachedBluetoothDevice.java | 36 * 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 D | MtpContext.java | 83 public void deviceAdded(android.mtp.MtpDevice device) { argument 88 public void deviceRemoved(android.mtp.MtpDevice device) { argument
|
H A D | MtpClient.java | 44 * 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...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppManager.java | 253 * 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...] |
H A D | BluetoothOppTransfer.java | 65 * 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...] |
/packages/experimental/procstatlog/ |
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/Nfc/src/com/android/nfc/nxp/ |
H A D | NativeNfcManager.java | 277 private void notifyLlcpLinkActivation(NativeP2pDevice device) { argument 278 mListener.onLlcpLinkActivated(device); 284 private void notifyLlcpLinkDeactivated(NativeP2pDevice device) { argument 285 mListener.onLlcpLinkDeactivated(device);
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | BluetoothHeadsetService.java | 124 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...] |
H A D | BluetoothHandsfree.java | 147 // This flag is just used as a toggle to provide a update to the BT device to specify 346 public ScoSocketConnectThread(BluetoothDevice device) { argument 348 mOutgoingSco = device.createScoSocket(); 483 BluetoothDevice device = mHeadset.getRemoteDevice(); 484 if (getAudioState(device) == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { 485 setAudioState(BluetoothHeadset.STATE_AUDIO_CONNECTING, device); 512 BluetoothDevice device = null; 514 device = mHeadset.getRemoteDevice(); 517 setAudioState(BluetoothHeadset.STATE_AUDIO_DISCONNECTED, device); 897 BluetoothDevice device 1454 setAudioState(int state, BluetoothDevice device) argument 1465 getAudioState(BluetoothDevice device) argument 1497 broadcastVendorSpecificEventIntent(String command, int companyId, int commandType, Object[] arguments, BluetoothDevice device) argument [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | DeviceHost.java | 41 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
|
H A D | NfcService.java | 265 public void onLlcpLinkActivated(NfcDepEndpoint device) { argument 266 sendMessage(NfcService.MSG_LLCP_LINK_ACTIVATION, device); 273 public void onLlcpLinkDeactivated(NfcDepEndpoint device) { argument 274 sendMessage(NfcService.MSG_LLCP_LINK_DEACTIVATED, device); 792 /* Remove the device from the hmap */ 1449 NfcDepEndpoint device = (NfcDepEndpoint) o; 1450 if (device.getMode() == NfcDepEndpoint.MODE_P2P_TARGET) { 1452 device.disconnect(); 1463 Object device = mObjectMap.get(key); 1464 if (device 1677 llcpActivated(NfcDepEndpoint device) argument [all...] |