Searched refs:device (Results 1 - 25 of 96) sorted by path

1234

/frameworks/base/
H A DAndroid.mk506 -samplecode $(sample_dir)/training/device-management-policy \
507 resources/samples/training/device-management-policy "Device Management Policy"
/frameworks/base/core/java/android/app/backup/
H A DRestoreSet.java36 * Identifier of the device whose data this is. This will be as unique as
39 public String device; field in class:RestoreSet
55 device = _dev;
67 out.writeString(device);
84 device = in.readString();
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothA2dp.java41 * <p> Android only supports one connected Bluetooth A2dp device at a time.
56 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
78 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
92 * A2DP sink device is streaming music. This state can be one of
99 * A2DP sink device is NOT streaming music. This state can be one of
137 * Initiate connection to a profile of the remote bluetooth device.
144 * device is already connected or Bluetooth is not turned on.
153 * @param device Remote Bluetooth Device
158 public boolean connect(BluetoothDevice device) { argument
159 if (DBG) log("connect(" + device
199 disconnect(BluetoothDevice device) argument
251 getConnectionState(BluetoothDevice device) argument
281 setPriority(BluetoothDevice device, int priority) argument
313 getPriority(BluetoothDevice device) argument
335 isA2dpPlaying(BluetoothDevice device) argument
366 suspendSink(BluetoothDevice device) argument
396 resumeSink(BluetoothDevice device) argument
416 shouldSendVolumeKeys(BluetoothDevice device) argument
437 allowIncomingConnect(BluetoothDevice device, boolean value) argument
477 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothDeviceProfileState.java38 * device. When the device bonds an instance of this class is created.
41 * A2DP. When the device is unbonded, the instance is removed.
44 * {@link BondedDevice}: This state represents a bonded device. When in this
132 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
133 if (device == null || !device.equals(mDevice)) return;
138 // We trust this device now
154 // We trust this device now
171 // We trust this device no
[all...]
H A DBluetoothHeadset.java58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
79 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
252 * Initiate connection to a profile of the remote bluetooth device.
259 * device is already connected or Bluetooth is not turned on.
268 * @param device Remote Bluetooth Device
273 public boolean connect(BluetoothDevice device) { argument
274 if (DBG) log("connect(" + device + ")");
276 isValidDevice(device)) {
278 return mService.connect(device);
292 * Bluetooth device i
314 disconnect(BluetoothDevice device) argument
366 getConnectionState(BluetoothDevice device) argument
396 setPriority(BluetoothDevice device, int priority) argument
428 getPriority(BluetoothDevice device) argument
464 startVoiceRecognition(BluetoothDevice device) argument
488 stopVoiceRecognition(BluetoothDevice device) argument
511 isAudioConnected(BluetoothDevice device) argument
539 getBatteryUsageHint(BluetoothDevice device) argument
589 acceptIncomingConnect(BluetoothDevice device) argument
608 createIncomingConnect(BluetoothDevice device) argument
625 rejectIncomingConnect(BluetoothDevice device) argument
644 connectHeadsetInternal(BluetoothDevice device) argument
663 disconnectHeadsetInternal(BluetoothDevice device) argument
682 setAudioState(BluetoothDevice device, int state) argument
701 getAudioState(BluetoothDevice device) argument
725 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
748 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
791 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHealth.java35 * <p> How to connect to a health device which is acting in the source role.
41 * <li> Pair with the remote device. This currently needs to be done manually
43 * <li> Connect to a health device using {@link #connectChannelToSource}. Some
60 * Health Profile Source Role - the health device.
65 * Health Profile Sink Role the device talking to the health device.
187 * Connect to a health device which has the {@link #SOURCE_ROLE}.
193 * @param device The remote Bluetooth device.
198 public boolean connectChannelToSource(BluetoothDevice device, argument
227 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument
256 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument
285 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument
317 getConnectionState(BluetoothDevice device) argument
404 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
467 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHealthCallback.java54 * @param device The Bluetooth Device
62 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd,
64 Log.d(TAG, "onHealthChannelStateChange: " + config + "Device: " + device +
61 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
H A DBluetoothInputDevice.java54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
126 * Initiate connection to a profile of the remote bluetooth device.
131 * device is already connected or Bluetooth is not turned on.
140 * @param device Remote Bluetooth Device
145 public boolean connect(BluetoothDevice device) { argument
146 if (DBG) log("connect(" + device + ")");
148 isValidDevice(device)) {
150 return mService.connectInputDevice(device);
164 * Bluetooth device is not in connected state etc. When this API returns,
169 * <p> If the disconnection is initiated by a remote device, th
186 disconnect(BluetoothDevice device) argument
238 getConnectionState(BluetoothDevice device) argument
268 setPriority(BluetoothDevice device, int priority) argument
300 getPriority(BluetoothDevice device) argument
320 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPan.java54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
55 * <li> {@link #EXTRA_LOCAL_ROLE} - Which local role the remote device is
74 * The local role of the PAN profile that the remote device is bound to.
80 * The local device is acting as a Network Access Point.
85 * The local device is acting as a PAN User.
147 * Initiate connection to a profile of the remote bluetooth device.
150 * device is already connected or Bluetooth is not turned on.
159 * @param device Remote Bluetooth Device
164 public boolean connect(BluetoothDevice device) { argument
165 if (DBG) log("connect(" + device
205 disconnect(BluetoothDevice device) argument
257 getConnectionState(BluetoothDevice device) argument
296 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPbap.java163 * Get the currently connected remote Bluetooth device (PCE).
164 * @return The remote Bluetooth device, or null if not in connected or
182 * Returns true if the specified Bluetooth device is connected (does not
186 public boolean isConnected(BluetoothDevice device) { argument
187 if (DBG) log("isConnected(" + device + ")");
190 return mService.isConnected(device);
220 * This is a simple heuristic that tries to guess if a device with the
223 * @return True if this device might support PBAP.
H A DBluetoothProfile.java35 * Bluetooth device.
43 * Bluetooth device.
112 * Default priority when not set or when the device is unpaired
149 * @param device Remote bluetooth device.
154 public int getConnectionState(BluetoothDevice device); argument
H A DBluetoothProfileState.java30 * to a particular profile. Currently, we only allow one device
34 * command to the appropriate remote device specific state machine.
61 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
62 if (device == null) {
84 if (device.equals(mPendingDevice)) {
H A DBluetoothSocket.java45 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use
48 * Then call {@link #connect()} to attempt a connection to the remote device.
93 private final BluetoothDevice mDevice; /* remote device */
122 * @param auth require the remote device to be authenticated
124 * @param device remote device that this socket can connect to
131 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException {
141 mSdp = new SdpHelper(device, uuid);
147 mDevice = device;
148 if (device
130 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument
371 private final BluetoothDevice device; field in class:BluetoothSocket.SdpHelper
374 SdpHelper(BluetoothDevice device, ParcelUuid uuid) argument
[all...]
H A DBluetoothTetheringDataTracker.java120 for (BluetoothDevice device: mBluetoothPan.getConnectedDevices()) {
121 mBluetoothPan.disconnect(device);
145 * @return true - If are we currently tethered with another device.
263 public synchronized void startReverseTether(String iface, BluetoothDevice device) { argument
265 mDevice = device;
H A DHeadsetBase.java28 * The base RFCOMM (service) connection for a headset or handsfree device.
78 BluetoothDevice device, int rfcommChannel) {
82 mRemoteDevice = device;
83 mAddress = device.getAddress();
94 BluetoothDevice device,
99 mRemoteDevice = device;
100 mAddress = device.getAddress();
251 * disconnect was initiated by the remote device.
77 HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, int rfcommChannel) argument
93 HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, int socketFd, int rfcommChannel, Handler handler) argument
H A DIBluetooth.aidl89 boolean allowIncomingProfileConnect(in BluetoothDevice device, boolean value);
96 boolean connectInputDevice(in BluetoothDevice device);
97 boolean disconnectInputDevice(in BluetoothDevice device);
100 int getInputDeviceConnectionState(in BluetoothDevice device);
101 boolean setInputDevicePriority(in BluetoothDevice device, int priority);
102 int getInputDevicePriority(in BluetoothDevice device);
106 int getPanDeviceConnectionState(in BluetoothDevice device);
109 boolean connectPanDevice(in BluetoothDevice device);
110 boolean disconnectPanDevice(in BluetoothDevice device);
116 boolean connectChannelToSource(in BluetoothDevice device, i
[all...]
H A DIBluetoothA2dp.aidl28 boolean connect(in BluetoothDevice device);
29 boolean disconnect(in BluetoothDevice device);
32 int getConnectionState(in BluetoothDevice device);
33 boolean setPriority(in BluetoothDevice device, int priority);
34 int getPriority(in BluetoothDevice device);
35 boolean isA2dpPlaying(in BluetoothDevice device);
38 boolean suspendSink(in BluetoothDevice device);
39 boolean resumeSink(in BluetoothDevice device);
40 boolean connectSinkInternal(in BluetoothDevice device);
41 boolean disconnectSinkInternal(in BluetoothDevice device);
[all...]
H A DIBluetoothHeadset.aidl28 boolean connect(in BluetoothDevice device);
29 boolean disconnect(in BluetoothDevice device);
32 int getConnectionState(in BluetoothDevice device);
33 boolean setPriority(in BluetoothDevice device, int priority);
34 int getPriority(in BluetoothDevice device);
35 boolean startVoiceRecognition(in BluetoothDevice device);
36 boolean stopVoiceRecognition(in BluetoothDevice device);
37 boolean isAudioConnected(in BluetoothDevice device);
40 int getBatteryUsageHint(in BluetoothDevice device);
43 boolean createIncomingConnect(in BluetoothDevice device);
[all...]
H A DIBluetoothHealthCallback.aidl30 in BluetoothDevice device, int prevState, int newState, in
H A DIBluetoothPbap.aidl29 boolean connect(in BluetoothDevice device);
31 boolean isConnected(in BluetoothDevice device);
/frameworks/base/core/java/android/hardware/usb/
H A DIUsbManager.aidl31 /* Returns a file descriptor for communicating with the USB device.
44 /* Sets the default package for a USB device
47 void setDevicePackage(in UsbDevice device, String packageName);
54 /* Returns true if the caller has permission to access the device. */
55 boolean hasDevicePermission(in UsbDevice device);
60 /* Requests permission for the given package to access the device.
64 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi);
73 /* Grants permission for the given UID to access the device */
74 void grantDevicePermission(in UsbDevice device, int uid);
H A DUsbDeviceConnection.java26 * This class is used for sending and receiving data and control messages to a USB device.
42 public UsbDeviceConnection(UsbDevice device) { argument
43 mDevice = device;
51 * Releases all system resources related to the device.
54 * to retrieve a new instance to reestablish communication with the device.
61 * Returns the native file descriptor for the device, or
62 * -1 if the device is not opened.
63 * This is intended for passing to native code to access the device.
72 * Returns the raw USB descriptors for the device.
105 * Performs a control transaction on endpoint zero for this device
[all...]
H A DUsbManager.java50 * Broadcast Action: A sticky broadcast for USB state change events when in device mode.
77 * Broadcast Action: A broadcast for USB device attached event.
79 * This intent is sent when a USB device is attached to the USB bus when in host mode.
82 * for the attached device
89 * Broadcast Action: A broadcast for USB device detached event.
91 * This intent is sent when a USB device is detached from the USB bus when in host mode.
94 * for the detached device
191 * containing the UsbDevice object for the device.
194 public static final String EXTRA_DEVICE = "device";
224 * USB device nam
252 openDevice(UsbDevice device) argument
314 hasPermission(UsbDevice device) argument
359 requestPermission(UsbDevice device, PendingIntent pi) argument
[all...]
/frameworks/base/core/java/android/server/
H A DBluetoothA2dpService.java73 BluetoothDevice device =
88 if (mAudioDevices.containsKey(device)) {
89 int state = mAudioDevices.get(device);
90 handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTED);
116 private boolean isPhoneDocked(BluetoothDevice device) { argument
123 if (dockDevice != null && device.equals(dockDevice)) {
182 private boolean isSinkDevice(BluetoothDevice device) { argument
183 ParcelUuid[] uuids = mBluetoothService.getRemoteUuids(device.getAddress());
190 private synchronized void addAudioSink(BluetoothDevice device) { argument
191 if (mAudioDevices.get(device)
242 isConnectSinkFeasible(BluetoothDevice device) argument
257 isA2dpPlaying(BluetoothDevice device) argument
265 connect(BluetoothDevice device) argument
280 connectSinkInternal(BluetoothDevice device) argument
317 isDisconnectSinkFeasible(BluetoothDevice device) argument
332 disconnect(BluetoothDevice device) argument
340 disconnectSinkInternal(BluetoothDevice device) argument
359 suspendSink(BluetoothDevice device) argument
376 resumeSink(BluetoothDevice device) argument
392 getConnectionState(BluetoothDevice device) argument
422 getPriority(BluetoothDevice device) argument
429 setPriority(BluetoothDevice device, int priority) argument
436 allowIncomingConnect(BluetoothDevice device, boolean value) argument
500 handleSinkStateChange(BluetoothDevice device, int prevState, int state) argument
531 handleSinkPlayingStateChange(BluetoothDevice device, int state, int prevState) argument
[all...]
H A DBluetoothBondState.java124 for (String device : bonds) {
125 mState.put(mService.getAddressFromObjectPath(device).toUpperCase(),
178 Log.w(TAG, "setBondState() called to unbond device, but reason code is " +

Completed in 153 milliseconds

1234