Searched defs:device (Results 26 - 50 of 244) sorted by relevance

12345678910

/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pProvDiscEvent.java37 public WifiP2pDevice device; field in class:WifiP2pProvDiscEvent
43 device = new WifiP2pDevice();
71 device = new WifiP2pDevice();
72 device.deviceAddress = tokens[1];
81 sbuf.append(device);
/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/ml/nn/runtime/
H A DVersionedIDevice.cpp27 VersionedIDevice::VersionedIDevice(sp<V1_0::IDevice> device) : argument
28 mDeviceV1_0(device),
84 // device
110 // 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/native/libs/binder/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/av/camera/ndk/
H A DNdkCameraManager.cpp117 /*out*/ACameraDevice** device) {
119 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) {
120 ALOGE("%s: invalid argument! mgr %p cameraId %p callback %p device %p",
121 __FUNCTION__, mgr, cameraId, callback, device);
124 return mgr->openCamera(cameraId, callback, device);
114 ACameraManager_openCamera( ACameraManager* mgr, const char* cameraId, ACameraDevice_StateCallbacks* callback, ACameraDevice** device) argument
/frameworks/av/camera/ndk/impl/
H A DACameraCaptureSession.cpp25 ALOGV("~ACameraCaptureSession: %p notify device end of life", this);
187 sp<CameraDevice> device = mDevice.promote(); local
188 if (device == nullptr || device->isClosed()) {
192 return device;
H A DACameraCaptureSession.h63 CameraDevice* device) :
65 mDevice(device) {}
68 // Make sure the caller does not hold device or session lock!
71 // No API except Session_Close will work if device is closed
102 // Close session because app close camera device, camera device got ERROR_DISCONNECTED,
59 ACameraCaptureSession( int id, const ACaptureSessionOutputContainer* outputs, const ACameraCaptureSession_stateCallbacks* cb, CameraDevice* device) argument
/frameworks/av/services/audiopolicy/common/include/
H A Dpolicy.h35 * A device mask for all audio input devices that are considered "virtual" when evaluating
43 * A device mask for all audio input and output devices where matching inputs/outputs on device
63 * @return true if given state represents a device in a telephony or VoIP call
71 * Check if the input device given is considered as a virtual device.
73 * @param[in] device to consider
75 * @return true if the device is a virtual one, false otherwise.
77 static inline bool is_virtual_input_device(audio_devices_t device) argument
79 if ((device
95 device_distinguishes_on_address(audio_devices_t device) argument
[all...]
H A DVolume.h34 * device categories used for volume curve management.
65 * extract one device relevant for volume control from multiple device selection
67 * @param[in] device for which the volume category is associated
69 * @return subset of device required to limit the number of volume category per device
71 static audio_devices_t getDeviceForVolume(audio_devices_t device) argument
73 if (device == AUDIO_DEVICE_NONE) {
76 device = AUDIO_DEVICE_OUT_SPEAKER;
77 } else if (popcount(device) >
105 device); local
117 getDeviceCategory(audio_devices_t device) argument
[all...]
/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);
41 bool hasVolumeIndexForDevice(audio_devices_t device) const
43 device = Volume::getDeviceForVolume(device);
44 return mIndexCur.indexOfKey(device) >= 0;
57 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */
73 virtual void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device,
80 virtual int getVolumeIndex(audio_stream_type_t stream, audio_devices_t device) argument
82 return valueFor(stream).getVolumeIndex(device);
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSessionRoute.cpp125 audio_devices_t device = AUDIO_DEVICE_NONE; local
131 device = route->mDeviceDescriptor->type();
132 if (!availableDevices.getDevicesFromType(device).isEmpty()) {
137 return device;
H A DAudioPatch.cpp55 std::string device; local
56 deviceToString(mPatch.sources[i].ext.device.type, device);
59 device.c_str());
70 std::string device; local
71 deviceToString(mPatch.sinks[i].ext.device.type, device);
74 device.c_str());
138 patch->mPatch.sources[srcIndex].ext.device.type == AUDIO_DEVICE_IN_STUB) {
144 patch->mPatch.sinks[sinkIndex].ext.device
[all...]
H A DIOProfile.cpp30 bool IOProfile::isCompatibleProfile(audio_devices_t device, argument
49 if (device != AUDIO_DEVICE_NONE) {
51 if (popcount(device & ~AUDIO_DEVICE_BIT_IN) > 1) {
52 if ((mSupportedDevices.types() & device) != device) {
55 } else if (mSupportedDevices.getDevice(device, address) == 0) {
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothManager.java74 * Get the default BLUETOOTH Adapter for this device.
83 * Get the current connection state of the profile to the remote device.
90 * @param device Remote bluetooth device.
97 public int getConnectionState(BluetoothDevice device, int profile) { argument
102 if (device.equals(connectedDevice)) {
/frameworks/base/core/java/android/bluetooth/le/
H A DPeriodicAdvertisingCallback.java38 * Sync failed to be established because remote device did not respond.
52 * @param device remote device.
61 public void onSyncEstablished(int syncHandle, BluetoothDevice device, argument
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDelayedMessageBuffer.java25 * handle messages that arrive when the device is not ready. Useful when
26 * keeping the messages from a connected device which are not discovered yet.
32 DelayedMessageBuffer(HdmiCecLocalDevice device) { argument
33 mDevice = device;
97 * Process messages from a given logical device. Called by
98 * {@link NewDeviceAction} actions when they finish adding the device
103 * @param address logical address of CEC device which the messages to process
134 * @param address logical address of the device to be the active source
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbDescriptorParser.cpp34 struct usb_device* device = usb_device_open(deviceAddrStr); local
37 if (!device) {
42 int fd = usb_device_get_fd(device);
44 usb_device_close(device);
53 usb_device_close(device);
69 struct usb_device* device = usb_device_open(deviceAddrStr); local
72 if (!device) {
77 int fd = usb_device_get_fd(device);
80 usb_device_close(device);
88 usb_device_get_string_ucs2(device, stringI
[all...]
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbAlsaJackDetector.java34 private UsbAlsaJackDetector(UsbAlsaDevice device) { argument
35 mAlsaDevice = device;
39 * create and return a UsbAlsaJackDetector which will update wired device state
44 public static UsbAlsaJackDetector startJackDetect(UsbAlsaDevice device) { argument
45 if (!nativeHasJackDetect(device.getCardNum())) {
48 UsbAlsaJackDetector jackDetector = new UsbAlsaJackDetector(device);
50 // This thread will exit once the USB device disappears.
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DUsbUtil.java35 for (UsbDevice device : devices.values()) {
36 if (possiblyAndroid(device)) {
40 androidDevices.add(device);
46 public static boolean possiblyAndroid(UsbDevice device) { argument
47 int numInterfaces = device.getInterfaceCount();
49 UsbInterface usbInterface = device.getInterface(i);
78 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { argument
81 if (isDevicesMatching(dev, device)) {
/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DRunMonkeyAction.java37 private IDevice device; field in class:RunMonkeyAction
40 public RunMonkeyAction(IDevice device, DumpTableModel dataTableModel) { argument
42 this.device = device;
47 public void setDevice(IDevice device) { argument
48 this.device = device;
98 DeviceUtils.doShell(device, "monkey -p " + pkg + " " + ITERATIONS, 1,
102 Map<String, String> data = Main.findAndGetClassData(device, pkg);
119 DeviceUtils.doShell(device, "forc
[all...]
/frameworks/rs/tests/lldb/
H A Dconfig.py48 '''Specify the port number that lldb-server (on the device) listens on.
50 When lldb-server is spawned on the device it will listen on this port.
56 '''Path to the lldb-server executable on the device.'''
98 def device(self): member in class:Config
99 '''Specify the device id of the device to run on.
101 When multiple devices or emulators are present, a specific device to
/frameworks/base/core/java/android/companion/
H A DBluetoothDeviceFilterUtils.java52 static boolean matches(ScanFilter filter, BluetoothDevice device) { argument
53 boolean result = matchesAddress(filter.getDeviceAddress(), device)
54 && matchesServiceUuid(filter.getServiceUuid(), filter.getServiceUuidMask(), device);
55 if (DEBUG) debugLogMatchResult(result, device, filter);
59 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { argument
61 || (device != null && deviceAddress.equals(device.getAddress()));
62 if (DEBUG) debugLogMatchResult(result, device, deviceAddress);
67 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) {
71 if (!matchesServiceUuid(uuid, uuidMask, device)) {
66 matchesServiceUuids(List<ParcelUuid> serviceUuids, List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) argument
78 matchesServiceUuid(ParcelUuid serviceUuid, ParcelUuid serviceUuidMask, BluetoothDevice device) argument
89 matchesName(@ullable Pattern namePattern, BluetoothDevice device) argument
103 matchesName(@ullable Pattern namePattern, ScanResult device) argument
117 debugLogMatchResult( boolean result, BluetoothDevice device, Object criteria) argument
122 debugLogMatchResult( boolean result, ScanResult device, Object criteria) argument
127 getDeviceDisplayNameInternal(@onNull BluetoothDevice device) argument
131 getDeviceDisplayNameInternal(@onNull ScanResult device) argument
135 getDeviceMacAddress(@onNull Parcelable device) argument
[all...]
H A DWifiDeviceFilter.java62 public boolean matches(ScanResult device) { argument
63 return BluetoothDeviceFilterUtils.matchesName(getNamePattern(), device);
68 public String getDeviceDisplayName(ScanResult device) { argument
69 return getDeviceDisplayNameInternal(device);

Completed in 1200 milliseconds

12345678910