Home
last modified time | relevance | path

Searched refs:clientId (Results 1 – 21 of 21) sorted by relevance

/system/chre/host/common/
Dsocket_server.cc96 pair.second.clientId, strerror(errno)); in run()
111 uint16_t clientId = pair.second.clientId; in sendToAllClients() local
112 if (sendToClientSocket(data, length, clientSocket, clientId)) { in sendToAllClients()
127 uint16_t clientId) { in sendToClientById() argument
132 uint16_t thisClientId = pair.second.clientId; in sendToClientById()
133 if (thisClientId == clientId) { in sendToClientById()
152 clientData.clientId = mNextClientId++; in acceptClientConnection()
158 if (clientData.clientId == 0) { in acceptClientConnection()
182 PRIu16, mClients.size(), clientData.clientId); in acceptClientConnection()
189 uint16_t clientId = clientData.clientId; in handleClientData() local
[all …]
/system/chre/host/common/include/chre_host/
Dsocket_server.h47 typedef std::function<void(uint16_t clientId, void *data, size_t len)>
82 bool sendToClientById(const void *data, size_t length, uint16_t clientId);
97 uint16_t clientId; member
117 uint16_t clientId);
/system/chre/platform/android/
Dinit.cc32 void onMessageReceivedFromClient(uint16_t clientId, void *data, size_t length) { in onMessageReceivedFromClient() argument
33 if (!HostProtocolHost::mutateHostClientId(data, length, clientId)) { in onMessageReceivedFromClient()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp198 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
201 if (clientId.size()) { in addClientAndAppData()
202 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
253 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
258 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
297 const hidl_vec<uint8_t>& clientId, in exportKey() argument
303 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/keymaster/ng/include/
DAndroidKeymaster41Device.h102 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
105 return super::getKeyCharacteristics(keyBlob, clientId, appData, _hidl_cb); in getKeyCharacteristics()
125 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in exportKey() argument
127 return super::exportKey(exportFormat, keyBlob, clientId, appData, _hidl_cb); in exportKey()
DAndroidKeymaster3Device.h67 const hidl_vec<uint8_t>& clientId,
73 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
DAndroidKeymaster4Device.h67 const hidl_vec<uint8_t>& clientId,
79 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
/system/security/keystore/
Dkeymaster_worker.cpp181 const hidl_vec<uint8_t>& clientId, in createKeyCharacteristicsCache() argument
251 dev, dev->getKeyCharacteristics(hidlKeyBlob, clientId, appData, hidlCb)); in createKeyCharacteristicsCache()
258 if (clientId.size()) { in createKeyCharacteristicsCache()
259 upgradeParams.push_back(TAG_APPLICATION_ID, clientId); in createKeyCharacteristicsCache()
272 dev, dev->getKeyCharacteristics(upgradedHidlKeyBlob, clientId, appData, hidlCb)); in createKeyCharacteristicsCache()
389 hidl_vec<uint8_t> clientId; in begin() local
393 clientId = authorizationValue(TAG_APPLICATION_ID, param).value(); in begin()
400 lockedEntry, clientId, appData, std::move(keyBlob), std::move(charBlob)); in begin()
884 hidl_vec<uint8_t> clientId, hidl_vec<uint8_t> appData, in getKeyCharacteristics() argument
887 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(clientId), in getKeyCharacteristics()
[all …]
Dlegacy_keymaster_device_wrapper.h55 const hidl_vec<uint8_t>& clientId,
61 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
Dlegacy_keymaster_device_wrapper.cpp250 const hidl_vec<uint8_t>& keyBlob, const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
259 auto kmClientId = hidlVec2KmBlob(clientId); in getKeyCharacteristics()
264 clientId.size() ? &kmClientId : nullptr, appData.size() ? &kmAppData : nullptr, in getKeyCharacteristics()
316 const hidl_vec<uint8_t>& clientId, in exportKey() argument
327 auto kmClientId = hidlVec2KmBlob(clientId); in exportKey()
332 clientId.size() ? &kmClientId : nullptr, in exportKey()
Dkeymaster_worker.h177 const hidl_vec<uint8_t>& clientId,
252 void getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, hidl_vec<uint8_t> clientId,
272 hidl_vec<uint8_t> clientId, hidl_vec<uint8_t> appData, Blob keyBlob,
Dkey_store_service.h98 const ::android::security::keymaster::KeymasterBlob& clientId,
110 const ::android::security::keymaster::KeymasterBlob& clientId,
Dkey_store_service.cpp673 const String16& name, const ::android::security::keymaster::KeymasterBlob& clientId, in getKeyCharacteristics()
708 std::move(lockedEntry), clientId.getData(), appData.getData(), std::move(keyBlob), in getKeyCharacteristics()
775 const ::android::security::keymaster::KeymasterBlob& clientId, in exportKey()
801 dev->exportKey(std::move(lockedEntry), KeyFormat(format), clientId.getData(), appData.getData(), in exportKey()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp210 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
213 if (clientId.size()) { in addClientAndAppData()
214 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
296 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
301 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
339 const hidl_vec<uint8_t>& clientId, in exportKey() argument
345 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
DAndroidKeymaster4Device.cpp164 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
167 if (clientId.size()) { in addClientAndAppData()
168 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
340 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
345 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
411 const hidl_vec<uint8_t>& clientId, in exportKey() argument
417 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster3Device.h52 const hidl_vec<uint8_t>& clientId,
58 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
DTrustyKeymaster4Device.h63 const hidl_vec<uint8_t>& clientId,
75 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp250 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
253 if (clientId.size()) { in addClientAndAppData()
254 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
368 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
373 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
438 const hidl_vec<uint8_t>& clientId, in exportKey() argument
444 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp72 keymaster_blob_t clientId; in ParseKeyBlob() local
74 keymaster_blob_t* clientIdPtr = &clientId; in ParseKeyBlob()
/system/security/keystore/binder/android/security/keystore/
DIKeystoreService.aidl61 …(IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterBlob clientId, in KeymasterBlob… in getKeyCharacteristics() argument
65 … int exportKey(IKeystoreExportKeyCallback cb, String alias, int format, in KeymasterBlob clientId, in exportKey() argument
/system/chre/host/msm/daemon/
Dchre_daemon.cc589 static bool sendMessageToChre(uint16_t clientId, void *data, size_t length) { in sendMessageToChre() argument
600 } else if (!HostProtocolHost::mutateHostClientId(data, length, clientId)) { in sendMessageToChre()
966 void onMessageReceivedFromClient(uint16_t clientId, void *data, size_t length) { in onMessageReceivedFromClient() argument
967 sendMessageToChre(clientId, data, length); in onMessageReceivedFromClient()