Searched defs:dev (Results 1 - 25 of 41) sorted by relevance

12

/system/security/keystore/
H A Dkeystore_main.cpp67 auto dev = android::hardware::keymaster::V3_0::IKeymasterDevice::getService(); local
68 if (dev.get() == nullptr) {
72 if (dev.get() == nullptr) {
83 rc = KS_HANDLE_HIDL_ERROR(dev->getHardwareFeatures(
96 KeyStore keyStore(&entropy, dev, fallback, allowNewFallbackDevice);
H A Doperation.cpp29 const OperationMap::km_device_t& dev,
33 mMap[token] = Operation(handle, keyid, purpose, dev, std::move(characteristics), appToken);
28 addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, const OperationMap::km_device_t& dev, const sp<IBinder>& appToken, KeyCharacteristics&& characteristics, bool pruneable) argument
/system/core/adb/
H A Dremount_service.cpp64 // /proc/mounts lists rootfs and /dev/root, neither of which is what we want.
73 bool make_block_device_writable(const std::string& dev) { argument
74 int fd = unix_open(dev.c_str(), O_RDONLY | O_CLOEXEC);
89 std::string dev = find_mount(dir); local
90 if (dev.empty()) {
93 if (!make_block_device_writable(dev)) {
95 dir, dev.c_str(), strerror(errno));
98 if (mount(dev.c_str(), dir, "none", MS_REMOUNT, nullptr) == -1) {
H A Dfile_sync_service.h54 uint64_t dev; member in struct:syncmsg::__anon1402
/system/core/libusbhost/include/usbhost/
H A Dusbhost.h44 struct usb_device *dev; member in struct:usb_request
226 struct usb_request *usb_request_new(struct usb_device *dev,
239 struct usb_request *usb_request_wait(struct usb_device *dev, int timeoutMillis);
/system/update_engine/
H A Domaha_request_params_unittest.cc164 EXPECT_TRUE(params_.IsValidChannel("dev-channel"));
172 params_.set_target_channel("dev-channel");
173 EXPECT_EQ("dev-channel", params_.target_channel());
177 EXPECT_EQ("dev-channel", params_.target_channel());
212 int dev = params_.GetChannelIndex("dev-channel"); local
215 EXPECT_LE(canary, dev);
216 EXPECT_LE(dev, beta);
/system/bt/bta/sys/
H A Dutl.cc160 uint8_t* dev; local
165 dev = BTM_ReadDeviceClass();
166 BTM_COD_SERVICE_CLASS(service, dev);
167 BTM_COD_MINOR_CLASS(minor, dev);
168 BTM_COD_MAJOR_CLASS(major, dev);
/system/gatekeeper/tests/
H A Dgatekeeper_device_test.cpp39 static void gatekeeper_device_initialize(gatekeeper_device_t **dev) { argument
46 ret = gatekeeper_open(mod, dev);
/system/netd/server/
H A DPppController.cpp84 char dev[32]; local
91 snprintf(dev, sizeof(dev), "/dev/%s", tty);
95 if (execl("/system/bin/pppd", "/system/bin/pppd", "-detach", dev, "115200",
/system/nfc/halimpl/bcm2079x/
H A Dnfc_nci.c36 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
38 retval = HaiOpen(dev, p_hal_cback, p_hal_data_callback);
45 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
47 retval = HaiWrite(dev, data_len, p_data);
54 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
56 retval = HaiCoreInitialized(dev, p_core_init_rsp_params);
62 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
64 retval = HaiPreDiscover(dev);
70 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
72 retval = HaiClose(dev);
78 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
86 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
95 bcm2079x_dev_t* dev = (bcm2079x_dev_t*)p_dev; local
106 nfc_close(hw_device_t* dev) argument
119 bcm2079x_dev_t* dev = calloc(1, sizeof(bcm2079x_dev_t)); local
[all...]
/system/nfc/halimpl/pn54x/
H A Dnfc_nci.c45 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
63 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
82 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
99 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
116 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
133 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
150 pn547_dev_t* dev = (pn547_dev_t*)p_dev; local
169 static int nfc_close(hw_device_t* dev) { argument
171 free(dev);
190 pn547_dev_t* dev local
[all...]
/system/keymaster/
H A Dkeymaster_configuration.cpp64 keymaster_error_t ConfigureDevice(keymaster2_device_t* dev, uint32_t os_version, argument
69 return dev->configure(dev, &config_params);
72 keymaster_error_t ConfigureDevice(keymaster2_device_t* dev) { argument
73 return ConfigureDevice(dev, GetOsVersion(), GetOsPatchlevel());
/system/vold/
H A DLoop.cpp57 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i);
101 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i);
147 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i);
154 unsigned int dev = (0xff & i) | ((i << 12) & 0xfff00000) | (7 << 8); local
162 if (mknod(filename, mode, dev) < 0) {
240 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC));
252 out_device = StringPrintf("/dev/block/loop%d", num);
H A DKeymaster.cpp201 Keymaster dev; local
202 if (!dev) {
206 return dev.isSecure();
216 Keymaster dev; local
218 if (!dev) {
242 if (!dev.generateKey(paramBuilder, &key)) {
266 Keymaster dev; local
267 if (!dev) {
287 op = dev.begin(KeyPurpose::SIGN, key, paramBuilder, &outParams);
/system/core/adf/libadfhwc/
H A Dadfhwc.cpp41 int adf_eventControl(struct adf_hwc_helper *dev, int disp, int event, argument
47 if ((size_t)disp >= dev->intf_fds.size())
52 return adf_set_event(dev->intf_fds[disp], ADF_EVENT_VSYNC, enabled);
65 int adf_blank(struct adf_hwc_helper *dev, int disp, int blank) argument
67 if ((size_t)disp >= dev->intf_fds.size())
71 return adf_interface_blank(dev->intf_fds[disp], dpms_mode);
74 int adf_query_display_types_supported(struct adf_hwc_helper *dev, int *value) argument
77 if (dev->intf_fds.size() > 0)
79 if (dev->intf_fds.size() > 1)
85 int adf_getDisplayConfigs(struct adf_hwc_helper *dev, in argument
145 adf_getDisplayAttributes(struct adf_hwc_helper *dev, int disp, uint32_t config, const uint32_t *attributes, int32_t *values) argument
196 adf_getDisplayAttributes_hwc2(struct adf_hwc_helper *dev, int disp, uint32_t config, const uint32_t *attributes, int32_t *values) argument
220 adf_set_active_config_hwc2(struct adf_hwc_helper *dev, int disp, uint32_t config) argument
234 handle_adf_event(struct adf_hwc_helper *dev, int disp) argument
272 adf_hwc_helper *dev = static_cast<adf_hwc_helper *>(data); local
312 adf_hwc_open(int *intf_fds, size_t n_intfs, const struct adf_hwc_event_callbacks *event_cb, void *event_cb_data, struct adf_hwc_helper **dev) argument
367 adf_hwc_close(struct adf_hwc_helper *dev) argument
[all...]
/system/core/fastboot/
H A Dusb_osx.cpp85 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { argument
105 kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator);
272 IOUSBDeviceInterface182 **dev = NULL; local
291 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID*) &dev);
292 if ((result != 0) || (dev == NULL)) {
305 kr = (*dev)->GetDeviceVendor(dev, &handle->info.dev_vendor);
311 kr = (*dev)->GetDeviceProduct(dev,
[all...]
H A Dusb_linux.cpp143 struct usb_device_descriptor *dev; local
155 dev = (struct usb_device_descriptor *)ptr;
156 len -= dev->bLength;
157 ptr += dev->bLength;
165 info.dev_vendor = dev->idVendor;
166 info.dev_product = dev->idProduct;
167 info.dev_class = dev->bDeviceClass;
168 info.dev_subclass = dev->bDeviceSubClass;
169 info.dev_protocol = dev->bDeviceProtocol;
181 if (dev
[all...]
/system/core/trusty/gatekeeper/
H A Dtrusty_gatekeeper.cpp73 int TrustyGateKeeperDevice::close_device(hw_device_t* dev) { argument
74 delete reinterpret_cast<TrustyGateKeeperDevice *>(dev);
185 static inline TrustyGateKeeperDevice *convert_device(const gatekeeper_device *dev) { argument
186 return reinterpret_cast<TrustyGateKeeperDevice *>(const_cast<gatekeeper_device *>(dev));
190 int TrustyGateKeeperDevice::enroll(const struct gatekeeper_device *dev, uint32_t uid, argument
196 if (dev == NULL ||
210 return convert_device(dev)->Enroll(uid, current_password_handle, current_password_handle_length,
217 int TrustyGateKeeperDevice::verify(const struct gatekeeper_device *dev, uint32_t uid, argument
223 if (dev == NULL || enrolled_password_handle == NULL ||
228 return convert_device(dev)
[all...]
/system/libvintf/
H A DVintfObject.cpp113 std::unique_ptr<T> *fwk, std::unique_ptr<T> *dev) {
124 if (dev->get() != nullptr) {
127 *dev = std::move(ret);
158 Pair dev; member in struct:android::vintf::details::PackageInfo
167 Pair dev; member in struct:android::vintf::details::UpdatedInfo
185 parseStatus = tryParse(xml, gHalManifestConverter, &pkg.fwk.manifest, &pkg.dev.manifest);
193 parseStatus = tryParse(xml, gCompatibilityMatrixConverter, &pkg.fwk.matrix, &pkg.dev.matrix);
215 pkg.dev.manifest.get(), mount, mountVendor, &updated.dev.manifest,
226 pkg.dev
112 tryParse(const std::string &xml, const XmlConverter<T> &parse, std::unique_ptr<T> *fwk, std::unique_ptr<T> *dev) argument
[all...]
/system/nfc/halimpl/bcm2079x/adaptation/
H A DHalAdaptation.cpp316 int HaiWrite(const bcm2079x_dev_t* dev, uint16_t dataLen, const uint8_t* data) { argument
/system/update_engine/common/
H A Dtest_utils.h126 std::string* dev) {
130 if (is_bound_ && dev)
131 *dev = dev_;
146 const std::string &dev() { function in class:chromeos_update_engine::test_utils::ScopedLoopbackDeviceBinder
124 ScopedLoopbackDeviceBinder(const std::string& file, bool writable, std::string* dev) argument
/system/core/adb/client/
H A Dusb_osx.cpp133 IOUSBDeviceInterface197 **dev = NULL; local
205 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID*)&dev);
208 if (result || !dev) {
216 kr = (*dev)->GetDeviceVendor(dev, &vendor);
217 kr = (*dev)->GetDeviceProduct(dev, &product);
218 kr = (*dev)->GetLocationID(dev, &locationId);
222 (*dev)
[all...]
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp337 char dev[IFNAMSIZ] = ""; local
356 if (maybeLogDuplicateAttribute(*dev, "RTA_OIF", msgname))
358 if (!if_indextoname(* (int *) RTA_DATA(rta), dev))
379 if (!*dst || (!*gw && !*dev))
388 asprintf(&mParams[2], "INTERFACE=%s", (*dev) ? dev : "");
/system/core/trusty/keymaster/
H A Dtrusty_keymaster_device.cpp386 static inline TrustyKeymasterDevice* convert_device(const keymaster0_device_t* dev) { argument
387 return reinterpret_cast<TrustyKeymasterDevice*>(const_cast<keymaster0_device_t*>(dev));
391 int TrustyKeymasterDevice::close_device(hw_device_t* dev) { argument
392 delete reinterpret_cast<TrustyKeymasterDevice*>(dev);
397 int TrustyKeymasterDevice::generate_keypair(const keymaster0_device_t* dev, argument
401 ALOGD("Generate keypair, sending to device: %p", convert_device(dev));
402 return convert_device(dev)->generate_keypair(key_type, key_params, keyBlob, keyBlobLength);
406 int TrustyKeymasterDevice::import_keypair(const keymaster0_device_t* dev, const uint8_t* key, argument
409 return convert_device(dev)->import_keypair(key, key_length, key_blob, key_blob_length);
413 int TrustyKeymasterDevice::get_keypair_public(const keymaster0_device_t* dev, argument
421 sign_data(const keymaster0_device_t* dev, const void* params, const uint8_t* keyBlob, const size_t keyBlobLength, const uint8_t* data, const size_t dataLength, uint8_t** signedData, size_t* signedDataLength) argument
430 verify_data(const keymaster0_device_t* dev, const void* params, const uint8_t* keyBlob, const size_t keyBlobLength, const uint8_t* signedData, const size_t signedDataLength, const uint8_t* signature, const size_t signatureLength) argument
[all...]
/system/core/trusty/libtrusty/tipc-test/
H A Dtipc_test.c28 #define TIPC_DEFAULT_DEVNAME "/dev/trusty-ipc-dev0"
48 {"dev", required_argument, 0, 'D'},
60 " -D, --dev name device name\n"
82 " dev-uuid - print device uuid\n"
620 static void print_uuid(const char *dev, uuid_t *uuid) argument
622 printf("%s:", dev);
902 } else if (strcmp(test_name, "dev-uuid") == 0) {

Completed in 562 milliseconds

12