Home
last modified time | relevance | path

Searched refs:deviceKey (Results 1 – 7 of 7) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DBaseDynamicSensorDaemon.cpp24 bool BaseDynamicSensorDaemon::onConnectionChange(const std::string &deviceKey, bool connected) { in onConnectionChange() argument
26 auto i = mDeviceKeySensorMap.find(deviceKey); in onConnectionChange()
29 ALOGV("device %s is connected", deviceKey.c_str()); in onConnectionChange()
31 BaseSensorVector sensors = createSensor(deviceKey); in onConnectionChange()
33 ALOGI("no valid sensor is defined in device %s, ignore", deviceKey.c_str()); in onConnectionChange()
37 auto result = mDeviceKeySensorMap.emplace(deviceKey, std::move(sensors)); in onConnectionChange()
43 ALOGV("device %s is registered", deviceKey.c_str()); in onConnectionChange()
47 ALOGD("device %s already added and is connected again, ignore", deviceKey.c_str()); in onConnectionChange()
50 ALOGV("device %s is disconnected", deviceKey.c_str()); in onConnectionChange()
58 removeSensor(deviceKey); in onConnectionChange()
[all …]
DHidRawSensorDaemon.cpp45 BaseSensorVector HidRawSensorDaemon::createSensor(const std::string &deviceKey) { in createSensor() argument
47 sp<HidRawSensorDevice> device(HidRawSensorDevice::create(deviceKey)); in createSensor()
51 device.get(), deviceKey.c_str(), device->getSensors().size()); in createSensor()
57 mHidRawSensorDevices.emplace(deviceKey, device); in createSensor()
66 void HidRawSensorDaemon::removeSensor(const std::string &deviceKey) { in removeSensor() argument
67 mHidRawSensorDevices.erase(deviceKey); in removeSensor()
DDummyDynamicAccelDaemon.cpp56 BaseSensorVector DummyDynamicAccelDaemon::createSensor(const std::string &deviceKey) { in createSensor() argument
58 if (deviceKey.compare(0, 1, "/") == 0) { in createSensor()
61 if (deviceKey.length() < len) { in createSensor()
62 ALOGE("illegal file device key %s", deviceKey.c_str()); in createSensor()
64 size_t start = deviceKey.length() - len; in createSensor()
65 ret.emplace_back(new DummySensor(deviceKey.substr(start))); in createSensor()
67 } else if (deviceKey.compare(0, ::strlen("socket:"), "socket:") == 0) { in createSensor()
68 ret.emplace_back(new DummySensor(deviceKey)); in createSensor()
71 ALOGE("unknown deviceKey: %s", deviceKey.c_str()); in createSensor()
DBaseDynamicSensorDaemon.h38 virtual bool onConnectionChange(const std::string &deviceKey, bool connected);
40 virtual BaseSensorVector createSensor(const std::string &deviceKey) = 0;
DHidRawSensorDaemon.h49 virtual BaseSensorVector createSensor(const std::string &deviceKey);
50 virtual void removeSensor(const std::string &deviceKey);
DDummyDynamicAccelDaemon.h64 virtual BaseSensorVector createSensor(const std::string &deviceKey) override;
/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp427 vector<uint8_t> deviceKey = p256PrivateKeyFromD(11); in TEST() local
428 auto [deviceKeyX, deviceKeyY] = p256PrivateKeyGetXandY(deviceKey); in TEST()
528 support::calcEMacKey(support::ecKeyPairGetPrivateKey(deviceKey).value(), // private key in TEST()
539 support::ecKeyPairGetPublicKey(deviceKey).value(), // public key in TEST()