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

123

/system/media/brillo/audio/audioservice/
H A Dbrillo_audio_device_info.cpp25 BAudioDeviceInfo* BAudioDeviceInfo_new(int device) { argument
28 std::make_unique<BAudioDeviceInfoInternal>(device);
32 int BAudioDeviceInfo_getType(BAudioDeviceInfo* device) { argument
33 return device->internal_->GetDeviceId();
36 void BAudioDeviceInfo_delete(BAudioDeviceInfo* device) { argument
37 delete device;
H A Dbrillo_audio_device_info_internal.cpp69 unsigned int device) {
71 switch (device) {
83 LOG(ERROR) << "Unsupported device.";
68 CreateFromAudioDevicesT( unsigned int device) argument
/system/core/trusty/gatekeeper/
H A Dmodule.cpp28 hw_device_t **device) {
36 *device = gatekeeper->hw_device();
27 trusty_gatekeeper_open(const hw_module_t *module, const char *name, hw_device_t **device) argument
/system/core/trusty/keymaster/
H A Dmodule.cpp27 * Generic device handling
30 hw_device_t** device) {
37 *device = dev->hw_device();
38 // Do not delete dev; it will get cleaned up when the caller calls device->close(), and must
29 trusty_keymaster_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
H A Dtrusty_keymaster_main.cpp113 static bool test_import_rsa(TrustyKeymasterDevice* device) { argument
121 int error = device->import_keypair(rsa_privkey_pk8_der, rsa_privkey_pk8_der_len, &key, &size);
135 error = device->sign_data(&sign_params, key, size, message.get(), message_len, &signature,
144 error = device->verify_data(&sign_params, key, size, message.get(), message_len, signature,
155 static bool test_rsa(TrustyKeymasterDevice* device) { argument
167 int error = device->generate_keypair(TYPE_RSA, &params, &key, &size);
181 error = device->sign_data(&sign_params, key, size, message.get(), message_len, &signature,
190 error = device->verify_data(&sign_params, key, size, message.get(), message_len, signature,
200 error = device->get_keypair_public(key, size, &exported_key, &exported_size);
231 static bool test_import_ecdsa(TrustyKeymasterDevice* device) { argument
273 test_ecdsa(TrustyKeymasterDevice* device) argument
[all...]
/system/libvintf/include/vintf/
H A DHalManifest.h46 // Construct a device HAL manifest.
84 // - framework manifest vs. device compat-mat
87 // - device manifest vs. framework compat-mat
102 // "android.hardware.camera.device@1.0", "android.hardware.camera.device@3.2",
118 // device.mSepolicyVersion. Assume type == device.
119 // Abort if type != device.
159 // entries for device hal manifest only
162 } device; member in struct:android::vintf::HalManifest
[all...]
H A DCompatibilityMatrix.h81 // entries only for device compatibility matrix.
84 } device; member in struct:android::vintf::CompatibilityMatrix
/system/update_engine/common/
H A Dfake_boot_control.h47 std::string* device) const override {
53 *device = part_it->second;
90 const std::string& device) {
92 devices_[slot][partition_name] = device;
88 SetPartitionDevice(const std::string& partition_name, BootControlInterface::Slot slot, const std::string& device) argument
/system/update_engine/
H A Dutils_android.cc28 // Open the appropriate fstab file and fallback to /fstab.device if
35 fstab = fs_mgr_read_fstab("/fstab.device");
43 bool DeviceForMountPoint(const string& mount_point, base::FilePath* device) { argument
59 *device = base::FilePath(record->blk_device);
/system/core/adb/
H A Dtransport_test.cpp106 ASSERT_EQ(nullptr, t.device);
113 "host::ro.product.name=foo;ro.product.model=bar;ro.product.device=baz;";
122 ASSERT_EQ(std::string("baz"), t.device);
129 "host::ro.product.name=foo;ro.product.model=bar;ro.product.device=baz;"
141 ASSERT_EQ(std::string("baz"), t.device);
149 std::string device = "test_device"; local
156 t.device = &device[0];
166 EXPECT_TRUE(t.MatchesTarget("device:" + device));
[all...]
/system/media/brillo/audio/audioservice/test/
H A Daudio_device_handler_test.cpp16 // Tests for audio device handler.
248 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
249 handler_.connected_input_devices_.insert(device);
251 NotifyAudioPolicyService(device,
259 EXPECT_EQ(handler_.changed_devices_[0], device);
264 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADPHONE; local
265 handler_.connected_output_devices_.insert(device);
267 NotifyAudioPolicyService(device,
275 EXPECT_EQ(handler_.changed_devices_[0], device);
348 // Test ConnectAudioDevice() with an input device
350 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
365 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADSET; local
380 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
395 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADSET; local
[all...]
H A Dbrillo_audio_manager_test.cpp91 auto device = BAudioDeviceInfo_new(TYPE_UNKNOWN); local
94 EXPECT_EQ(BAudioManager_setInputDevice(nullptr, device), EINVAL);
95 BAudioDeviceInfo_delete(device);
100 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET_MIC); local
104 EXPECT_EQ(BAudioManager_setInputDevice(bam, device), 0);
105 BAudioDeviceInfo_delete(device);
110 auto device = BAudioDeviceInfo_new(TYPE_BUILTIN_MIC); local
114 EXPECT_EQ(BAudioManager_setInputDevice(bam, device), 0);
115 BAudioDeviceInfo_delete(device);
120 auto device local
131 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET); local
141 auto device = BAudioDeviceInfo_new(TYPE_BUILTIN_SPEAKER); local
151 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
161 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
250 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET_MIC); local
258 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
360 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
373 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
387 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
401 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
415 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local
[all...]
/system/vold/
H A DEmulatedVolume.cpp46 EmulatedVolume::EmulatedVolume(const std::string& rawPath, dev_t device, argument
48 setId(StringPrintf("emulated:%u,%u", major(device), minor(device)));
H A DPrivateVolume.cpp46 PrivateVolume::PrivateVolume(dev_t device, const std::string& keyRaw) : argument
47 VolumeBase(Type::kPrivate), mRawDevice(device), mKeyRaw(keyRaw) {
48 setId(StringPrintf("private:%u,%u", major(device), minor(device)));
H A DPublicVolume.cpp44 PublicVolume::PublicVolume(dev_t device) : argument
45 VolumeBase(Type::kPublic), mDevice(device), mFusePid(0) {
46 setId(StringPrintf("public:%u,%u", major(device), minor(device)));
/system/core/trusty/storage/proxy/
H A Dipc.c35 int ipc_connect(const char *device, const char *port) argument
43 rc = tipc_connect(device, port);
/system/keymaster/
H A Dkeymaster0_engine.h40 * ownership of the device, and will close it during destruction.
62 const keymaster0_device_t* device() { return keymaster0_device_; } function in class:keymaster::Keymaster0Engine
H A Dkeymaster1_engine.h41 * ownership of the device, and will close it during destruction.
80 const keymaster1_device_t* device() const { return keymaster1_device_; } function in class:keymaster::Keymaster1Engine
/system/media/alsa_utils/include/
H A Dalsa_device_profile.h40 int device; member in struct:__anon1811
52 /* read from the hardware device */
65 bool profile_is_cached_for(alsa_device_profile* profile, int card, int device);
/system/security/keystore/
H A Doperation.h71 Operation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, const km_device_t& device,
76 km_device_t device; member in struct:keystore::OperationMap::Operation
/system/tools/hidl/c2hal/test/
H A Dsimple.h36 * Common methods of the simple device.
73 struct simple_t** device) {
75 FORGROUND_COLOR, (struct simple_t**)device);
78 static inline int hideColor(struct simple_t* device) { argument
79 return device->common.close(&device->common);
72 showColor(const struct hw_module_t* module, struct simple_t** device) argument
/system/bt/stack/hid/
H A Dhidd_int.h49 tHID_DEV_DEV_CTB device; member in struct:dev_ctb
/system/gatekeeper/tests/
H A Dgatekeeper_device_test.cpp32 gatekeeper_device_initialize(&device);
36 gatekeeper_close(device);
51 gatekeeper_device_t *device; member in class:GateKeeperDeviceTest
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len,
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length,
87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len,
93 ret = device
[all...]
/system/nfc/halimpl/bcm2079x/
H A Dnfc_nci.c102 * Generic device handling.
105 /* Close an opened nfc device instance */
114 hw_device_t** device) {
138 *device = (hw_device_t*)dev;
113 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
/system/nfc/halimpl/pn54x/
H A Dnfc_nci.c157 * Generic device handling.
164 ** Description Close the nfc device instance.
179 ** Description Open the nfc device instance.
185 hw_device_t** device) {
208 *device = (hw_device_t*)dev;
184 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument

Completed in 1055 milliseconds

123