Home
last modified time | relevance | path

Searched refs:Device (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/core/java/android/bluetooth/
DBluetoothClass.java155 public static class Device { class in BluetoothClass
270 return (mClass & Device.Major.BITMASK); in getMajorDeviceClass()
283 return (mClass & Device.BITMASK); in getDeviceClass()
366 case Device.AUDIO_VIDEO_HIFI_AUDIO: in doesClassMatch()
367 case Device.AUDIO_VIDEO_HEADPHONES: in doesClassMatch()
368 case Device.AUDIO_VIDEO_LOUDSPEAKER: in doesClassMatch()
369 case Device.AUDIO_VIDEO_CAR_AUDIO: in doesClassMatch()
382 case Device.AUDIO_VIDEO_HIFI_AUDIO: in doesClassMatch()
383 case Device.AUDIO_VIDEO_SET_TOP_BOX: in doesClassMatch()
384 case Device.AUDIO_VIDEO_VCR: in doesClassMatch()
[all …]
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h322 struct Device { struct
323 Device* next; argument
355 Device(int fd, int32_t id, const std::string& path, argument
357 ~Device();
378 void addDeviceLocked(Device* device); argument
383 void closeDeviceLocked(Device* device);
386 void configureFd(Device* device);
393 status_t registerDeviceForEpollLocked(Device* device);
395 status_t unregisterDeviceFromEpollLocked(Device* device);
403 Device* getDeviceByDescriptorLocked(const std::string& descriptor) const;
[all …]
/frameworks/ml/nn/runtime/
DManager.h39 class Device; variable
53 virtual const Device* getDevice() const = 0;
81 class Device {
82 DISALLOW_COPY_AND_ASSIGN(Device);
85 Device() = default;
86 virtual ~Device() = default;
122 const std::vector<std::shared_ptr<Device>>& getDrivers() const { in getDrivers()
158 static std::shared_ptr<Device> getCpuDevice();
163 std::vector<std::shared_ptr<Device>> forTest_getDevices() const { return mDevices; } in forTest_getDevices()
166 void forTest_setDevices(std::vector<std::shared_ptr<Device>> devices) { in forTest_setDevices()
[all …]
DModelBuilder.h35 class Device; variable
72 const std::vector<std::shared_ptr<Device>>& devices,
129 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, uint32_t preference,
149 const std::vector<std::shared_ptr<Device>>& devices,
151 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device) const;
152 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device,
161 const std::vector<std::shared_ptr<Device>>& devices,
DCompilationBuilder.h33 class Device; variable
45 const std::vector<std::shared_ptr<Device>>& devices,
92 std::vector<std::shared_ptr<Device>> mDevices;
DExecutionPlan.h49 class Device; variable
117 std::shared_ptr<Device> device);
151 std::shared_ptr<Device> getDevice() const { return mDevice; } in getDevice()
185 std::shared_ptr<Device> mDevice;
528 const std::shared_ptr<Device> device);
536 void becomeSingleStep(const std::shared_ptr<Device> device, const ModelBuilder* model);
580 std::shared_ptr<const Device> forTest_simpleGetDevice() const;
644 SimpleBody(std::shared_ptr<Device> device, const ModelBuilder* model, in SimpleBody()
657 std::shared_ptr<Device> mDevice;
DNeuralNetworks.cpp634 const std::vector<std::shared_ptr<Device>>& devices = DeviceManager::get()->getDrivers(); in ANeuralNetworks_getDevice()
648 const Device* d = reinterpret_cast<const Device*>(device); in ANeuralNetworksDevice_getName()
658 const Device* d = reinterpret_cast<const Device*>(device); in ANeuralNetworksDevice_getVersion()
668 const Device* d = reinterpret_cast<const Device*>(device); in ANeuralNetworksDevice_getType()
683 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(device)); in ANeuralNetworksDevice_getFeatureLevel()
697 const Device* d = reinterpret_cast<const Device*>(device); in ANeuralNetworksDevice_wait()
739 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(devices[i])); in ANeuralNetworksModel_getSupportedOperationsForDevices()
765 std::vector<std::shared_ptr<Device>> selectedDevices; in ANeuralNetworksCompilation_createForDevices()
780 if (device.get() == reinterpret_cast<const Device*>(devices[i])) { in ANeuralNetworksCompilation_createForDevices()
1432 const Device* d = reinterpret_cast<const Device*>(device); in ANeuralNetworksDevice_getExtensionSupport()
/frameworks/rs/
DrsDevice.cpp23 Device::Device() { in Device() function in android::renderscript::Device
27 Device::~Device() { in ~Device()
30 void Device::addContext(Context *rsc) { in addContext()
34 void Device::removeContext(Context *rsc) { in removeContext()
DrsApiDevice.cpp28 Device * d = new Device(); in rsDeviceCreate()
40 Device * d = static_cast<Device *>(dev); in rsDeviceSetConfig()
DrsApiContext.cpp25 using android::renderscript::Device;
31 Device * dev = static_cast<Device *>(vdev); in rsContextCreateVendor()
59 Device * dev = static_cast<Device *>(vdev); in rsContextCreateGL()
DrsDevice.h30 class Device {
32 Device();
33 ~Device();
/frameworks/base/cmds/hid/jni/
Dcom_android_commands_hid_Device.cpp53 Device* d = reinterpret_cast<Device*>(data); in handleLooperEvents()
99 Device* Device::open(int32_t id, const char* name, int32_t vid, int32_t pid, in open()
141 return new Device(id, fd, std::move(callback)); in open()
144 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback) : in Device() function in android::uhid::Device
155 Device::~Device() { in ~Device()
169 void Device::sendReport(const std::vector<uint8_t>& report) const { in sendReport()
185 void Device::sendGetFeatureReportReply(uint32_t id, const std::vector<uint8_t>& report) const { in sendGetFeatureReportReply()
199 int Device::handleEvents(int events) { in handleEvents()
253 uhid::Device* d = uhid::Device::open( in openDevice()
260 uhid::Device* d = reinterpret_cast<uhid::Device*>(ptr); in sendReport()
[all …]
Dcom_android_commands_hid_Device.h40 class Device {
42 static Device* open(int32_t id, const char* name, int32_t vid, int32_t pid,
45 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback);
46 ~Device();
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp193 EventHub::Device::Device(int fd, int32_t id, const std::string& path, in Device() function in android::EventHub::Device
217 EventHub::Device::~Device() { in ~Device()
222 void EventHub::Device::close() { in close()
229 status_t EventHub::Device::enable() { in enable()
239 status_t EventHub::Device::disable() { in disable()
245 bool EventHub::Device::hasValidFd() { in hasValidFd()
320 Device* device = mClosingDevices; in ~EventHub()
335 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier()
342 Device* device = getDeviceLocked(deviceId); in getDeviceClasses()
349 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber()
[all …]
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java93 private final HashMap<MidiDeviceInfo, Device> mDevicesByInfo
94 = new HashMap<MidiDeviceInfo, Device>();
97 private final HashMap<BluetoothDevice, Device> mBluetoothDevices
98 = new HashMap<BluetoothDevice, Device>();
101 private final HashMap<IBinder, Device> mDevicesByServer = new HashMap<IBinder, Device>();
167 public void addDeviceConnection(Device device, IMidiDeviceOpenCallback callback) { in addDeviceConnection()
192 public void deviceAdded(Device device) { in deviceAdded()
206 public void deviceRemoved(Device device) { in deviceRemoved()
220 public void deviceStatusChanged(Device device, MidiDeviceStatus status) { in deviceStatusChanged()
285 private final class Device implements IBinder.DeathRecipient { class in MidiService
[all …]
/frameworks/av/media/libaudiohal/impl/
DDevicesFactoryHalHidl.cpp86 static IDevicesFactory::Device idFromHal(const char *name, status_t* status) { in idFromHal()
89 return IDevicesFactory::Device::PRIMARY; in idFromHal()
91 return IDevicesFactory::Device::A2DP; in idFromHal()
93 return IDevicesFactory::Device::USB; in idFromHal()
95 return IDevicesFactory::Device::R_SUBMIX; in idFromHal()
97 return IDevicesFactory::Device::STUB; in idFromHal()
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DHid.java40 private final SparseArray<Device> mDevices;
70 mDevices = new SparseArray<Device>(); in Hid()
96 Device d = mDevices.valueAt(index); in process()
121 Device d = new Device(id, e.getName(), e.getVendorId(), e.getProductId(), in registerDevice()
/frameworks/base/core/proto/android/server/
Denums.proto24 // Device idle mode - not active.
26 // Device idle mode - active in lightweight mode.
28 // Device idle mode - active in full mode.
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DCujs.java24 private Device mDevice;
26 public Cujs(Device device) { in Cujs()
DDevice.java25 class Device { class
29 Device(ITestDevice device) { in Device() method in Device
DMemoryTest.java46 Device device = new Device(testDevice); in setDevice()
/frameworks/hardware/interfaces/cameraservice/service/2.0/
Dtypes.hal40 * Device physically unplugged
45 * Device physically has been plugged in and the camera can be used
51 * Device physically has been plugged in but it will not be connect-able
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHidProfile.java180 case BluetoothClass.Device.PERIPHERAL_KEYBOARD: in getHidClassDrawable()
181 case BluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING: in getHidClassDrawable()
183 case BluetoothClass.Device.PERIPHERAL_POINTING: in getHidClassDrawable()
DBluetoothUtils.java69 case BluetoothClass.Device.Major.COMPUTER: in getBtClassDrawableWithDescription()
74 case BluetoothClass.Device.Major.PHONE: in getBtClassDrawableWithDescription()
80 case BluetoothClass.Device.Major.PERIPHERAL: in getBtClassDrawableWithDescription()
85 case BluetoothClass.Device.Major.IMAGING: in getBtClassDrawableWithDescription()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java95 case BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE: in isCarKitDevice()
96 case BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO: in isCarKitDevice()

1234