Searched refs:device (Results 51 - 75 of 267) sorted by relevance

1234567891011

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManager.java57 void onReceive(Context context, Intent intent, BluetoothDevice device); argument
141 BluetoothDevice device = intent
146 handler.onReceive(context, intent, device);
153 BluetoothDevice device) {
176 BluetoothDevice device) {
188 BluetoothDevice device) {
194 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
196 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device);
209 public void onReceive(Context context, Intent intent, BluetoothDevice device) { argument
210 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
152 onReceive(Context context, Intent intent, BluetoothDevice device) argument
175 onReceive(Context context, Intent intent, BluetoothDevice device) argument
187 onReceive(Context context, Intent intent, BluetoothDevice device) argument
234 onReceive(Context context, Intent intent, BluetoothDevice device) argument
252 onReceive(Context context, Intent intent, BluetoothDevice device) argument
259 onReceive(Context context, Intent intent, BluetoothDevice device) argument
333 onReceive(Context context, Intent intent, BluetoothDevice device) argument
340 onReceive(Context context, Intent intent, BluetoothDevice device) argument
347 onReceive(Context context, Intent intent, BluetoothDevice device) argument
365 onReceive(Context context, Intent intent, BluetoothDevice device) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbDisconnectedReceiver.java29 // if their device/accessory is disconnected while the dialog is still open
35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { argument
37 mDevice = device;
55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
56 if (device != null && device.equals(mDevice)) {
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHeadset.java60 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
81 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
320 * Initiate connection to a profile of the remote bluetooth device.
327 * device is already connected or Bluetooth is not turned on.
336 * @param device Remote Bluetooth Device
341 public boolean connect(BluetoothDevice device) { argument
342 if (DBG) log("connect(" + device + ")");
344 isValidDevice(device)) {
346 return mService.connect(device);
360 * Bluetooth device i
382 disconnect(BluetoothDevice device) argument
434 getConnectionState(BluetoothDevice device) argument
464 setPriority(BluetoothDevice device, int priority) argument
496 getPriority(BluetoothDevice device) argument
532 startVoiceRecognition(BluetoothDevice device) argument
556 stopVoiceRecognition(BluetoothDevice device) argument
579 isAudioConnected(BluetoothDevice device) argument
607 getBatteryUsageHint(BluetoothDevice device) argument
638 acceptIncomingConnect(BluetoothDevice device) argument
655 rejectIncomingConnect(BluetoothDevice device) argument
674 getAudioState(BluetoothDevice device) argument
767 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
790 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
864 sendVendorSpecificResultCode(BluetoothDevice device, String command, String arg) argument
958 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothA2dpSink.java53 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
74 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
87 * A2DP sink device is streaming music. This state can be one of
94 * A2DP sink device is NOT streaming music. This state can be one of
106 * <li> {@link #EXTRA_AUDIO_CONFIG} - The audio configuration for the remote device. </li>
107 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
119 * This extra represents the current audio configuration of the A2DP source device.
218 * Initiate connection to a profile of the remote bluetooth device.
225 * device is already connected or Bluetooth is not turned on.
234 * @param device Remot
239 connect(BluetoothDevice device) argument
280 disconnect(BluetoothDevice device) argument
332 getConnectionState(BluetoothDevice device) argument
358 getAudioConfig(BluetoothDevice device) argument
422 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothMap.java171 * Get the currently connected remote Bluetooth device (PCE).
172 * @return The remote Bluetooth device, or null if not in connected or
190 * Returns true if the specified Bluetooth device is connected.
194 public boolean isConnected(BluetoothDevice device) { argument
195 if (VDBG) log("isConnected(" + device + ")");
198 return mService.isConnected(device);
211 public boolean connect(BluetoothDevice device) { argument
212 if (DBG) log("connect(" + device + ")" + "not supported for MAPS");
219 * @param device Remote Bluetooth Device
223 public boolean disconnect(BluetoothDevice device) { argument
301 getConnectionState(BluetoothDevice device) argument
327 setPriority(BluetoothDevice device, int priority) argument
356 getPriority(BluetoothDevice device) argument
398 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHealthCallback.java56 * @param device The Bluetooth Device
65 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd,
67 Log.d(TAG, "onHealthChannelStateChange: " + config + "Device: " + device +
64 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
H A DBluetoothHealth.java37 * <p> How to connect to a health device which is acting in the source role.
43 * <li> Pair with the remote device. This currently needs to be done manually
45 * <li> Connect to a health device using {@link #connectChannelToSource}. Some
63 * Health Profile Source Role - the health device.
68 * Health Profile Sink Role the device talking to the health device.
219 * Connect to a health device which has the {@link #SOURCE_ROLE}.
225 * @param device The remote Bluetooth device.
230 public boolean connectChannelToSource(BluetoothDevice device, argument
259 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument
288 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument
317 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument
349 getConnectionState(BluetoothDevice device) argument
436 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
548 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPan.java56 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
57 * <li> {@link #EXTRA_LOCAL_ROLE} - Which local role the remote device is
76 * The local role of the PAN profile that the remote device is bound to.
83 * The local device is acting as a Network Access Point.
89 * The local device is acting as a PAN User.
218 * Initiate connection to a profile of the remote bluetooth device.
221 * device is already connected or Bluetooth is not turned on.
230 * @param device Remote Bluetooth Device
235 public boolean connect(BluetoothDevice device) { argument
236 if (DBG) log("connect(" + device
276 disconnect(BluetoothDevice device) argument
328 getConnectionState(BluetoothDevice device) argument
392 isValidDevice(BluetoothDevice device) argument
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiManager.java67 // Binder stub for receiving device notifications from MidiService
78 public void onDeviceAdded(MidiDeviceInfo device) { argument
80 final MidiDeviceInfo deviceF = device;
87 mCallback.onDeviceAdded(device);
92 public void onDeviceRemoved(MidiDeviceInfo device) { argument
94 final MidiDeviceInfo deviceF = device;
101 mCallback.onDeviceRemoved(device);
121 * Callback class used for clients to receive MIDI device added and removed notifications
125 * Called to notify when a new MIDI device has been added
127 * @param device
129 onDeviceAdded(MidiDeviceInfo device) argument
137 onDeviceRemoved(MidiDeviceInfo device) argument
159 onDeviceOpened(MidiDevice device) argument
225 sendOpenDeviceResponse(final MidiDevice device, final OnDeviceOpenedListener listener, Handler handler) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCastController.java27 void startCasting(CastDevice device); argument
28 void stopCasting(CastDevice device); argument
H A DBluetoothControllerImpl.java70 for (CachedBluetoothDevice device :
72 pw.println(" " + getDeviceString(device));
90 private String getDeviceString(CachedBluetoothDevice device) { argument
91 return device.getName() + " " + device.getBondState() + " " + device.isConnected();
133 public void connect(final CachedBluetoothDevice device) { argument
134 if (mLocalBluetoothManager == null || device == null) return;
135 device.connect(true);
139 public void disconnect(CachedBluetoothDevice device) { argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbHostManager.cpp62 struct usb_device *device = usb_device_open(devname); local
63 if (!device) {
70 const usb_device_descriptor* deviceDesc = usb_device_get_device_descriptor(device);
72 char *manufacturer = usb_device_get_manufacturer_name(device);
73 char *product = usb_device_get_product_name(device);
74 int version = usb_device_get_version(device);
75 char *serial = usb_device_get_serial(device);
83 deviceName, usb_device_get_vendor_id(device), usb_device_get_product_id(device),
97 usb_descriptor_iter_init(device,
167 struct usb_device* device = usb_device_open(deviceNameStr); local
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java154 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { argument
157 mDevice = device;
215 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { argument
218 mDevice = device;
269 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument
270 super(device, BluetoothProfile.PAN, expectedFlags);
540 * Puts the local device into discoverable mode and checks to make sure that the local device
583 * Puts the local device into connectable only mode and checks to make sure that the local
584 * device i
746 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
759 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
775 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument
843 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument
919 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
1000 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
1077 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1088 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1101 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument
1182 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1193 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1206 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument
1286 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1297 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1308 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument
1410 getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) argument
1420 getConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) argument
1432 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DVirtualDisplayAdapter.java72 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken,
76 mVirtualDisplayDevices.put(appToken, device);
82 appToken.linkToDeath(device, 0);
85 device.destroyLocked(false);
89 // Return the display device without actually sending the event indicating
91 return device;
96 VirtualDisplayDevice device = mVirtualDisplayDevices.get(appToken);
97 if (device != null) {
98 device.resizeLocked(width, height, densityDpi);
104 VirtualDisplayDevice device
[all...]
/frameworks/base/services/midi/java/com/android/server/midi/
H A DMidiService.java131 // List of all device connections for this client
156 public void addDeviceConnection(Device device, IMidiDeviceOpenCallback callback) { argument
157 DeviceConnection connection = new DeviceConnection(device, this, callback);
159 device.addDeviceConnection(connection);
181 public void deviceAdded(Device device) { argument
183 if (!device.isUidAllowed(mUid)) return;
185 MidiDeviceInfo deviceInfo = device.getDeviceInfo();
195 public void deviceRemoved(Device device) { argument
197 if (!device.isUidAllowed(mUid)) return;
199 MidiDeviceInfo deviceInfo = device
209 deviceStatusChanged(Device device, MidiDeviceStatus status) argument
520 DeviceConnection(Device device, Client client, IMidiDeviceOpenCallback callback) argument
760 notifyDeviceStatusChanged(Device device, MidiDeviceStatus status) argument
815 removeDeviceLocked(Device device) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp104 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); local
107 if (device)
108 env->SetLongField(thiz, field_context, (jlong)device);
109 return (jboolean)(device != NULL);
115 MtpDevice* device = get_device_from_object(env, thiz); local
116 if (device) {
117 device->close();
118 delete device;
126 MtpDevice* device = get_device_from_object(env, thiz); local
127 if (!device) {
163 MtpDevice* device = get_device_from_object(env, thiz); local
182 MtpDevice* device = get_device_from_object(env, thiz); local
217 MtpDevice* device = get_device_from_object(env, thiz); local
236 MtpDevice* device = get_device_from_object(env, thiz); local
310 MtpDevice* device = get_device_from_object(env, thiz); local
332 MtpDevice* device = get_device_from_object(env, thiz); local
350 MtpDevice* device = get_device_from_object(env, thiz); local
361 MtpDevice* device = get_device_from_object(env, thiz); local
371 MtpDevice* device = get_device_from_object(env, thiz); local
381 MtpDevice* device = get_device_from_object(env, thiz); local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DHwModule.h42 audio_devices_t device, String8 address);
45 audio_devices_t device, String8 address);
65 sp <HwModule> getModuleForDevice(audio_devices_t device) const;
67 sp<DeviceDescriptor> getDeviceDescriptor(const audio_devices_t device,
/frameworks/av/services/camera/libcameraservice/common/
H A DFrameProcessorBase.h35 * frames from the device, and analyzes them as necessary.
39 FrameProcessorBase(wp<CameraDeviceBase> device);
77 void processNewFrames(const sp<CameraDeviceBase> &device);
80 const sp<CameraDeviceBase> &device);
83 const sp<CameraDeviceBase> &device);
/frameworks/native/include/binder/
H A DMemoryHeapBase.h48 * maps memory from the given device
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
76 status_t setDevice(const char* device) { argument
78 mDevice = device;
86 int flags = 0, const char* device = NULL);
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DSinkActivity.java124 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE);
125 if (device != null) {
126 onDeviceAttached(device);
131 for (UsbDevice device : devices.values()) {
132 onDeviceAttached(device);
145 private void onDeviceAttached(UsbDevice device) { argument
146 mLogger.log("USB device attached: " + device);
148 connect(device);
152 private void onDeviceDetached(UsbDevice device) { argument
159 connect(UsbDevice device) argument
464 isAccessory(UsbDevice device) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DStreamDescriptor.cpp41 int StreamDescriptor::getVolumeIndex(audio_devices_t device) const
43 device = Volume::getDeviceForVolume(device);
45 if (mIndexCur.indexOfKey(device) < 0) {
46 device = AUDIO_DEVICE_OUT_DEFAULT;
48 return mIndexCur.valueFor(device);
56 void StreamDescriptor::addCurrentVolumeIndex(audio_devices_t device, int index) argument
58 mIndexCur.add(device, index);
115 audio_devices_t device, int index)
117 editValueAt(stream).addCurrentVolumeIndex(device, inde
114 addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) argument
[all...]
H A DIOProfile.cpp38 bool IOProfile::isCompatibleProfile(audio_devices_t device, argument
53 if (device != AUDIO_DEVICE_NONE) {
55 if (popcount(device & ~AUDIO_DEVICE_BIT_IN) > 1) {
56 if ((mSupportedDevices.types() & device) != device) {
59 } else if (mSupportedDevices.getDevice(device, address) == 0) {
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbSettingsManager.java84 // Temporary mapping USB device name to list of UIDs with permissions for the device
99 // This class is used to describe a USB device.
108 // USB device or interface class (or -1 for unspecified)
110 // USB device subclass (or -1 for unspecified)
112 // USB device protocol (or -1 for unspecified)
114 // USB device manufacturer name string (or null for unspecified)
116 // USB device product name string (or null for unspecified)
118 // USB device serial number string (or null for unspecified)
133 public DeviceFilter(UsbDevice device) { argument
234 matches(UsbDevice device) argument
661 packageMatchesLocked(ResolveInfo info, String metaDataName, UsbDevice device, UsbAccessory accessory) argument
698 getDeviceMatchesLocked(UsbDevice device, Intent intent) argument
727 deviceAttached(UsbDevice device) argument
748 deviceDetached(UsbDevice device) argument
785 resolveActivity(Intent intent, ArrayList<ResolveInfo> matches, String defaultPackage, UsbDevice device, UsbAccessory accessory) argument
984 hasPermission(UsbDevice device) argument
1012 checkPermission(UsbDevice device) argument
1054 requestPermission(UsbDevice device, String packageName, PendingIntent pi) argument
1093 setDevicePackage(UsbDevice device, String packageName) argument
1129 grantDevicePermission(UsbDevice device, int uid) argument
[all...]
H A DUsbAlsaManager.java66 // ALSA device when we are notified that its associated USB device has been removed.
79 // UsbMidiDevice for USB peripheral mode (gadget) device
92 public AlsaDevice(int type, int card, int device) { argument
95 mDevice = device;
109 sb.append(", device: " + mDevice);
153 // Notifies AudioService when a device is added or removed
155 // enabled - if true, we're connecting a device (it's arrived), else disconnecting
167 // after device connection. Ideally we should handle the settings change
168 // in SettingsObserver. Here we should log that a USB device i
214 waitForAlsaDevice(int card, int device, int type) argument
455 setAccessoryAudioState(boolean enabled, int card, int device) argument
469 setPeripheralMidiState(boolean enabled, int card, int device) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DICameraService.aidl48 out BinderHolder device);
54 out BinderHolder device);
79 out BinderHolder device);

Completed in 645 milliseconds

1234567891011