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

1234

/frameworks/av/services/camera/libcameraservice/
H A DCameraDeviceFactory.cpp41 sp<CameraDeviceBase> device; local
46 device = new Camera2Device(cameraId);
49 device = new Camera3Device(cameraId);
52 ALOGE("%s: Camera %d: Unknown HAL device version %d",
54 device = NULL;
58 ALOGV_IF(device != 0, "Created a new camera device for version %d",
61 return device;
/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 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 DBluetoothManager.java67 * Get the default BLUETOOTH Adapter for this device.
76 * Get the current connection state of the profile to the remote device.
85 * @param device Remote bluetooth device.
92 public int getConnectionState(BluetoothDevice device, int profile) { argument
97 if (device.equals(connectedDevice)) {
H A DBluetoothGattServerCallback.java29 * Callback indicating when a remote device has been connected or disconnected.
31 * @param device Remote device that has been connected or disconnected.
37 public void onConnectionStateChange(BluetoothDevice device, int status, argument
57 * @param device The remote device that has requested the read operation
62 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, argument
72 * @param device The remote device that has requested the write operation
77 * @param responseNeeded true, if the remote device require
81 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
98 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument
117 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
134 onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) argument
[all...]
H A DBluetoothGattService.java42 * The remote device his service is associated with.
109 /*package*/ BluetoothGattService(BluetoothDevice device, UUID uuid, argument
111 mDevice = device;
120 * Returns the device associated with this service.
211 * <p>If a remote device offers multiple services with the same UUID
H A DBluetoothPbap.java227 * Get the currently connected remote Bluetooth device (PCE).
228 * @return The remote Bluetooth device, or null if not in connected or
246 * Returns true if the specified Bluetooth device is connected (does not
250 public boolean isConnected(BluetoothDevice device) { argument
251 if (VDBG) log("isConnected(" + device + ")");
254 return mService.isConnected(device);
284 * This is a simple heuristic that tries to guess if a device with the
287 * @return True if this device might support PBAP.
H A DBluetoothProfile.java35 * Bluetooth device.
43 * Bluetooth device.
128 * Default priority when not set or when the device is unpaired
165 * @param device Remote bluetooth device.
170 public int getConnectionState(BluetoothDevice device); argument
/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/wifi/java/android/net/wifi/p2p/
H A DWifiP2pProvDiscEvent.java41 public WifiP2pDevice device; field in class:WifiP2pProvDiscEvent
47 device = new WifiP2pDevice();
75 device = new WifiP2pDevice();
76 device.deviceAddress = tokens[1];
85 sbuf.append(device);
H A DWifiP2pDeviceList.java31 * A class representing a Wi-Fi P2p device list.
54 for (WifiP2pDevice device : devices) {
55 if (device.deviceAddress != null) {
56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device));
61 private void validateDevice(WifiP2pDevice device) { argument
62 if (device == null) throw new IllegalArgumentException("Null device");
63 if (TextUtils.isEmpty(device.deviceAddress)) {
82 * Add/update a device t
87 update(WifiP2pDevice device) argument
93 updateSupplicantDetails(WifiP2pDevice device) argument
139 remove(WifiP2pDevice device) argument
[all...]
/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
H A DWifiP2pUpnpServiceResponse.java62 * <li>"uuid:6859dede-8574-59ab-9332-123456789012::urn:schemas-upnp-org:device:
77 * @param dev source device
141 * @param device source device.
147 int transId, WifiP2pDevice device, byte[] data) {
149 return new WifiP2pUpnpServiceResponse(status, transId, device, null);
153 return new WifiP2pUpnpServiceResponse(status, transId, device, data);
146 newInstance(int status, int transId, WifiP2pDevice device, byte[] data) argument
/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/core/jni/
H A Dandroid_hardware_UsbRequest.cpp47 struct usb_device* device = get_device_from_object(env, java_device); local
48 if (!device) {
49 ALOGE("device null in native_init");
62 struct usb_request* request = usb_request_new(device, &desc);
H A Dandroid_hardware_UsbDeviceConnection.cpp52 struct usb_device* device = usb_device_new(deviceNameStr, fd); local
53 if (device) {
54 env->SetIntField(thiz, field_context, (int)device);
61 return (device != NULL);
68 struct usb_device* device = get_device_from_object(env, thiz); local
69 if (device) {
70 usb_device_close(device);
78 struct usb_device* device = get_device_from_object(env, thiz); local
79 if (!device) {
80 ALOGE("device i
111 struct usb_device* device = get_device_from_object(env, thiz); local
129 struct usb_device* device = get_device_from_object(env, thiz); local
147 struct usb_device* device = get_device_from_object(env, thiz); local
172 struct usb_device* device = get_device_from_object(env, thiz); local
195 struct usb_device* device = get_device_from_object(env, thiz); local
211 struct usb_device* device = get_device_from_object(env, thiz); local
[all...]
/frameworks/av/camera/
H A DICameraService.cpp150 sp<ICamera>& device)
163 device = interface_cast<ICamera>(reply.readStrongBinder());
172 sp<IProCameraUser>& device)
185 device = interface_cast<IProCameraUser>(reply.readStrongBinder());
197 sp<ICameraDeviceUser>& device)
210 device = interface_cast<ICameraDeviceUser>(reply.readStrongBinder());
147 connect(const sp<ICameraClient>& cameraClient, int cameraId, const String16 &clientPackageName, int clientUid, sp<ICamera>& device) argument
169 connectPro(const sp<IProCameraCallbacks>& cameraCb, int cameraId, const String16 &clientPackageName, int clientUid, sp<IProCameraUser>& device) argument
191 connectDevice( const sp<ICameraDeviceCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<ICameraDeviceUser>& device) argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DFrameProcessor.cpp31 FrameProcessor::FrameProcessor(wp<CameraDeviceBase> device, argument
33 FrameProcessorBase(device),
38 sp<CameraDeviceBase> d = device.promote();
59 const sp<CameraDeviceBase> &device) {
84 return FrameProcessorBase::processSingleFrame(frame, device);
58 processSingleFrame(CameraMetadata &frame, const sp<CameraDeviceBase> &device) argument
/frameworks/av/services/camera/libcameraservice/common/
H A DFrameProcessorBase.cpp30 FrameProcessorBase::FrameProcessorBase(wp<CameraDeviceBase> device) : argument
32 mDevice(device) {
82 sp<CameraDeviceBase> device; local
84 device = mDevice.promote();
85 if (device == 0) return false;
88 res = device->waitForNextFrame(kWaitDuration);
90 processNewFrames(device);
99 void FrameProcessorBase::processNewFrames(const sp<CameraDeviceBase> &device) { argument
104 ALOGV("%s: Camera %d: Process new frames", __FUNCTION__, device->getId());
106 while ( (res = device
136 processSingleFrame(CameraMetadata &frame, const sp<CameraDeviceBase> &device) argument
143 processListeners(const CameraMetadata &frame, const sp<CameraDeviceBase> &device) argument
[all...]
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c77 static void send_string(struct usb_device *device, int index, const char* string) { argument
78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
92 struct usb_device *device = usb_device_open(devname); local
93 if (!device) {
98 vendorId = usb_device_get_vendor_id(device);
99 productId = usb_device_get_product_id(device);
109 printf("Found android device in accessory mode\n");
110 sDevice = device;
112 usb_descriptor_iter_init(device, &iter);
133 if (usb_device_claim_interface(device, int
[all...]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DCameraBrowser.java83 MtpDevice device = mDeviceList.get(position);
84 MtpDeviceInfo info = device.getDeviceInfo();
119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
127 public void deviceAdded(MtpDevice device) { argument
128 Log.d(TAG, "deviceAdded: " + device.getDeviceName());
133 public void deviceRemoved(MtpDevice device) { argument
134 Log.d(TAG, "deviceRemoved: " + device.getDeviceName());
H A DMtpClient.java44 * and notifies the application when the MTP device list changes.
57 // so we can inform when the device has been detached.
114 * Called when a new device has been added
116 * @param device the new device that was added
118 public void deviceAdded(MtpDevice device); argument
121 * Called when a new device has been removed
123 * @param device the device that was removed
125 public void deviceRemoved(MtpDevice device); argument
135 isCamera(UsbDevice device) argument
[all...]
/frameworks/base/services/java/com/android/server/display/
H A DDisplayAdapter.java101 * Sends a display device event to the display adapter listener asynchronously.
104 final DisplayDevice device, final int event) {
108 mListener.onDisplayDeviceEvent(device, event);
126 public void onDisplayDeviceEvent(DisplayDevice device, int event); argument
103 sendDisplayDeviceEventLocked( final DisplayDevice device, final int event) argument
H A DLogicalDisplay.java33 * primary display device from which the logical display derives its basic properties
37 * primary display device. Note that the contents of a logical display may not
38 * always be visible, even on its primary display device, such as in the case where
39 * the primary display device is currently mirroring content from a different
47 * to be associated with any individual display device. Logical displays and
67 // The display device that this logical display is based on and which
95 * Gets the primary display device associated with this logical display.
97 * @return The primary display device.
106 * @return The device info, which should be treated as immutable by the caller.
165 * The logical display might become invalid if it is attached to a display device
244 configureDisplayInTransactionLocked(DisplayDevice device, boolean isBlanked) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_LightsService.cpp54 hw_device_t* device; local
55 err = module->methods->open(module, name, &device);
57 return (light_device_t*)device;

Completed in 2755 milliseconds

1234