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

123

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DMtpBitmapFetch.java39 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 DWifiP2pPeer.java32 public WifiP2pDevice device; field in class:WifiP2pPeer
41 device = dev;
48 if (TextUtils.isEmpty(device.deviceName)) {
49 setTitle(device.deviceAddress);
51 setTitle(device.deviceName);
72 if (device.status != other.device.status) {
73 return device.status < other.device.status ? -1 : 1;
77 if (device
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
H A DImportTask.java48 public ImportTask(MtpDevice device, Collection<MtpObjectInfo> objectsToImport, argument
52 mDevice = device;
H A DIngestService.java109 private void setDevice(MtpDevice device) { argument
110 if (mDevice == device) return;
115 mDevice = device;
194 public void deviceAdded(MtpDevice device) { argument
196 setDevice(device);
203 public void deviceRemoved(MtpDevice device) { argument
204 if (device == mDevice) {
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
H A DMtpThumbnailTileView.java65 protected Object fetchMtpImageDataFromDevice(MtpDevice device, MtpObjectInfo info) { argument
66 return MtpBitmapFetch.getThumbnail(device, info);
H A DMtpImageView.java81 public void setMtpDeviceAndObjectInfo(MtpDevice device, MtpObjectInfo object, int gen) { argument
97 mFetchDevice = device;
105 protected Object fetchMtpImageDataFromDevice(MtpDevice device, MtpObjectInfo info) { argument
108 return MtpBitmapFetch.getFullsize(device, info);
110 return new BitmapWithMetadata(MtpBitmapFetch.getThumbnail(device, info), 0);
246 MtpDevice device;
249 device = parent.mFetchDevice;
252 if (device == null) return;
253 Object result = parent.fetchMtpImageDataFromDevice(device, objectInfo);
/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.java52 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 DDevicePickerFragment.java94 BluetoothDevice device = cachedDevice.getDevice();
95 if (device.equals(mSelectedDevice)) {
96 sendDevicePickedIntent(device);
111 private void sendDevicePickedIntent(BluetoothDevice device) { argument
113 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 DPanProfile.java42 // 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 DPbapServerProfile.java44 // 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 DA2dpProfile.java52 // 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 DUtils.java53 public static byte[] getByteAddress(BluetoothDevice device) { argument
54 return getBytesFromAddress(device.getAddress());
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java114 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
192 isA2dpPlaying(BluetoothDevice device) argument
225 connect(BluetoothDevice device) argument
231 disconnect(BluetoothDevice device) argument
249 getConnectionState(BluetoothDevice device) argument
255 setPriority(BluetoothDevice device, int priority) argument
261 getPriority(BluetoothDevice device) argument
285 isA2dpPlaying(BluetoothDevice device) argument
[all...]
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothOppHandover.java62 public BluetoothOppHandover(Context context, BluetoothDevice device, Uri[] uris, argument
65 mDevice = device;
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DBondStateMachine.java41 * {@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 DProfileService.java111 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 DRemoteDevices.java73 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 DHeadsetService.java143 public boolean connect(BluetoothDevice device) { argument
146 return service.connect(device);
149 public boolean disconnect(BluetoothDevice device) { argument
152 return service.disconnect(device);
167 public int getConnectionState(BluetoothDevice device) { argument
170 return service.getConnectionState(device);
173 public boolean setPriority(BluetoothDevice device, int priority) { argument
176 return service.setPriority(device, priority);
179 public int getPriority(BluetoothDevice device) { argument
182 return service.getPriority(device);
185 startVoiceRecognition(BluetoothDevice device) argument
191 stopVoiceRecognition(BluetoothDevice device) argument
203 isAudioConnected(BluetoothDevice device) argument
209 getBatteryUsageHint(BluetoothDevice device) argument
215 acceptIncomingConnect(BluetoothDevice device) argument
221 rejectIncomingConnect(BluetoothDevice device) argument
227 getAudioState(BluetoothDevice device) argument
245 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
251 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
271 sendVendorSpecificResultCode(BluetoothDevice device, String command, String arg) argument
317 connect(BluetoothDevice device) argument
335 disconnect(BluetoothDevice device) argument
358 getConnectionState(BluetoothDevice device) argument
363 setPriority(BluetoothDevice device, int priority) argument
373 getPriority(BluetoothDevice device) argument
382 startVoiceRecognition(BluetoothDevice device) argument
393 stopVoiceRecognition(BluetoothDevice device) argument
413 isAudioConnected(BluetoothDevice device) argument
418 getBatteryUsageHint(BluetoothDevice device) argument
423 acceptIncomingConnect(BluetoothDevice device) argument
428 rejectIncomingConnect(BluetoothDevice device) argument
433 getAudioState(BluetoothDevice device) argument
460 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
470 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
496 sendVendorSpecificResultCode(BluetoothDevice device, String command, String arg) argument
[all...]
/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
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 DCameraHolder.java69 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/Camera2/src/com/android/camera/
H A DCameraHolder.java69 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 DMtpClient.java44 * 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...]

Completed in 519 milliseconds

123