Searched refs:device (Results 76 - 100 of 267) sorted by relevance

1234567891011

/frameworks/av/services/camera/libcameraservice/common/
H A DCameraModule.h44 int open(const char* id, struct hw_device_t** device);
45 int openLegacy(const char* id, uint32_t halVersion, struct hw_device_t** device);
58 // Derive camera characteristics keys defined after HAL device version
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothHealthCallback.aidl30 in BluetoothDevice device, int prevState, int newState, in
H A DBluetoothGattServer.java98 + " serverIf=" + serverIf + " device=" + address);
140 BluetoothDevice device = mAdapter.getRemoteDevice(address);
148 mCallback.onCharacteristicReadRequest(device, transId, offset, characteristic);
169 BluetoothDevice device = mAdapter.getRemoteDevice(address);
180 mCallback.onDescriptorReadRequest(device, transId, offset, descriptor);
199 BluetoothDevice device = mAdapter.getRemoteDevice(address);
207 mCallback.onCharacteristicWriteRequest(device, transId, characteristic,
231 BluetoothDevice device = mAdapter.getRemoteDevice(address);
243 mCallback.onDescriptorWriteRequest(device, transId, descriptor,
257 + "device
437 connect(BluetoothDevice device, boolean autoConnect) argument
460 cancelConnection(BluetoothDevice device) argument
492 sendResponse(BluetoothDevice device, int requestId, int status, int offset, byte[] value) argument
525 notifyCharacteristicChanged(BluetoothDevice device, BluetoothGattCharacteristic characteristic, boolean confirm) argument
702 getConnectionState(BluetoothDevice device) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DIUsbManager.aidl33 /* Returns a file descriptor for communicating with the USB device.
46 /* Sets the default package for a USB device
49 void setDevicePackage(in UsbDevice device, String packageName, int userId);
56 /* Returns true if the caller has permission to access the device. */
57 boolean hasDevicePermission(in UsbDevice device);
62 /* Requests permission for the given package to access the device.
66 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi);
75 /* Grants permission for the given UID to access the device */
76 void grantDevicePermission(in UsbDevice device, int uid);
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanResultTest.java39 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(
46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi,
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DDeviceDisconnectedReceiver.java45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
46 String deviceName = device.getDeviceName();
49 // close our activity if the device it is displaying is disconnected
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbAudioDevice.java42 public UsbAudioDevice(int card, int device, argument
45 mDevice = device;
54 sb.append(", device: " + mDevice);
63 return "[card:" + mCard + " device:" + mDevice + " " + mDeviceName + "]";
/frameworks/compile/mclinker/lib/ADT/
H A DAndroid.mk18 # For the device
/frameworks/compile/mclinker/lib/Target/AArch64/TargetInfo/
H A DAndroid.mk18 # For the device
/frameworks/compile/mclinker/lib/Target/ARM/TargetInfo/
H A DAndroid.mk18 # For the device
/frameworks/compile/mclinker/lib/Target/Mips/TargetInfo/
H A DAndroid.mk18 # For the device
/frameworks/compile/mclinker/lib/Target/X86/TargetInfo/
H A DAndroid.mk18 # For the device
/frameworks/compile/mclinker/
H A Dmcld.mk6 MCLD_DEVICE_BUILD_MK := $(MCLD_ROOT_PATH)/mcld-device-build.mk
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DDeviceDescriptor.cpp50 // - are of the same type (a device type cannot be AUDIO_DEVICE_NONE)
51 // - have the same address or one device does not specify the address
52 // - have the same channel mask or one device does not specify the channel mask
99 ALOGW("DeviceVector::add device %08x already in", item->type());
111 ALOGW("DeviceVector::remove device %08x not in", item->type());
177 sp<DeviceDescriptor> device; local
181 device = itemAt(i);
189 type, address.string(), device.get());
190 return device;
195 sp<DeviceDescriptor> device; local
239 sp<DeviceDescriptor> device; local
[all...]
/frameworks/compile/libbcc/
H A Dlibbcc.mk33 LIBBCC_DEVICE_BUILD_MK := $(LIBBCC_ROOT_PATH)/libbcc-device-build.mk
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DStreamDescriptor.h33 int getVolumeIndex(audio_devices_t device) const;
36 void addCurrentVolumeIndex(audio_devices_t device, int index);
52 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */
67 void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index);
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pUpnpServiceInfo.java59 * @param device a string representation of this device in the following format,
63 * e.g) urn:schemas-upnp-org:device:MediaServer:1
72 String device, List<String> services) {
73 if (uuid == null || device == null) {
74 throw new IllegalArgumentException("uuid or device cannnot be null");
82 info.add(createSupplicantQuery(uuid, device));
71 newInstance(String uuid, String device, List<String> services) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCastControllerImpl.java137 final CastDevice device = new CastDevice();
138 device.id = mProjection.getPackageName();
139 device.name = getAppName(mProjection.getPackageName());
140 device.description = mContext.getString(R.string.quick_settings_casting);
141 device.state = CastDevice.STATE_CONNECTED;
142 device.tag = mProjection;
143 devices.add(device);
149 final CastDevice device = new CastDevice();
150 device.id = route.getTag().toString();
152 device
166 startCasting(CastDevice device) argument
174 stopCasting(CastDevice device) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbMidiDevice.cpp43 jint card, jint device)
56 info.device = device;
70 android_server_UsbMidiDevice_open(JNIEnv *env, jobject thiz, jint card, jint device, argument
75 snprintf(path, sizeof(path), "/dev/snd/midiC%dD%d", card, device);
42 android_server_UsbMidiDevice_get_subdevice_count(JNIEnv *env, jobject , jint card, jint device) argument
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayManagerService.java86 * Display adapters communicate changes in display device state to the display manager
92 * the potential for deadlocks resulting from asynchronous display device discovery.
564 DisplayDevice device = mVirtualDisplayAdapter.createVirtualDisplayLocked(
567 if (device == null) {
571 handleDisplayDeviceAddedLocked(device);
572 LogicalDisplay display = findLogicalDisplayForDeviceLocked(device);
581 handleDisplayDeviceRemovedLocked(device);
613 DisplayDevice device =
615 if (device != null) {
616 handleDisplayDeviceRemovedLocked(device);
676 handleDisplayDeviceAdded(DisplayDevice device) argument
682 handleDisplayDeviceAddedLocked(DisplayDevice device) argument
701 handleDisplayDeviceChanged(DisplayDevice device) argument
725 handleDisplayDeviceRemoved(DisplayDevice device) argument
731 handleDisplayDeviceRemovedLocked(DisplayDevice device) argument
756 updateDisplayStateLocked(DisplayDevice device) argument
768 addLogicalDisplayLocked(DisplayDevice device) argument
912 configureDisplayInTransactionLocked(DisplayDevice device) argument
950 setViewportLocked(DisplayViewport viewport, LogicalDisplay display, DisplayDevice device) argument
957 findLogicalDisplayForDeviceLocked(DisplayDevice device) argument
1121 onDisplayDeviceEvent(DisplayDevice device, int event) argument
[all...]
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c53 struct usb_device *device; local
75 fprintf(stderr, "waiting for device fd: %d\n", fd);
76 device = usb_wait_for_device();
77 max_packet = usb_device_get_device_descriptor(device)->bMaxPacketSize0;
87 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
100 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
115 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
124 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBluetoothTile.java223 for (CachedBluetoothDevice device : devices) {
224 if (device.getBondState() == BluetoothDevice.BOND_NONE) continue;
227 item.line1 = device.getName();
228 int state = device.getMaxConnectionState();
237 item.tag = device;
246 for (CachedBluetoothDevice device : devices) {
247 if (device.getBondState() != BluetoothDevice.BOND_NONE) {
257 final CachedBluetoothDevice device = (CachedBluetoothDevice) item.tag;
258 if (device != null && device
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DStreamingProcessor.cpp89 sp<CameraDeviceBase> device = mDevice.promote(); local
90 if (device == 0) {
106 res = device->createDefaultRequest(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG,
109 res = device->createDefaultRequest(CAMERA3_TEMPLATE_PREVIEW,
113 res = device->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW,
148 sp<CameraDeviceBase> device = mDevice.promote(); local
149 if (device == 0) {
157 res = device->getStreamInfo(mPreviewStreamId,
169 res = device->waitUntilDrained();
175 res = device
216 sp<CameraDeviceBase> device = mDevice.promote(); local
332 sp<CameraDeviceBase> device = mDevice.promote(); local
381 sp<CameraDeviceBase> device = mDevice.promote(); local
414 sp<CameraDeviceBase> device = mDevice.promote(); local
501 sp<CameraDeviceBase> device = mDevice.promote(); local
595 sp<CameraDeviceBase> device = mDevice.promote(); local
645 sp<CameraDeviceBase> device = mDevice.promote(); local
[all...]
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.cpp50 status_t AudioPolicyManager::setDeviceConnectionState(audio_devices_t device, argument
55 return setDeviceConnectionStateInt(device, state, device_address, device_name);
58 status_t AudioPolicyManager::setDeviceConnectionStateInt(audio_devices_t device, argument
63 ALOGV("setDeviceConnectionStateInt() device: 0x%X, state %d, address %s name %s",
64 - device, state, device_address, device_name);
66 // connect/disconnect only 1 device at a time
67 if (!audio_is_output_device(device) && !audio_is_input_device(device)) return BAD_VALUE;
70 mHwModules.getDeviceDescriptor(device, device_address, device_name);
73 if (audio_is_output_device(device)) {
121 param.addInt(String8(AUDIO_PARAMETER_DEVICE_CONNECT), device); local
136 param.addInt(String8(AUDIO_PARAMETER_DEVICE_DISCONNECT), device); local
229 param.addInt(String8(AUDIO_PARAMETER_DEVICE_CONNECT), device); local
247 param.addInt(String8(AUDIO_PARAMETER_DEVICE_DISCONNECT), device); local
277 getDeviceConnectionState(audio_devices_t device, const char *device_address) argument
601 getProfileForDirectOutput( audio_devices_t device, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
655 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
726 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
746 getOutputForDevice( audio_devices_t device, audio_session_t session __unused, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
1078 startSource(sp<AudioOutputDescriptor> outputDesc, audio_stream_type_t stream, audio_devices_t device, uint32_t *delayMs) argument
1321 audio_devices_t device; local
1705 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
1766 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
1834 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
2609 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
2681 acquireSoundTriggerSession(audio_session_t *session, audio_io_handle_t *ioHandle, audio_devices_t *device) argument
3196 audio_devices_t device = devDesc->type(); local
3493 audio_devices_t device = devDesc->type(); local
3776 getOutputsForDevice( audio_devices_t device, SwAudioOutputCollection openOutputs) argument
3942 audio_devices_t device = AUDIO_DEVICE_NONE; local
4015 audio_devices_t device = getDeviceAndMixForInputSource(inputDesc->mInputSource); local
4194 audio_devices_t device = outputDesc->device(); local
4262 setOutputDevice(const sp<AudioOutputDescriptor>& outputDesc, audio_devices_t device, bool force, int delayMs, audio_patch_handle_t *patchHandle, const char* address) argument
4372 inputCmd.addInt(String8(AudioParameter::keyRouting),device); local
4409 setInputDevice(audio_io_handle_t input, audio_devices_t device, bool force, audio_patch_handle_t *patchHandle) argument
4496 getInputProfile(audio_devices_t device, String8 address, uint32_t& samplingRate, audio_format_t& format, audio_channel_mask_t& channelMask, audio_input_flags_t flags) argument
4559 computeVolume(audio_stream_type_t stream, int index, audio_devices_t device) argument
4603 checkAndSetVolume(audio_stream_type_t stream, int index, const sp<AudioOutputDescriptor>& outputDesc, audio_devices_t device, int delayMs, bool force) argument
4656 applyStreamVolumes(const sp<AudioOutputDescriptor>& outputDesc, audio_devices_t device, int delayMs, bool force) argument
4676 setStrategyMute(routing_strategy strategy, bool on, const sp<AudioOutputDescriptor>& outputDesc, int delayMs, audio_devices_t device) argument
4694 setStreamMute(audio_stream_type_t stream, bool on, const sp<AudioOutputDescriptor>& outputDesc, int delayMs, audio_devices_t device) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pGroup.java177 /** Check whether this device is the group owner of the created p2p group */
183 public void setOwner(WifiP2pDevice device) { argument
184 mOwner = device;
198 public void addClient(WifiP2pDevice device) { argument
200 if (client.equals(device)) return;
202 mClients.add(device);
211 public boolean removeClient(WifiP2pDevice device) { argument
212 return mClients.remove(device);
220 /** @hide Returns {@code true} if the device is part of the group */
221 public boolean contains(WifiP2pDevice device) { argument
[all...]

Completed in 1715 milliseconds

1234567891011