/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | MtpBitmapFetch.java | 39 public static Bitmap getThumbnail(MtpDevice device, MtpObjectInfo info) { argument 40 byte[] imageBytes = device.getThumbnail(info.getObjectHandle()); 65 public static BitmapWithMetadata getFullsize(MtpDevice device, MtpObjectInfo info) { argument 66 return getFullsize(device, info, sMaxSize); 69 public static BitmapWithMetadata getFullsize(MtpDevice device, MtpObjectInfo info, int maxSide) { argument 70 byte[] imageBytes = device.getObject(info.getObjectHandle(), info.getCompressedSize());
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
H A D | ImportTask.java | 48 public ImportTask(MtpDevice device, Collection<MtpObjectInfo> objectsToImport, argument 52 mDevice = device;
|
H A D | IngestService.java | 109 private void setDevice(MtpDevice device) { argument 110 if (mDevice == device) return; 115 mDevice = device; 191 public void deviceAdded(MtpDevice device) { argument 193 setDevice(device); 200 public void deviceRemoved(MtpDevice device) { argument 201 if (device == mDevice) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
H A D | MtpThumbnailTileView.java | 65 protected Object fetchMtpImageDataFromDevice(MtpDevice device, MtpObjectInfo info) { argument 66 return MtpBitmapFetch.getThumbnail(device, info);
|
H A D | MtpImageView.java | 72 public void setMtpDeviceAndObjectInfo(MtpDevice device, MtpObjectInfo object, int gen) { argument 83 mFetchDevice = device; 91 protected Object fetchMtpImageDataFromDevice(MtpDevice device, MtpObjectInfo info) { argument 92 return MtpBitmapFetch.getFullsize(device, info); 193 MtpDevice device; 196 device = parent.mFetchDevice; 199 if (device == null) return; 200 Object result = parent.fetchMtpImageDataFromDevice(device, objectInfo);
|
/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 | 52 public void onDeviceNameUpdated(BluetoothDevice device) { argument 53 CachedBluetoothDevice cachedDevice = findDevice(device); 61 * if this device isn't in the cache. Use {@link #addDevice} 65 * @param device the address of the Bluetooth device 66 * @return the cached device object for this device, or null if it has 69 CachedBluetoothDevice findDevice(BluetoothDevice device) { argument 71 if (cachedDevice.getDevice().equals(device)) { 81 * @param device th 84 addDevice(LocalBluetoothAdapter adapter, LocalBluetoothProfileManager profileManager, BluetoothDevice device) argument 99 getName(BluetoothDevice device) argument 124 onBtClassChanged(BluetoothDevice device) argument 131 onUuidChanged(BluetoothDevice device) argument [all...] |
H A D | DevicePickerFragment.java | 90 BluetoothDevice device = cachedDevice.getDevice(); 91 if (device.equals(mSelectedDevice)) { 92 sendDevicePickedIntent(device); 107 private void sendDevicePickedIntent(BluetoothDevice device) { argument 109 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 | PanProfile.java | 42 // Tethering direction for each device 48 // Order of this profile in device profiles list 85 public boolean connect(BluetoothDevice device) { argument 93 return mService.connect(device); 96 public boolean disconnect(BluetoothDevice device) { argument 98 return mService.disconnect(device); 101 public int getConnectionStatus(BluetoothDevice device) { argument 105 return mService.getConnectionState(device); 108 public boolean isPreferred(BluetoothDevice device) { argument 110 return getConnectionStatus(device) 113 getPreferred(BluetoothDevice device) argument 117 setPreferred(BluetoothDevice device, boolean preferred) argument 129 getNameResource(BluetoothDevice device) argument 137 getSummaryResourceForDevice(BluetoothDevice device) argument 160 setLocalRole(BluetoothDevice device, int role) argument 164 isLocalRoleNap(BluetoothDevice device) argument [all...] |
H A D | PbapServerProfile.java | 44 // Order of this profile in device profiles list 79 public boolean connect(BluetoothDevice device) { argument 85 public boolean disconnect(BluetoothDevice device) { argument 90 public int getConnectionStatus(BluetoothDevice device) { argument 94 if (mService.isConnected(device)) 100 public boolean isPreferred(BluetoothDevice device) { argument 104 public int getPreferred(BluetoothDevice device) { argument 108 public void setPreferred(BluetoothDevice device, boolean preferred) { argument 120 public int getNameResource(BluetoothDevice device) { argument 124 public int getSummaryResourceForDevice(BluetoothDevice device) { argument [all...] |
H A D | A2dpProfile.java | 52 // Order of this profile in device profiles list 66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); 67 // we may add a new device here, but generally this should not happen 68 if (device == null) { 69 Log.w(TAG, "A2dpProfile found new device: " + nextDevice); 70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); 73 device.refresh(); 114 public boolean connect(BluetoothDevice device) { argument 122 return mService.connect(device); 125 disconnect(BluetoothDevice device) argument 134 getConnectionStatus(BluetoothDevice device) argument 141 isPreferred(BluetoothDevice device) argument 146 getPreferred(BluetoothDevice device) argument 151 setPreferred(BluetoothDevice device, boolean preferred) argument 180 getNameResource(BluetoothDevice device) argument 184 getSummaryResourceForDevice(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
H A D | Utils.java | 53 public static byte[] getByteAddress(BluetoothDevice device) { argument 54 return getBytesFromAddress(device.getAddress());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpService.java | 114 public boolean connect(BluetoothDevice device) { argument 118 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 122 int connectionState = mStateMachine.getConnectionState(device); 128 mStateMachine.sendMessage(A2dpStateMachine.CONNECT, device); 132 boolean disconnect(BluetoothDevice device) { argument 135 int connectionState = mStateMachine.getConnectionState(device); 141 mStateMachine.sendMessage(A2dpStateMachine.DISCONNECT, device); 155 int getConnectionState(BluetoothDevice device) { argument 157 return mStateMachine.getConnectionState(device); 160 public boolean setPriority(BluetoothDevice device, in argument 170 getPriority(BluetoothDevice device) argument 179 isA2dpPlaying(BluetoothDevice device) argument 212 connect(BluetoothDevice device) argument 218 disconnect(BluetoothDevice device) argument 236 getConnectionState(BluetoothDevice device) argument 242 setPriority(BluetoothDevice device, int priority) argument 248 getPriority(BluetoothDevice device) argument 254 isA2dpPlaying(BluetoothDevice device) argument [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | BluetoothOppHandover.java | 62 public BluetoothOppHandover(Context context, BluetoothDevice device, Uri[] uris, argument 65 mDevice = device;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | BondStateMachine.java | 41 * {@link StableState} : No device is in bonding / unbonding state. 42 * {@link PendingCommandState} : Some device is in bonding / unbonding state. 182 // the device to the list again. This prevents us 183 // from pairing with a device that we just unpaired 253 private void sendIntent(BluetoothDevice device, int newState, int reason) { argument 254 DeviceProperties devProp = mRemoteDevices.getDeviceProperties(device); 260 mAdapterProperties.onBondStateChanged(device, newState); 263 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 270 infoLog("Bond State Change Intent:" + device + " OldState: " + oldState 275 BluetoothDevice device 301 setProfilePriorty(BluetoothDevice device) argument 322 clearProfilePriorty(BluetoothDevice device) argument [all...] |
H A D | ProfileService.java | 111 Log.w(mName, "Stopping profile service: device does not have BT"); 201 public void notifyProfileConnectionStateChanged(BluetoothDevice device, argument 205 svc.onProfileConnectionStateChanged(device, profileId, newState, prevState);
|
H A D | RemoteDevices.java | 73 DeviceProperties getDeviceProperties(BluetoothDevice device) { argument 75 return mDevices.get(device); 91 BluetoothDevice device = 94 mDevices.put(device, prop); 194 /* Clearing the Uuids local copy when the device is unpaired. If not cleared, 214 private void sendUuidIntent(BluetoothDevice device) { argument 215 DeviceProperties prop = getDeviceProperties(device); 217 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 222 mSdpTracker.remove(device); 239 DeviceProperties device; 423 fetchUuids(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
H A D | HeadsetService.java | 139 public boolean connect(BluetoothDevice device) { argument 142 return service.connect(device); 145 public boolean disconnect(BluetoothDevice device) { argument 148 return service.disconnect(device); 163 public int getConnectionState(BluetoothDevice device) { argument 166 return service.getConnectionState(device); 169 public boolean setPriority(BluetoothDevice device, int priority) { argument 172 return service.setPriority(device, priority); 175 public int getPriority(BluetoothDevice device) { argument 178 return service.getPriority(device); 181 startVoiceRecognition(BluetoothDevice device) argument 187 stopVoiceRecognition(BluetoothDevice device) argument 199 isAudioConnected(BluetoothDevice device) argument 205 getBatteryUsageHint(BluetoothDevice device) argument 211 acceptIncomingConnect(BluetoothDevice device) argument 217 rejectIncomingConnect(BluetoothDevice device) argument 223 getAudioState(BluetoothDevice device) argument 241 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument 247 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument 309 connect(BluetoothDevice device) argument 327 disconnect(BluetoothDevice device) argument 350 getConnectionState(BluetoothDevice device) argument 355 setPriority(BluetoothDevice device, int priority) argument 365 getPriority(BluetoothDevice device) argument 374 startVoiceRecognition(BluetoothDevice device) argument 385 stopVoiceRecognition(BluetoothDevice device) argument 405 isAudioConnected(BluetoothDevice device) argument 410 getBatteryUsageHint(BluetoothDevice device) argument 415 acceptIncomingConnect(BluetoothDevice device) argument 420 rejectIncomingConnect(BluetoothDevice device) argument 425 getAudioState(BluetoothDevice device) argument 452 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument 462 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppTransfer.java | 65 * This class run an actual Opp transfer session (from connect target device to 348 * 3) new a thread to connect to target device 349 * 3.1) Try a few times to do SDP query for target device OPUSH channel 503 private final BluetoothDevice device; field in class:BluetoothOppTransfer.SocketConnectThread 520 this.device = null; 525 public SocketConnectThread(BluetoothDevice device, int channel, boolean argument 528 this.device = device; 536 public SocketConnectThread(BluetoothDevice device, boolean argument 539 this.device [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | CameraHolder.java | 69 String device; field in class:CameraHolder.OpenReleaseState 77 private static synchronized void collectState(int id, CameraProxy device) { argument 81 if (device == null) { 82 s.device = "(null)"; 84 s.device = device.toString(); 105 Log.d(TAG, "mCameraId = " + s.id + ", mCameraDevice = " + s.device); 113 // We store the camera parameters when we actually open the device,
|
/packages/apps/Gallery2/src/com/android/camera/ |
H A D | CameraHolder.java | 69 String device; field in class:CameraHolder.OpenReleaseState 77 private static synchronized void collectState(int id, CameraProxy device) { argument 81 if (device == null) { 82 s.device = "(null)"; 84 s.device = device.toString(); 105 Log.d(TAG, "mCameraId = " + s.id + ", mCameraDevice = " + s.device); 113 // We store the camera parameters when we actually open the device,
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | MtpClient.java | 44 * and notifies the application when the MTP device list changes. 58 // so we can inform when the device has been detached. 66 // unable to open the device. 128 * Called when a new device has been added 130 * @param device the new device that was added 132 public void deviceAdded(MtpDevice device); argument 135 * Called when a new device has been removed 137 * @param device the device tha 139 deviceRemoved(MtpDevice device) argument 149 isCamera(UsbDevice device) argument [all...] |